libsodium 1.0.8
[tomato.git] / release / src / router / transmission / configure
blobce14e2d7d98e11eb67ab042c13b183c27afb8c06
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for transmission 2.84.
5 # Report bugs to <http://trac.transmissionbt.com/newticket>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://trac.transmissionbt.com/newticket about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='transmission'
592 PACKAGE_TARNAME='transmission'
593 PACKAGE_VERSION='2.84'
594 PACKAGE_STRING='transmission 2.84'
595 PACKAGE_BUGREPORT='http://trac.transmissionbt.com/newticket'
596 PACKAGE_URL=''
598 ac_unique_file="libtransmission/transmission.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 WIN32_FALSE
640 WIN32_TRUE
641 BUILD_DAEMON_FALSE
642 BUILD_DAEMON_TRUE
643 BUILD_MAC_FALSE
644 BUILD_MAC_TRUE
645 BUILD_CLI_FALSE
646 BUILD_CLI_TRUE
647 WINDRES
648 transmissionlocaledir
649 MKINSTALLDIRS
650 POSUB
651 POFILES
652 PO_IN_DATADIR_FALSE
653 PO_IN_DATADIR_TRUE
654 INTLLIBS
655 INSTOBJEXT
656 GMOFILES
657 CATOBJEXT
658 CATALOGS
659 GETTEXT_PACKAGE
660 DATADIRNAME
661 ALL_LINGUAS
662 INTLTOOL_PERL
663 GMSGFMT
664 MSGFMT
665 MSGMERGE
666 XGETTEXT
667 INTLTOOL_POLICY_RULE
668 INTLTOOL_SERVICE_RULE
669 INTLTOOL_THEME_RULE
670 INTLTOOL_SCHEMAS_RULE
671 INTLTOOL_CAVES_RULE
672 INTLTOOL_XML_NOMERGE_RULE
673 INTLTOOL_XML_RULE
674 INTLTOOL_KBD_RULE
675 INTLTOOL_XAM_RULE
676 INTLTOOL_UI_RULE
677 INTLTOOL_SOUNDLIST_RULE
678 INTLTOOL_SHEET_RULE
679 INTLTOOL_SERVER_RULE
680 INTLTOOL_PONG_RULE
681 INTLTOOL_OAF_RULE
682 INTLTOOL_PROP_RULE
683 INTLTOOL_KEYS_RULE
684 INTLTOOL_DIRECTORY_RULE
685 INTLTOOL_DESKTOP_RULE
686 intltool__v_merge_options_0
687 intltool__v_merge_options_
688 INTLTOOL_V_MERGE_OPTIONS
689 INTLTOOL__v_MERGE_0
690 INTLTOOL__v_MERGE_
691 INTLTOOL_V_MERGE
692 INTLTOOL_EXTRACT
693 INTLTOOL_MERGE
694 INTLTOOL_UPDATE
695 USE_NLS
696 LIBAPPINDICATOR_LIBS
697 LIBAPPINDICATOR_CFLAGS
698 GTK_LIBS
699 GTK_CFLAGS
700 BUILD_GTK_FALSE
701 BUILD_GTK_TRUE
702 LIBNATPMP_LIBS_QT
703 LIBNATPMP_LIBS
704 LIBNATPMP_CFLAGS
705 BUILD_NATPMP_FALSE
706 BUILD_NATPMP_TRUE
707 LIBUPNP_LIBS_QT
708 LIBUPNP_LIBS
709 LIBUPNP_CFLAGS
710 BUILD_MINIUPNP_FALSE
711 BUILD_MINIUPNP_TRUE
712 BUILD_UTP_FALSE
713 BUILD_UTP_TRUE
714 LIBUTP_LIBS_QT
715 LIBUTP_LIBS
716 LIBUTP_CFLAGS
717 DHT_LIBS
718 DHT_CFLAGS
719 SYSTEMD_DAEMON_LIBS
720 SYSTEMD_DAEMON_CFLAGS
721 ZLIB_LIBS
722 ZLIB_LDFLAGS
723 ZLIB_CFLAGS
724 LIBEVENT_LIBS
725 LIBEVENT_CFLAGS
726 LIBCURL_LIBS
727 LIBCURL_CFLAGS
728 PKG_CONFIG
729 PTHREAD_CFLAGS
730 PTHREAD_LIBS
731 PTHREAD_CC
732 acx_pthread_config
733 CXXCPP
734 am__fastdepCXX_FALSE
735 am__fastdepCXX_TRUE
736 CXXDEPMODE
737 ac_ct_CXX
738 CXXFLAGS
740 LIBAPPINDICATOR_MINIMUM
741 GIO_MINIMUM
742 GLIB_MINIMUM
743 GTK_MINIMUM
744 OPENSSL_MINIMUM
745 LIBEVENT_MINIMUM
746 CURL_MINIMUM
747 TR_UNSTABLE_FALSE
748 TR_UNSTABLE_TRUE
750 OTOOL64
751 OTOOL
752 LIPO
753 NMEDIT
754 DSYMUTIL
755 MANIFEST_TOOL
756 RANLIB
757 ac_ct_AR
759 DLLTOOL
760 OBJDUMP
761 LN_S
763 ac_ct_DUMPBIN
764 DUMPBIN
766 FGREP
767 EGREP
768 GREP
770 am__fastdepCC_FALSE
771 am__fastdepCC_TRUE
772 CCDEPMODE
773 am__nodep
774 AMDEPBACKSLASH
775 AMDEP_FALSE
776 AMDEP_TRUE
777 am__quote
778 am__include
779 DEPDIR
780 OBJEXT
781 EXEEXT
782 ac_ct_CC
783 CPPFLAGS
784 LDFLAGS
785 CFLAGS
787 host_os
788 host_vendor
789 host_cpu
790 host
791 build_os
792 build_vendor
793 build_cpu
794 build
795 LIBTOOL
796 am__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 AM_BACKSLASH
820 AM_DEFAULT_VERBOSITY
821 AM_DEFAULT_V
822 AM_V
823 PEERID_PREFIX
824 USERAGENT_PREFIX
825 target_alias
826 host_alias
827 build_alias
828 LIBS
829 ECHO_T
830 ECHO_N
831 ECHO_C
832 DEFS
833 mandir
834 localedir
835 libdir
836 psdir
837 pdfdir
838 dvidir
839 htmldir
840 infodir
841 docdir
842 oldincludedir
843 includedir
844 localstatedir
845 sharedstatedir
846 sysconfdir
847 datadir
848 datarootdir
849 libexecdir
850 sbindir
851 bindir
852 program_transform_name
853 prefix
854 exec_prefix
855 PACKAGE_URL
856 PACKAGE_BUGREPORT
857 PACKAGE_STRING
858 PACKAGE_VERSION
859 PACKAGE_TARNAME
860 PACKAGE_NAME
861 PATH_SEPARATOR
862 SHELL
863 OPENSSL_LIBS
864 OPENSSL_CFLAGS'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_silent_rules
869 enable_shared
870 enable_static
871 with_pic
872 enable_fast_install
873 enable_dependency_tracking
874 with_gnu_ld
875 with_sysroot
876 enable_libtool_lock
877 with_zlib
878 with_zlib_includes
879 enable_largefile
880 with_inotify
881 with_kqueue
882 with_systemd_daemon
883 enable_utp
884 enable_external_natpmp
885 enable_nls
886 with_gtk
887 enable_lightweight
888 enable_cli
889 enable_mac
890 enable_daemon
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
902 CXXFLAGS
904 CXXCPP
905 PKG_CONFIG
906 OPENSSL_CFLAGS
907 OPENSSL_LIBS
908 LIBCURL_CFLAGS
909 LIBCURL_LIBS
910 LIBEVENT_CFLAGS
911 LIBEVENT_LIBS
912 SYSTEMD_DAEMON_CFLAGS
913 SYSTEMD_DAEMON_LIBS
914 GTK_CFLAGS
915 GTK_LIBS
916 LIBAPPINDICATOR_CFLAGS
917 LIBAPPINDICATOR_LIBS'
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
968 ac_prev=
969 ac_dashdash=
970 for ac_option
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
989 ac_dashdash=yes ;;
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 esac
1326 done
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1410 /^X\(\/\/\)$/{
1411 s//\1/
1414 /^X\(\/\).*/{
1415 s//\1/
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1423 else
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458 \`configure' configures transmission 2.84 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1467 Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/transmission]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1511 _ACEOF
1513 cat <<\_ACEOF
1515 Program names:
1516 --program-prefix=PREFIX prepend PREFIX to installed program names
1517 --program-suffix=SUFFIX append SUFFIX to installed program names
1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520 System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of transmission 2.84:";;
1529 esac
1530 cat <<\_ACEOF
1532 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-silent-rules less verbose build output (undo: "make V=1")
1537 --disable-silent-rules verbose build output (undo: "make V=0")
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-static[=PKGS] build static libraries [default=yes]
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation [default=yes]
1542 --enable-dependency-tracking
1543 do not reject slow dependency extractors
1544 --disable-dependency-tracking
1545 speeds up one-time build
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --disable-largefile omit support for large files
1548 --enable-utp build µTP support
1549 --enable-external-natpmp
1550 Use system external-natpmp
1551 --enable-nls enable native language support
1552 --disable-nls do not use Native Language Support
1553 --enable-lightweight optimize libtransmission for low-resource systems:
1554 smaller cache size, prefer unencrypted peer
1555 connections, etc.
1556 --enable-cli build command-line client
1557 --enable-mac build Mac client
1558 --enable-daemon build daemon
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1564 both]
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 --with-sysroot=DIR Search for dependent libraries within DIR
1567 (or the compiler's sysroot if not specified).
1568 --with-zlib=DIR search for ZLIB in DIR/include and DIR/lib
1569 --with-zlib-includes=DIR
1570 search for ZLIB includes in DIR
1571 --with-inotify Enable inotify support (default=auto)
1572 --with-kqueue Enable kqueue support (default=auto)
1573 --with-systemd-daemon Add support for systemd startup notification
1574 (default is autodetected)
1575 --with-gtk with Gtk
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CPP C preprocessor
1586 CXX C++ compiler command
1587 CXXFLAGS C++ compiler flags
1588 CXXCPP C++ preprocessor
1589 PKG_CONFIG path to pkg-config utility
1590 OPENSSL_CFLAGS
1591 C compiler flags for OPENSSL, overriding pkg-config
1592 OPENSSL_LIBS
1593 linker flags for OPENSSL, overriding pkg-config
1594 LIBCURL_CFLAGS
1595 C compiler flags for LIBCURL, overriding pkg-config
1596 LIBCURL_LIBS
1597 linker flags for LIBCURL, overriding pkg-config
1598 LIBEVENT_CFLAGS
1599 C compiler flags for LIBEVENT, overriding pkg-config
1600 LIBEVENT_LIBS
1601 linker flags for LIBEVENT, overriding pkg-config
1602 SYSTEMD_DAEMON_CFLAGS
1603 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1604 SYSTEMD_DAEMON_LIBS
1605 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1606 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1607 GTK_LIBS linker flags for GTK, overriding pkg-config
1608 LIBAPPINDICATOR_CFLAGS
1609 C compiler flags for LIBAPPINDICATOR, overriding pkg-config
1610 LIBAPPINDICATOR_LIBS
1611 linker flags for LIBAPPINDICATOR, overriding pkg-config
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to <http://trac.transmissionbt.com/newticket>.
1617 _ACEOF
1618 ac_status=$?
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1645 case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678 cat <<\_ACEOF
1679 transmission configure 2.84
1680 generated by GNU Autoconf 2.69
1682 Copyright (C) 2012 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_compile
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_link ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 test -x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=1
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_c_try_link
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_header_compile
1808 # ac_fn_c_try_cpp LINENO
1809 # ----------------------
1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_cpp ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } > conftest.i && {
1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=1
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_cpp
1845 # ac_fn_c_try_run LINENO
1846 # ----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848 # that executables *can* be run.
1849 ac_fn_c_try_run ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=$ac_status
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_c_try_run
1887 # ac_fn_c_check_func LINENO FUNC VAR
1888 # ----------------------------------
1889 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1890 ac_fn_c_check_func ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902 #define $2 innocuous_$2
1904 /* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1909 #ifdef __STDC__
1910 # include <limits.h>
1911 #else
1912 # include <assert.h>
1913 #endif
1915 #undef $2
1917 /* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1920 #ifdef __cplusplus
1921 extern "C"
1922 #endif
1923 char $2 ();
1924 /* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927 #if defined __stub_$2 || defined __stub___$2
1928 choke me
1929 #endif
1932 main ()
1934 return $2 ();
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_link "$LINENO"; then :
1940 eval "$3=yes"
1941 else
1942 eval "$3=no"
1944 rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_func
1954 # ac_fn_cxx_try_compile LINENO
1955 # ----------------------------
1956 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_cxx_try_compile ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext
1961 if { { ac_try="$ac_compile"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_compile") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest.$ac_objext; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1990 } # ac_fn_cxx_try_compile
1992 # ac_fn_cxx_try_cpp LINENO
1993 # ------------------------
1994 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_cpp ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if { { ac_try="$ac_cpp conftest.$ac_ext"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } > conftest.i && {
2014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_retval=1
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_cxx_try_cpp
2029 # ac_fn_cxx_try_link LINENO
2030 # -------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_link ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext conftest$ac_exeext
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>conftest.err
2044 ac_status=$?
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_cxx_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest$ac_exeext && {
2055 test "$cross_compiling" = yes ||
2056 test -x conftest$ac_exeext
2057 }; then :
2058 ac_retval=0
2059 else
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=1
2065 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2066 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2067 # interfere with the next link command; also delete a directory that is
2068 # left behind by Apple's compiler. We do this before executing the actions.
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2073 } # ac_fn_cxx_try_link
2075 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2078 # the include files in INCLUDES and setting the cache variable VAR
2079 # accordingly.
2080 ac_fn_c_check_header_mongrel ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if eval \${$3+:} false; then :
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2089 eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 else
2093 # Is the header compilable?
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2095 $as_echo_n "checking $2 usability... " >&6; }
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_header_compiler=yes
2103 else
2104 ac_header_compiler=no
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2108 $as_echo "$ac_header_compiler" >&6; }
2110 # Is the header present?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2112 $as_echo_n "checking $2 presence... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_c_try_cpp "$LINENO"; then :
2118 ac_header_preproc=yes
2119 else
2120 ac_header_preproc=no
2122 rm -f conftest.err conftest.i conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2124 $as_echo "$ac_header_preproc" >&6; }
2126 # So? What about this header?
2127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2128 yes:no: )
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2130 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2134 no:yes:* )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2136 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2138 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2140 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2142 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ( $as_echo "## ------------------------------------------------------- ##
2146 ## Report this to http://trac.transmissionbt.com/newticket ##
2147 ## ------------------------------------------------------- ##"
2148 ) | sed "s/^/$as_me: WARNING: /" >&2
2150 esac
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2155 else
2156 eval "$3=\$ac_header_compiler"
2158 eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 } # ac_fn_c_check_header_mongrel
2166 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2167 # ---------------------------------------------
2168 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2169 # accordingly.
2170 ac_fn_c_check_decl ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 as_decl_name=`echo $2|sed 's/ *(.*//'`
2174 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2176 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2184 main ()
2186 #ifndef $as_decl_name
2187 #ifdef __cplusplus
2188 (void) $as_decl_use;
2189 #else
2190 (void) $as_decl_name;
2191 #endif
2192 #endif
2195 return 0;
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 eval "$3=yes"
2200 else
2201 eval "$3=no"
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_decl
2211 cat >config.log <<_ACEOF
2212 This file contains any messages produced by compilers while
2213 running configure, to aid debugging if configure makes a mistake.
2215 It was created by transmission $as_me 2.84, which was
2216 generated by GNU Autoconf 2.69. Invocation command line was
2218 $ $0 $@
2220 _ACEOF
2221 exec 5>>config.log
2223 cat <<_ASUNAME
2224 ## --------- ##
2225 ## Platform. ##
2226 ## --------- ##
2228 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2229 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2230 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2231 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2232 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2234 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2235 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2237 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2238 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2239 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2240 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2241 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2242 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2243 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2245 _ASUNAME
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 $as_echo "PATH: $as_dir"
2253 done
2254 IFS=$as_save_IFS
2256 } >&5
2258 cat >&5 <<_ACEOF
2261 ## ----------- ##
2262 ## Core tests. ##
2263 ## ----------- ##
2265 _ACEOF
2268 # Keep a trace of the command line.
2269 # Strip out --no-create and --no-recursion so they do not pile up.
2270 # Strip out --silent because we don't want to record it for future runs.
2271 # Also quote any args containing shell meta-characters.
2272 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_configure_args=
2274 ac_configure_args0=
2275 ac_configure_args1=
2276 ac_must_keep_next=false
2277 for ac_pass in 1 2
2279 for ac_arg
2281 case $ac_arg in
2282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2284 | -silent | --silent | --silen | --sile | --sil)
2285 continue ;;
2286 *\'*)
2287 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 esac
2289 case $ac_pass in
2290 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2292 as_fn_append ac_configure_args1 " '$ac_arg'"
2293 if test $ac_must_keep_next = true; then
2294 ac_must_keep_next=false # Got value, back to normal.
2295 else
2296 case $ac_arg in
2297 *=* | --config-cache | -C | -disable-* | --disable-* \
2298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2300 | -with-* | --with-* | -without-* | --without-* | --x)
2301 case "$ac_configure_args0 " in
2302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2303 esac
2305 -* ) ac_must_keep_next=true ;;
2306 esac
2308 as_fn_append ac_configure_args " '$ac_arg'"
2310 esac
2311 done
2312 done
2313 { ac_configure_args0=; unset ac_configure_args0;}
2314 { ac_configure_args1=; unset ac_configure_args1;}
2316 # When interrupted or exit'd, cleanup temporary files, and complete
2317 # config.log. We remove comments because anyway the quotes in there
2318 # would cause problems or look ugly.
2319 # WARNING: Use '\'' to represent an apostrophe within the trap.
2320 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2321 trap 'exit_status=$?
2322 # Save into config.log some information that might help in debugging.
2324 echo
2326 $as_echo "## ---------------- ##
2327 ## Cache variables. ##
2328 ## ---------------- ##"
2329 echo
2330 # The following way of writing the cache mishandles newlines in values,
2332 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2333 eval ac_val=\$$ac_var
2334 case $ac_val in #(
2335 *${as_nl}*)
2336 case $ac_var in #(
2337 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2339 esac
2340 case $ac_var in #(
2341 _ | IFS | as_nl) ;; #(
2342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2343 *) { eval $ac_var=; unset $ac_var;} ;;
2344 esac ;;
2345 esac
2346 done
2347 (set) 2>&1 |
2348 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2349 *${as_nl}ac_space=\ *)
2350 sed -n \
2351 "s/'\''/'\''\\\\'\'''\''/g;
2352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2353 ;; #(
2355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2357 esac |
2358 sort
2360 echo
2362 $as_echo "## ----------------- ##
2363 ## Output variables. ##
2364 ## ----------------- ##"
2365 echo
2366 for ac_var in $ac_subst_vars
2368 eval ac_val=\$$ac_var
2369 case $ac_val in
2370 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 esac
2372 $as_echo "$ac_var='\''$ac_val'\''"
2373 done | sort
2374 echo
2376 if test -n "$ac_subst_files"; then
2377 $as_echo "## ------------------- ##
2378 ## File substitutions. ##
2379 ## ------------------- ##"
2380 echo
2381 for ac_var in $ac_subst_files
2383 eval ac_val=\$$ac_var
2384 case $ac_val in
2385 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2386 esac
2387 $as_echo "$ac_var='\''$ac_val'\''"
2388 done | sort
2389 echo
2392 if test -s confdefs.h; then
2393 $as_echo "## ----------- ##
2394 ## confdefs.h. ##
2395 ## ----------- ##"
2396 echo
2397 cat confdefs.h
2398 echo
2400 test "$ac_signal" != 0 &&
2401 $as_echo "$as_me: caught signal $ac_signal"
2402 $as_echo "$as_me: exit $exit_status"
2403 } >&5
2404 rm -f core *.core core.conftest.* &&
2405 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406 exit $exit_status
2408 for ac_signal in 1 2 13 15; do
2409 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 done
2411 ac_signal=0
2413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2414 rm -f -r conftest* confdefs.h
2416 $as_echo "/* confdefs.h */" > confdefs.h
2418 # Predefined preprocessor variables.
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_NAME "$PACKAGE_NAME"
2422 _ACEOF
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426 _ACEOF
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2430 _ACEOF
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_STRING "$PACKAGE_STRING"
2434 _ACEOF
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438 _ACEOF
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_URL "$PACKAGE_URL"
2442 _ACEOF
2445 # Let the site file select an alternate cache file if it wants to.
2446 # Prefer an explicitly selected file to automatically selected ones.
2447 ac_site_file1=NONE
2448 ac_site_file2=NONE
2449 if test -n "$CONFIG_SITE"; then
2450 # We do not want a PATH search for config.site.
2451 case $CONFIG_SITE in #((
2452 -*) ac_site_file1=./$CONFIG_SITE;;
2453 */*) ac_site_file1=$CONFIG_SITE;;
2454 *) ac_site_file1=./$CONFIG_SITE;;
2455 esac
2456 elif test "x$prefix" != xNONE; then
2457 ac_site_file1=$prefix/share/config.site
2458 ac_site_file2=$prefix/etc/config.site
2459 else
2460 ac_site_file1=$ac_default_prefix/share/config.site
2461 ac_site_file2=$ac_default_prefix/etc/config.site
2463 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2465 test "x$ac_site_file" = xNONE && continue
2466 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2468 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2469 sed 's/^/| /' "$ac_site_file" >&5
2470 . "$ac_site_file" \
2471 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 as_fn_error $? "failed to load site script $ac_site_file
2474 See \`config.log' for more details" "$LINENO" 5; }
2476 done
2478 if test -r "$cache_file"; then
2479 # Some versions of bash will fail to source /dev/null (special files
2480 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2481 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2483 $as_echo "$as_me: loading cache $cache_file" >&6;}
2484 case $cache_file in
2485 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2486 *) . "./$cache_file";;
2487 esac
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2491 $as_echo "$as_me: creating cache $cache_file" >&6;}
2492 >$cache_file
2495 # Check that the precious variables saved in the cache have kept the same
2496 # value.
2497 ac_cache_corrupted=false
2498 for ac_var in $ac_precious_vars; do
2499 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2500 eval ac_new_set=\$ac_env_${ac_var}_set
2501 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2502 eval ac_new_val=\$ac_env_${ac_var}_value
2503 case $ac_old_set,$ac_new_set in
2504 set,)
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2506 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2508 ,set)
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2510 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,);;
2514 if test "x$ac_old_val" != "x$ac_new_val"; then
2515 # differences in whitespace do not lead to failure.
2516 ac_old_val_w=`echo x $ac_old_val`
2517 ac_new_val_w=`echo x $ac_new_val`
2518 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2520 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2521 ac_cache_corrupted=:
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2524 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2525 eval $ac_var=\$ac_old_val
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2528 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2530 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2531 fi;;
2532 esac
2533 # Pass precious variables to config.status.
2534 if test "$ac_new_set" = set; then
2535 case $ac_new_val in
2536 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2537 *) ac_arg=$ac_var=$ac_new_val ;;
2538 esac
2539 case " $ac_configure_args " in
2540 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2541 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 esac
2544 done
2545 if $ac_cache_corrupted; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2549 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2550 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2552 ## -------------------- ##
2553 ## Main body of script. ##
2554 ## -------------------- ##
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 USERAGENT_PREFIX=2.84
2565 PEERID_PREFIX=-TR2840-
2568 # Check whether --enable-silent-rules was given.
2569 if test "${enable_silent_rules+set}" = set; then :
2570 enableval=$enable_silent_rules;
2573 case $enable_silent_rules in # (((
2574 yes) AM_DEFAULT_VERBOSITY=0;;
2575 no) AM_DEFAULT_VERBOSITY=1;;
2576 *) AM_DEFAULT_VERBOSITY=0;;
2577 esac
2578 am_make=${MAKE-make}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2580 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2581 if ${am_cv_make_support_nested_variables+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if $as_echo 'TRUE=$(BAR$(V))
2585 BAR0=false
2586 BAR1=true
2588 am__doit:
2589 @$(TRUE)
2590 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2591 am_cv_make_support_nested_variables=yes
2592 else
2593 am_cv_make_support_nested_variables=no
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2597 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2598 if test $am_cv_make_support_nested_variables = yes; then
2599 AM_V='$(V)'
2600 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2601 else
2602 AM_V=$AM_DEFAULT_VERBOSITY
2603 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2605 AM_BACKSLASH='\'
2611 am__api_version='1.14'
2613 ac_aux_dir=
2614 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615 if test -f "$ac_dir/install-sh"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/install-sh -c"
2618 break
2619 elif test -f "$ac_dir/install.sh"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/install.sh -c"
2622 break
2623 elif test -f "$ac_dir/shtool"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 break
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642 # Find a good install program. We prefer a C program (faster),
2643 # so one script is as good as another. But avoid the broken or
2644 # incompatible versions:
2645 # SysV /etc/install, /usr/sbin/install
2646 # SunOS /usr/etc/install
2647 # IRIX /sbin/install
2648 # AIX /bin/install
2649 # AmigaOS /C/install, which installs bootblocks on floppy discs
2650 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2653 # OS/2's system install, which has a completely different semantic
2654 # ./install, which can be erroneously created by make from ./install.sh.
2655 # Reject install programs that cannot install multiple files.
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2657 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2658 if test -z "$INSTALL"; then
2659 if ${ac_cv_path_install+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668 case $as_dir/ in #((
2669 ./ | .// | /[cC]/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2672 /usr/ucb/* ) ;;
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2688 else
2689 rm -rf conftest.one conftest.two conftest.dir
2690 echo one > conftest.one
2691 echo two > conftest.two
2692 mkdir conftest.dir
2693 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2694 test -s conftest.one && test -s conftest.two &&
2695 test -s conftest.dir/conftest.one &&
2696 test -s conftest.dir/conftest.two
2697 then
2698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2699 break 3
2703 done
2704 done
2706 esac
2708 done
2709 IFS=$as_save_IFS
2711 rm -rf conftest.one conftest.two conftest.dir
2714 if test "${ac_cv_path_install+set}" = set; then
2715 INSTALL=$ac_cv_path_install
2716 else
2717 # As a last resort, use the slow shell script. Don't cache a
2718 # value for INSTALL within a source directory, because that will
2719 # break other packages using the cache if that directory is
2720 # removed, or if the value is a relative name.
2721 INSTALL=$ac_install_sh
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2725 $as_echo "$INSTALL" >&6; }
2727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728 # It thinks the first close brace ends the variable substitution.
2729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2736 $as_echo_n "checking whether build environment is sane... " >&6; }
2737 # Reject unsafe characters in $srcdir or the absolute working directory
2738 # name. Accept space and tab only in the latter.
2739 am_lf='
2741 case `pwd` in
2742 *[\\\"\#\$\&\'\`$am_lf]*)
2743 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2744 esac
2745 case $srcdir in
2746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2747 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2748 esac
2750 # Do 'set' in a subshell so we don't clobber the current shell's
2751 # arguments. Must try -L first in case configure is actually a
2752 # symlink; some systems play weird games with the mod time of symlinks
2753 # (eg FreeBSD returns the mod time of the symlink's containing
2754 # directory).
2755 if (
2756 am_has_slept=no
2757 for am_try in 1 2; do
2758 echo "timestamp, slept: $am_has_slept" > conftest.file
2759 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2760 if test "$*" = "X"; then
2761 # -L didn't work.
2762 set X `ls -t "$srcdir/configure" conftest.file`
2764 if test "$*" != "X $srcdir/configure conftest.file" \
2765 && test "$*" != "X conftest.file $srcdir/configure"; then
2767 # If neither matched, then we have a broken ls. This can happen
2768 # if, for instance, CONFIG_SHELL is bash and it inherits a
2769 # broken ls alias from the environment. This has actually
2770 # happened. Such a system could not be considered "sane".
2771 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2772 alias in your environment" "$LINENO" 5
2774 if test "$2" = conftest.file || test $am_try -eq 2; then
2775 break
2777 # Just in case.
2778 sleep 1
2779 am_has_slept=yes
2780 done
2781 test "$2" = conftest.file
2783 then
2784 # Ok.
2786 else
2787 as_fn_error $? "newly created file is older than distributed files!
2788 Check your system clock" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791 $as_echo "yes" >&6; }
2792 # If we didn't sleep, we still need to ensure time stamps of config.status and
2793 # generated files are strictly newer.
2794 am_sleep_pid=
2795 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2796 ( sleep 1 ) &
2797 am_sleep_pid=$!
2800 rm -f conftest.file
2802 test "$program_prefix" != NONE &&
2803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2804 # Use a double $ so make ignores it.
2805 test "$program_suffix" != NONE &&
2806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2807 # Double any \ or $.
2808 # By default was `s,x,x', remove it if useless.
2809 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2810 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2812 # expand $ac_aux_dir to an absolute path
2813 am_aux_dir=`cd $ac_aux_dir && pwd`
2815 if test x"${MISSING+set}" != xset; then
2816 case $am_aux_dir in
2817 *\ * | *\ *)
2818 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2820 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2821 esac
2823 # Use eval to expand $SHELL
2824 if eval "$MISSING --is-lightweight"; then
2825 am_missing_run="$MISSING "
2826 else
2827 am_missing_run=
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2829 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2832 if test x"${install_sh}" != xset; then
2833 case $am_aux_dir in
2834 *\ * | *\ *)
2835 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2837 install_sh="\${SHELL} $am_aux_dir/install-sh"
2838 esac
2841 # Installed binaries are usually stripped using 'strip' when the user
2842 # run "make install-strip". However 'strip' might not be the right
2843 # tool to use in cross-compilation environments, therefore Automake
2844 # will honor the 'STRIP' environment variable to overrule this program.
2845 if test "$cross_compiling" != no; then
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}strip; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_STRIP+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$STRIP"; then
2855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2870 IFS=$as_save_IFS
2874 STRIP=$ac_cv_prog_STRIP
2875 if test -n "$STRIP"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2877 $as_echo "$STRIP" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2885 if test -z "$ac_cv_prog_STRIP"; then
2886 ac_ct_STRIP=$STRIP
2887 # Extract the first word of "strip", so it can be a program name with args.
2888 set dummy strip; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$ac_ct_STRIP"; then
2895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_STRIP="strip"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2910 IFS=$as_save_IFS
2914 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2915 if test -n "$ac_ct_STRIP"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2917 $as_echo "$ac_ct_STRIP" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2923 if test "x$ac_ct_STRIP" = x; then
2924 STRIP=":"
2925 else
2926 case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930 ac_tool_warned=yes ;;
2931 esac
2932 STRIP=$ac_ct_STRIP
2934 else
2935 STRIP="$ac_cv_prog_STRIP"
2939 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2942 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2943 if test -z "$MKDIR_P"; then
2944 if ${ac_cv_path_mkdir+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_prog in mkdir gmkdir; do
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2955 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2956 'mkdir (GNU coreutils) '* | \
2957 'mkdir (coreutils) '* | \
2958 'mkdir (fileutils) '4.1*)
2959 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2960 break 3;;
2961 esac
2962 done
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 test -d ./--version && rmdir ./--version
2970 if test "${ac_cv_path_mkdir+set}" = set; then
2971 MKDIR_P="$ac_cv_path_mkdir -p"
2972 else
2973 # As a last resort, use the slow shell script. Don't cache a
2974 # value for MKDIR_P within a source directory, because that will
2975 # break other packages using the cache if that directory is
2976 # removed, or if the value is a relative name.
2977 MKDIR_P="$ac_install_sh -d"
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2981 $as_echo "$MKDIR_P" >&6; }
2983 for ac_prog in gawk mawk nawk awk
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_AWK+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$AWK"; then
2993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_AWK="$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 AWK=$ac_cv_prog_AWK
3013 if test -n "$AWK"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3015 $as_echo "$AWK" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$AWK" && break
3023 done
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3027 set x ${MAKE-make}
3028 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 cat >conftest.make <<\_ACEOF
3033 SHELL = /bin/sh
3034 all:
3035 @echo '@@@%%%=$(MAKE)=@@@%%%'
3036 _ACEOF
3037 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3038 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039 *@@@%%%=?*=@@@%%%*)
3040 eval ac_cv_prog_make_${ac_make}_set=yes;;
3042 eval ac_cv_prog_make_${ac_make}_set=no;;
3043 esac
3044 rm -f conftest.make
3046 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3049 SET_MAKE=
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 SET_MAKE="MAKE=${MAKE-make}"
3056 rm -rf .tst 2>/dev/null
3057 mkdir .tst 2>/dev/null
3058 if test -d .tst; then
3059 am__leading_dot=.
3060 else
3061 am__leading_dot=_
3063 rmdir .tst 2>/dev/null
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067 # is not polluted with repeated "-I."
3068 am__isrc=' -I$(srcdir)'
3069 # test to see if srcdir already configured
3070 if test -f $srcdir/config.status; then
3071 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077 if (cygpath --version) >/dev/null 2>/dev/null; then
3078 CYGPATH_W='cygpath -w'
3079 else
3080 CYGPATH_W=echo
3085 # Define the identity of the package.
3086 PACKAGE='transmission'
3087 VERSION='2.84'
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE "$PACKAGE"
3092 _ACEOF
3095 cat >>confdefs.h <<_ACEOF
3096 #define VERSION "$VERSION"
3097 _ACEOF
3099 # Some tools Automake needs.
3101 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3104 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3107 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3113 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115 # For better backward compatibility. To be removed once Automake 1.9.x
3116 # dies out for good. For more background, see:
3117 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3118 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3119 mkdir_p='$(MKDIR_P)'
3121 # We need awk for the "check" target. The system "awk" is bad on
3122 # some platforms.
3123 # Always define AMTAR for backward compatibility. Yes, it's still used
3124 # in the wild :-( We should find a proper way to deprecate it ...
3125 AMTAR='$${TAR-tar}'
3128 # We'll loop over all known methods to create a tar archive until one works.
3129 _am_tools='gnutar pax cpio none'
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3134 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3136 # Go ahead even if we have the value already cached. We do so because we
3137 # need to set the values for the 'am__tar' and 'am__untar' variables.
3138 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3140 for _am_tool in $_am_tools; do
3141 case $_am_tool in
3142 gnutar)
3143 for _am_tar in tar gnutar gtar; do
3144 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3145 ($_am_tar --version) >&5 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && break
3149 done
3150 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3151 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3152 am__untar="$_am_tar -xf -"
3154 plaintar)
3155 # Must skip GNU tar: if it does not support --format= it doesn't create
3156 # ustar tarball either.
3157 (tar --version) >/dev/null 2>&1 && continue
3158 am__tar='tar chf - "$$tardir"'
3159 am__tar_='tar chf - "$tardir"'
3160 am__untar='tar xf -'
3162 pax)
3163 am__tar='pax -L -x pax -w "$$tardir"'
3164 am__tar_='pax -L -x pax -w "$tardir"'
3165 am__untar='pax -r'
3167 cpio)
3168 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3169 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3170 am__untar='cpio -i -H pax -d'
3172 none)
3173 am__tar=false
3174 am__tar_=false
3175 am__untar=false
3177 esac
3179 # If the value was cached, stop now. We just wanted to have am__tar
3180 # and am__untar set.
3181 test -n "${am_cv_prog_tar_pax}" && break
3183 # tar/untar a dummy directory, and stop if the command works.
3184 rm -rf conftest.dir
3185 mkdir conftest.dir
3186 echo GrepMe > conftest.dir/file
3187 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3188 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }
3192 rm -rf conftest.dir
3193 if test -s conftest.tar; then
3194 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3195 ($am__untar <conftest.tar) >&5 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3199 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3200 (cat conftest.dir/file) >&5 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }
3204 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3206 done
3207 rm -rf conftest.dir
3209 if ${am_cv_prog_tar_pax+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 am_cv_prog_tar_pax=$_am_tool
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3216 $as_echo "$am_cv_prog_tar_pax" >&6; }
3223 # POSIX will say in a future version that running "rm -f" with no argument
3224 # is OK; and we want to be able to make that assumption in our Makefile
3225 # recipes. So use an aggressive probe to check that the usage we want is
3226 # actually supported "in the wild" to an acceptable degree.
3227 # See automake bug#10828.
3228 # To make any issue more visible, cause the running configure to be aborted
3229 # by default if the 'rm' program in use doesn't match our expectations; the
3230 # user can still override this though.
3231 if rm -f && rm -fr && rm -rf; then : OK; else
3232 cat >&2 <<'END'
3233 Oops!
3235 Your 'rm' program seems unable to run without file operands specified
3236 on the command line, even when the '-f' option is present. This is contrary
3237 to the behaviour of most rm programs out there, and not conforming with
3238 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3240 Please tell bug-automake@gnu.org about your system, including the value
3241 of your $PATH and any error possibly output before this message. This
3242 can help us improve future automake versions.
3245 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3246 echo 'Configuration will proceed anyway, since you have set the' >&2
3247 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3248 echo >&2
3249 else
3250 cat >&2 <<'END'
3251 Aborting the configuration process, to ensure you take notice of the issue.
3253 You can download and install GNU coreutils to get an 'rm' implementation
3254 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3256 If you want to complete the configuration process using your problematic
3257 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3258 to "yes", and re-run configure.
3261 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3264 case `pwd` in
3265 *\ * | *\ *)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3267 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3268 esac
3272 macro_version='2.4.2'
3273 macro_revision='1.3337'
3287 ltmain="$ac_aux_dir/ltmain.sh"
3289 # Make sure we can run config.sub.
3290 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3291 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3294 $as_echo_n "checking build system type... " >&6; }
3295 if ${ac_cv_build+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 ac_build_alias=$build_alias
3299 test "x$ac_build_alias" = x &&
3300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3301 test "x$ac_build_alias" = x &&
3302 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3303 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3304 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3308 $as_echo "$ac_cv_build" >&6; }
3309 case $ac_cv_build in
3310 *-*-*) ;;
3311 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3312 esac
3313 build=$ac_cv_build
3314 ac_save_IFS=$IFS; IFS='-'
3315 set x $ac_cv_build
3316 shift
3317 build_cpu=$1
3318 build_vendor=$2
3319 shift; shift
3320 # Remember, the first character of IFS is used to create $*,
3321 # except with old shells:
3322 build_os=$*
3323 IFS=$ac_save_IFS
3324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3328 $as_echo_n "checking host system type... " >&6; }
3329 if ${ac_cv_host+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test "x$host_alias" = x; then
3333 ac_cv_host=$ac_cv_build
3334 else
3335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3336 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3341 $as_echo "$ac_cv_host" >&6; }
3342 case $ac_cv_host in
3343 *-*-*) ;;
3344 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3345 esac
3346 host=$ac_cv_host
3347 ac_save_IFS=$IFS; IFS='-'
3348 set x $ac_cv_host
3349 shift
3350 host_cpu=$1
3351 host_vendor=$2
3352 shift; shift
3353 # Remember, the first character of IFS is used to create $*,
3354 # except with old shells:
3355 host_os=$*
3356 IFS=$ac_save_IFS
3357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3360 # Backslashify metacharacters that are still active within
3361 # double-quoted strings.
3362 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3364 # Same as above, but do not quote variable references.
3365 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3367 # Sed substitution to delay expansion of an escaped shell variable in a
3368 # double_quote_subst'ed string.
3369 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3371 # Sed substitution to delay expansion of an escaped single quote.
3372 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3374 # Sed substitution to avoid accidental globbing in evaled expressions
3375 no_glob_subst='s/\*/\\\*/g'
3377 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3378 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3379 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3382 $as_echo_n "checking how to print strings... " >&6; }
3383 # Test print first, because it will be a builtin if present.
3384 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3385 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3386 ECHO='print -r --'
3387 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3388 ECHO='printf %s\n'
3389 else
3390 # Use this function as a fallback that always works.
3391 func_fallback_echo ()
3393 eval 'cat <<_LTECHO_EOF
3395 _LTECHO_EOF'
3397 ECHO='func_fallback_echo'
3400 # func_echo_all arg...
3401 # Invoke $ECHO with all args, space-separated.
3402 func_echo_all ()
3404 $ECHO ""
3407 case "$ECHO" in
3408 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3409 $as_echo "printf" >&6; } ;;
3410 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3411 $as_echo "print -r" >&6; } ;;
3412 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3413 $as_echo "cat" >&6; } ;;
3414 esac
3429 DEPDIR="${am__leading_dot}deps"
3431 ac_config_commands="$ac_config_commands depfiles"
3434 am_make=${MAKE-make}
3435 cat > confinc << 'END'
3436 am__doit:
3437 @echo this is the am__doit target
3438 .PHONY: am__doit
3440 # If we don't find an include directive, just comment out the code.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3442 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3443 am__include="#"
3444 am__quote=
3445 _am_result=none
3446 # First try GNU make style include.
3447 echo "include confinc" > confmf
3448 # Ignore all kinds of additional output from 'make'.
3449 case `$am_make -s -f confmf 2> /dev/null` in #(
3450 *the\ am__doit\ target*)
3451 am__include=include
3452 am__quote=
3453 _am_result=GNU
3455 esac
3456 # Now try BSD make style include.
3457 if test "$am__include" = "#"; then
3458 echo '.include "confinc"' > confmf
3459 case `$am_make -s -f confmf 2> /dev/null` in #(
3460 *the\ am__doit\ target*)
3461 am__include=.include
3462 am__quote="\""
3463 _am_result=BSD
3465 esac
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3470 $as_echo "$_am_result" >&6; }
3471 rm -f confinc confmf
3473 # Check whether --enable-dependency-tracking was given.
3474 if test "${enable_dependency_tracking+set}" = set; then :
3475 enableval=$enable_dependency_tracking;
3478 if test "x$enable_dependency_tracking" != xno; then
3479 am_depcomp="$ac_aux_dir/depcomp"
3480 AMDEPBACKSLASH='\'
3481 am__nodep='_no'
3483 if test "x$enable_dependency_tracking" != xno; then
3484 AMDEP_TRUE=
3485 AMDEP_FALSE='#'
3486 else
3487 AMDEP_TRUE='#'
3488 AMDEP_FALSE=
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_CC+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3537 ac_ct_CC=$CC
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_ac_ct_CC="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3561 IFS=$as_save_IFS
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x; then
3575 CC=""
3576 else
3577 case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583 CC=$ac_ct_CC
3585 else
3586 CC="$ac_cv_prog_CC"
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_CC="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3651 continue
3653 ac_cv_prog_CC="cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3659 IFS=$as_save_IFS
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy $ac_cv_prog_CC
3664 shift
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3669 shift
3670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3728 done
3730 if test -z "$CC"; then
3731 ac_ct_CC=$CC
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_ac_ct_CC="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3772 done
3774 if test "x$ac_ct_CC" = x; then
3775 CC=""
3776 else
3777 case $cross_compiling:$ac_tool_warned in
3778 yes:)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3782 esac
3783 CC=$ac_ct_CC
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error $? "no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details" "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797 set X $ac_compile
3798 ac_compiler=$2
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 ac_status=$?
3809 if test -s conftest.err; then
3810 sed '10a\
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3815 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3818 done
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 ac_clean_files_save=$ac_clean_files
3832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3833 # Try to create an executable without -o first, disregard a.out.
3834 # It will help us diagnose broken compilers, and finding out an intuition
3835 # of exeext.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3837 $as_echo_n "checking whether the C compiler works... " >&6; }
3838 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3840 # The possible output files:
3841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843 ac_rmfiles=
3844 for ac_file in $ac_files
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 esac
3850 done
3851 rm -f $ac_rmfiles
3853 if { { ac_try="$ac_link_default"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link_default") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3868 # Autoconf.
3869 for ac_file in $ac_files ''
3871 test -f "$ac_file" || continue
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875 [ab].out )
3876 # We found the default executable, but exeext='' is most
3877 # certainly right.
3878 break;;
3879 *.* )
3880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3881 then :; else
3882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3888 # actually working.
3889 break;;
3891 break;;
3892 esac
3893 done
3894 test "$ac_cv_exeext" = no && ac_cv_exeext=
3896 else
3897 ac_file=''
3899 if test -z "$ac_file"; then :
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error 77 "C compiler cannot create executables
3908 See \`config.log' for more details" "$LINENO" 5; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 $as_echo "yes" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3914 $as_echo_n "checking for C compiler default output file name... " >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3916 $as_echo "$ac_file" >&6; }
3917 ac_exeext=$ac_cv_exeext
3919 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3920 ac_clean_files=$ac_clean_files_save
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3922 $as_echo_n "checking for suffix of executables... " >&6; }
3923 if { { ac_try="$ac_link"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_link") 2>&5
3931 ac_status=$?
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; then :
3934 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3935 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3936 # work properly (i.e., refer to `conftest.exe'), while it won't with
3937 # `rm'.
3938 for ac_file in conftest.exe conftest conftest.*; do
3939 test -f "$ac_file" || continue
3940 case $ac_file in
3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3943 break;;
3944 * ) break;;
3945 esac
3946 done
3947 else
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3951 See \`config.log' for more details" "$LINENO" 5; }
3953 rm -f conftest conftest$ac_cv_exeext
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3955 $as_echo "$ac_cv_exeext" >&6; }
3957 rm -f conftest.$ac_ext
3958 EXEEXT=$ac_cv_exeext
3959 ac_exeext=$EXEEXT
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <stdio.h>
3964 main ()
3966 FILE *f = fopen ("conftest.out", "w");
3967 return ferror (f) || fclose (f) != 0;
3970 return 0;
3972 _ACEOF
3973 ac_clean_files="$ac_clean_files conftest.out"
3974 # Check that the compiler produces executables we can run. If not, either
3975 # the compiler is broken, or we cross compile.
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3977 $as_echo_n "checking whether we are cross compiling... " >&6; }
3978 if test "$cross_compiling" != yes; then
3979 { { ac_try="$ac_link"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_link") 2>&5
3987 ac_status=$?
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }
3990 if { ac_try='./conftest$ac_cv_exeext'
3991 { { case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 $as_echo "$ac_try_echo"; } >&5
3997 (eval "$ac_try") 2>&5
3998 ac_status=$?
3999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4000 test $ac_status = 0; }; }; then
4001 cross_compiling=no
4002 else
4003 if test "$cross_compiling" = maybe; then
4004 cross_compiling=yes
4005 else
4006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "cannot run C compiled programs.
4009 If you meant to cross compile, use \`--host'.
4010 See \`config.log' for more details" "$LINENO" 5; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4015 $as_echo "$cross_compiling" >&6; }
4017 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4018 ac_clean_files=$ac_clean_files_save
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4020 $as_echo_n "checking for suffix of object files... " >&6; }
4021 if ${ac_cv_objext+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4028 main ()
4032 return 0;
4034 _ACEOF
4035 rm -f conftest.o conftest.obj
4036 if { { ac_try="$ac_compile"
4037 case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_compile") 2>&5
4044 ac_status=$?
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }; then :
4047 for ac_file in conftest.o conftest.obj conftest.*; do
4048 test -f "$ac_file" || continue;
4049 case $ac_file in
4050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4052 break;;
4053 esac
4054 done
4055 else
4056 $as_echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $? "cannot compute suffix of object files: cannot compile
4062 See \`config.log' for more details" "$LINENO" 5; }
4064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4067 $as_echo "$ac_cv_objext" >&6; }
4068 OBJEXT=$ac_cv_objext
4069 ac_objext=$OBJEXT
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4071 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4072 if ${ac_cv_c_compiler_gnu+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4079 main ()
4081 #ifndef __GNUC__
4082 choke me
4083 #endif
4086 return 0;
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_compiler_gnu=yes
4091 else
4092 ac_compiler_gnu=no
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4099 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4100 if test $ac_compiler_gnu = yes; then
4101 GCC=yes
4102 else
4103 GCC=
4105 ac_test_CFLAGS=${CFLAGS+set}
4106 ac_save_CFLAGS=$CFLAGS
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4108 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4109 if ${ac_cv_prog_cc_g+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 ac_save_c_werror_flag=$ac_c_werror_flag
4113 ac_c_werror_flag=yes
4114 ac_cv_prog_cc_g=no
4115 CFLAGS="-g"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 main ()
4124 return 0;
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_g=yes
4129 else
4130 CFLAGS=""
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4135 main ()
4139 return 0;
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4144 else
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4146 CFLAGS="-g"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 main ()
4155 return 0;
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_prog_cc_g=yes
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4169 $as_echo "$ac_cv_prog_cc_g" >&6; }
4170 if test "$ac_test_CFLAGS" = set; then
4171 CFLAGS=$ac_save_CFLAGS
4172 elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4174 CFLAGS="-g -O2"
4175 else
4176 CFLAGS="-g"
4178 else
4179 if test "$GCC" = yes; then
4180 CFLAGS="-O2"
4181 else
4182 CFLAGS=
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4187 if ${ac_cv_prog_cc_c89+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 ac_cv_prog_cc_c89=no
4191 ac_save_CC=$CC
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <stdarg.h>
4195 #include <stdio.h>
4196 struct stat;
4197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4198 struct buf { int x; };
4199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4200 static char *e (p, i)
4201 char **p;
4202 int i;
4204 return p[i];
4206 static char *f (char * (*g) (char **, int), char **p, ...)
4208 char *s;
4209 va_list v;
4210 va_start (v,p);
4211 s = g (p, va_arg (v,int));
4212 va_end (v);
4213 return s;
4216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4217 function prototypes and stuff, but not '\xHH' hex character constants.
4218 These don't provoke an error unfortunately, instead are silently treated
4219 as 'x'. The following induces an error, until -std is added to get
4220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4221 array size at least. It's necessary to write '\x00'==0 to get something
4222 that's true only with -std. */
4223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4226 inside strings and character constants. */
4227 #define FOO(x) 'x'
4228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4230 int test (int i, double x);
4231 struct s1 {int (*f) (int a);};
4232 struct s2 {int (*f) (double a);};
4233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4234 int argc;
4235 char **argv;
4237 main ()
4239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4241 return 0;
4243 _ACEOF
4244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247 CC="$ac_save_CC $ac_arg"
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_c89=$ac_arg
4251 rm -f core conftest.err conftest.$ac_objext
4252 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253 done
4254 rm -f conftest.$ac_ext
4255 CC=$ac_save_CC
4258 # AC_CACHE_VAL
4259 case "x$ac_cv_prog_cc_c89" in
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 $as_echo "none needed" >&6; } ;;
4263 xno)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265 $as_echo "unsupported" >&6; } ;;
4267 CC="$CC $ac_cv_prog_cc_c89"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4269 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4270 esac
4271 if test "x$ac_cv_prog_cc_c89" != xno; then :
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4287 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4288 if ${am_cv_prog_cc_c_o+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4295 main ()
4299 return 0;
4301 _ACEOF
4302 # Make sure it works both with $CC and with simple cc.
4303 # Following AC_PROG_CC_C_O, we do the test twice because some
4304 # compilers refuse to overwrite an existing .o file with -o,
4305 # though they will create one.
4306 am_cv_prog_cc_c_o=yes
4307 for am_i in 1 2; do
4308 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4309 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } \
4313 && test -f conftest2.$ac_objext; then
4314 : OK
4315 else
4316 am_cv_prog_cc_c_o=no
4317 break
4319 done
4320 rm -f core conftest*
4321 unset am_i
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4324 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4325 if test "$am_cv_prog_cc_c_o" != yes; then
4326 # Losing compiler, so override with the script.
4327 # FIXME: It is wrong to rewrite CC.
4328 # But if we don't then we get into trouble of one sort or another.
4329 # A longer-term fix would be to have automake use am__CC in this case,
4330 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4331 CC="$am_aux_dir/compile $CC"
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 depcc="$CC" am_compiler_list=
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4343 $as_echo_n "checking dependency style of $depcc... " >&6; }
4344 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348 # We make a subdir and do the tests there. Otherwise we can end up
4349 # making bogus files that we don't know about and never remove. For
4350 # instance it was reported that on HP-UX the gcc test will end up
4351 # making a dummy file named 'D' -- because '-MD' means "put the output
4352 # in D".
4353 rm -rf conftest.dir
4354 mkdir conftest.dir
4355 # Copy depcomp to subdir because otherwise we won't find it if we're
4356 # using a relative directory.
4357 cp "$am_depcomp" conftest.dir
4358 cd conftest.dir
4359 # We will build objects and dependencies in a subdirectory because
4360 # it helps to detect inapplicable dependency modes. For instance
4361 # both Tru64's cc and ICC support -MD to output dependencies as a
4362 # side effect of compilation, but ICC will put the dependencies in
4363 # the current directory while Tru64 will put them in the object
4364 # directory.
4365 mkdir sub
4367 am_cv_CC_dependencies_compiler_type=none
4368 if test "$am_compiler_list" = ""; then
4369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371 am__universal=false
4372 case " $depcc " in #(
4373 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4374 esac
4376 for depmode in $am_compiler_list; do
4377 # Setup a source with many dependencies, because some compilers
4378 # like to wrap large dependency lists on column 80 (with \), and
4379 # we should not choose a depcomp mode which is confused by this.
4381 # We need to recreate these files for each test, as the compiler may
4382 # overwrite some of them when testing with obscure command lines.
4383 # This happens at least with the AIX C compiler.
4384 : > sub/conftest.c
4385 for i in 1 2 3 4 5 6; do
4386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4387 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4388 # Solaris 10 /bin/sh.
4389 echo '/* dummy */' > sub/conftst$i.h
4390 done
4391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4393 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4394 # mode. It turns out that the SunPro C++ compiler does not properly
4395 # handle '-M -o', and we need to detect this. Also, some Intel
4396 # versions had trouble with output in subdirs.
4397 am__obj=sub/conftest.${OBJEXT-o}
4398 am__minus_obj="-o $am__obj"
4399 case $depmode in
4400 gcc)
4401 # This depmode causes a compiler race in universal mode.
4402 test "$am__universal" = false || continue
4404 nosideeffect)
4405 # After this tag, mechanisms are not by side-effect, so they'll
4406 # only be used when explicitly requested.
4407 if test "x$enable_dependency_tracking" = xyes; then
4408 continue
4409 else
4410 break
4413 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4414 # This compiler won't grok '-c -o', but also, the minuso test has
4415 # not run yet. These depmodes are late enough in the game, and
4416 # so weak that their functioning should not be impacted.
4417 am__obj=conftest.${OBJEXT-o}
4418 am__minus_obj=
4420 none) break ;;
4421 esac
4422 if depmode=$depmode \
4423 source=sub/conftest.c object=$am__obj \
4424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4425 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4426 >/dev/null 2>conftest.err &&
4427 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4431 # icc doesn't choke on unknown options, it will just issue warnings
4432 # or remarks (even with -Werror). So we grep stderr for any message
4433 # that says an option was ignored or not supported.
4434 # When given -MP, icc 7.0 and 7.1 complain thusly:
4435 # icc: Command line warning: ignoring option '-M'; no argument required
4436 # The diagnosis changed in icc 8.0:
4437 # icc: Command line remark: option '-MP' not supported
4438 if (grep 'ignoring option' conftest.err ||
4439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4440 am_cv_CC_dependencies_compiler_type=$depmode
4441 break
4444 done
4446 cd ..
4447 rm -rf conftest.dir
4448 else
4449 am_cv_CC_dependencies_compiler_type=none
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4454 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4455 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4458 test "x$enable_dependency_tracking" != xno \
4459 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4460 am__fastdepCC_TRUE=
4461 am__fastdepCC_FALSE='#'
4462 else
4463 am__fastdepCC_TRUE='#'
4464 am__fastdepCC_FALSE=
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4469 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4470 if ${ac_cv_path_SED+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4474 for ac_i in 1 2 3 4 5 6 7; do
4475 ac_script="$ac_script$as_nl$ac_script"
4476 done
4477 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4478 { ac_script=; unset ac_script;}
4479 if test -z "$SED"; then
4480 ac_path_SED_found=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_prog in sed gsed; do
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4490 as_fn_executable_p "$ac_path_SED" || continue
4491 # Check for GNU ac_path_SED and select it if it is found.
4492 # Check for GNU $ac_path_SED
4493 case `"$ac_path_SED" --version 2>&1` in
4494 *GNU*)
4495 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4497 ac_count=0
4498 $as_echo_n 0123456789 >"conftest.in"
4499 while :
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 $as_echo '' >> "conftest.nl"
4505 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507 as_fn_arith $ac_count + 1 && ac_count=$as_val
4508 if test $ac_count -gt ${ac_path_SED_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_SED="$ac_path_SED"
4511 ac_path_SED_max=$ac_count
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4515 done
4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 esac
4519 $ac_path_SED_found && break 3
4520 done
4521 done
4522 done
4523 IFS=$as_save_IFS
4524 if test -z "$ac_cv_path_SED"; then
4525 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4527 else
4528 ac_cv_path_SED=$SED
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4533 $as_echo "$ac_cv_path_SED" >&6; }
4534 SED="$ac_cv_path_SED"
4535 rm -f conftest.sed
4537 test -z "$SED" && SED=sed
4538 Xsed="$SED -e 1s/^X//"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4551 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4552 if ${ac_cv_path_GREP+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if test -z "$GREP"; then
4556 ac_path_GREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in grep ggrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4566 as_fn_executable_p "$ac_path_GREP" || continue
4567 # Check for GNU ac_path_GREP and select it if it is found.
4568 # Check for GNU $ac_path_GREP
4569 case `"$ac_path_GREP" --version 2>&1` in
4570 *GNU*)
4571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'GREP' >> "conftest.nl"
4581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_GREP="$ac_path_GREP"
4587 ac_path_GREP_max=$ac_count
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 esac
4595 $ac_path_GREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_GREP"; then
4601 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 else
4604 ac_cv_path_GREP=$GREP
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4609 $as_echo "$ac_cv_path_GREP" >&6; }
4610 GREP="$ac_cv_path_GREP"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4614 $as_echo_n "checking for egrep... " >&6; }
4615 if ${ac_cv_path_EGREP+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4619 then ac_cv_path_EGREP="$GREP -E"
4620 else
4621 if test -z "$EGREP"; then
4622 ac_path_EGREP_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in egrep; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4632 as_fn_executable_p "$ac_path_EGREP" || continue
4633 # Check for GNU ac_path_EGREP and select it if it is found.
4634 # Check for GNU $ac_path_EGREP
4635 case `"$ac_path_EGREP" --version 2>&1` in
4636 *GNU*)
4637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4639 ac_count=0
4640 $as_echo_n 0123456789 >"conftest.in"
4641 while :
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo 'EGREP' >> "conftest.nl"
4647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_EGREP="$ac_path_EGREP"
4653 ac_path_EGREP_max=$ac_count
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4657 done
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 esac
4661 $ac_path_EGREP_found && break 3
4662 done
4663 done
4664 done
4665 IFS=$as_save_IFS
4666 if test -z "$ac_cv_path_EGREP"; then
4667 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 else
4670 ac_cv_path_EGREP=$EGREP
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4676 $as_echo "$ac_cv_path_EGREP" >&6; }
4677 EGREP="$ac_cv_path_EGREP"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4681 $as_echo_n "checking for fgrep... " >&6; }
4682 if ${ac_cv_path_FGREP+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4686 then ac_cv_path_FGREP="$GREP -F"
4687 else
4688 if test -z "$FGREP"; then
4689 ac_path_FGREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in fgrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_FGREP" || continue
4700 # Check for GNU ac_path_FGREP and select it if it is found.
4701 # Check for GNU $ac_path_FGREP
4702 case `"$ac_path_FGREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'FGREP' >> "conftest.nl"
4714 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_FGREP="$ac_path_FGREP"
4720 ac_path_FGREP_max=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4728 $ac_path_FGREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_FGREP"; then
4734 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 else
4737 ac_cv_path_FGREP=$FGREP
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4743 $as_echo "$ac_cv_path_FGREP" >&6; }
4744 FGREP="$ac_cv_path_FGREP"
4747 test -z "$GREP" && GREP=grep
4767 # Check whether --with-gnu-ld was given.
4768 if test "${with_gnu_ld+set}" = set; then :
4769 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4770 else
4771 with_gnu_ld=no
4774 ac_prog=ld
4775 if test "$GCC" = yes; then
4776 # Check if gcc -print-prog-name=ld gives a path.
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4778 $as_echo_n "checking for ld used by $CC... " >&6; }
4779 case $host in
4780 *-*-mingw*)
4781 # gcc leaves a trailing carriage return which upsets mingw
4782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4785 esac
4786 case $ac_prog in
4787 # Accept absolute paths.
4788 [\\/]* | ?:[\\/]*)
4789 re_direlt='/[^/][^/]*/\.\./'
4790 # Canonicalize the pathname of ld
4791 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4792 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4793 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4794 done
4795 test -z "$LD" && LD="$ac_prog"
4798 # If it fails, then pretend we aren't using GCC.
4799 ac_prog=ld
4802 # If it is relative, then search for the first ld in PATH.
4803 with_gnu_ld=unknown
4805 esac
4806 elif test "$with_gnu_ld" = yes; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4808 $as_echo_n "checking for GNU ld... " >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4811 $as_echo_n "checking for non-GNU ld... " >&6; }
4813 if ${lt_cv_path_LD+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -z "$LD"; then
4817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4818 for ac_dir in $PATH; do
4819 IFS="$lt_save_ifs"
4820 test -z "$ac_dir" && ac_dir=.
4821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4822 lt_cv_path_LD="$ac_dir/$ac_prog"
4823 # Check to see if the program is GNU ld. I'd rather use --version,
4824 # but apparently some variants of GNU ld only accept -v.
4825 # Break only if it was the GNU/non-GNU ld that we prefer.
4826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4827 *GNU* | *'with BFD'*)
4828 test "$with_gnu_ld" != no && break
4831 test "$with_gnu_ld" != yes && break
4833 esac
4835 done
4836 IFS="$lt_save_ifs"
4837 else
4838 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4842 LD="$lt_cv_path_LD"
4843 if test -n "$LD"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4845 $as_echo "$LD" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4850 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4852 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4853 if ${lt_cv_prog_gnu_ld+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4857 case `$LD -v 2>&1 </dev/null` in
4858 *GNU* | *'with BFD'*)
4859 lt_cv_prog_gnu_ld=yes
4862 lt_cv_prog_gnu_ld=no
4864 esac
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4867 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4868 with_gnu_ld=$lt_cv_prog_gnu_ld
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4879 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4880 if ${lt_cv_path_NM+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$NM"; then
4884 # Let the user override the test.
4885 lt_cv_path_NM="$NM"
4886 else
4887 lt_nm_to_check="${ac_tool_prefix}nm"
4888 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4889 lt_nm_to_check="$lt_nm_to_check nm"
4891 for lt_tmp_nm in $lt_nm_to_check; do
4892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4893 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4894 IFS="$lt_save_ifs"
4895 test -z "$ac_dir" && ac_dir=.
4896 tmp_nm="$ac_dir/$lt_tmp_nm"
4897 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4898 # Check to see if the nm accepts a BSD-compat flag.
4899 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4900 # nm: unknown option "B" ignored
4901 # Tru64's nm complains that /dev/null is an invalid object file
4902 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4903 */dev/null* | *'Invalid file or object type'*)
4904 lt_cv_path_NM="$tmp_nm -B"
4905 break
4908 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4909 */dev/null*)
4910 lt_cv_path_NM="$tmp_nm -p"
4911 break
4914 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4915 continue # so that we can try to find one that supports BSD flags
4917 esac
4919 esac
4921 done
4922 IFS="$lt_save_ifs"
4923 done
4924 : ${lt_cv_path_NM=no}
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4928 $as_echo "$lt_cv_path_NM" >&6; }
4929 if test "$lt_cv_path_NM" != "no"; then
4930 NM="$lt_cv_path_NM"
4931 else
4932 # Didn't find any BSD compatible name lister, look for dumpbin.
4933 if test -n "$DUMPBIN"; then :
4934 # Let the user override the test.
4935 else
4936 if test -n "$ac_tool_prefix"; then
4937 for ac_prog in dumpbin "link -dump"
4939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_DUMPBIN+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$DUMPBIN"; then
4947 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4962 IFS=$as_save_IFS
4966 DUMPBIN=$ac_cv_prog_DUMPBIN
4967 if test -n "$DUMPBIN"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4969 $as_echo "$DUMPBIN" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 test -n "$DUMPBIN" && break
4977 done
4979 if test -z "$DUMPBIN"; then
4980 ac_ct_DUMPBIN=$DUMPBIN
4981 for ac_prog in dumpbin "link -dump"
4983 # Extract the first word of "$ac_prog", so it can be a program name with args.
4984 set dummy $ac_prog; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$ac_ct_DUMPBIN"; then
4991 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5011 if test -n "$ac_ct_DUMPBIN"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5013 $as_echo "$ac_ct_DUMPBIN" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 test -n "$ac_ct_DUMPBIN" && break
5021 done
5023 if test "x$ac_ct_DUMPBIN" = x; then
5024 DUMPBIN=":"
5025 else
5026 case $cross_compiling:$ac_tool_warned in
5027 yes:)
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5030 ac_tool_warned=yes ;;
5031 esac
5032 DUMPBIN=$ac_ct_DUMPBIN
5036 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5037 *COFF*)
5038 DUMPBIN="$DUMPBIN -symbols"
5041 DUMPBIN=:
5043 esac
5046 if test "$DUMPBIN" != ":"; then
5047 NM="$DUMPBIN"
5050 test -z "$NM" && NM=nm
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5058 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5059 if ${lt_cv_nm_interface+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 lt_cv_nm_interface="BSD nm"
5063 echo "int some_variable = 0;" > conftest.$ac_ext
5064 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5065 (eval "$ac_compile" 2>conftest.err)
5066 cat conftest.err >&5
5067 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5068 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5069 cat conftest.err >&5
5070 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5071 cat conftest.out >&5
5072 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5073 lt_cv_nm_interface="MS dumpbin"
5075 rm -f conftest*
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5078 $as_echo "$lt_cv_nm_interface" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5081 $as_echo_n "checking whether ln -s works... " >&6; }
5082 LN_S=$as_ln_s
5083 if test "$LN_S" = "ln -s"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5085 $as_echo "yes" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5088 $as_echo "no, using $LN_S" >&6; }
5091 # find the maximum length of command line arguments
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5093 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5094 if ${lt_cv_sys_max_cmd_len+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5098 teststring="ABCD"
5100 case $build_os in
5101 msdosdjgpp*)
5102 # On DJGPP, this test can blow up pretty badly due to problems in libc
5103 # (any single argument exceeding 2000 bytes causes a buffer overrun
5104 # during glob expansion). Even if it were fixed, the result of this
5105 # check would be larger than it should be.
5106 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5109 gnu*)
5110 # Under GNU Hurd, this test is not required because there is
5111 # no limit to the length of command line arguments.
5112 # Libtool will interpret -1 as no limit whatsoever
5113 lt_cv_sys_max_cmd_len=-1;
5116 cygwin* | mingw* | cegcc*)
5117 # On Win9x/ME, this test blows up -- it succeeds, but takes
5118 # about 5 minutes as the teststring grows exponentially.
5119 # Worse, since 9x/ME are not pre-emptively multitasking,
5120 # you end up with a "frozen" computer, even though with patience
5121 # the test eventually succeeds (with a max line length of 256k).
5122 # Instead, let's just punt: use the minimum linelength reported by
5123 # all of the supported platforms: 8192 (on NT/2K/XP).
5124 lt_cv_sys_max_cmd_len=8192;
5127 mint*)
5128 # On MiNT this can take a long time and run out of memory.
5129 lt_cv_sys_max_cmd_len=8192;
5132 amigaos*)
5133 # On AmigaOS with pdksh, this test takes hours, literally.
5134 # So we just punt and use a minimum line length of 8192.
5135 lt_cv_sys_max_cmd_len=8192;
5138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5139 # This has been around since 386BSD, at least. Likely further.
5140 if test -x /sbin/sysctl; then
5141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5142 elif test -x /usr/sbin/sysctl; then
5143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5144 else
5145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5147 # And add a safety zone
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152 interix*)
5153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5154 lt_cv_sys_max_cmd_len=196608
5157 os2*)
5158 # The test takes a long time on OS/2.
5159 lt_cv_sys_max_cmd_len=8192
5162 osf*)
5163 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5164 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5165 # nice to cause kernel panics so lets avoid the loop below.
5166 # First set a reasonable default.
5167 lt_cv_sys_max_cmd_len=16384
5169 if test -x /sbin/sysconfig; then
5170 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5171 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5172 esac
5175 sco3.2v5*)
5176 lt_cv_sys_max_cmd_len=102400
5178 sysv5* | sco5v6* | sysv4.2uw2*)
5179 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5180 if test -n "$kargmax"; then
5181 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5182 else
5183 lt_cv_sys_max_cmd_len=32768
5187 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5188 if test -n "$lt_cv_sys_max_cmd_len" && \
5189 test undefined != "$lt_cv_sys_max_cmd_len"; then
5190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5192 else
5193 # Make teststring a little bigger before we do anything with it.
5194 # a 1K string should be a reasonable start.
5195 for i in 1 2 3 4 5 6 7 8 ; do
5196 teststring=$teststring$teststring
5197 done
5198 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5199 # If test is not a shell built-in, we'll probably end up computing a
5200 # maximum length that is only half of the actual maximum length, but
5201 # we can't tell.
5202 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5203 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5204 test $i != 17 # 1/2 MB should be enough
5206 i=`expr $i + 1`
5207 teststring=$teststring$teststring
5208 done
5209 # Only check the string length outside the loop.
5210 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5211 teststring=
5212 # Add a significant safety factor because C++ compilers can tack on
5213 # massive amounts of additional arguments before passing them to the
5214 # linker. It appears as though 1/2 is a usable value.
5215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5218 esac
5222 if test -n $lt_cv_sys_max_cmd_len ; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5224 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5227 $as_echo "none" >&6; }
5229 max_cmd_len=$lt_cv_sys_max_cmd_len
5236 : ${CP="cp -f"}
5237 : ${MV="mv -f"}
5238 : ${RM="rm -f"}
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5241 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5242 # Try some XSI features
5243 xsi_shell=no
5244 ( _lt_dummy="a/b/c"
5245 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5246 = c,a/b,b/c, \
5247 && eval 'test $(( 1 + 1 )) -eq 2 \
5248 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5249 && xsi_shell=yes
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5251 $as_echo "$xsi_shell" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5255 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5256 lt_shell_append=no
5257 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5258 >/dev/null 2>&1 \
5259 && lt_shell_append=yes
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5261 $as_echo "$lt_shell_append" >&6; }
5264 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5265 lt_unset=unset
5266 else
5267 lt_unset=false
5274 # test EBCDIC or ASCII
5275 case `echo X|tr X '\101'` in
5276 A) # ASCII based system
5277 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5278 lt_SP2NL='tr \040 \012'
5279 lt_NL2SP='tr \015\012 \040\040'
5281 *) # EBCDIC based system
5282 lt_SP2NL='tr \100 \n'
5283 lt_NL2SP='tr \r\n \100\100'
5285 esac
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5296 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5297 if ${lt_cv_to_host_file_cmd+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 case $host in
5301 *-*-mingw* )
5302 case $build in
5303 *-*-mingw* ) # actually msys
5304 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5306 *-*-cygwin* )
5307 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5309 * ) # otherwise, assume *nix
5310 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5312 esac
5314 *-*-cygwin* )
5315 case $build in
5316 *-*-mingw* ) # actually msys
5317 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5319 *-*-cygwin* )
5320 lt_cv_to_host_file_cmd=func_convert_file_noop
5322 * ) # otherwise, assume *nix
5323 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5325 esac
5327 * ) # unhandled hosts (and "normal" native builds)
5328 lt_cv_to_host_file_cmd=func_convert_file_noop
5330 esac
5334 to_host_file_cmd=$lt_cv_to_host_file_cmd
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5336 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5343 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5344 if ${lt_cv_to_tool_file_cmd+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 #assume ordinary cross tools, or native build.
5348 lt_cv_to_tool_file_cmd=func_convert_file_noop
5349 case $host in
5350 *-*-mingw* )
5351 case $build in
5352 *-*-mingw* ) # actually msys
5353 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5355 esac
5357 esac
5361 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5363 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5370 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5371 if ${lt_cv_ld_reload_flag+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 lt_cv_ld_reload_flag='-r'
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5377 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5378 reload_flag=$lt_cv_ld_reload_flag
5379 case $reload_flag in
5380 "" | " "*) ;;
5381 *) reload_flag=" $reload_flag" ;;
5382 esac
5383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384 case $host_os in
5385 cygwin* | mingw* | pw32* | cegcc*)
5386 if test "$GCC" != yes; then
5387 reload_cmds=false
5390 darwin*)
5391 if test "$GCC" = yes; then
5392 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5393 else
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5397 esac
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_OBJDUMP+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$OBJDUMP"; then
5416 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 OBJDUMP=$ac_cv_prog_OBJDUMP
5436 if test -n "$OBJDUMP"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5438 $as_echo "$OBJDUMP" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5446 if test -z "$ac_cv_prog_OBJDUMP"; then
5447 ac_ct_OBJDUMP=$OBJDUMP
5448 # Extract the first word of "objdump", so it can be a program name with args.
5449 set dummy objdump; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$ac_ct_OBJDUMP"; then
5456 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5475 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5476 if test -n "$ac_ct_OBJDUMP"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5478 $as_echo "$ac_ct_OBJDUMP" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5484 if test "x$ac_ct_OBJDUMP" = x; then
5485 OBJDUMP="false"
5486 else
5487 case $cross_compiling:$ac_tool_warned in
5488 yes:)
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491 ac_tool_warned=yes ;;
5492 esac
5493 OBJDUMP=$ac_ct_OBJDUMP
5495 else
5496 OBJDUMP="$ac_cv_prog_OBJDUMP"
5499 test -z "$OBJDUMP" && OBJDUMP=objdump
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5510 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5511 if ${lt_cv_deplibs_check_method+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 lt_cv_file_magic_cmd='$MAGIC_CMD'
5515 lt_cv_file_magic_test_file=
5516 lt_cv_deplibs_check_method='unknown'
5517 # Need to set the preceding variable on all platforms that support
5518 # interlibrary dependencies.
5519 # 'none' -- dependencies not supported.
5520 # `unknown' -- same as none, but documents that we really don't know.
5521 # 'pass_all' -- all dependencies passed with no checks.
5522 # 'test_compile' -- check by making test program.
5523 # 'file_magic [[regex]]' -- check by looking for files in library path
5524 # which responds to the $file_magic_cmd with a given extended regex.
5525 # If you have `file' or equivalent on your system and you're not sure
5526 # whether `pass_all' will *always* work, you probably want this one.
5528 case $host_os in
5529 aix[4-9]*)
5530 lt_cv_deplibs_check_method=pass_all
5533 beos*)
5534 lt_cv_deplibs_check_method=pass_all
5537 bsdi[45]*)
5538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5539 lt_cv_file_magic_cmd='/usr/bin/file -L'
5540 lt_cv_file_magic_test_file=/shlib/libc.so
5543 cygwin*)
5544 # func_win32_libid is a shell function defined in ltmain.sh
5545 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5546 lt_cv_file_magic_cmd='func_win32_libid'
5549 mingw* | pw32*)
5550 # Base MSYS/MinGW do not provide the 'file' command needed by
5551 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5552 # unless we find 'file', for example because we are cross-compiling.
5553 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5554 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5556 lt_cv_file_magic_cmd='func_win32_libid'
5557 else
5558 # Keep this pattern in sync with the one in func_win32_libid.
5559 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5560 lt_cv_file_magic_cmd='$OBJDUMP -f'
5564 cegcc*)
5565 # use the weaker test based on 'objdump'. See mingw*.
5566 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5567 lt_cv_file_magic_cmd='$OBJDUMP -f'
5570 darwin* | rhapsody*)
5571 lt_cv_deplibs_check_method=pass_all
5574 freebsd* | dragonfly*)
5575 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5576 case $host_cpu in
5577 i*86 )
5578 # Not sure whether the presence of OpenBSD here was a mistake.
5579 # Let's accept both of them until this is cleared up.
5580 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5581 lt_cv_file_magic_cmd=/usr/bin/file
5582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584 esac
5585 else
5586 lt_cv_deplibs_check_method=pass_all
5590 haiku*)
5591 lt_cv_deplibs_check_method=pass_all
5594 hpux10.20* | hpux11*)
5595 lt_cv_file_magic_cmd=/usr/bin/file
5596 case $host_cpu in
5597 ia64*)
5598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5601 hppa*64*)
5602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5603 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5607 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5609 esac
5612 interix[3-9]*)
5613 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5617 irix5* | irix6* | nonstopux*)
5618 case $LD in
5619 *-32|*"-32 ") libmagic=32-bit;;
5620 *-n32|*"-n32 ") libmagic=N32;;
5621 *-64|*"-64 ") libmagic=64-bit;;
5622 *) libmagic=never-match;;
5623 esac
5624 lt_cv_deplibs_check_method=pass_all
5627 # This must be glibc/ELF.
5628 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5629 lt_cv_deplibs_check_method=pass_all
5632 netbsd* | netbsdelf*-gnu)
5633 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5635 else
5636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5640 newos6*)
5641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5642 lt_cv_file_magic_cmd=/usr/bin/file
5643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5646 *nto* | *qnx*)
5647 lt_cv_deplibs_check_method=pass_all
5650 openbsd*)
5651 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5653 else
5654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658 osf3* | osf4* | osf5*)
5659 lt_cv_deplibs_check_method=pass_all
5662 rdos*)
5663 lt_cv_deplibs_check_method=pass_all
5666 solaris*)
5667 lt_cv_deplibs_check_method=pass_all
5670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5671 lt_cv_deplibs_check_method=pass_all
5674 sysv4 | sysv4.3*)
5675 case $host_vendor in
5676 motorola)
5677 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]'
5678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5680 ncr)
5681 lt_cv_deplibs_check_method=pass_all
5683 sequent)
5684 lt_cv_file_magic_cmd='/bin/file'
5685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5687 sni)
5688 lt_cv_file_magic_cmd='/bin/file'
5689 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5690 lt_cv_file_magic_test_file=/lib/libc.so
5692 siemens)
5693 lt_cv_deplibs_check_method=pass_all
5696 lt_cv_deplibs_check_method=pass_all
5698 esac
5701 tpf*)
5702 lt_cv_deplibs_check_method=pass_all
5704 esac
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5708 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5710 file_magic_glob=
5711 want_nocaseglob=no
5712 if test "$build" = "$host"; then
5713 case $host_os in
5714 mingw* | pw32*)
5715 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5716 want_nocaseglob=yes
5717 else
5718 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5721 esac
5724 file_magic_cmd=$lt_cv_file_magic_cmd
5725 deplibs_check_method=$lt_cv_deplibs_check_method
5726 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5749 if test -n "$ac_tool_prefix"; then
5750 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5751 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_DLLTOOL+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$DLLTOOL"; then
5758 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5771 done
5772 done
5773 IFS=$as_save_IFS
5777 DLLTOOL=$ac_cv_prog_DLLTOOL
5778 if test -n "$DLLTOOL"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5780 $as_echo "$DLLTOOL" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5788 if test -z "$ac_cv_prog_DLLTOOL"; then
5789 ac_ct_DLLTOOL=$DLLTOOL
5790 # Extract the first word of "dlltool", so it can be a program name with args.
5791 set dummy dlltool; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$ac_ct_DLLTOOL"; then
5798 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5811 done
5812 done
5813 IFS=$as_save_IFS
5817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5818 if test -n "$ac_ct_DLLTOOL"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5820 $as_echo "$ac_ct_DLLTOOL" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5826 if test "x$ac_ct_DLLTOOL" = x; then
5827 DLLTOOL="false"
5828 else
5829 case $cross_compiling:$ac_tool_warned in
5830 yes:)
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5833 ac_tool_warned=yes ;;
5834 esac
5835 DLLTOOL=$ac_ct_DLLTOOL
5837 else
5838 DLLTOOL="$ac_cv_prog_DLLTOOL"
5841 test -z "$DLLTOOL" && DLLTOOL=dlltool
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5853 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5854 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 lt_cv_sharedlib_from_linklib_cmd='unknown'
5859 case $host_os in
5860 cygwin* | mingw* | pw32* | cegcc*)
5861 # two different shell functions defined in ltmain.sh
5862 # decide which to use based on capabilities of $DLLTOOL
5863 case `$DLLTOOL --help 2>&1` in
5864 *--identify-strict*)
5865 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5870 esac
5873 # fallback: assume linklib IS sharedlib
5874 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5876 esac
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5880 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5881 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5882 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5891 if test -n "$ac_tool_prefix"; then
5892 for ac_prog in ar
5894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_AR+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5924 $as_echo "$AR" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5931 test -n "$AR" && break
5932 done
5934 if test -z "$AR"; then
5935 ac_ct_AR=$AR
5936 for ac_prog in ar
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_AR"; then
5946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_ac_ct_AR="$ac_prog"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5959 done
5960 done
5961 IFS=$as_save_IFS
5965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5966 if test -n "$ac_ct_AR"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5968 $as_echo "$ac_ct_AR" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5975 test -n "$ac_ct_AR" && break
5976 done
5978 if test "x$ac_ct_AR" = x; then
5979 AR="false"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 AR=$ac_ct_AR
5991 : ${AR=ar}
5992 : ${AR_FLAGS=cru}
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6005 $as_echo_n "checking for archiver @FILE support... " >&6; }
6006 if ${lt_cv_ar_at_file+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 lt_cv_ar_at_file=no
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6014 main ()
6018 return 0;
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 echo conftest.$ac_objext > conftest.lst
6023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6025 (eval $lt_ar_try) 2>&5
6026 ac_status=$?
6027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6028 test $ac_status = 0; }
6029 if test "$ac_status" -eq 0; then
6030 # Ensure the archiver fails upon bogus file names.
6031 rm -f conftest.$ac_objext libconftest.a
6032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6033 (eval $lt_ar_try) 2>&5
6034 ac_status=$?
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }
6037 if test "$ac_status" -ne 0; then
6038 lt_cv_ar_at_file=@
6041 rm -f conftest.* libconftest.a
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6048 $as_echo "$lt_cv_ar_at_file" >&6; }
6050 if test "x$lt_cv_ar_at_file" = xno; then
6051 archiver_list_spec=
6052 else
6053 archiver_list_spec=$lt_cv_ar_at_file
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6064 set dummy ${ac_tool_prefix}strip; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_STRIP+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$STRIP"; then
6071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6084 done
6085 done
6086 IFS=$as_save_IFS
6090 STRIP=$ac_cv_prog_STRIP
6091 if test -n "$STRIP"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6093 $as_echo "$STRIP" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6101 if test -z "$ac_cv_prog_STRIP"; then
6102 ac_ct_STRIP=$STRIP
6103 # Extract the first word of "strip", so it can be a program name with args.
6104 set dummy strip; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$ac_ct_STRIP"; then
6111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_STRIP="strip"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6131 if test -n "$ac_ct_STRIP"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6133 $as_echo "$ac_ct_STRIP" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6139 if test "x$ac_ct_STRIP" = x; then
6140 STRIP=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143 yes:)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148 STRIP=$ac_ct_STRIP
6150 else
6151 STRIP="$ac_cv_prog_STRIP"
6154 test -z "$STRIP" && STRIP=:
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_RANLIB+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$RANLIB"; then
6170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6183 done
6184 done
6185 IFS=$as_save_IFS
6189 RANLIB=$ac_cv_prog_RANLIB
6190 if test -n "$RANLIB"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6192 $as_echo "$RANLIB" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_RANLIB"; then
6201 ac_ct_RANLIB=$RANLIB
6202 # Extract the first word of "ranlib", so it can be a program name with args.
6203 set dummy ranlib; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_RANLIB"; then
6210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_RANLIB="ranlib"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6225 IFS=$as_save_IFS
6229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6230 if test -n "$ac_ct_RANLIB"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6232 $as_echo "$ac_ct_RANLIB" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_RANLIB" = x; then
6239 RANLIB=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 RANLIB=$ac_ct_RANLIB
6249 else
6250 RANLIB="$ac_cv_prog_RANLIB"
6253 test -z "$RANLIB" && RANLIB=:
6260 # Determine commands to create old-style static archives.
6261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6262 old_postinstall_cmds='chmod 644 $oldlib'
6263 old_postuninstall_cmds=
6265 if test -n "$RANLIB"; then
6266 case $host_os in
6267 openbsd*)
6268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6273 esac
6274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6277 case $host_os in
6278 darwin*)
6279 lock_old_archive_extraction=yes ;;
6281 lock_old_archive_extraction=no ;;
6282 esac
6322 # If no C compiler was specified, use CC.
6323 LTCC=${LTCC-"$CC"}
6325 # If no C compiler flags were specified, use CFLAGS.
6326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6328 # Allow CC to be a program name with arguments.
6329 compiler=$CC
6332 # Check for command to grab the raw symbol name followed by C symbol from nm.
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6335 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6339 # These are sane defaults that work on at least a few old systems.
6340 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6342 # Character class describing NM global symbol codes.
6343 symcode='[BCDEGRST]'
6345 # Regexp to match symbols that can be accessed directly from C.
6346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6348 # Define system-specific variables.
6349 case $host_os in
6350 aix*)
6351 symcode='[BCDT]'
6353 cygwin* | mingw* | pw32* | cegcc*)
6354 symcode='[ABCDGISTW]'
6356 hpux*)
6357 if test "$host_cpu" = ia64; then
6358 symcode='[ABCDEGRST]'
6361 irix* | nonstopux*)
6362 symcode='[BCDEGRST]'
6364 osf*)
6365 symcode='[BCDEGQRST]'
6367 solaris*)
6368 symcode='[BDRT]'
6370 sco3.2v5*)
6371 symcode='[DT]'
6373 sysv4.2uw2*)
6374 symcode='[DT]'
6376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6377 symcode='[ABDT]'
6379 sysv4)
6380 symcode='[DFNSTU]'
6382 esac
6384 # If we're using GNU nm, then use its standard symbol codes.
6385 case `$NM -V 2>&1` in
6386 *GNU* | *'with BFD'*)
6387 symcode='[ABCDGIRSTW]' ;;
6388 esac
6390 # Transform an extracted symbol line into a proper C declaration.
6391 # Some systems (esp. on ia64) link data and code symbols differently,
6392 # so use this general approach.
6393 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6395 # Transform an extracted symbol line into symbol name and symbol address
6396 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6397 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'"
6399 # Handle CRLF in mingw tool chain
6400 opt_cr=
6401 case $build_os in
6402 mingw*)
6403 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6405 esac
6407 # Try without a prefix underscore, then with it.
6408 for ac_symprfx in "" "_"; do
6410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6411 symxfrm="\\1 $ac_symprfx\\2 \\2"
6413 # Write the raw and C identifiers.
6414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6415 # Fake it for dumpbin and say T for any non-static function
6416 # and D for any global variable.
6417 # Also find C++ and __fastcall symbols from MSVC++,
6418 # which start with @ or ?.
6419 lt_cv_sys_global_symbol_pipe="$AWK '"\
6420 " {last_section=section; section=\$ 3};"\
6421 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6422 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6423 " \$ 0!~/External *\|/{next};"\
6424 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6425 " {if(hide[section]) next};"\
6426 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6427 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6428 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6429 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6430 " ' prfx=^$ac_symprfx"
6431 else
6432 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6434 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6436 # Check to see that the pipe works correctly.
6437 pipe_works=no
6439 rm -f conftest*
6440 cat > conftest.$ac_ext <<_LT_EOF
6441 #ifdef __cplusplus
6442 extern "C" {
6443 #endif
6444 char nm_test_var;
6445 void nm_test_func(void);
6446 void nm_test_func(void){}
6447 #ifdef __cplusplus
6449 #endif
6450 int main(){nm_test_var='a';nm_test_func();return(0);}
6451 _LT_EOF
6453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6454 (eval $ac_compile) 2>&5
6455 ac_status=$?
6456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457 test $ac_status = 0; }; then
6458 # Now try to grab the symbols.
6459 nlist=conftest.nm
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6461 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; } && test -s "$nlist"; then
6465 # Try sorting and uniquifying the output.
6466 if sort "$nlist" | uniq > "$nlist"T; then
6467 mv -f "$nlist"T "$nlist"
6468 else
6469 rm -f "$nlist"T
6472 # Make sure that we snagged all the symbols we need.
6473 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6474 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6475 cat <<_LT_EOF > conftest.$ac_ext
6476 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6477 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6478 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6479 relocations are performed -- see ld's documentation on pseudo-relocs. */
6480 # define LT_DLSYM_CONST
6481 #elif defined(__osf__)
6482 /* This system does not cope well with relocations in const data. */
6483 # define LT_DLSYM_CONST
6484 #else
6485 # define LT_DLSYM_CONST const
6486 #endif
6488 #ifdef __cplusplus
6489 extern "C" {
6490 #endif
6492 _LT_EOF
6493 # Now generate the symbol file.
6494 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6496 cat <<_LT_EOF >> conftest.$ac_ext
6498 /* The mapping between symbol names and symbols. */
6499 LT_DLSYM_CONST struct {
6500 const char *name;
6501 void *address;
6503 lt__PROGRAM__LTX_preloaded_symbols[] =
6505 { "@PROGRAM@", (void *) 0 },
6506 _LT_EOF
6507 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6508 cat <<\_LT_EOF >> conftest.$ac_ext
6509 {0, (void *) 0}
6512 /* This works around a problem in FreeBSD linker */
6513 #ifdef FREEBSD_WORKAROUND
6514 static const void *lt_preloaded_setup() {
6515 return lt__PROGRAM__LTX_preloaded_symbols;
6517 #endif
6519 #ifdef __cplusplus
6521 #endif
6522 _LT_EOF
6523 # Now try linking the two files.
6524 mv conftest.$ac_objext conftstm.$ac_objext
6525 lt_globsym_save_LIBS=$LIBS
6526 lt_globsym_save_CFLAGS=$CFLAGS
6527 LIBS="conftstm.$ac_objext"
6528 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6530 (eval $ac_link) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6534 pipe_works=yes
6536 LIBS=$lt_globsym_save_LIBS
6537 CFLAGS=$lt_globsym_save_CFLAGS
6538 else
6539 echo "cannot find nm_test_func in $nlist" >&5
6541 else
6542 echo "cannot find nm_test_var in $nlist" >&5
6544 else
6545 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6547 else
6548 echo "$progname: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 rm -rf conftest* conftst*
6553 # Do not use the global_symbol_pipe unless it works.
6554 if test "$pipe_works" = yes; then
6555 break
6556 else
6557 lt_cv_sys_global_symbol_pipe=
6559 done
6563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6564 lt_cv_sys_global_symbol_to_cdecl=
6566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6568 $as_echo "failed" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6571 $as_echo "ok" >&6; }
6574 # Response file support.
6575 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6576 nm_file_list_spec='@'
6577 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6578 nm_file_list_spec='@'
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6608 $as_echo_n "checking for sysroot... " >&6; }
6610 # Check whether --with-sysroot was given.
6611 if test "${with_sysroot+set}" = set; then :
6612 withval=$with_sysroot;
6613 else
6614 with_sysroot=no
6618 lt_sysroot=
6619 case ${with_sysroot} in #(
6620 yes)
6621 if test "$GCC" = yes; then
6622 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6624 ;; #(
6626 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6627 ;; #(
6628 no|'')
6629 ;; #(
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6632 $as_echo "${with_sysroot}" >&6; }
6633 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6635 esac
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6638 $as_echo "${lt_sysroot:-no}" >&6; }
6644 # Check whether --enable-libtool-lock was given.
6645 if test "${enable_libtool_lock+set}" = set; then :
6646 enableval=$enable_libtool_lock;
6649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6651 # Some flags need to be propagated to the compiler or linker for good
6652 # libtool support.
6653 case $host in
6654 ia64-*-hpux*)
6655 # Find out which ABI we are using.
6656 echo 'int i;' > conftest.$ac_ext
6657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661 test $ac_status = 0; }; then
6662 case `/usr/bin/file conftest.$ac_objext` in
6663 *ELF-32*)
6664 HPUX_IA64_MODE="32"
6666 *ELF-64*)
6667 HPUX_IA64_MODE="64"
6669 esac
6671 rm -rf conftest*
6673 *-*-irix6*)
6674 # Find out which ABI we are using.
6675 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6677 (eval $ac_compile) 2>&5
6678 ac_status=$?
6679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6680 test $ac_status = 0; }; then
6681 if test "$lt_cv_prog_gnu_ld" = yes; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6683 *32-bit*)
6684 LD="${LD-ld} -melf32bsmip"
6686 *N32*)
6687 LD="${LD-ld} -melf32bmipn32"
6689 *64-bit*)
6690 LD="${LD-ld} -melf64bmip"
6692 esac
6693 else
6694 case `/usr/bin/file conftest.$ac_objext` in
6695 *32-bit*)
6696 LD="${LD-ld} -32"
6698 *N32*)
6699 LD="${LD-ld} -n32"
6701 *64-bit*)
6702 LD="${LD-ld} -64"
6704 esac
6707 rm -rf conftest*
6710 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6711 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6712 # Find out which ABI we are using.
6713 echo 'int i;' > conftest.$ac_ext
6714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6715 (eval $ac_compile) 2>&5
6716 ac_status=$?
6717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718 test $ac_status = 0; }; then
6719 case `/usr/bin/file conftest.o` in
6720 *32-bit*)
6721 case $host in
6722 x86_64-*kfreebsd*-gnu)
6723 LD="${LD-ld} -m elf_i386_fbsd"
6725 x86_64-*linux*)
6726 case `/usr/bin/file conftest.o` in
6727 *x86-64*)
6728 LD="${LD-ld} -m elf32_x86_64"
6731 LD="${LD-ld} -m elf_i386"
6733 esac
6735 powerpc64le-*)
6736 LD="${LD-ld} -m elf32lppclinux"
6738 powerpc64-*)
6739 LD="${LD-ld} -m elf32ppclinux"
6741 s390x-*linux*)
6742 LD="${LD-ld} -m elf_s390"
6744 sparc64-*linux*)
6745 LD="${LD-ld} -m elf32_sparc"
6747 esac
6749 *64-bit*)
6750 case $host in
6751 x86_64-*kfreebsd*-gnu)
6752 LD="${LD-ld} -m elf_x86_64_fbsd"
6754 x86_64-*linux*)
6755 LD="${LD-ld} -m elf_x86_64"
6757 powerpcle-*)
6758 LD="${LD-ld} -m elf64lppc"
6760 powerpc-*)
6761 LD="${LD-ld} -m elf64ppc"
6763 s390*-*linux*|s390*-*tpf*)
6764 LD="${LD-ld} -m elf64_s390"
6766 sparc*-*linux*)
6767 LD="${LD-ld} -m elf64_sparc"
6769 esac
6771 esac
6773 rm -rf conftest*
6776 *-*-sco3.2v5*)
6777 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6778 SAVE_CFLAGS="$CFLAGS"
6779 CFLAGS="$CFLAGS -belf"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6781 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6782 if ${lt_cv_cc_needs_belf+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 ac_ext=c
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6795 main ()
6799 return 0;
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"; then :
6803 lt_cv_cc_needs_belf=yes
6804 else
6805 lt_cv_cc_needs_belf=no
6807 rm -f core conftest.err conftest.$ac_objext \
6808 conftest$ac_exeext conftest.$ac_ext
6809 ac_ext=c
6810 ac_cpp='$CPP $CPPFLAGS'
6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6817 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6818 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6819 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6820 CFLAGS="$SAVE_CFLAGS"
6823 *-*solaris*)
6824 # Find out which ABI we are using.
6825 echo 'int i;' > conftest.$ac_ext
6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830 test $ac_status = 0; }; then
6831 case `/usr/bin/file conftest.o` in
6832 *64-bit*)
6833 case $lt_cv_prog_gnu_ld in
6834 yes*)
6835 case $host in
6836 i?86-*-solaris*)
6837 LD="${LD-ld} -m elf_x86_64"
6839 sparc*-*-solaris*)
6840 LD="${LD-ld} -m elf64_sparc"
6842 esac
6843 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6844 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6845 LD="${LD-ld}_sol2"
6849 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6850 LD="${LD-ld} -64"
6853 esac
6855 esac
6857 rm -rf conftest*
6859 esac
6861 need_locks="$enable_libtool_lock"
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}mt; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$MANIFEST_TOOL"; then
6872 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6891 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6892 if test -n "$MANIFEST_TOOL"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6894 $as_echo "$MANIFEST_TOOL" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6902 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6903 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6904 # Extract the first word of "mt", so it can be a program name with args.
6905 set dummy mt; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$ac_ct_MANIFEST_TOOL"; then
6912 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6927 IFS=$as_save_IFS
6931 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6932 if test -n "$ac_ct_MANIFEST_TOOL"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6934 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6940 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6941 MANIFEST_TOOL=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6951 else
6952 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6955 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6957 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6958 if ${lt_cv_path_mainfest_tool+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 lt_cv_path_mainfest_tool=no
6962 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6963 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6964 cat conftest.err >&5
6965 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6966 lt_cv_path_mainfest_tool=yes
6968 rm -f conftest*
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6971 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6972 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6973 MANIFEST_TOOL=:
6981 case $host_os in
6982 rhapsody* | darwin*)
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$DSYMUTIL"; then
6992 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7005 done
7006 done
7007 IFS=$as_save_IFS
7011 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7012 if test -n "$DSYMUTIL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7014 $as_echo "$DSYMUTIL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7022 if test -z "$ac_cv_prog_DSYMUTIL"; then
7023 ac_ct_DSYMUTIL=$DSYMUTIL
7024 # Extract the first word of "dsymutil", so it can be a program name with args.
7025 set dummy dsymutil; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_DSYMUTIL"; then
7032 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7054 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7060 if test "x$ac_ct_DSYMUTIL" = x; then
7061 DSYMUTIL=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 DSYMUTIL=$ac_ct_DSYMUTIL
7071 else
7072 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_NMEDIT+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$NMEDIT"; then
7084 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7097 done
7098 done
7099 IFS=$as_save_IFS
7103 NMEDIT=$ac_cv_prog_NMEDIT
7104 if test -n "$NMEDIT"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7106 $as_echo "$NMEDIT" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7114 if test -z "$ac_cv_prog_NMEDIT"; then
7115 ac_ct_NMEDIT=$NMEDIT
7116 # Extract the first word of "nmedit", so it can be a program name with args.
7117 set dummy nmedit; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_NMEDIT"; then
7124 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7137 done
7138 done
7139 IFS=$as_save_IFS
7143 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7144 if test -n "$ac_ct_NMEDIT"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7146 $as_echo "$ac_ct_NMEDIT" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7152 if test "x$ac_ct_NMEDIT" = x; then
7153 NMEDIT=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 NMEDIT=$ac_ct_NMEDIT
7163 else
7164 NMEDIT="$ac_cv_prog_NMEDIT"
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_LIPO+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$LIPO"; then
7176 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7189 done
7190 done
7191 IFS=$as_save_IFS
7195 LIPO=$ac_cv_prog_LIPO
7196 if test -n "$LIPO"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7198 $as_echo "$LIPO" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7206 if test -z "$ac_cv_prog_LIPO"; then
7207 ac_ct_LIPO=$LIPO
7208 # Extract the first word of "lipo", so it can be a program name with args.
7209 set dummy lipo; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$ac_ct_LIPO"; then
7216 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_LIPO="lipo"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7235 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7236 if test -n "$ac_ct_LIPO"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7238 $as_echo "$ac_ct_LIPO" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7244 if test "x$ac_ct_LIPO" = x; then
7245 LIPO=":"
7246 else
7247 case $cross_compiling:$ac_tool_warned in
7248 yes:)
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 LIPO=$ac_ct_LIPO
7255 else
7256 LIPO="$ac_cv_prog_LIPO"
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}otool; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_OTOOL+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$OTOOL"; then
7268 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7281 done
7282 done
7283 IFS=$as_save_IFS
7287 OTOOL=$ac_cv_prog_OTOOL
7288 if test -n "$OTOOL"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7290 $as_echo "$OTOOL" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7298 if test -z "$ac_cv_prog_OTOOL"; then
7299 ac_ct_OTOOL=$OTOOL
7300 # Extract the first word of "otool", so it can be a program name with args.
7301 set dummy otool; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$ac_ct_OTOOL"; then
7308 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_OTOOL="otool"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7321 done
7322 done
7323 IFS=$as_save_IFS
7327 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7328 if test -n "$ac_ct_OTOOL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7330 $as_echo "$ac_ct_OTOOL" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7336 if test "x$ac_ct_OTOOL" = x; then
7337 OTOOL=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 OTOOL=$ac_ct_OTOOL
7347 else
7348 OTOOL="$ac_cv_prog_OTOOL"
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_OTOOL64+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$OTOOL64"; then
7360 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7373 done
7374 done
7375 IFS=$as_save_IFS
7379 OTOOL64=$ac_cv_prog_OTOOL64
7380 if test -n "$OTOOL64"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7382 $as_echo "$OTOOL64" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7390 if test -z "$ac_cv_prog_OTOOL64"; then
7391 ac_ct_OTOOL64=$OTOOL64
7392 # Extract the first word of "otool64", so it can be a program name with args.
7393 set dummy otool64; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$ac_ct_OTOOL64"; then
7400 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_OTOOL64="otool64"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7419 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7420 if test -n "$ac_ct_OTOOL64"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7422 $as_echo "$ac_ct_OTOOL64" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7428 if test "x$ac_ct_OTOOL64" = x; then
7429 OTOOL64=":"
7430 else
7431 case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437 OTOOL64=$ac_ct_OTOOL64
7439 else
7440 OTOOL64="$ac_cv_prog_OTOOL64"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7470 $as_echo_n "checking for -single_module linker flag... " >&6; }
7471 if ${lt_cv_apple_cc_single_mod+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 lt_cv_apple_cc_single_mod=no
7475 if test -z "${LT_MULTI_MODULE}"; then
7476 # By default we will add the -single_module flag. You can override
7477 # by either setting the environment variable LT_MULTI_MODULE
7478 # non-empty at configure time, or by adding -multi_module to the
7479 # link flags.
7480 rm -rf libconftest.dylib*
7481 echo "int foo(void){return 1;}" > conftest.c
7482 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7483 -dynamiclib -Wl,-single_module conftest.c" >&5
7484 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7486 _lt_result=$?
7487 # If there is a non-empty error log, and "single_module"
7488 # appears in it, assume the flag caused a linker warning
7489 if test -s conftest.err && $GREP single_module conftest.err; then
7490 cat conftest.err >&5
7491 # Otherwise, if the output was created with a 0 exit code from
7492 # the compiler, it worked.
7493 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7494 lt_cv_apple_cc_single_mod=yes
7495 else
7496 cat conftest.err >&5
7498 rm -rf libconftest.dylib*
7499 rm -f conftest.*
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7503 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7506 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7507 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 lt_cv_ld_exported_symbols_list=no
7511 save_LDFLAGS=$LDFLAGS
7512 echo "_main" > conftest.sym
7513 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7518 main ()
7522 return 0;
7524 _ACEOF
7525 if ac_fn_c_try_link "$LINENO"; then :
7526 lt_cv_ld_exported_symbols_list=yes
7527 else
7528 lt_cv_ld_exported_symbols_list=no
7530 rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 LDFLAGS="$save_LDFLAGS"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7536 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7539 $as_echo_n "checking for -force_load linker flag... " >&6; }
7540 if ${lt_cv_ld_force_load+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 lt_cv_ld_force_load=no
7544 cat > conftest.c << _LT_EOF
7545 int forced_loaded() { return 2;}
7546 _LT_EOF
7547 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7548 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7549 echo "$AR cru libconftest.a conftest.o" >&5
7550 $AR cru libconftest.a conftest.o 2>&5
7551 echo "$RANLIB libconftest.a" >&5
7552 $RANLIB libconftest.a 2>&5
7553 cat > conftest.c << _LT_EOF
7554 int main() { return 0;}
7555 _LT_EOF
7556 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7557 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7558 _lt_result=$?
7559 if test -s conftest.err && $GREP force_load conftest.err; then
7560 cat conftest.err >&5
7561 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7562 lt_cv_ld_force_load=yes
7563 else
7564 cat conftest.err >&5
7566 rm -f conftest.err libconftest.a conftest conftest.c
7567 rm -rf conftest.dSYM
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7571 $as_echo "$lt_cv_ld_force_load" >&6; }
7572 case $host_os in
7573 rhapsody* | darwin1.[012])
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7575 darwin1.*)
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577 darwin*) # darwin 5.x on
7578 # if running on 10.5 or later, the deployment target defaults
7579 # to the OS version, if on x86, and 10.4, the deployment
7580 # target defaults to 10.4. Don't you love it?
7581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584 10.[012]*)
7585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586 10.*)
7587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7588 esac
7590 esac
7591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7592 _lt_dar_single_mod='$single_module'
7594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7596 else
7597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7599 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7600 _lt_dsymutil='~$DSYMUTIL $lib || :'
7601 else
7602 _lt_dsymutil=
7605 esac
7607 ac_ext=c
7608 ac_cpp='$CPP $CPPFLAGS'
7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7613 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7614 # On Suns, sometimes $CPP names a directory.
7615 if test -n "$CPP" && test -d "$CPP"; then
7616 CPP=
7618 if test -z "$CPP"; then
7619 if ${ac_cv_prog_CPP+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 # Double quotes because CPP needs to be expanded
7623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7625 ac_preproc_ok=false
7626 for ac_c_preproc_warn_flag in '' yes
7628 # Use a header file that comes with gcc, so configuring glibc
7629 # with a fresh cross-compiler works.
7630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7631 # <limits.h> exists even on freestanding compilers.
7632 # On the NeXT, cc -E runs the code through the compiler's parser,
7633 # not just through cpp. "Syntax error" is here to catch this case.
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #ifdef __STDC__
7637 # include <limits.h>
7638 #else
7639 # include <assert.h>
7640 #endif
7641 Syntax error
7642 _ACEOF
7643 if ac_fn_c_try_cpp "$LINENO"; then :
7645 else
7646 # Broken: fails on valid input.
7647 continue
7649 rm -f conftest.err conftest.i conftest.$ac_ext
7651 # OK, works on sane cases. Now check whether nonexistent headers
7652 # can be detected and how.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 #include <ac_nonexistent.h>
7656 _ACEOF
7657 if ac_fn_c_try_cpp "$LINENO"; then :
7658 # Broken: success on invalid input.
7659 continue
7660 else
7661 # Passes both tests.
7662 ac_preproc_ok=:
7663 break
7665 rm -f conftest.err conftest.i conftest.$ac_ext
7667 done
7668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7669 rm -f conftest.i conftest.err conftest.$ac_ext
7670 if $ac_preproc_ok; then :
7671 break
7674 done
7675 ac_cv_prog_CPP=$CPP
7678 CPP=$ac_cv_prog_CPP
7679 else
7680 ac_cv_prog_CPP=$CPP
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7683 $as_echo "$CPP" >&6; }
7684 ac_preproc_ok=false
7685 for ac_c_preproc_warn_flag in '' yes
7687 # Use a header file that comes with gcc, so configuring glibc
7688 # with a fresh cross-compiler works.
7689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7690 # <limits.h> exists even on freestanding compilers.
7691 # On the NeXT, cc -E runs the code through the compiler's parser,
7692 # not just through cpp. "Syntax error" is here to catch this case.
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 #ifdef __STDC__
7696 # include <limits.h>
7697 #else
7698 # include <assert.h>
7699 #endif
7700 Syntax error
7701 _ACEOF
7702 if ac_fn_c_try_cpp "$LINENO"; then :
7704 else
7705 # Broken: fails on valid input.
7706 continue
7708 rm -f conftest.err conftest.i conftest.$ac_ext
7710 # OK, works on sane cases. Now check whether nonexistent headers
7711 # can be detected and how.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714 #include <ac_nonexistent.h>
7715 _ACEOF
7716 if ac_fn_c_try_cpp "$LINENO"; then :
7717 # Broken: success on invalid input.
7718 continue
7719 else
7720 # Passes both tests.
7721 ac_preproc_ok=:
7722 break
7724 rm -f conftest.err conftest.i conftest.$ac_ext
7726 done
7727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7728 rm -f conftest.i conftest.err conftest.$ac_ext
7729 if $ac_preproc_ok; then :
7731 else
7732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7734 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7735 See \`config.log' for more details" "$LINENO" 5; }
7738 ac_ext=c
7739 ac_cpp='$CPP $CPPFLAGS'
7740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7746 $as_echo_n "checking for ANSI C header files... " >&6; }
7747 if ${ac_cv_header_stdc+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <stdlib.h>
7753 #include <stdarg.h>
7754 #include <string.h>
7755 #include <float.h>
7758 main ()
7762 return 0;
7764 _ACEOF
7765 if ac_fn_c_try_compile "$LINENO"; then :
7766 ac_cv_header_stdc=yes
7767 else
7768 ac_cv_header_stdc=no
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 if test $ac_cv_header_stdc = yes; then
7773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <string.h>
7778 _ACEOF
7779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7780 $EGREP "memchr" >/dev/null 2>&1; then :
7782 else
7783 ac_cv_header_stdc=no
7785 rm -f conftest*
7789 if test $ac_cv_header_stdc = yes; then
7790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 #include <stdlib.h>
7795 _ACEOF
7796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7797 $EGREP "free" >/dev/null 2>&1; then :
7799 else
7800 ac_cv_header_stdc=no
7802 rm -f conftest*
7806 if test $ac_cv_header_stdc = yes; then
7807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7808 if test "$cross_compiling" = yes; then :
7810 else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 #include <ctype.h>
7814 #include <stdlib.h>
7815 #if ((' ' & 0x0FF) == 0x020)
7816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7818 #else
7819 # define ISLOWER(c) \
7820 (('a' <= (c) && (c) <= 'i') \
7821 || ('j' <= (c) && (c) <= 'r') \
7822 || ('s' <= (c) && (c) <= 'z'))
7823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7824 #endif
7826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7828 main ()
7830 int i;
7831 for (i = 0; i < 256; i++)
7832 if (XOR (islower (i), ISLOWER (i))
7833 || toupper (i) != TOUPPER (i))
7834 return 2;
7835 return 0;
7837 _ACEOF
7838 if ac_fn_c_try_run "$LINENO"; then :
7840 else
7841 ac_cv_header_stdc=no
7843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7844 conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7850 $as_echo "$ac_cv_header_stdc" >&6; }
7851 if test $ac_cv_header_stdc = yes; then
7853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7857 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7859 inttypes.h stdint.h unistd.h
7860 do :
7861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7862 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7865 cat >>confdefs.h <<_ACEOF
7866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7867 _ACEOF
7871 done
7874 for ac_header in dlfcn.h
7875 do :
7876 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7878 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7879 cat >>confdefs.h <<_ACEOF
7880 #define HAVE_DLFCN_H 1
7881 _ACEOF
7885 done
7891 # Set options
7895 enable_dlopen=no
7898 enable_win32_dll=no
7901 # Check whether --enable-shared was given.
7902 if test "${enable_shared+set}" = set; then :
7903 enableval=$enable_shared; p=${PACKAGE-default}
7904 case $enableval in
7905 yes) enable_shared=yes ;;
7906 no) enable_shared=no ;;
7908 enable_shared=no
7909 # Look at the argument we got. We use all the common list separators.
7910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7911 for pkg in $enableval; do
7912 IFS="$lt_save_ifs"
7913 if test "X$pkg" = "X$p"; then
7914 enable_shared=yes
7916 done
7917 IFS="$lt_save_ifs"
7919 esac
7920 else
7921 enable_shared=yes
7932 # Check whether --enable-static was given.
7933 if test "${enable_static+set}" = set; then :
7934 enableval=$enable_static; p=${PACKAGE-default}
7935 case $enableval in
7936 yes) enable_static=yes ;;
7937 no) enable_static=no ;;
7939 enable_static=no
7940 # Look at the argument we got. We use all the common list separators.
7941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7942 for pkg in $enableval; do
7943 IFS="$lt_save_ifs"
7944 if test "X$pkg" = "X$p"; then
7945 enable_static=yes
7947 done
7948 IFS="$lt_save_ifs"
7950 esac
7951 else
7952 enable_static=yes
7964 # Check whether --with-pic was given.
7965 if test "${with_pic+set}" = set; then :
7966 withval=$with_pic; lt_p=${PACKAGE-default}
7967 case $withval in
7968 yes|no) pic_mode=$withval ;;
7970 pic_mode=default
7971 # Look at the argument we got. We use all the common list separators.
7972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7973 for lt_pkg in $withval; do
7974 IFS="$lt_save_ifs"
7975 if test "X$lt_pkg" = "X$lt_p"; then
7976 pic_mode=yes
7978 done
7979 IFS="$lt_save_ifs"
7981 esac
7982 else
7983 pic_mode=default
7987 test -z "$pic_mode" && pic_mode=default
7995 # Check whether --enable-fast-install was given.
7996 if test "${enable_fast_install+set}" = set; then :
7997 enableval=$enable_fast_install; p=${PACKAGE-default}
7998 case $enableval in
7999 yes) enable_fast_install=yes ;;
8000 no) enable_fast_install=no ;;
8002 enable_fast_install=no
8003 # Look at the argument we got. We use all the common list separators.
8004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8005 for pkg in $enableval; do
8006 IFS="$lt_save_ifs"
8007 if test "X$pkg" = "X$p"; then
8008 enable_fast_install=yes
8010 done
8011 IFS="$lt_save_ifs"
8013 esac
8014 else
8015 enable_fast_install=yes
8028 # This can be used to rebuild libtool when needed
8029 LIBTOOL_DEPS="$ltmain"
8031 # Always use our own libtool.
8032 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8063 test -z "$LN_S" && LN_S="ln -s"
8078 if test -n "${ZSH_VERSION+set}" ; then
8079 setopt NO_GLOB_SUBST
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8083 $as_echo_n "checking for objdir... " >&6; }
8084 if ${lt_cv_objdir+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 rm -f .libs 2>/dev/null
8088 mkdir .libs 2>/dev/null
8089 if test -d .libs; then
8090 lt_cv_objdir=.libs
8091 else
8092 # MS-DOS does not allow filenames that begin with a dot.
8093 lt_cv_objdir=_libs
8095 rmdir .libs 2>/dev/null
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8098 $as_echo "$lt_cv_objdir" >&6; }
8099 objdir=$lt_cv_objdir
8105 cat >>confdefs.h <<_ACEOF
8106 #define LT_OBJDIR "$lt_cv_objdir/"
8107 _ACEOF
8112 case $host_os in
8113 aix3*)
8114 # AIX sometimes has problems with the GCC collect2 program. For some
8115 # reason, if we set the COLLECT_NAMES environment variable, the problems
8116 # vanish in a puff of smoke.
8117 if test "X${COLLECT_NAMES+set}" != Xset; then
8118 COLLECT_NAMES=
8119 export COLLECT_NAMES
8122 esac
8124 # Global variables:
8125 ofile=libtool
8126 can_build_shared=yes
8128 # All known linkers require a `.a' archive for static linking (except MSVC,
8129 # which needs '.lib').
8130 libext=a
8132 with_gnu_ld="$lt_cv_prog_gnu_ld"
8134 old_CC="$CC"
8135 old_CFLAGS="$CFLAGS"
8137 # Set sane defaults for various variables
8138 test -z "$CC" && CC=cc
8139 test -z "$LTCC" && LTCC=$CC
8140 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8141 test -z "$LD" && LD=ld
8142 test -z "$ac_objext" && ac_objext=o
8144 for cc_temp in $compiler""; do
8145 case $cc_temp in
8146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8148 \-*) ;;
8149 *) break;;
8150 esac
8151 done
8152 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8155 # Only perform the check for file, if the check method requires it
8156 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8157 case $deplibs_check_method in
8158 file_magic*)
8159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8161 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8162 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 case $MAGIC_CMD in
8166 [\\/*] | ?:[\\/]*)
8167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8170 lt_save_MAGIC_CMD="$MAGIC_CMD"
8171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173 for ac_dir in $ac_dummy; do
8174 IFS="$lt_save_ifs"
8175 test -z "$ac_dir" && ac_dir=.
8176 if test -f $ac_dir/${ac_tool_prefix}file; then
8177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8178 if test -n "$file_magic_test_file"; then
8179 case $deplibs_check_method in
8180 "file_magic "*)
8181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184 $EGREP "$file_magic_regex" > /dev/null; then
8186 else
8187 cat <<_LT_EOF 1>&2
8189 *** Warning: the command libtool uses to detect shared libraries,
8190 *** $file_magic_cmd, produces output that libtool cannot recognize.
8191 *** The result is that libtool may fail to recognize shared libraries
8192 *** as such. This will affect the creation of libtool libraries that
8193 *** depend on shared libraries, but programs linked with such libtool
8194 *** libraries will work regardless of this problem. Nevertheless, you
8195 *** may want to report the problem to your system manager and/or to
8196 *** bug-libtool@gnu.org
8198 _LT_EOF
8199 fi ;;
8200 esac
8202 break
8204 done
8205 IFS="$lt_save_ifs"
8206 MAGIC_CMD="$lt_save_MAGIC_CMD"
8208 esac
8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212 if test -n "$MAGIC_CMD"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8214 $as_echo "$MAGIC_CMD" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8224 if test -z "$lt_cv_path_MAGIC_CMD"; then
8225 if test -n "$ac_tool_prefix"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8227 $as_echo_n "checking for file... " >&6; }
8228 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 case $MAGIC_CMD in
8232 [\\/*] | ?:[\\/]*)
8233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8236 lt_save_MAGIC_CMD="$MAGIC_CMD"
8237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8239 for ac_dir in $ac_dummy; do
8240 IFS="$lt_save_ifs"
8241 test -z "$ac_dir" && ac_dir=.
8242 if test -f $ac_dir/file; then
8243 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8244 if test -n "$file_magic_test_file"; then
8245 case $deplibs_check_method in
8246 "file_magic "*)
8247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8250 $EGREP "$file_magic_regex" > /dev/null; then
8252 else
8253 cat <<_LT_EOF 1>&2
8255 *** Warning: the command libtool uses to detect shared libraries,
8256 *** $file_magic_cmd, produces output that libtool cannot recognize.
8257 *** The result is that libtool may fail to recognize shared libraries
8258 *** as such. This will affect the creation of libtool libraries that
8259 *** depend on shared libraries, but programs linked with such libtool
8260 *** libraries will work regardless of this problem. Nevertheless, you
8261 *** may want to report the problem to your system manager and/or to
8262 *** bug-libtool@gnu.org
8264 _LT_EOF
8265 fi ;;
8266 esac
8268 break
8270 done
8271 IFS="$lt_save_ifs"
8272 MAGIC_CMD="$lt_save_MAGIC_CMD"
8274 esac
8277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8278 if test -n "$MAGIC_CMD"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8280 $as_echo "$MAGIC_CMD" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8287 else
8288 MAGIC_CMD=:
8294 esac
8296 # Use C for the default configuration in the libtool script
8298 lt_save_CC="$CC"
8299 ac_ext=c
8300 ac_cpp='$CPP $CPPFLAGS'
8301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306 # Source file extension for C test sources.
8307 ac_ext=c
8309 # Object file extension for compiled C test sources.
8310 objext=o
8311 objext=$objext
8313 # Code to be used in simple compile tests
8314 lt_simple_compile_test_code="int some_variable = 0;"
8316 # Code to be used in simple link tests
8317 lt_simple_link_test_code='int main(){return(0);}'
8325 # If no C compiler was specified, use CC.
8326 LTCC=${LTCC-"$CC"}
8328 # If no C compiler flags were specified, use CFLAGS.
8329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8331 # Allow CC to be a program name with arguments.
8332 compiler=$CC
8334 # Save the default compiler, since it gets overwritten when the other
8335 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8336 compiler_DEFAULT=$CC
8338 # save warnings/boilerplate of simple test code
8339 ac_outfile=conftest.$ac_objext
8340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8342 _lt_compiler_boilerplate=`cat conftest.err`
8343 $RM conftest*
8345 ac_outfile=conftest.$ac_objext
8346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8348 _lt_linker_boilerplate=`cat conftest.err`
8349 $RM -r conftest*
8352 ## CAVEAT EMPTOR:
8353 ## There is no encapsulation within the following macros, do not change
8354 ## the running order or otherwise move them around unless you know exactly
8355 ## what you are doing...
8356 if test -n "$compiler"; then
8358 lt_prog_compiler_no_builtin_flag=
8360 if test "$GCC" = yes; then
8361 case $cc_basename in
8362 nvcc*)
8363 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8366 esac
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8369 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8370 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 lt_cv_prog_compiler_rtti_exceptions=no
8374 ac_outfile=conftest.$ac_objext
8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376 lt_compiler_flag="-fno-rtti -fno-exceptions"
8377 # Insert the option either (1) after the last *FLAGS variable, or
8378 # (2) before a word containing "conftest.", or (3) at the end.
8379 # Note that $ac_compile itself does not contain backslashes and begins
8380 # with a dollar sign (not a hyphen), so the echo should work correctly.
8381 # The option is referenced via a variable to avoid confusing sed.
8382 lt_compile=`echo "$ac_compile" | $SED \
8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385 -e 's:$: $lt_compiler_flag:'`
8386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8387 (eval "$lt_compile" 2>conftest.err)
8388 ac_status=$?
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 if (exit $ac_status) && test -s "$ac_outfile"; then
8392 # The compiler can only warn and ignore the option if not recognized
8393 # So say no if there are warnings other than the usual output.
8394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8397 lt_cv_prog_compiler_rtti_exceptions=yes
8400 $RM conftest*
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8404 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8406 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8408 else
8419 lt_prog_compiler_wl=
8420 lt_prog_compiler_pic=
8421 lt_prog_compiler_static=
8424 if test "$GCC" = yes; then
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_static='-static'
8428 case $host_os in
8429 aix*)
8430 # All AIX code is PIC.
8431 if test "$host_cpu" = ia64; then
8432 # AIX 5 now supports IA64 processor
8433 lt_prog_compiler_static='-Bstatic'
8437 amigaos*)
8438 case $host_cpu in
8439 powerpc)
8440 # see comment about AmigaOS4 .so support
8441 lt_prog_compiler_pic='-fPIC'
8443 m68k)
8444 # FIXME: we need at least 68020 code to build shared libraries, but
8445 # adding the `-m68020' flag to GCC prevents building anything better,
8446 # like `-m68040'.
8447 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8449 esac
8452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8453 # PIC is the default for these OSes.
8456 mingw* | cygwin* | pw32* | os2* | cegcc*)
8457 # This hack is so that the source file can tell whether it is being
8458 # built for inclusion in a dll (and should export symbols for example).
8459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8460 # (--disable-auto-import) libraries
8461 lt_prog_compiler_pic='-DDLL_EXPORT'
8464 darwin* | rhapsody*)
8465 # PIC is the default on this platform
8466 # Common symbols not allowed in MH_DYLIB files
8467 lt_prog_compiler_pic='-fno-common'
8470 haiku*)
8471 # PIC is the default for Haiku.
8472 # The "-static" flag exists, but is broken.
8473 lt_prog_compiler_static=
8476 hpux*)
8477 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8478 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8479 # sets the default TLS model and affects inlining.
8480 case $host_cpu in
8481 hppa*64*)
8482 # +Z the default
8485 lt_prog_compiler_pic='-fPIC'
8487 esac
8490 interix[3-9]*)
8491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8492 # Instead, we relocate shared libraries at runtime.
8495 msdosdjgpp*)
8496 # Just because we use GCC doesn't mean we suddenly get shared libraries
8497 # on systems that don't support them.
8498 lt_prog_compiler_can_build_shared=no
8499 enable_shared=no
8502 *nto* | *qnx*)
8503 # QNX uses GNU C++, but need to define -shared option too, otherwise
8504 # it will coredump.
8505 lt_prog_compiler_pic='-fPIC -shared'
8508 sysv4*MP*)
8509 if test -d /usr/nec; then
8510 lt_prog_compiler_pic=-Kconform_pic
8515 lt_prog_compiler_pic='-fPIC'
8517 esac
8519 case $cc_basename in
8520 nvcc*) # Cuda Compiler Driver 2.2
8521 lt_prog_compiler_wl='-Xlinker '
8522 if test -n "$lt_prog_compiler_pic"; then
8523 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8526 esac
8527 else
8528 # PORTME Check for flag to pass linker flags through the system compiler.
8529 case $host_os in
8530 aix*)
8531 lt_prog_compiler_wl='-Wl,'
8532 if test "$host_cpu" = ia64; then
8533 # AIX 5 now supports IA64 processor
8534 lt_prog_compiler_static='-Bstatic'
8535 else
8536 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8540 mingw* | cygwin* | pw32* | os2* | cegcc*)
8541 # This hack is so that the source file can tell whether it is being
8542 # built for inclusion in a dll (and should export symbols for example).
8543 lt_prog_compiler_pic='-DDLL_EXPORT'
8546 hpux9* | hpux10* | hpux11*)
8547 lt_prog_compiler_wl='-Wl,'
8548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8549 # not for PA HP-UX.
8550 case $host_cpu in
8551 hppa*64*|ia64*)
8552 # +Z the default
8555 lt_prog_compiler_pic='+Z'
8557 esac
8558 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8559 lt_prog_compiler_static='${wl}-a ${wl}archive'
8562 irix5* | irix6* | nonstopux*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # PIC (with -KPIC) is the default.
8565 lt_prog_compiler_static='-non_shared'
8568 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8569 case $cc_basename in
8570 # old Intel for x86_64 which still supported -KPIC.
8571 ecc*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-static'
8576 # icc used to be incompatible with GCC.
8577 # ICC 10 doesn't accept -KPIC any more.
8578 icc* | ifort*)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-fPIC'
8581 lt_prog_compiler_static='-static'
8583 # Lahey Fortran 8.1.
8584 lf95*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='--shared'
8587 lt_prog_compiler_static='--static'
8589 nagfor*)
8590 # NAG Fortran compiler
8591 lt_prog_compiler_wl='-Wl,-Wl,,'
8592 lt_prog_compiler_pic='-PIC'
8593 lt_prog_compiler_static='-Bstatic'
8595 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8596 # Portland Group compilers (*not* the Pentium gcc compiler,
8597 # which looks to be a dead project)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-fpic'
8600 lt_prog_compiler_static='-Bstatic'
8602 ccc*)
8603 lt_prog_compiler_wl='-Wl,'
8604 # All Alpha code is PIC.
8605 lt_prog_compiler_static='-non_shared'
8607 xl* | bgxl* | bgf* | mpixl*)
8608 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-qpic'
8611 lt_prog_compiler_static='-qstaticlink'
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8616 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 lt_prog_compiler_wl=''
8621 *Sun\ F* | *Sun*Fortran*)
8622 lt_prog_compiler_pic='-KPIC'
8623 lt_prog_compiler_static='-Bstatic'
8624 lt_prog_compiler_wl='-Qoption ld '
8626 *Sun\ C*)
8627 # Sun C 5.9
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-Bstatic'
8630 lt_prog_compiler_wl='-Wl,'
8632 *Intel*\ [CF]*Compiler*)
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-fPIC'
8635 lt_prog_compiler_static='-static'
8637 *Portland\ Group*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-fpic'
8640 lt_prog_compiler_static='-Bstatic'
8642 esac
8644 esac
8647 newsos6)
8648 lt_prog_compiler_pic='-KPIC'
8649 lt_prog_compiler_static='-Bstatic'
8652 *nto* | *qnx*)
8653 # QNX uses GNU C++, but need to define -shared option too, otherwise
8654 # it will coredump.
8655 lt_prog_compiler_pic='-fPIC -shared'
8658 osf3* | osf4* | osf5*)
8659 lt_prog_compiler_wl='-Wl,'
8660 # All OSF/1 code is PIC.
8661 lt_prog_compiler_static='-non_shared'
8664 rdos*)
8665 lt_prog_compiler_static='-non_shared'
8668 solaris*)
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 case $cc_basename in
8672 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8673 lt_prog_compiler_wl='-Qoption ld ';;
8675 lt_prog_compiler_wl='-Wl,';;
8676 esac
8679 sunos4*)
8680 lt_prog_compiler_wl='-Qoption ld '
8681 lt_prog_compiler_pic='-PIC'
8682 lt_prog_compiler_static='-Bstatic'
8685 sysv4 | sysv4.2uw2* | sysv4.3*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8691 sysv4*MP*)
8692 if test -d /usr/nec ;then
8693 lt_prog_compiler_pic='-Kconform_pic'
8694 lt_prog_compiler_static='-Bstatic'
8698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8704 unicos*)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_can_build_shared=no
8709 uts4*)
8710 lt_prog_compiler_pic='-pic'
8711 lt_prog_compiler_static='-Bstatic'
8715 lt_prog_compiler_can_build_shared=no
8717 esac
8720 case $host_os in
8721 # For platforms which do not support PIC, -DPIC is meaningless:
8722 *djgpp*)
8723 lt_prog_compiler_pic=
8726 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8728 esac
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8731 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8732 if ${lt_cv_prog_compiler_pic+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8738 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8739 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8742 # Check to make sure the PIC flag actually works.
8744 if test -n "$lt_prog_compiler_pic"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8747 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 lt_cv_prog_compiler_pic_works=no
8751 ac_outfile=conftest.$ac_objext
8752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8754 # Insert the option either (1) after the last *FLAGS variable, or
8755 # (2) before a word containing "conftest.", or (3) at the end.
8756 # Note that $ac_compile itself does not contain backslashes and begins
8757 # with a dollar sign (not a hyphen), so the echo should work correctly.
8758 # The option is referenced via a variable to avoid confusing sed.
8759 lt_compile=`echo "$ac_compile" | $SED \
8760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8762 -e 's:$: $lt_compiler_flag:'`
8763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8764 (eval "$lt_compile" 2>conftest.err)
8765 ac_status=$?
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 if (exit $ac_status) && test -s "$ac_outfile"; then
8769 # The compiler can only warn and ignore the option if not recognized
8770 # So say no if there are warnings other than the usual output.
8771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8774 lt_cv_prog_compiler_pic_works=yes
8777 $RM conftest*
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8781 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8783 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8784 case $lt_prog_compiler_pic in
8785 "" | " "*) ;;
8786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8787 esac
8788 else
8789 lt_prog_compiler_pic=
8790 lt_prog_compiler_can_build_shared=no
8806 # Check to make sure the static flag actually works.
8808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8810 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8811 if ${lt_cv_prog_compiler_static_works+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 lt_cv_prog_compiler_static_works=no
8815 save_LDFLAGS="$LDFLAGS"
8816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8819 # The linker can only warn and ignore the option if not recognized
8820 # So say no if there are warnings
8821 if test -s conftest.err; then
8822 # Append any errors to the config.log.
8823 cat conftest.err 1>&5
8824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8826 if diff conftest.exp conftest.er2 >/dev/null; then
8827 lt_cv_prog_compiler_static_works=yes
8829 else
8830 lt_cv_prog_compiler_static_works=yes
8833 $RM -r conftest*
8834 LDFLAGS="$save_LDFLAGS"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8838 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8840 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8842 else
8843 lt_prog_compiler_static=
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8854 if ${lt_cv_prog_compiler_c_o+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 lt_cv_prog_compiler_c_o=no
8858 $RM -r conftest 2>/dev/null
8859 mkdir conftest
8860 cd conftest
8861 mkdir out
8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8864 lt_compiler_flag="-o out/conftest2.$ac_objext"
8865 # Insert the option either (1) after the last *FLAGS variable, or
8866 # (2) before a word containing "conftest.", or (3) at the end.
8867 # Note that $ac_compile itself does not contain backslashes and begins
8868 # with a dollar sign (not a hyphen), so the echo should work correctly.
8869 lt_compile=`echo "$ac_compile" | $SED \
8870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872 -e 's:$: $lt_compiler_flag:'`
8873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8874 (eval "$lt_compile" 2>out/conftest.err)
8875 ac_status=$?
8876 cat out/conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8879 then
8880 # The compiler can only warn and ignore the option if not recognized
8881 # So say no if there are warnings
8882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885 lt_cv_prog_compiler_c_o=yes
8888 chmod u+w . 2>&5
8889 $RM conftest*
8890 # SGI C++ compiler will create directory out/ii_files/ for
8891 # template instantiation
8892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8893 $RM out/* && rmdir out
8894 cd ..
8895 $RM -r conftest
8896 $RM conftest*
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909 if ${lt_cv_prog_compiler_c_o+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 lt_cv_prog_compiler_c_o=no
8913 $RM -r conftest 2>/dev/null
8914 mkdir conftest
8915 cd conftest
8916 mkdir out
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="-o out/conftest2.$ac_objext"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 lt_compile=`echo "$ac_compile" | $SED \
8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927 -e 's:$: $lt_compiler_flag:'`
8928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8929 (eval "$lt_compile" 2>out/conftest.err)
8930 ac_status=$?
8931 cat out/conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8934 then
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings
8937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_c_o=yes
8943 chmod u+w . 2>&5
8944 $RM conftest*
8945 # SGI C++ compiler will create directory out/ii_files/ for
8946 # template instantiation
8947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948 $RM out/* && rmdir out
8949 cd ..
8950 $RM -r conftest
8951 $RM conftest*
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8960 hard_links="nottested"
8961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8962 # do not overwrite the value of need_locks provided by the user
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8964 $as_echo_n "checking if we can lock with hard links... " >&6; }
8965 hard_links=yes
8966 $RM conftest*
8967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8968 touch conftest.a
8969 ln conftest.a conftest.b 2>&5 || hard_links=no
8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8972 $as_echo "$hard_links" >&6; }
8973 if test "$hard_links" = no; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8976 need_locks=warn
8978 else
8979 need_locks=no
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8990 runpath_var=
8991 allow_undefined_flag=
8992 always_export_symbols=no
8993 archive_cmds=
8994 archive_expsym_cmds=
8995 compiler_needs_object=no
8996 enable_shared_with_static_runtimes=no
8997 export_dynamic_flag_spec=
8998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8999 hardcode_automatic=no
9000 hardcode_direct=no
9001 hardcode_direct_absolute=no
9002 hardcode_libdir_flag_spec=
9003 hardcode_libdir_separator=
9004 hardcode_minus_L=no
9005 hardcode_shlibpath_var=unsupported
9006 inherit_rpath=no
9007 link_all_deplibs=unknown
9008 module_cmds=
9009 module_expsym_cmds=
9010 old_archive_from_new_cmds=
9011 old_archive_from_expsyms_cmds=
9012 thread_safe_flag_spec=
9013 whole_archive_flag_spec=
9014 # include_expsyms should be a list of space-separated symbols to be *always*
9015 # included in the symbol list
9016 include_expsyms=
9017 # exclude_expsyms can be an extended regexp of symbols to exclude
9018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9020 # as well as any symbol that contains `d'.
9021 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9023 # platforms (ab)use it in PIC code, but their linkers get confused if
9024 # the symbol is explicitly referenced. Since portable code cannot
9025 # rely on this symbol name, it's probably fine to never include it in
9026 # preloaded symbol tables.
9027 # Exclude shared library initialization/finalization symbols.
9028 extract_expsyms_cmds=
9030 case $host_os in
9031 cygwin* | mingw* | pw32* | cegcc*)
9032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9033 # When not using gcc, we currently assume that we are using
9034 # Microsoft Visual C++.
9035 if test "$GCC" != yes; then
9036 with_gnu_ld=no
9039 interix*)
9040 # we just hope/assume this is gcc and not c89 (= MSVC++)
9041 with_gnu_ld=yes
9043 openbsd*)
9044 with_gnu_ld=no
9046 linux* | k*bsd*-gnu | gnu*)
9047 link_all_deplibs=no
9049 esac
9051 ld_shlibs=yes
9053 # On some targets, GNU ld is compatible enough with the native linker
9054 # that we're better off using the native interface for both.
9055 lt_use_gnu_ld_interface=no
9056 if test "$with_gnu_ld" = yes; then
9057 case $host_os in
9058 aix*)
9059 # The AIX port of GNU ld has always aspired to compatibility
9060 # with the native linker. However, as the warning in the GNU ld
9061 # block says, versions before 2.19.5* couldn't really create working
9062 # shared libraries, regardless of the interface used.
9063 case `$LD -v 2>&1` in
9064 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9065 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9066 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9068 lt_use_gnu_ld_interface=yes
9070 esac
9073 lt_use_gnu_ld_interface=yes
9075 esac
9078 if test "$lt_use_gnu_ld_interface" = yes; then
9079 # If archive_cmds runs LD, not CC, wlarc should be empty
9080 wlarc='${wl}'
9082 # Set some defaults for GNU ld with shared library support. These
9083 # are reset later if shared libraries are not supported. Putting them
9084 # here allows them to be overridden if necessary.
9085 runpath_var=LD_RUN_PATH
9086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9087 export_dynamic_flag_spec='${wl}--export-dynamic'
9088 # ancient GNU ld didn't support --whole-archive et. al.
9089 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9090 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9091 else
9092 whole_archive_flag_spec=
9094 supports_anon_versioning=no
9095 case `$LD -v 2>&1` in
9096 *GNU\ gold*) supports_anon_versioning=yes ;;
9097 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9098 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9099 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9100 *\ 2.11.*) ;; # other 2.11 versions
9101 *) supports_anon_versioning=yes ;;
9102 esac
9104 # See if GNU ld supports shared libraries.
9105 case $host_os in
9106 aix[3-9]*)
9107 # On AIX/PPC, the GNU linker is very broken
9108 if test "$host_cpu" != ia64; then
9109 ld_shlibs=no
9110 cat <<_LT_EOF 1>&2
9112 *** Warning: the GNU linker, at least up to release 2.19, is reported
9113 *** to be unable to reliably create shared libraries on AIX.
9114 *** Therefore, libtool is disabling shared libraries support. If you
9115 *** really care for shared libraries, you may want to install binutils
9116 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9117 *** You will then need to restart the configuration process.
9119 _LT_EOF
9123 amigaos*)
9124 case $host_cpu in
9125 powerpc)
9126 # see comment about AmigaOS4 .so support
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds=''
9130 m68k)
9131 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)'
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_minus_L=yes
9135 esac
9138 beos*)
9139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9140 allow_undefined_flag=unsupported
9141 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9142 # support --undefined. This deserves some investigation. FIXME
9143 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144 else
9145 ld_shlibs=no
9149 cygwin* | mingw* | pw32* | cegcc*)
9150 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9151 # as there is no search path for DLLs.
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 export_dynamic_flag_spec='${wl}--export-all-symbols'
9154 allow_undefined_flag=unsupported
9155 always_export_symbols=no
9156 enable_shared_with_static_runtimes=yes
9157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9158 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162 # If the export-symbols file already is a .def file (1st line
9163 # is EXPORTS), use it as is; otherwise, prepend...
9164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165 cp $export_symbols $output_objdir/$soname.def;
9166 else
9167 echo EXPORTS > $output_objdir/$soname.def;
9168 cat $export_symbols >> $output_objdir/$soname.def;
9170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9171 else
9172 ld_shlibs=no
9176 haiku*)
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 link_all_deplibs=yes
9181 interix[3-9]*)
9182 hardcode_direct=no
9183 hardcode_shlibpath_var=no
9184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9185 export_dynamic_flag_spec='${wl}-E'
9186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9187 # Instead, shared libraries are loaded at an image base (0x10000000 by
9188 # default) and relocated if they conflict, which is a slow very memory
9189 # consuming and fragmenting process. To avoid this, we pick a random,
9190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9193 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'
9196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9197 tmp_diet=no
9198 if test "$host_os" = linux-dietlibc; then
9199 case $cc_basename in
9200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9201 esac
9203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9204 && test "$tmp_diet" = no
9205 then
9206 tmp_addflag=' $pic_flag'
9207 tmp_sharedflag='-shared'
9208 case $cc_basename,$host_cpu in
9209 pgcc*) # Portland Group C compiler
9210 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9211 tmp_addflag=' $pic_flag'
9213 pgf77* | pgf90* | pgf95* | pgfortran*)
9214 # Portland Group f77 and f90 compilers
9215 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9216 tmp_addflag=' $pic_flag -Mnomain' ;;
9217 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9218 tmp_addflag=' -i_dynamic' ;;
9219 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9220 tmp_addflag=' -i_dynamic -nofor_main' ;;
9221 ifc* | ifort*) # Intel Fortran compiler
9222 tmp_addflag=' -nofor_main' ;;
9223 lf95*) # Lahey Fortran 8.1
9224 whole_archive_flag_spec=
9225 tmp_sharedflag='--shared' ;;
9226 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9227 tmp_sharedflag='-qmkshrobj'
9228 tmp_addflag= ;;
9229 nvcc*) # Cuda Compiler Driver 2.2
9230 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9231 compiler_needs_object=yes
9233 esac
9234 case `$CC -V 2>&1 | sed 5q` in
9235 *Sun\ C*) # Sun C 5.9
9236 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9237 compiler_needs_object=yes
9238 tmp_sharedflag='-G' ;;
9239 *Sun\ F*) # Sun Fortran 8.3
9240 tmp_sharedflag='-G' ;;
9241 esac
9242 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 if test "x$supports_anon_versioning" = xyes; then
9245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247 echo "local: *; };" >> $output_objdir/$libname.ver~
9248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9251 case $cc_basename in
9252 xlf* | bgf* | bgxlf* | mpixlf*)
9253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9257 if test "x$supports_anon_versioning" = xyes; then
9258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9260 echo "local: *; };" >> $output_objdir/$libname.ver~
9261 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9264 esac
9265 else
9266 ld_shlibs=no
9270 netbsd* | netbsdelf*-gnu)
9271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9273 wlarc=
9274 else
9275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9280 solaris*)
9281 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9282 ld_shlibs=no
9283 cat <<_LT_EOF 1>&2
9285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9286 *** create shared libraries on Solaris systems. Therefore, libtool
9287 *** is disabling shared libraries support. We urge you to upgrade GNU
9288 *** binutils to release 2.9.1 or newer. Another option is to modify
9289 *** your PATH or compiler configuration so that the native linker is
9290 *** used, and then restart.
9292 _LT_EOF
9293 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9296 else
9297 ld_shlibs=no
9301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9302 case `$LD -v 2>&1` in
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9304 ld_shlibs=no
9305 cat <<_LT_EOF 1>&2
9307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9308 *** reliably create shared libraries on SCO systems. Therefore, libtool
9309 *** is disabling shared libraries support. We urge you to upgrade GNU
9310 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9311 *** your PATH or compiler configuration so that the native linker is
9312 *** used, and then restart.
9314 _LT_EOF
9317 # For security reasons, it is highly recommended that you always
9318 # use absolute paths for naming shared libraries, and exclude the
9319 # DT_RUNPATH tag from executables and libraries. But doing so
9320 # requires that you compile everything twice, which is a pain.
9321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9329 esac
9332 sunos4*)
9333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9334 wlarc=
9335 hardcode_direct=yes
9336 hardcode_shlibpath_var=no
9340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9343 else
9344 ld_shlibs=no
9347 esac
9349 if test "$ld_shlibs" = no; then
9350 runpath_var=
9351 hardcode_libdir_flag_spec=
9352 export_dynamic_flag_spec=
9353 whole_archive_flag_spec=
9355 else
9356 # PORTME fill in a description of your system's linker (not GNU ld)
9357 case $host_os in
9358 aix3*)
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=yes
9361 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'
9362 # Note: this linker hardcodes the directories in LIBPATH if there
9363 # are no directories specified by -L.
9364 hardcode_minus_L=yes
9365 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9366 # Neither direct hardcoding nor static linking is supported with a
9367 # broken collect2.
9368 hardcode_direct=unsupported
9372 aix[4-9]*)
9373 if test "$host_cpu" = ia64; then
9374 # On IA64, the linker does run time linking by default, so we don't
9375 # have to do anything special.
9376 aix_use_runtimelinking=no
9377 exp_sym_flag='-Bexport'
9378 no_entry_flag=""
9379 else
9380 # If we're using GNU nm, then we don't want the "-C" option.
9381 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9382 # Also, AIX nm treats weak defined symbols like other global
9383 # defined symbols, whereas GNU nm marks them as "W".
9384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9385 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9386 else
9387 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'
9389 aix_use_runtimelinking=no
9391 # Test if we are trying to use run time linking or normal
9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393 # need to do runtime linking.
9394 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9395 for ld_flag in $LDFLAGS; do
9396 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9397 aix_use_runtimelinking=yes
9398 break
9400 done
9402 esac
9404 exp_sym_flag='-bexport'
9405 no_entry_flag='-bnoentry'
9408 # When large executables or shared objects are built, AIX ld can
9409 # have problems creating the table of contents. If linking a library
9410 # or program results in "error TOC overflow" add -mminimal-toc to
9411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9414 archive_cmds=''
9415 hardcode_direct=yes
9416 hardcode_direct_absolute=yes
9417 hardcode_libdir_separator=':'
9418 link_all_deplibs=yes
9419 file_list_spec='${wl}-f,'
9421 if test "$GCC" = yes; then
9422 case $host_os in aix4.[012]|aix4.[012].*)
9423 # We only want to do this on AIX 4.2 and lower, the check
9424 # below for broken collect2 doesn't work under 4.3+
9425 collect2name=`${CC} -print-prog-name=collect2`
9426 if test -f "$collect2name" &&
9427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9428 then
9429 # We have reworked collect2
9431 else
9432 # We have old collect2
9433 hardcode_direct=unsupported
9434 # It fails to find uninstalled libraries when the uninstalled
9435 # path is not listed in the libpath. Setting hardcode_minus_L
9436 # to unsupported forces relinking
9437 hardcode_minus_L=yes
9438 hardcode_libdir_flag_spec='-L$libdir'
9439 hardcode_libdir_separator=
9442 esac
9443 shared_flag='-shared'
9444 if test "$aix_use_runtimelinking" = yes; then
9445 shared_flag="$shared_flag "'${wl}-G'
9447 link_all_deplibs=no
9448 else
9449 # not using gcc
9450 if test "$host_cpu" = ia64; then
9451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9452 # chokes on -Wl,-G. The following line is correct:
9453 shared_flag='-G'
9454 else
9455 if test "$aix_use_runtimelinking" = yes; then
9456 shared_flag='${wl}-G'
9457 else
9458 shared_flag='${wl}-bM:SRE'
9463 export_dynamic_flag_spec='${wl}-bexpall'
9464 # It seems that -bexpall does not export symbols beginning with
9465 # underscore (_), so it is better to generate a list of symbols to export.
9466 always_export_symbols=yes
9467 if test "$aix_use_runtimelinking" = yes; then
9468 # Warning - without using the other runtime loading flags (-brtl),
9469 # -berok will link without error, but may produce a broken library.
9470 allow_undefined_flag='-berok'
9471 # Determine the default libpath from the value encoded in an
9472 # empty executable.
9473 if test "${lt_cv_aix_libpath+set}" = set; then
9474 aix_libpath=$lt_cv_aix_libpath
9475 else
9476 if ${lt_cv_aix_libpath_+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9483 main ()
9487 return 0;
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"; then :
9492 lt_aix_libpath_sed='
9493 /Import File Strings/,/^$/ {
9494 /^0/ {
9495 s/^0 *\([^ ]*\) *$/\1/
9499 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9500 # Check for a 64-bit object if we didn't find anything.
9501 if test -z "$lt_cv_aix_libpath_"; then
9502 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 if test -z "$lt_cv_aix_libpath_"; then
9508 lt_cv_aix_libpath_="/usr/lib:/lib"
9513 aix_libpath=$lt_cv_aix_libpath_
9516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9517 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9518 else
9519 if test "$host_cpu" = ia64; then
9520 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9521 allow_undefined_flag="-z nodefs"
9522 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"
9523 else
9524 # Determine the default libpath from the value encoded in an
9525 # empty executable.
9526 if test "${lt_cv_aix_libpath+set}" = set; then
9527 aix_libpath=$lt_cv_aix_libpath
9528 else
9529 if ${lt_cv_aix_libpath_+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9536 main ()
9540 return 0;
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"; then :
9545 lt_aix_libpath_sed='
9546 /Import File Strings/,/^$/ {
9547 /^0/ {
9548 s/^0 *\([^ ]*\) *$/\1/
9552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 # Check for a 64-bit object if we didn't find anything.
9554 if test -z "$lt_cv_aix_libpath_"; then
9555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558 rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 if test -z "$lt_cv_aix_libpath_"; then
9561 lt_cv_aix_libpath_="/usr/lib:/lib"
9566 aix_libpath=$lt_cv_aix_libpath_
9569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9570 # Warning - without using the other run time loading flags,
9571 # -berok will link without error, but may produce a broken library.
9572 no_undefined_flag=' ${wl}-bernotok'
9573 allow_undefined_flag=' ${wl}-berok'
9574 if test "$with_gnu_ld" = yes; then
9575 # We only use this code for GNU lds that support --whole-archive.
9576 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9577 else
9578 # Exported symbols can be pulled into shared objects from archives
9579 whole_archive_flag_spec='$convenience'
9581 archive_cmds_need_lc=yes
9582 # This is similar to how AIX traditionally builds its shared libraries.
9583 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'
9588 amigaos*)
9589 case $host_cpu in
9590 powerpc)
9591 # see comment about AmigaOS4 .so support
9592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9593 archive_expsym_cmds=''
9595 m68k)
9596 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)'
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 hardcode_minus_L=yes
9600 esac
9603 bsdi[45]*)
9604 export_dynamic_flag_spec=-rdynamic
9607 cygwin* | mingw* | pw32* | cegcc*)
9608 # When not using gcc, we currently assume that we are using
9609 # Microsoft Visual C++.
9610 # hardcode_libdir_flag_spec is actually meaningless, as there is
9611 # no search path for DLLs.
9612 case $cc_basename in
9613 cl*)
9614 # Native MSVC
9615 hardcode_libdir_flag_spec=' '
9616 allow_undefined_flag=unsupported
9617 always_export_symbols=yes
9618 file_list_spec='@'
9619 # Tell ltmain to make .lib files, not .a files.
9620 libext=lib
9621 # Tell ltmain to make .dll files, not .so files.
9622 shrext_cmds=".dll"
9623 # FIXME: Setting linknames here is a bad hack.
9624 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9625 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9626 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9627 else
9628 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9630 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9631 linknames='
9632 # The linker will not automatically build a static lib if we build a DLL.
9633 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9634 enable_shared_with_static_runtimes=yes
9635 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9637 # Don't use ranlib
9638 old_postinstall_cmds='chmod 644 $oldlib'
9639 postlink_cmds='lt_outputfile="@OUTPUT@"~
9640 lt_tool_outputfile="@TOOL_OUTPUT@"~
9641 case $lt_outputfile in
9642 *.exe|*.EXE) ;;
9644 lt_outputfile="$lt_outputfile.exe"
9645 lt_tool_outputfile="$lt_tool_outputfile.exe"
9647 esac~
9648 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9649 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9650 $RM "$lt_outputfile.manifest";
9654 # Assume MSVC wrapper
9655 hardcode_libdir_flag_spec=' '
9656 allow_undefined_flag=unsupported
9657 # Tell ltmain to make .lib files, not .a files.
9658 libext=lib
9659 # Tell ltmain to make .dll files, not .so files.
9660 shrext_cmds=".dll"
9661 # FIXME: Setting linknames here is a bad hack.
9662 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9663 # The linker will automatically build a .lib file if we build a DLL.
9664 old_archive_from_new_cmds='true'
9665 # FIXME: Should let the user specify the lib program.
9666 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9667 enable_shared_with_static_runtimes=yes
9669 esac
9672 darwin* | rhapsody*)
9675 archive_cmds_need_lc=no
9676 hardcode_direct=no
9677 hardcode_automatic=yes
9678 hardcode_shlibpath_var=unsupported
9679 if test "$lt_cv_ld_force_load" = "yes"; then
9680 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9682 else
9683 whole_archive_flag_spec=''
9685 link_all_deplibs=yes
9686 allow_undefined_flag="$_lt_dar_allow_undefined"
9687 case $cc_basename in
9688 ifort*) _lt_dar_can_shared=yes ;;
9689 *) _lt_dar_can_shared=$GCC ;;
9690 esac
9691 if test "$_lt_dar_can_shared" = "yes"; then
9692 output_verbose_link_cmd=func_echo_all
9693 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9694 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9695 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}"
9696 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}"
9698 else
9699 ld_shlibs=no
9704 dgux*)
9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_libdir_flag_spec='-L$libdir'
9707 hardcode_shlibpath_var=no
9710 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9711 # support. Future versions do this automatically, but an explicit c++rt0.o
9712 # does not break anything, and helps significantly (at the cost of a little
9713 # extra space).
9714 freebsd2.2*)
9715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9716 hardcode_libdir_flag_spec='-R$libdir'
9717 hardcode_direct=yes
9718 hardcode_shlibpath_var=no
9721 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9722 freebsd2.*)
9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_direct=yes
9725 hardcode_minus_L=yes
9726 hardcode_shlibpath_var=no
9729 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9730 freebsd* | dragonfly*)
9731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9732 hardcode_libdir_flag_spec='-R$libdir'
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9737 hpux9*)
9738 if test "$GCC" = yes; then
9739 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9740 else
9741 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'
9743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9744 hardcode_libdir_separator=:
9745 hardcode_direct=yes
9747 # hardcode_minus_L: Not really in the search PATH,
9748 # but as the default location of the library.
9749 hardcode_minus_L=yes
9750 export_dynamic_flag_spec='${wl}-E'
9753 hpux10*)
9754 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9755 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9756 else
9757 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9759 if test "$with_gnu_ld" = no; then
9760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_direct=yes
9763 hardcode_direct_absolute=yes
9764 export_dynamic_flag_spec='${wl}-E'
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9771 hpux11*)
9772 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9773 case $host_cpu in
9774 hppa*64*)
9775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 ia64*)
9778 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9783 esac
9784 else
9785 case $host_cpu in
9786 hppa*64*)
9787 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 ia64*)
9790 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9794 # Older versions of the 11.00 compiler do not understand -b yet
9795 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9797 $as_echo_n "checking if $CC understands -b... " >&6; }
9798 if ${lt_cv_prog_compiler__b+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 lt_cv_prog_compiler__b=no
9802 save_LDFLAGS="$LDFLAGS"
9803 LDFLAGS="$LDFLAGS -b"
9804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9806 # The linker can only warn and ignore the option if not recognized
9807 # So say no if there are warnings
9808 if test -s conftest.err; then
9809 # Append any errors to the config.log.
9810 cat conftest.err 1>&5
9811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9813 if diff conftest.exp conftest.er2 >/dev/null; then
9814 lt_cv_prog_compiler__b=yes
9816 else
9817 lt_cv_prog_compiler__b=yes
9820 $RM -r conftest*
9821 LDFLAGS="$save_LDFLAGS"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9825 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9827 if test x"$lt_cv_prog_compiler__b" = xyes; then
9828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829 else
9830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9834 esac
9836 if test "$with_gnu_ld" = no; then
9837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9838 hardcode_libdir_separator=:
9840 case $host_cpu in
9841 hppa*64*|ia64*)
9842 hardcode_direct=no
9843 hardcode_shlibpath_var=no
9846 hardcode_direct=yes
9847 hardcode_direct_absolute=yes
9848 export_dynamic_flag_spec='${wl}-E'
9850 # hardcode_minus_L: Not really in the search PATH,
9851 # but as the default location of the library.
9852 hardcode_minus_L=yes
9854 esac
9858 irix5* | irix6* | nonstopux*)
9859 if test "$GCC" = yes; then
9860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9861 # Try to use the -exported_symbol ld option, if it does not
9862 # work, assume that -exports_file does not work either and
9863 # implicitly export all symbols.
9864 # This should be the same for all languages, so no per-tag cache variable.
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9866 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9867 if ${lt_cv_irix_exported_symbol+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 save_LDFLAGS="$LDFLAGS"
9871 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 int foo (void) { return 0; }
9875 _ACEOF
9876 if ac_fn_c_try_link "$LINENO"; then :
9877 lt_cv_irix_exported_symbol=yes
9878 else
9879 lt_cv_irix_exported_symbol=no
9881 rm -f core conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883 LDFLAGS="$save_LDFLAGS"
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9886 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9887 if test "$lt_cv_irix_exported_symbol" = yes; then
9888 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9890 else
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9894 archive_cmds_need_lc='no'
9895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896 hardcode_libdir_separator=:
9897 inherit_rpath=yes
9898 link_all_deplibs=yes
9901 netbsd* | netbsdelf*-gnu)
9902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9904 else
9905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9907 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_direct=yes
9909 hardcode_shlibpath_var=no
9912 newsos6)
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct=yes
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916 hardcode_libdir_separator=:
9917 hardcode_shlibpath_var=no
9920 *nto* | *qnx*)
9923 openbsd*)
9924 if test -f /usr/libexec/ld.so; then
9925 hardcode_direct=yes
9926 hardcode_shlibpath_var=no
9927 hardcode_direct_absolute=yes
9928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9932 export_dynamic_flag_spec='${wl}-E'
9933 else
9934 case $host_os in
9935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec='-R$libdir'
9940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9943 esac
9945 else
9946 ld_shlibs=no
9950 os2*)
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_minus_L=yes
9953 allow_undefined_flag=unsupported
9954 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'
9955 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9958 osf3*)
9959 if test "$GCC" = yes; then
9960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9961 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9962 else
9963 allow_undefined_flag=' -expect_unresolved \*'
9964 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9966 archive_cmds_need_lc='no'
9967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 hardcode_libdir_separator=:
9971 osf4* | osf5*) # as osf3* with the addition of -msym flag
9972 if test "$GCC" = yes; then
9973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9974 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 else
9977 allow_undefined_flag=' -expect_unresolved \*'
9978 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9979 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~
9980 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9982 # Both c and cxx compiler support -rpath directly
9983 hardcode_libdir_flag_spec='-rpath $libdir'
9985 archive_cmds_need_lc='no'
9986 hardcode_libdir_separator=:
9989 solaris*)
9990 no_undefined_flag=' -z defs'
9991 if test "$GCC" = yes; then
9992 wlarc='${wl}'
9993 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9995 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996 else
9997 case `$CC -V 2>&1` in
9998 *"Compilers 5.0"*)
9999 wlarc=''
10000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10005 wlarc='${wl}'
10006 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10010 esac
10012 hardcode_libdir_flag_spec='-R$libdir'
10013 hardcode_shlibpath_var=no
10014 case $host_os in
10015 solaris2.[0-5] | solaris2.[0-5].*) ;;
10017 # The compiler driver will combine and reorder linker options,
10018 # but understands `-z linker_flag'. GCC discards it without `$wl',
10019 # but is careful enough not to reorder.
10020 # Supported since Solaris 2.6 (maybe 2.5.1?)
10021 if test "$GCC" = yes; then
10022 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10023 else
10024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10027 esac
10028 link_all_deplibs=yes
10031 sunos4*)
10032 if test "x$host_vendor" = xsequent; then
10033 # Use $CC to link under sequent, because it throws in some extra .o
10034 # files that make .init and .fini sections work.
10035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10036 else
10037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_libdir_flag_spec='-L$libdir'
10040 hardcode_direct=yes
10041 hardcode_minus_L=yes
10042 hardcode_shlibpath_var=no
10045 sysv4)
10046 case $host_vendor in
10047 sni)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=yes # is this really true???
10051 siemens)
10052 ## LD is ld it makes a PLAMLIB
10053 ## CC just makes a GrossModule.
10054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10055 reload_cmds='$CC -r -o $output$reload_objs'
10056 hardcode_direct=no
10058 motorola)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10062 esac
10063 runpath_var='LD_RUN_PATH'
10064 hardcode_shlibpath_var=no
10067 sysv4.3*)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_shlibpath_var=no
10070 export_dynamic_flag_spec='-Bexport'
10073 sysv4*MP*)
10074 if test -d /usr/nec; then
10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_shlibpath_var=no
10077 runpath_var=LD_RUN_PATH
10078 hardcode_runpath_var=yes
10079 ld_shlibs=yes
10083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10084 no_undefined_flag='${wl}-z,text'
10085 archive_cmds_need_lc=no
10086 hardcode_shlibpath_var=no
10087 runpath_var='LD_RUN_PATH'
10089 if test "$GCC" = yes; then
10090 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 else
10093 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 sysv5* | sco3.2v5* | sco5v6*)
10099 # Note: We can NOT use -z defs as we might desire, because we do not
10100 # link with -lc, and that would cause any symbols used from libc to
10101 # always be unresolved, which means just about no library would
10102 # ever link correctly. If we're not using GNU ld we use -z text
10103 # though, which does catch some bad symbols but isn't as heavy-handed
10104 # as -z defs.
10105 no_undefined_flag='${wl}-z,text'
10106 allow_undefined_flag='${wl}-z,nodefs'
10107 archive_cmds_need_lc=no
10108 hardcode_shlibpath_var=no
10109 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10110 hardcode_libdir_separator=':'
10111 link_all_deplibs=yes
10112 export_dynamic_flag_spec='${wl}-Bexport'
10113 runpath_var='LD_RUN_PATH'
10115 if test "$GCC" = yes; then
10116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 else
10119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 uts4*)
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_shlibpath_var=no
10131 ld_shlibs=no
10133 esac
10135 if test x$host_vendor = xsni; then
10136 case $host in
10137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10138 export_dynamic_flag_spec='${wl}-Blargedynsym'
10140 esac
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10145 $as_echo "$ld_shlibs" >&6; }
10146 test "$ld_shlibs" = no && can_build_shared=no
10148 with_gnu_ld=$with_gnu_ld
10165 # Do we need to explicitly link libc?
10167 case "x$archive_cmds_need_lc" in
10168 x|xyes)
10169 # Assume -lc should be added
10170 archive_cmds_need_lc=yes
10172 if test "$enable_shared" = yes && test "$GCC" = yes; then
10173 case $archive_cmds in
10174 *'~'*)
10175 # FIXME: we may have to deal with multi-command sequences.
10177 '$CC '*)
10178 # Test whether the compiler implicitly links with -lc since on some
10179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10180 # to ld, don't add -lc before -lgcc.
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10183 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 $RM conftest*
10187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10190 (eval $ac_compile) 2>&5
10191 ac_status=$?
10192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10193 test $ac_status = 0; } 2>conftest.err; then
10194 soname=conftest
10195 lib=conftest
10196 libobjs=conftest.$ac_objext
10197 deplibs=
10198 wl=$lt_prog_compiler_wl
10199 pic_flag=$lt_prog_compiler_pic
10200 compiler_flags=-v
10201 linker_flags=-v
10202 verstring=
10203 output_objdir=.
10204 libname=conftest
10205 lt_save_allow_undefined_flag=$allow_undefined_flag
10206 allow_undefined_flag=
10207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10209 ac_status=$?
10210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10211 test $ac_status = 0; }
10212 then
10213 lt_cv_archive_cmds_need_lc=no
10214 else
10215 lt_cv_archive_cmds_need_lc=yes
10217 allow_undefined_flag=$lt_save_allow_undefined_flag
10218 else
10219 cat conftest.err 1>&5
10221 $RM conftest*
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10225 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10228 esac
10231 esac
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10385 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10387 if test "$GCC" = yes; then
10388 case $host_os in
10389 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10390 *) lt_awk_arg="/^libraries:/" ;;
10391 esac
10392 case $host_os in
10393 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10394 *) lt_sed_strip_eq="s,=/,/,g" ;;
10395 esac
10396 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10397 case $lt_search_path_spec in
10398 *\;*)
10399 # if the path contains ";" then we assume it to be the separator
10400 # otherwise default to the standard path separator (i.e. ":") - it is
10401 # assumed that no part of a normal pathname contains ";" but that should
10402 # okay in the real world where ";" in dirpaths is itself problematic.
10403 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10408 esac
10409 # Ok, now we have the path, separated by spaces, we can step through it
10410 # and add multilib dir if necessary.
10411 lt_tmp_lt_search_path_spec=
10412 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10413 for lt_sys_path in $lt_search_path_spec; do
10414 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10415 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10416 else
10417 test -d "$lt_sys_path" && \
10418 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10420 done
10421 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10422 BEGIN {RS=" "; FS="/|\n";} {
10423 lt_foo="";
10424 lt_count=0;
10425 for (lt_i = NF; lt_i > 0; lt_i--) {
10426 if ($lt_i != "" && $lt_i != ".") {
10427 if ($lt_i == "..") {
10428 lt_count++;
10429 } else {
10430 if (lt_count == 0) {
10431 lt_foo="/" $lt_i lt_foo;
10432 } else {
10433 lt_count--;
10438 if (lt_foo != "") { lt_freq[lt_foo]++; }
10439 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10441 # AWK program above erroneously prepends '/' to C:/dos/paths
10442 # for these hosts.
10443 case $host_os in
10444 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10445 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10446 esac
10447 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10448 else
10449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10451 library_names_spec=
10452 libname_spec='lib$name'
10453 soname_spec=
10454 shrext_cmds=".so"
10455 postinstall_cmds=
10456 postuninstall_cmds=
10457 finish_cmds=
10458 finish_eval=
10459 shlibpath_var=
10460 shlibpath_overrides_runpath=unknown
10461 version_type=none
10462 dynamic_linker="$host_os ld.so"
10463 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10464 need_lib_prefix=unknown
10465 hardcode_into_libs=no
10467 # when you set need_version to no, make sure it does not cause -set_version
10468 # flags to be left without arguments
10469 need_version=unknown
10471 case $host_os in
10472 aix3*)
10473 version_type=linux # correct to gnu/linux during the next big refactor
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10475 shlibpath_var=LIBPATH
10477 # AIX 3 has no versioning support, so we append a major version to the name.
10478 soname_spec='${libname}${release}${shared_ext}$major'
10481 aix[4-9]*)
10482 version_type=linux # correct to gnu/linux during the next big refactor
10483 need_lib_prefix=no
10484 need_version=no
10485 hardcode_into_libs=yes
10486 if test "$host_cpu" = ia64; then
10487 # AIX 5 supports IA64
10488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 else
10491 # With GCC up to 2.95.x, collect2 would create an import file
10492 # for dependence libraries. The import file would start with
10493 # the line `#! .'. This would cause the generated library to
10494 # depend on `.', always an invalid library. This was fixed in
10495 # development snapshots of GCC prior to 3.0.
10496 case $host_os in
10497 aix4 | aix4.[01] | aix4.[01].*)
10498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10499 echo ' yes '
10500 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10502 else
10503 can_build_shared=no
10506 esac
10507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10508 # soname into executable. Probably we can add versioning support to
10509 # collect2, so additional links can be useful in future.
10510 if test "$aix_use_runtimelinking" = yes; then
10511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10512 # instead of lib<name>.a to let people know that these are not
10513 # typical AIX shared libraries.
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 else
10516 # We preserve .a as extension for shared libraries through AIX4.2
10517 # and later when we are not doing run time linking.
10518 library_names_spec='${libname}${release}.a $libname.a'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LIBPATH
10525 amigaos*)
10526 case $host_cpu in
10527 powerpc)
10528 # Since July 2007 AmigaOS4 officially supports .so libraries.
10529 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 m68k)
10533 library_names_spec='$libname.ixlibrary $libname.a'
10534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10535 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10537 esac
10540 beos*)
10541 library_names_spec='${libname}${shared_ext}'
10542 dynamic_linker="$host_os ld.so"
10543 shlibpath_var=LIBRARY_PATH
10546 bsdi[45]*)
10547 version_type=linux # correct to gnu/linux during the next big refactor
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10554 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10555 # the default ld.so.conf also contains /usr/contrib/lib and
10556 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10557 # libtool to hard-code these into programs
10560 cygwin* | mingw* | pw32* | cegcc*)
10561 version_type=windows
10562 shrext_cmds=".dll"
10563 need_version=no
10564 need_lib_prefix=no
10566 case $GCC,$cc_basename in
10567 yes,*)
10568 # gcc
10569 library_names_spec='$libname.dll.a'
10570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10571 postinstall_cmds='base_file=`basename \${file}`~
10572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10573 dldir=$destdir/`dirname \$dlpath`~
10574 test -d \$dldir || mkdir -p \$dldir~
10575 $install_prog $dir/$dlname \$dldir/$dlname~
10576 chmod a+x \$dldir/$dlname~
10577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10581 dlpath=$dir/\$dldll~
10582 $RM \$dlpath'
10583 shlibpath_overrides_runpath=yes
10585 case $host_os in
10586 cygwin*)
10587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10588 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10592 mingw* | cegcc*)
10593 # MinGW DLLs use traditional 'lib' prefix
10594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 pw32*)
10597 # pw32 DLLs use 'pw' prefix rather than 'lib'
10598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 esac
10601 dynamic_linker='Win32 ld.exe'
10604 *,cl*)
10605 # Native MSVC
10606 libname_spec='$name'
10607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10608 library_names_spec='${libname}.dll.lib'
10610 case $build_os in
10611 mingw*)
10612 sys_lib_search_path_spec=
10613 lt_save_ifs=$IFS
10614 IFS=';'
10615 for lt_path in $LIB
10617 IFS=$lt_save_ifs
10618 # Let DOS variable expansion print the short 8.3 style file name.
10619 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10620 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10621 done
10622 IFS=$lt_save_ifs
10623 # Convert to MSYS style.
10624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10626 cygwin*)
10627 # Convert to unix form, then to dos form, then back to unix form
10628 # but this time dos style (no spaces!) so that the unix form looks
10629 # like /cygdrive/c/PROGRA~1:/cygdr...
10630 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10631 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10632 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10635 sys_lib_search_path_spec="$LIB"
10636 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10637 # It is most probably a Windows format PATH.
10638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10639 else
10640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10642 # FIXME: find the short name or the path components, as spaces are
10643 # common. (e.g. "Program Files" -> "PROGRA~1")
10645 esac
10647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10648 postinstall_cmds='base_file=`basename \${file}`~
10649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10650 dldir=$destdir/`dirname \$dlpath`~
10651 test -d \$dldir || mkdir -p \$dldir~
10652 $install_prog $dir/$dlname \$dldir/$dlname'
10653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10654 dlpath=$dir/\$dldll~
10655 $RM \$dlpath'
10656 shlibpath_overrides_runpath=yes
10657 dynamic_linker='Win32 link.exe'
10661 # Assume MSVC wrapper
10662 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10663 dynamic_linker='Win32 ld.exe'
10665 esac
10666 # FIXME: first we should search . and the directory the executable is in
10667 shlibpath_var=PATH
10670 darwin* | rhapsody*)
10671 dynamic_linker="$host_os dyld"
10672 version_type=darwin
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10676 soname_spec='${libname}${release}${major}$shared_ext'
10677 shlibpath_overrides_runpath=yes
10678 shlibpath_var=DYLD_LIBRARY_PATH
10679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10685 dgux*)
10686 version_type=linux # correct to gnu/linux during the next big refactor
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10694 freebsd* | dragonfly*)
10695 # DragonFly does not have aout. When/if they implement a new
10696 # versioning mechanism, adjust this.
10697 if test -x /usr/bin/objformat; then
10698 objformat=`/usr/bin/objformat`
10699 else
10700 case $host_os in
10701 freebsd[23].*) objformat=aout ;;
10702 *) objformat=elf ;;
10703 esac
10705 version_type=freebsd-$objformat
10706 case $version_type in
10707 freebsd-elf*)
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10709 need_version=no
10710 need_lib_prefix=no
10712 freebsd-*)
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10714 need_version=yes
10716 esac
10717 shlibpath_var=LD_LIBRARY_PATH
10718 case $host_os in
10719 freebsd2.*)
10720 shlibpath_overrides_runpath=yes
10722 freebsd3.[01]* | freebsdelf3.[01]*)
10723 shlibpath_overrides_runpath=yes
10724 hardcode_into_libs=yes
10726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10728 shlibpath_overrides_runpath=no
10729 hardcode_into_libs=yes
10731 *) # from 4.6 on, and DragonFly
10732 shlibpath_overrides_runpath=yes
10733 hardcode_into_libs=yes
10735 esac
10738 haiku*)
10739 version_type=linux # correct to gnu/linux during the next big refactor
10740 need_lib_prefix=no
10741 need_version=no
10742 dynamic_linker="$host_os runtime_loader"
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LIBRARY_PATH
10746 shlibpath_overrides_runpath=yes
10747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10748 hardcode_into_libs=yes
10751 hpux9* | hpux10* | hpux11*)
10752 # Give a soname corresponding to the major version so that dld.sl refuses to
10753 # link against other versions.
10754 version_type=sunos
10755 need_lib_prefix=no
10756 need_version=no
10757 case $host_cpu in
10758 ia64*)
10759 shrext_cmds='.so'
10760 hardcode_into_libs=yes
10761 dynamic_linker="$host_os dld.so"
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 if test "X$HPUX_IA64_MODE" = X32; then
10767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10768 else
10769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10773 hppa*64*)
10774 shrext_cmds='.sl'
10775 hardcode_into_libs=yes
10776 dynamic_linker="$host_os dld.sl"
10777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785 shrext_cmds='.sl'
10786 dynamic_linker="$host_os dld.sl"
10787 shlibpath_var=SHLIB_PATH
10788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10792 esac
10793 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10794 postinstall_cmds='chmod 555 $lib'
10795 # or fails outright, so override atomically:
10796 install_override_mode=555
10799 interix[3-9]*)
10800 version_type=linux # correct to gnu/linux during the next big refactor
10801 need_lib_prefix=no
10802 need_version=no
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=no
10808 hardcode_into_libs=yes
10811 irix5* | irix6* | nonstopux*)
10812 case $host_os in
10813 nonstopux*) version_type=nonstopux ;;
10815 if test "$lt_cv_prog_gnu_ld" = yes; then
10816 version_type=linux # correct to gnu/linux during the next big refactor
10817 else
10818 version_type=irix
10819 fi ;;
10820 esac
10821 need_lib_prefix=no
10822 need_version=no
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10825 case $host_os in
10826 irix5* | nonstopux*)
10827 libsuff= shlibsuff=
10830 case $LD in # libtool.m4 will add one of these switches to LD
10831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10832 libsuff= shlibsuff= libmagic=32-bit;;
10833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10834 libsuff=32 shlibsuff=N32 libmagic=N32;;
10835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10837 *) libsuff= shlibsuff= libmagic=never-match;;
10838 esac
10840 esac
10841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10842 shlibpath_overrides_runpath=no
10843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10845 hardcode_into_libs=yes
10848 # No shared lib support for Linux oldld, aout, or coff.
10849 linux*oldld* | linux*aout* | linux*coff*)
10850 dynamic_linker=no
10853 # This must be glibc/ELF.
10854 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10855 version_type=linux # correct to gnu/linux during the next big refactor
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=no
10864 # Some binutils ld are patched to set DT_RUNPATH
10865 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 lt_cv_shlibpath_overrides_runpath=no
10869 save_LDFLAGS=$LDFLAGS
10870 save_libdir=$libdir
10871 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10872 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10877 main ()
10881 return 0;
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10886 lt_cv_shlibpath_overrides_runpath=yes
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS
10892 libdir=$save_libdir
10896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10898 # This implies no fast_install, which is unacceptable.
10899 # Some rework will be needed to allow for fast_install
10900 # before this can be enabled.
10901 hardcode_into_libs=yes
10903 # Append ld.so.conf contents to the search path
10904 if test -f /etc/ld.so.conf; then
10905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10909 # We used to test for /lib/ld.so.1 and disable shared libraries on
10910 # powerpc, because MkLinux only supported shared libraries with the
10911 # GNU dynamic linker. Since this was broken with cross compilers,
10912 # most powerpc-linux boxes support dynamic linking these days and
10913 # people can always --disable-shared, the test was removed, and we
10914 # assume the GNU/Linux dynamic linker is in use.
10915 dynamic_linker='GNU/Linux ld.so'
10918 netbsdelf*-gnu)
10919 version_type=linux
10920 need_lib_prefix=no
10921 need_version=no
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=no
10926 hardcode_into_libs=yes
10927 dynamic_linker='NetBSD ld.elf_so'
10930 netbsd*)
10931 version_type=sunos
10932 need_lib_prefix=no
10933 need_version=no
10934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10937 dynamic_linker='NetBSD (a.out) ld.so'
10938 else
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 dynamic_linker='NetBSD ld.elf_so'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=yes
10945 hardcode_into_libs=yes
10948 newsos6)
10949 version_type=linux # correct to gnu/linux during the next big refactor
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10955 *nto* | *qnx*)
10956 version_type=qnx
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=no
10963 hardcode_into_libs=yes
10964 dynamic_linker='ldqnx.so'
10967 openbsd*)
10968 version_type=sunos
10969 sys_lib_dlsearch_path_spec="/usr/lib"
10970 need_lib_prefix=no
10971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10972 case $host_os in
10973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10974 *) need_version=no ;;
10975 esac
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10980 case $host_os in
10981 openbsd2.[89] | openbsd2.[89].*)
10982 shlibpath_overrides_runpath=no
10985 shlibpath_overrides_runpath=yes
10987 esac
10988 else
10989 shlibpath_overrides_runpath=yes
10993 os2*)
10994 libname_spec='$name'
10995 shrext_cmds=".dll"
10996 need_lib_prefix=no
10997 library_names_spec='$libname${shared_ext} $libname.a'
10998 dynamic_linker='OS/2 ld.exe'
10999 shlibpath_var=LIBPATH
11002 osf3* | osf4* | osf5*)
11003 version_type=osf
11004 need_lib_prefix=no
11005 need_version=no
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11013 rdos*)
11014 dynamic_linker=no
11017 solaris*)
11018 version_type=linux # correct to gnu/linux during the next big refactor
11019 need_lib_prefix=no
11020 need_version=no
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11026 # ldd complains unless libraries are executable
11027 postinstall_cmds='chmod +x $lib'
11030 sunos4*)
11031 version_type=sunos
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 if test "$with_gnu_ld" = yes; then
11037 need_lib_prefix=no
11039 need_version=yes
11042 sysv4 | sysv4.3*)
11043 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 case $host_vendor in
11048 sni)
11049 shlibpath_overrides_runpath=no
11050 need_lib_prefix=no
11051 runpath_var=LD_RUN_PATH
11053 siemens)
11054 need_lib_prefix=no
11056 motorola)
11057 need_lib_prefix=no
11058 need_version=no
11059 shlibpath_overrides_runpath=no
11060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11062 esac
11065 sysv4*MP*)
11066 if test -d /usr/nec ;then
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11069 soname_spec='$libname${shared_ext}.$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11075 version_type=freebsd-elf
11076 need_lib_prefix=no
11077 need_version=no
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=yes
11082 hardcode_into_libs=yes
11083 if test "$with_gnu_ld" = yes; then
11084 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11085 else
11086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11087 case $host_os in
11088 sco3.2v5*)
11089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11091 esac
11093 sys_lib_dlsearch_path_spec='/usr/lib'
11096 tpf*)
11097 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11098 version_type=linux # correct to gnu/linux during the next big refactor
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=no
11104 hardcode_into_libs=yes
11107 uts4*)
11108 version_type=linux # correct to gnu/linux during the next big refactor
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11115 dynamic_linker=no
11117 esac
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11119 $as_echo "$dynamic_linker" >&6; }
11120 test "$dynamic_linker" = no && can_build_shared=no
11122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11123 if test "$GCC" = yes; then
11124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11127 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11128 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11130 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11131 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11226 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11227 hardcode_action=
11228 if test -n "$hardcode_libdir_flag_spec" ||
11229 test -n "$runpath_var" ||
11230 test "X$hardcode_automatic" = "Xyes" ; then
11232 # We can hardcode non-existent directories.
11233 if test "$hardcode_direct" != no &&
11234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11235 # have to relink, otherwise we might link with an installed library
11236 # when we should be linking with a yet-to-be-installed one
11237 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11238 test "$hardcode_minus_L" != no; then
11239 # Linking always hardcodes the temporary library directory.
11240 hardcode_action=relink
11241 else
11242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11243 hardcode_action=immediate
11245 else
11246 # We cannot hardcode anything, or else we can only hardcode existing
11247 # directories.
11248 hardcode_action=unsupported
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11251 $as_echo "$hardcode_action" >&6; }
11253 if test "$hardcode_action" = relink ||
11254 test "$inherit_rpath" = yes; then
11255 # Fast installation is not supported
11256 enable_fast_install=no
11257 elif test "$shlibpath_overrides_runpath" = yes ||
11258 test "$enable_shared" = no; then
11259 # Fast installation is not necessary
11260 enable_fast_install=needless
11268 if test "x$enable_dlopen" != xyes; then
11269 enable_dlopen=unknown
11270 enable_dlopen_self=unknown
11271 enable_dlopen_self_static=unknown
11272 else
11273 lt_cv_dlopen=no
11274 lt_cv_dlopen_libs=
11276 case $host_os in
11277 beos*)
11278 lt_cv_dlopen="load_add_on"
11279 lt_cv_dlopen_libs=
11280 lt_cv_dlopen_self=yes
11283 mingw* | pw32* | cegcc*)
11284 lt_cv_dlopen="LoadLibrary"
11285 lt_cv_dlopen_libs=
11288 cygwin*)
11289 lt_cv_dlopen="dlopen"
11290 lt_cv_dlopen_libs=
11293 darwin*)
11294 # if libdl is installed we need to link against it
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldl $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dlopen ();
11313 main ()
11315 return dlopen ();
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dl_dlopen=yes
11322 else
11323 ac_cv_lib_dl_dlopen=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333 else
11335 lt_cv_dlopen="dyld"
11336 lt_cv_dlopen_libs=
11337 lt_cv_dlopen_self=yes
11344 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11345 if test "x$ac_cv_func_shl_load" = xyes; then :
11346 lt_cv_dlopen="shl_load"
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11349 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11350 if ${ac_cv_lib_dld_shl_load+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-ldld $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char shl_load ();
11366 main ()
11368 return shl_load ();
11370 return 0;
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374 ac_cv_lib_dld_shl_load=yes
11375 else
11376 ac_cv_lib_dld_shl_load=no
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11383 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11384 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11385 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11386 else
11387 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11388 if test "x$ac_cv_func_dlopen" = xyes; then :
11389 lt_cv_dlopen="dlopen"
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if ${ac_cv_lib_dl_dlopen+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldl $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char dlopen ();
11409 main ()
11411 return dlopen ();
11413 return 0;
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_lib_dl_dlopen=yes
11418 else
11419 ac_cv_lib_dl_dlopen=no
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11431 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11432 if ${ac_cv_lib_svld_dlopen+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lsvld $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char dlopen ();
11448 main ()
11450 return dlopen ();
11452 return 0;
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_svld_dlopen=yes
11457 else
11458 ac_cv_lib_svld_dlopen=no
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11465 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11466 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11468 else
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11470 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11471 if ${ac_cv_lib_dld_dld_link+:} false; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-ldld $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char dld_link ();
11487 main ()
11489 return dld_link ();
11491 return 0;
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 ac_cv_lib_dld_dld_link=yes
11496 else
11497 ac_cv_lib_dld_dld_link=no
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11504 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11505 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11525 esac
11527 if test "x$lt_cv_dlopen" != xno; then
11528 enable_dlopen=yes
11529 else
11530 enable_dlopen=no
11533 case $lt_cv_dlopen in
11534 dlopen)
11535 save_CPPFLAGS="$CPPFLAGS"
11536 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11538 save_LDFLAGS="$LDFLAGS"
11539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11541 save_LIBS="$LIBS"
11542 LIBS="$lt_cv_dlopen_libs $LIBS"
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11545 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11546 if ${lt_cv_dlopen_self+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 if test "$cross_compiling" = yes; then :
11550 lt_cv_dlopen_self=cross
11551 else
11552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11553 lt_status=$lt_dlunknown
11554 cat > conftest.$ac_ext <<_LT_EOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11558 #if HAVE_DLFCN_H
11559 #include <dlfcn.h>
11560 #endif
11562 #include <stdio.h>
11564 #ifdef RTLD_GLOBAL
11565 # define LT_DLGLOBAL RTLD_GLOBAL
11566 #else
11567 # ifdef DL_GLOBAL
11568 # define LT_DLGLOBAL DL_GLOBAL
11569 # else
11570 # define LT_DLGLOBAL 0
11571 # endif
11572 #endif
11574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11575 find out it does not work in some platform. */
11576 #ifndef LT_DLLAZY_OR_NOW
11577 # ifdef RTLD_LAZY
11578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11579 # else
11580 # ifdef DL_LAZY
11581 # define LT_DLLAZY_OR_NOW DL_LAZY
11582 # else
11583 # ifdef RTLD_NOW
11584 # define LT_DLLAZY_OR_NOW RTLD_NOW
11585 # else
11586 # ifdef DL_NOW
11587 # define LT_DLLAZY_OR_NOW DL_NOW
11588 # else
11589 # define LT_DLLAZY_OR_NOW 0
11590 # endif
11591 # endif
11592 # endif
11593 # endif
11594 #endif
11596 /* When -fvisbility=hidden is used, assume the code has been annotated
11597 correspondingly for the symbols needed. */
11598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11599 int fnord () __attribute__((visibility("default")));
11600 #endif
11602 int fnord () { return 42; }
11603 int main ()
11605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11606 int status = $lt_dlunknown;
11608 if (self)
11610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11611 else
11613 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614 else puts (dlerror ());
11616 /* dlclose (self); */
11618 else
11619 puts (dlerror ());
11621 return status;
11623 _LT_EOF
11624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11625 (eval $ac_link) 2>&5
11626 ac_status=$?
11627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11628 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11629 (./conftest; exit; ) >&5 2>/dev/null
11630 lt_status=$?
11631 case x$lt_status in
11632 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11633 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11634 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11635 esac
11636 else :
11637 # compilation failed
11638 lt_cv_dlopen_self=no
11641 rm -fr conftest*
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11646 $as_echo "$lt_cv_dlopen_self" >&6; }
11648 if test "x$lt_cv_dlopen_self" = xyes; then
11649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11651 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11652 if ${lt_cv_dlopen_self_static+:} false; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 if test "$cross_compiling" = yes; then :
11656 lt_cv_dlopen_self_static=cross
11657 else
11658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11659 lt_status=$lt_dlunknown
11660 cat > conftest.$ac_ext <<_LT_EOF
11661 #line $LINENO "configure"
11662 #include "confdefs.h"
11664 #if HAVE_DLFCN_H
11665 #include <dlfcn.h>
11666 #endif
11668 #include <stdio.h>
11670 #ifdef RTLD_GLOBAL
11671 # define LT_DLGLOBAL RTLD_GLOBAL
11672 #else
11673 # ifdef DL_GLOBAL
11674 # define LT_DLGLOBAL DL_GLOBAL
11675 # else
11676 # define LT_DLGLOBAL 0
11677 # endif
11678 #endif
11680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11681 find out it does not work in some platform. */
11682 #ifndef LT_DLLAZY_OR_NOW
11683 # ifdef RTLD_LAZY
11684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11685 # else
11686 # ifdef DL_LAZY
11687 # define LT_DLLAZY_OR_NOW DL_LAZY
11688 # else
11689 # ifdef RTLD_NOW
11690 # define LT_DLLAZY_OR_NOW RTLD_NOW
11691 # else
11692 # ifdef DL_NOW
11693 # define LT_DLLAZY_OR_NOW DL_NOW
11694 # else
11695 # define LT_DLLAZY_OR_NOW 0
11696 # endif
11697 # endif
11698 # endif
11699 # endif
11700 #endif
11702 /* When -fvisbility=hidden is used, assume the code has been annotated
11703 correspondingly for the symbols needed. */
11704 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11705 int fnord () __attribute__((visibility("default")));
11706 #endif
11708 int fnord () { return 42; }
11709 int main ()
11711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11712 int status = $lt_dlunknown;
11714 if (self)
11716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11717 else
11719 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11720 else puts (dlerror ());
11722 /* dlclose (self); */
11724 else
11725 puts (dlerror ());
11727 return status;
11729 _LT_EOF
11730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11731 (eval $ac_link) 2>&5
11732 ac_status=$?
11733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11735 (./conftest; exit; ) >&5 2>/dev/null
11736 lt_status=$?
11737 case x$lt_status in
11738 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11739 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11740 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11741 esac
11742 else :
11743 # compilation failed
11744 lt_cv_dlopen_self_static=no
11747 rm -fr conftest*
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11752 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11755 CPPFLAGS="$save_CPPFLAGS"
11756 LDFLAGS="$save_LDFLAGS"
11757 LIBS="$save_LIBS"
11759 esac
11761 case $lt_cv_dlopen_self in
11762 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11763 *) enable_dlopen_self=unknown ;;
11764 esac
11766 case $lt_cv_dlopen_self_static in
11767 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11768 *) enable_dlopen_self_static=unknown ;;
11769 esac
11788 striplib=
11789 old_striplib=
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11791 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11792 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11793 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11794 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11797 else
11798 # FIXME - insert some real tests, host_os isn't really good enough
11799 case $host_os in
11800 darwin*)
11801 if test -n "$STRIP" ; then
11802 striplib="$STRIP -x"
11803 old_striplib="$STRIP -S"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11815 esac
11829 # Report which library types will actually be built
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11831 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11833 $as_echo "$can_build_shared" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11836 $as_echo_n "checking whether to build shared libraries... " >&6; }
11837 test "$can_build_shared" = "no" && enable_shared=no
11839 # On AIX, shared libraries and static libraries use the same namespace, and
11840 # are all built from PIC.
11841 case $host_os in
11842 aix3*)
11843 test "$enable_shared" = yes && enable_static=no
11844 if test -n "$RANLIB"; then
11845 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11846 postinstall_cmds='$RANLIB $lib'
11850 aix[4-9]*)
11851 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11852 test "$enable_shared" = yes && enable_static=no
11855 esac
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11857 $as_echo "$enable_shared" >&6; }
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11860 $as_echo_n "checking whether to build static libraries... " >&6; }
11861 # Make sure either enable_shared or enable_static is yes.
11862 test "$enable_shared" = yes || enable_static=yes
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11864 $as_echo "$enable_static" >&6; }
11870 ac_ext=c
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876 CC="$lt_save_CC"
11892 ac_config_commands="$ac_config_commands libtool"
11897 # Only expand once:
11901 if test 0 = "0"; then
11902 supported_build=yes
11903 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11904 else
11905 supported_build=no
11906 if test "x$GCC" = "xyes" ; then
11907 CFLAGS="$CFLAGS -g -O0"
11908 CXXFLAGS="$CXXFLAGS -g -O0"
11911 if test "x$supported_build" = "xno"; then
11912 TR_UNSTABLE_TRUE=
11913 TR_UNSTABLE_FALSE='#'
11914 else
11915 TR_UNSTABLE_TRUE='#'
11916 TR_UNSTABLE_FALSE=
11922 ## MANDATORY for everything
11925 CURL_MINIMUM=7.15.4
11927 LIBEVENT_MINIMUM=2.0.10
11929 OPENSSL_MINIMUM=0.9.4
11934 ## MANDATORY for the GTK+ client
11938 GTK_MINIMUM=3.4.0
11940 GLIB_MINIMUM=2.32.0
11942 GIO_MINIMUM=2.26.0
11947 ## OPTIONAL for the GTK+ client
11951 # create the tray icon with AppIndicator
11952 LIBAPPINDICATOR_MINIMUM=0.4.90
11956 ac_ext=c
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961 if test -n "$ac_tool_prefix"; then
11962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if ${ac_cv_prog_CC+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 if test -n "$CC"; then
11970 ac_cv_prog_CC="$CC" # Let the user override the test.
11971 else
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11983 done
11984 done
11985 IFS=$as_save_IFS
11989 CC=$ac_cv_prog_CC
11990 if test -n "$CC"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11992 $as_echo "$CC" >&6; }
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
12000 if test -z "$ac_cv_prog_CC"; then
12001 ac_ct_CC=$CC
12002 # Extract the first word of "gcc", so it can be a program name with args.
12003 set dummy gcc; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 if test -n "$ac_ct_CC"; then
12010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12011 else
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in $PATH
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12019 ac_cv_prog_ac_ct_CC="gcc"
12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12023 done
12024 done
12025 IFS=$as_save_IFS
12029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12030 if test -n "$ac_ct_CC"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12032 $as_echo "$ac_ct_CC" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12038 if test "x$ac_ct_CC" = x; then
12039 CC=""
12040 else
12041 case $cross_compiling:$ac_tool_warned in
12042 yes:)
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12045 ac_tool_warned=yes ;;
12046 esac
12047 CC=$ac_ct_CC
12049 else
12050 CC="$ac_cv_prog_CC"
12053 if test -z "$CC"; then
12054 if test -n "$ac_tool_prefix"; then
12055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12056 set dummy ${ac_tool_prefix}cc; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_prog_CC+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test -n "$CC"; then
12063 ac_cv_prog_CC="$CC" # Let the user override the test.
12064 else
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_CC="${ac_tool_prefix}cc"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12076 done
12077 done
12078 IFS=$as_save_IFS
12082 CC=$ac_cv_prog_CC
12083 if test -n "$CC"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12085 $as_echo "$CC" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12094 if test -z "$CC"; then
12095 # Extract the first word of "cc", so it can be a program name with args.
12096 set dummy cc; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_CC+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$CC"; then
12103 ac_cv_prog_CC="$CC" # Let the user override the test.
12104 else
12105 ac_prog_rejected=no
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12114 ac_prog_rejected=yes
12115 continue
12117 ac_cv_prog_CC="cc"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12125 if test $ac_prog_rejected = yes; then
12126 # We found a bogon in the path, so make sure we never use it.
12127 set dummy $ac_cv_prog_CC
12128 shift
12129 if test $# != 0; then
12130 # We chose a different compiler from the bogus one.
12131 # However, it has the same basename, so the bogon will be chosen
12132 # first if we set CC to just the basename; use the full file name.
12133 shift
12134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12139 CC=$ac_cv_prog_CC
12140 if test -n "$CC"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12142 $as_echo "$CC" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12150 if test -z "$CC"; then
12151 if test -n "$ac_tool_prefix"; then
12152 for ac_prog in cl.exe
12154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_prog_CC+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -n "$CC"; then
12162 ac_cv_prog_CC="$CC" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12175 done
12176 done
12177 IFS=$as_save_IFS
12181 CC=$ac_cv_prog_CC
12182 if test -n "$CC"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12184 $as_echo "$CC" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12191 test -n "$CC" && break
12192 done
12194 if test -z "$CC"; then
12195 ac_ct_CC=$CC
12196 for ac_prog in cl.exe
12198 # Extract the first word of "$ac_prog", so it can be a program name with args.
12199 set dummy $ac_prog; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 if test -n "$ac_ct_CC"; then
12206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12207 else
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12215 ac_cv_prog_ac_ct_CC="$ac_prog"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12219 done
12220 done
12221 IFS=$as_save_IFS
12225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12226 if test -n "$ac_ct_CC"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12228 $as_echo "$ac_ct_CC" >&6; }
12229 else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12235 test -n "$ac_ct_CC" && break
12236 done
12238 if test "x$ac_ct_CC" = x; then
12239 CC=""
12240 else
12241 case $cross_compiling:$ac_tool_warned in
12242 yes:)
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12245 ac_tool_warned=yes ;;
12246 esac
12247 CC=$ac_ct_CC
12254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12256 as_fn_error $? "no acceptable C compiler found in \$PATH
12257 See \`config.log' for more details" "$LINENO" 5; }
12259 # Provide some information about the compiler.
12260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12261 set X $ac_compile
12262 ac_compiler=$2
12263 for ac_option in --version -v -V -qversion; do
12264 { { ac_try="$ac_compiler $ac_option >&5"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268 esac
12269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12270 $as_echo "$ac_try_echo"; } >&5
12271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12272 ac_status=$?
12273 if test -s conftest.err; then
12274 sed '10a\
12275 ... rest of stderr output deleted ...
12276 10q' conftest.err >conftest.er1
12277 cat conftest.er1 >&5
12279 rm -f conftest.er1 conftest.err
12280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281 test $ac_status = 0; }
12282 done
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12285 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12286 if ${ac_cv_c_compiler_gnu+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12293 main ()
12295 #ifndef __GNUC__
12296 choke me
12297 #endif
12300 return 0;
12302 _ACEOF
12303 if ac_fn_c_try_compile "$LINENO"; then :
12304 ac_compiler_gnu=yes
12305 else
12306 ac_compiler_gnu=no
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12313 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12314 if test $ac_compiler_gnu = yes; then
12315 GCC=yes
12316 else
12317 GCC=
12319 ac_test_CFLAGS=${CFLAGS+set}
12320 ac_save_CFLAGS=$CFLAGS
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12322 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12323 if ${ac_cv_prog_cc_g+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 ac_save_c_werror_flag=$ac_c_werror_flag
12327 ac_c_werror_flag=yes
12328 ac_cv_prog_cc_g=no
12329 CFLAGS="-g"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12334 main ()
12338 return 0;
12340 _ACEOF
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342 ac_cv_prog_cc_g=yes
12343 else
12344 CFLAGS=""
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12349 main ()
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12358 else
12359 ac_c_werror_flag=$ac_save_c_werror_flag
12360 CFLAGS="-g"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12365 main ()
12369 return 0;
12371 _ACEOF
12372 if ac_fn_c_try_compile "$LINENO"; then :
12373 ac_cv_prog_cc_g=yes
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 ac_c_werror_flag=$ac_save_c_werror_flag
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12383 $as_echo "$ac_cv_prog_cc_g" >&6; }
12384 if test "$ac_test_CFLAGS" = set; then
12385 CFLAGS=$ac_save_CFLAGS
12386 elif test $ac_cv_prog_cc_g = yes; then
12387 if test "$GCC" = yes; then
12388 CFLAGS="-g -O2"
12389 else
12390 CFLAGS="-g"
12392 else
12393 if test "$GCC" = yes; then
12394 CFLAGS="-O2"
12395 else
12396 CFLAGS=
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12401 if ${ac_cv_prog_cc_c89+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 ac_cv_prog_cc_c89=no
12405 ac_save_CC=$CC
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408 #include <stdarg.h>
12409 #include <stdio.h>
12410 struct stat;
12411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12412 struct buf { int x; };
12413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12414 static char *e (p, i)
12415 char **p;
12416 int i;
12418 return p[i];
12420 static char *f (char * (*g) (char **, int), char **p, ...)
12422 char *s;
12423 va_list v;
12424 va_start (v,p);
12425 s = g (p, va_arg (v,int));
12426 va_end (v);
12427 return s;
12430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12431 function prototypes and stuff, but not '\xHH' hex character constants.
12432 These don't provoke an error unfortunately, instead are silently treated
12433 as 'x'. The following induces an error, until -std is added to get
12434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12435 array size at least. It's necessary to write '\x00'==0 to get something
12436 that's true only with -std. */
12437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12439 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12440 inside strings and character constants. */
12441 #define FOO(x) 'x'
12442 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12444 int test (int i, double x);
12445 struct s1 {int (*f) (int a);};
12446 struct s2 {int (*f) (double a);};
12447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12448 int argc;
12449 char **argv;
12451 main ()
12453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12455 return 0;
12457 _ACEOF
12458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12459 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12461 CC="$ac_save_CC $ac_arg"
12462 if ac_fn_c_try_compile "$LINENO"; then :
12463 ac_cv_prog_cc_c89=$ac_arg
12465 rm -f core conftest.err conftest.$ac_objext
12466 test "x$ac_cv_prog_cc_c89" != "xno" && break
12467 done
12468 rm -f conftest.$ac_ext
12469 CC=$ac_save_CC
12472 # AC_CACHE_VAL
12473 case "x$ac_cv_prog_cc_c89" in
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12476 $as_echo "none needed" >&6; } ;;
12477 xno)
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12479 $as_echo "unsupported" >&6; } ;;
12481 CC="$CC $ac_cv_prog_cc_c89"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12484 esac
12485 if test "x$ac_cv_prog_cc_c89" != xno; then :
12489 ac_ext=c
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12495 ac_ext=c
12496 ac_cpp='$CPP $CPPFLAGS'
12497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12501 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12502 if ${am_cv_prog_cc_c_o+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12509 main ()
12513 return 0;
12515 _ACEOF
12516 # Make sure it works both with $CC and with simple cc.
12517 # Following AC_PROG_CC_C_O, we do the test twice because some
12518 # compilers refuse to overwrite an existing .o file with -o,
12519 # though they will create one.
12520 am_cv_prog_cc_c_o=yes
12521 for am_i in 1 2; do
12522 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12523 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } \
12527 && test -f conftest2.$ac_objext; then
12528 : OK
12529 else
12530 am_cv_prog_cc_c_o=no
12531 break
12533 done
12534 rm -f core conftest*
12535 unset am_i
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12538 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12539 if test "$am_cv_prog_cc_c_o" != yes; then
12540 # Losing compiler, so override with the script.
12541 # FIXME: It is wrong to rewrite CC.
12542 # But if we don't then we get into trouble of one sort or another.
12543 # A longer-term fix would be to have automake use am__CC in this case,
12544 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12545 CC="$am_aux_dir/compile $CC"
12547 ac_ext=c
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12554 depcc="$CC" am_compiler_list=
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12557 $as_echo_n "checking dependency style of $depcc... " >&6; }
12558 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12562 # We make a subdir and do the tests there. Otherwise we can end up
12563 # making bogus files that we don't know about and never remove. For
12564 # instance it was reported that on HP-UX the gcc test will end up
12565 # making a dummy file named 'D' -- because '-MD' means "put the output
12566 # in D".
12567 rm -rf conftest.dir
12568 mkdir conftest.dir
12569 # Copy depcomp to subdir because otherwise we won't find it if we're
12570 # using a relative directory.
12571 cp "$am_depcomp" conftest.dir
12572 cd conftest.dir
12573 # We will build objects and dependencies in a subdirectory because
12574 # it helps to detect inapplicable dependency modes. For instance
12575 # both Tru64's cc and ICC support -MD to output dependencies as a
12576 # side effect of compilation, but ICC will put the dependencies in
12577 # the current directory while Tru64 will put them in the object
12578 # directory.
12579 mkdir sub
12581 am_cv_CC_dependencies_compiler_type=none
12582 if test "$am_compiler_list" = ""; then
12583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12585 am__universal=false
12586 case " $depcc " in #(
12587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12588 esac
12590 for depmode in $am_compiler_list; do
12591 # Setup a source with many dependencies, because some compilers
12592 # like to wrap large dependency lists on column 80 (with \), and
12593 # we should not choose a depcomp mode which is confused by this.
12595 # We need to recreate these files for each test, as the compiler may
12596 # overwrite some of them when testing with obscure command lines.
12597 # This happens at least with the AIX C compiler.
12598 : > sub/conftest.c
12599 for i in 1 2 3 4 5 6; do
12600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12602 # Solaris 10 /bin/sh.
12603 echo '/* dummy */' > sub/conftst$i.h
12604 done
12605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12608 # mode. It turns out that the SunPro C++ compiler does not properly
12609 # handle '-M -o', and we need to detect this. Also, some Intel
12610 # versions had trouble with output in subdirs.
12611 am__obj=sub/conftest.${OBJEXT-o}
12612 am__minus_obj="-o $am__obj"
12613 case $depmode in
12614 gcc)
12615 # This depmode causes a compiler race in universal mode.
12616 test "$am__universal" = false || continue
12618 nosideeffect)
12619 # After this tag, mechanisms are not by side-effect, so they'll
12620 # only be used when explicitly requested.
12621 if test "x$enable_dependency_tracking" = xyes; then
12622 continue
12623 else
12624 break
12627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12628 # This compiler won't grok '-c -o', but also, the minuso test has
12629 # not run yet. These depmodes are late enough in the game, and
12630 # so weak that their functioning should not be impacted.
12631 am__obj=conftest.${OBJEXT-o}
12632 am__minus_obj=
12634 none) break ;;
12635 esac
12636 if depmode=$depmode \
12637 source=sub/conftest.c object=$am__obj \
12638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12640 >/dev/null 2>conftest.err &&
12641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12645 # icc doesn't choke on unknown options, it will just issue warnings
12646 # or remarks (even with -Werror). So we grep stderr for any message
12647 # that says an option was ignored or not supported.
12648 # When given -MP, icc 7.0 and 7.1 complain thusly:
12649 # icc: Command line warning: ignoring option '-M'; no argument required
12650 # The diagnosis changed in icc 8.0:
12651 # icc: Command line remark: option '-MP' not supported
12652 if (grep 'ignoring option' conftest.err ||
12653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12654 am_cv_CC_dependencies_compiler_type=$depmode
12655 break
12658 done
12660 cd ..
12661 rm -rf conftest.dir
12662 else
12663 am_cv_CC_dependencies_compiler_type=none
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12672 test "x$enable_dependency_tracking" != xno \
12673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12674 am__fastdepCC_TRUE=
12675 am__fastdepCC_FALSE='#'
12676 else
12677 am__fastdepCC_TRUE='#'
12678 am__fastdepCC_FALSE=
12682 ac_ext=cpp
12683 ac_cpp='$CXXCPP $CPPFLAGS'
12684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687 if test -z "$CXX"; then
12688 if test -n "$CCC"; then
12689 CXX=$CCC
12690 else
12691 if test -n "$ac_tool_prefix"; then
12692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697 $as_echo_n "checking for $ac_word... " >&6; }
12698 if ${ac_cv_prog_CXX+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 if test -n "$CXX"; then
12702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12703 else
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12715 done
12716 done
12717 IFS=$as_save_IFS
12721 CXX=$ac_cv_prog_CXX
12722 if test -n "$CXX"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12724 $as_echo "$CXX" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12731 test -n "$CXX" && break
12732 done
12734 if test -z "$CXX"; then
12735 ac_ct_CXX=$CXX
12736 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12738 # Extract the first word of "$ac_prog", so it can be a program name with args.
12739 set dummy $ac_prog; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 if test -n "$ac_ct_CXX"; then
12746 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12747 else
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12755 ac_cv_prog_ac_ct_CXX="$ac_prog"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12759 done
12760 done
12761 IFS=$as_save_IFS
12765 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12766 if test -n "$ac_ct_CXX"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12768 $as_echo "$ac_ct_CXX" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12775 test -n "$ac_ct_CXX" && break
12776 done
12778 if test "x$ac_ct_CXX" = x; then
12779 CXX="g++"
12780 else
12781 case $cross_compiling:$ac_tool_warned in
12782 yes:)
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12785 ac_tool_warned=yes ;;
12786 esac
12787 CXX=$ac_ct_CXX
12793 # Provide some information about the compiler.
12794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12795 set X $ac_compile
12796 ac_compiler=$2
12797 for ac_option in --version -v -V -qversion; do
12798 { { ac_try="$ac_compiler $ac_option >&5"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802 esac
12803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12804 $as_echo "$ac_try_echo"; } >&5
12805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12806 ac_status=$?
12807 if test -s conftest.err; then
12808 sed '10a\
12809 ... rest of stderr output deleted ...
12810 10q' conftest.err >conftest.er1
12811 cat conftest.er1 >&5
12813 rm -f conftest.er1 conftest.err
12814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12815 test $ac_status = 0; }
12816 done
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12819 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12820 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12827 main ()
12829 #ifndef __GNUC__
12830 choke me
12831 #endif
12834 return 0;
12836 _ACEOF
12837 if ac_fn_cxx_try_compile "$LINENO"; then :
12838 ac_compiler_gnu=yes
12839 else
12840 ac_compiler_gnu=no
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12847 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12848 if test $ac_compiler_gnu = yes; then
12849 GXX=yes
12850 else
12851 GXX=
12853 ac_test_CXXFLAGS=${CXXFLAGS+set}
12854 ac_save_CXXFLAGS=$CXXFLAGS
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12856 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12857 if ${ac_cv_prog_cxx_g+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12861 ac_cxx_werror_flag=yes
12862 ac_cv_prog_cxx_g=no
12863 CXXFLAGS="-g"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12868 main ()
12872 return 0;
12874 _ACEOF
12875 if ac_fn_cxx_try_compile "$LINENO"; then :
12876 ac_cv_prog_cxx_g=yes
12877 else
12878 CXXFLAGS=""
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12883 main ()
12887 return 0;
12889 _ACEOF
12890 if ac_fn_cxx_try_compile "$LINENO"; then :
12892 else
12893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12894 CXXFLAGS="-g"
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12899 main ()
12903 return 0;
12905 _ACEOF
12906 if ac_fn_cxx_try_compile "$LINENO"; then :
12907 ac_cv_prog_cxx_g=yes
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12917 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12918 if test "$ac_test_CXXFLAGS" = set; then
12919 CXXFLAGS=$ac_save_CXXFLAGS
12920 elif test $ac_cv_prog_cxx_g = yes; then
12921 if test "$GXX" = yes; then
12922 CXXFLAGS="-g -O2"
12923 else
12924 CXXFLAGS="-g"
12926 else
12927 if test "$GXX" = yes; then
12928 CXXFLAGS="-O2"
12929 else
12930 CXXFLAGS=
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939 depcc="$CXX" am_compiler_list=
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12942 $as_echo_n "checking dependency style of $depcc... " >&6; }
12943 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12947 # We make a subdir and do the tests there. Otherwise we can end up
12948 # making bogus files that we don't know about and never remove. For
12949 # instance it was reported that on HP-UX the gcc test will end up
12950 # making a dummy file named 'D' -- because '-MD' means "put the output
12951 # in D".
12952 rm -rf conftest.dir
12953 mkdir conftest.dir
12954 # Copy depcomp to subdir because otherwise we won't find it if we're
12955 # using a relative directory.
12956 cp "$am_depcomp" conftest.dir
12957 cd conftest.dir
12958 # We will build objects and dependencies in a subdirectory because
12959 # it helps to detect inapplicable dependency modes. For instance
12960 # both Tru64's cc and ICC support -MD to output dependencies as a
12961 # side effect of compilation, but ICC will put the dependencies in
12962 # the current directory while Tru64 will put them in the object
12963 # directory.
12964 mkdir sub
12966 am_cv_CXX_dependencies_compiler_type=none
12967 if test "$am_compiler_list" = ""; then
12968 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12970 am__universal=false
12971 case " $depcc " in #(
12972 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12973 esac
12975 for depmode in $am_compiler_list; do
12976 # Setup a source with many dependencies, because some compilers
12977 # like to wrap large dependency lists on column 80 (with \), and
12978 # we should not choose a depcomp mode which is confused by this.
12980 # We need to recreate these files for each test, as the compiler may
12981 # overwrite some of them when testing with obscure command lines.
12982 # This happens at least with the AIX C compiler.
12983 : > sub/conftest.c
12984 for i in 1 2 3 4 5 6; do
12985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12986 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12987 # Solaris 10 /bin/sh.
12988 echo '/* dummy */' > sub/conftst$i.h
12989 done
12990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12992 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12993 # mode. It turns out that the SunPro C++ compiler does not properly
12994 # handle '-M -o', and we need to detect this. Also, some Intel
12995 # versions had trouble with output in subdirs.
12996 am__obj=sub/conftest.${OBJEXT-o}
12997 am__minus_obj="-o $am__obj"
12998 case $depmode in
12999 gcc)
13000 # This depmode causes a compiler race in universal mode.
13001 test "$am__universal" = false || continue
13003 nosideeffect)
13004 # After this tag, mechanisms are not by side-effect, so they'll
13005 # only be used when explicitly requested.
13006 if test "x$enable_dependency_tracking" = xyes; then
13007 continue
13008 else
13009 break
13012 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13013 # This compiler won't grok '-c -o', but also, the minuso test has
13014 # not run yet. These depmodes are late enough in the game, and
13015 # so weak that their functioning should not be impacted.
13016 am__obj=conftest.${OBJEXT-o}
13017 am__minus_obj=
13019 none) break ;;
13020 esac
13021 if depmode=$depmode \
13022 source=sub/conftest.c object=$am__obj \
13023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13024 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13025 >/dev/null 2>conftest.err &&
13026 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13028 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13030 # icc doesn't choke on unknown options, it will just issue warnings
13031 # or remarks (even with -Werror). So we grep stderr for any message
13032 # that says an option was ignored or not supported.
13033 # When given -MP, icc 7.0 and 7.1 complain thusly:
13034 # icc: Command line warning: ignoring option '-M'; no argument required
13035 # The diagnosis changed in icc 8.0:
13036 # icc: Command line remark: option '-MP' not supported
13037 if (grep 'ignoring option' conftest.err ||
13038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13039 am_cv_CXX_dependencies_compiler_type=$depmode
13040 break
13043 done
13045 cd ..
13046 rm -rf conftest.dir
13047 else
13048 am_cv_CXX_dependencies_compiler_type=none
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13053 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13054 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13057 test "x$enable_dependency_tracking" != xno \
13058 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13059 am__fastdepCXX_TRUE=
13060 am__fastdepCXX_FALSE='#'
13061 else
13062 am__fastdepCXX_TRUE='#'
13063 am__fastdepCXX_FALSE=
13069 func_stripname_cnf ()
13071 case ${2} in
13072 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13073 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13074 esac
13075 } # func_stripname_cnf
13077 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13078 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13079 (test "X$CXX" != "Xg++"))) ; then
13080 ac_ext=cpp
13081 ac_cpp='$CXXCPP $CPPFLAGS'
13082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13086 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13087 if test -z "$CXXCPP"; then
13088 if ${ac_cv_prog_CXXCPP+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 # Double quotes because CXXCPP needs to be expanded
13092 for CXXCPP in "$CXX -E" "/lib/cpp"
13094 ac_preproc_ok=false
13095 for ac_cxx_preproc_warn_flag in '' yes
13097 # Use a header file that comes with gcc, so configuring glibc
13098 # with a fresh cross-compiler works.
13099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13100 # <limits.h> exists even on freestanding compilers.
13101 # On the NeXT, cc -E runs the code through the compiler's parser,
13102 # not just through cpp. "Syntax error" is here to catch this case.
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105 #ifdef __STDC__
13106 # include <limits.h>
13107 #else
13108 # include <assert.h>
13109 #endif
13110 Syntax error
13111 _ACEOF
13112 if ac_fn_cxx_try_cpp "$LINENO"; then :
13114 else
13115 # Broken: fails on valid input.
13116 continue
13118 rm -f conftest.err conftest.i conftest.$ac_ext
13120 # OK, works on sane cases. Now check whether nonexistent headers
13121 # can be detected and how.
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124 #include <ac_nonexistent.h>
13125 _ACEOF
13126 if ac_fn_cxx_try_cpp "$LINENO"; then :
13127 # Broken: success on invalid input.
13128 continue
13129 else
13130 # Passes both tests.
13131 ac_preproc_ok=:
13132 break
13134 rm -f conftest.err conftest.i conftest.$ac_ext
13136 done
13137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13138 rm -f conftest.i conftest.err conftest.$ac_ext
13139 if $ac_preproc_ok; then :
13140 break
13143 done
13144 ac_cv_prog_CXXCPP=$CXXCPP
13147 CXXCPP=$ac_cv_prog_CXXCPP
13148 else
13149 ac_cv_prog_CXXCPP=$CXXCPP
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13152 $as_echo "$CXXCPP" >&6; }
13153 ac_preproc_ok=false
13154 for ac_cxx_preproc_warn_flag in '' yes
13156 # Use a header file that comes with gcc, so configuring glibc
13157 # with a fresh cross-compiler works.
13158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159 # <limits.h> exists even on freestanding compilers.
13160 # On the NeXT, cc -E runs the code through the compiler's parser,
13161 # not just through cpp. "Syntax error" is here to catch this case.
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 #ifdef __STDC__
13165 # include <limits.h>
13166 #else
13167 # include <assert.h>
13168 #endif
13169 Syntax error
13170 _ACEOF
13171 if ac_fn_cxx_try_cpp "$LINENO"; then :
13173 else
13174 # Broken: fails on valid input.
13175 continue
13177 rm -f conftest.err conftest.i conftest.$ac_ext
13179 # OK, works on sane cases. Now check whether nonexistent headers
13180 # can be detected and how.
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <ac_nonexistent.h>
13184 _ACEOF
13185 if ac_fn_cxx_try_cpp "$LINENO"; then :
13186 # Broken: success on invalid input.
13187 continue
13188 else
13189 # Passes both tests.
13190 ac_preproc_ok=:
13191 break
13193 rm -f conftest.err conftest.i conftest.$ac_ext
13195 done
13196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13197 rm -f conftest.i conftest.err conftest.$ac_ext
13198 if $ac_preproc_ok; then :
13200 else
13201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13203 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13204 See \`config.log' for more details" "$LINENO" 5; }
13207 ac_ext=c
13208 ac_cpp='$CPP $CPPFLAGS'
13209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13213 else
13214 _lt_caught_CXX_error=yes
13217 ac_ext=cpp
13218 ac_cpp='$CXXCPP $CPPFLAGS'
13219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13223 archive_cmds_need_lc_CXX=no
13224 allow_undefined_flag_CXX=
13225 always_export_symbols_CXX=no
13226 archive_expsym_cmds_CXX=
13227 compiler_needs_object_CXX=no
13228 export_dynamic_flag_spec_CXX=
13229 hardcode_direct_CXX=no
13230 hardcode_direct_absolute_CXX=no
13231 hardcode_libdir_flag_spec_CXX=
13232 hardcode_libdir_separator_CXX=
13233 hardcode_minus_L_CXX=no
13234 hardcode_shlibpath_var_CXX=unsupported
13235 hardcode_automatic_CXX=no
13236 inherit_rpath_CXX=no
13237 module_cmds_CXX=
13238 module_expsym_cmds_CXX=
13239 link_all_deplibs_CXX=unknown
13240 old_archive_cmds_CXX=$old_archive_cmds
13241 reload_flag_CXX=$reload_flag
13242 reload_cmds_CXX=$reload_cmds
13243 no_undefined_flag_CXX=
13244 whole_archive_flag_spec_CXX=
13245 enable_shared_with_static_runtimes_CXX=no
13247 # Source file extension for C++ test sources.
13248 ac_ext=cpp
13250 # Object file extension for compiled C++ test sources.
13251 objext=o
13252 objext_CXX=$objext
13254 # No sense in running all these tests if we already determined that
13255 # the CXX compiler isn't working. Some variables (like enable_shared)
13256 # are currently assumed to apply to all compilers on this platform,
13257 # and will be corrupted by setting them based on a non-working compiler.
13258 if test "$_lt_caught_CXX_error" != yes; then
13259 # Code to be used in simple compile tests
13260 lt_simple_compile_test_code="int some_variable = 0;"
13262 # Code to be used in simple link tests
13263 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13272 # If no C compiler was specified, use CC.
13273 LTCC=${LTCC-"$CC"}
13275 # If no C compiler flags were specified, use CFLAGS.
13276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13278 # Allow CC to be a program name with arguments.
13279 compiler=$CC
13282 # save warnings/boilerplate of simple test code
13283 ac_outfile=conftest.$ac_objext
13284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13286 _lt_compiler_boilerplate=`cat conftest.err`
13287 $RM conftest*
13289 ac_outfile=conftest.$ac_objext
13290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13292 _lt_linker_boilerplate=`cat conftest.err`
13293 $RM -r conftest*
13296 # Allow CC to be a program name with arguments.
13297 lt_save_CC=$CC
13298 lt_save_CFLAGS=$CFLAGS
13299 lt_save_LD=$LD
13300 lt_save_GCC=$GCC
13301 GCC=$GXX
13302 lt_save_with_gnu_ld=$with_gnu_ld
13303 lt_save_path_LD=$lt_cv_path_LD
13304 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13305 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13306 else
13307 $as_unset lt_cv_prog_gnu_ld
13309 if test -n "${lt_cv_path_LDCXX+set}"; then
13310 lt_cv_path_LD=$lt_cv_path_LDCXX
13311 else
13312 $as_unset lt_cv_path_LD
13314 test -z "${LDCXX+set}" || LD=$LDCXX
13315 CC=${CXX-"c++"}
13316 CFLAGS=$CXXFLAGS
13317 compiler=$CC
13318 compiler_CXX=$CC
13319 for cc_temp in $compiler""; do
13320 case $cc_temp in
13321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13323 \-*) ;;
13324 *) break;;
13325 esac
13326 done
13327 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13330 if test -n "$compiler"; then
13331 # We don't want -fno-exception when compiling C++ code, so set the
13332 # no_builtin_flag separately
13333 if test "$GXX" = yes; then
13334 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13335 else
13336 lt_prog_compiler_no_builtin_flag_CXX=
13339 if test "$GXX" = yes; then
13340 # Set up default GNU C++ configuration
13344 # Check whether --with-gnu-ld was given.
13345 if test "${with_gnu_ld+set}" = set; then :
13346 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13347 else
13348 with_gnu_ld=no
13351 ac_prog=ld
13352 if test "$GCC" = yes; then
13353 # Check if gcc -print-prog-name=ld gives a path.
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13355 $as_echo_n "checking for ld used by $CC... " >&6; }
13356 case $host in
13357 *-*-mingw*)
13358 # gcc leaves a trailing carriage return which upsets mingw
13359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13362 esac
13363 case $ac_prog in
13364 # Accept absolute paths.
13365 [\\/]* | ?:[\\/]*)
13366 re_direlt='/[^/][^/]*/\.\./'
13367 # Canonicalize the pathname of ld
13368 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13369 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13370 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13371 done
13372 test -z "$LD" && LD="$ac_prog"
13375 # If it fails, then pretend we aren't using GCC.
13376 ac_prog=ld
13379 # If it is relative, then search for the first ld in PATH.
13380 with_gnu_ld=unknown
13382 esac
13383 elif test "$with_gnu_ld" = yes; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13385 $as_echo_n "checking for GNU ld... " >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13388 $as_echo_n "checking for non-GNU ld... " >&6; }
13390 if ${lt_cv_path_LD+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 if test -z "$LD"; then
13394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13395 for ac_dir in $PATH; do
13396 IFS="$lt_save_ifs"
13397 test -z "$ac_dir" && ac_dir=.
13398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13399 lt_cv_path_LD="$ac_dir/$ac_prog"
13400 # Check to see if the program is GNU ld. I'd rather use --version,
13401 # but apparently some variants of GNU ld only accept -v.
13402 # Break only if it was the GNU/non-GNU ld that we prefer.
13403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13404 *GNU* | *'with BFD'*)
13405 test "$with_gnu_ld" != no && break
13408 test "$with_gnu_ld" != yes && break
13410 esac
13412 done
13413 IFS="$lt_save_ifs"
13414 else
13415 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13419 LD="$lt_cv_path_LD"
13420 if test -n "$LD"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13422 $as_echo "$LD" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13429 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13430 if ${lt_cv_prog_gnu_ld+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13434 case `$LD -v 2>&1 </dev/null` in
13435 *GNU* | *'with BFD'*)
13436 lt_cv_prog_gnu_ld=yes
13439 lt_cv_prog_gnu_ld=no
13441 esac
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13444 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13445 with_gnu_ld=$lt_cv_prog_gnu_ld
13453 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13454 # archiving commands below assume that GNU ld is being used.
13455 if test "$with_gnu_ld" = yes; then
13456 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13457 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13460 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13462 # If archive_cmds runs LD, not CC, wlarc should be empty
13463 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13464 # investigate it a little bit more. (MM)
13465 wlarc='${wl}'
13467 # ancient GNU ld didn't support --whole-archive et. al.
13468 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13469 $GREP 'no-whole-archive' > /dev/null; then
13470 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13471 else
13472 whole_archive_flag_spec_CXX=
13474 else
13475 with_gnu_ld=no
13476 wlarc=
13478 # A generic and very simple default shared library creation
13479 # command for GNU C++ for the case where it uses the native
13480 # linker, instead of GNU ld. If possible, this setting should
13481 # overridden to take advantage of the native linker features on
13482 # the platform it is being used on.
13483 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13486 # Commands to make compiler produce verbose output that lists
13487 # what "hidden" libraries, object files and flags are used when
13488 # linking a shared library.
13489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13491 else
13492 GXX=no
13493 with_gnu_ld=no
13494 wlarc=
13497 # PORTME: fill in a description of your system's C++ link characteristics
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13500 ld_shlibs_CXX=yes
13501 case $host_os in
13502 aix3*)
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13506 aix[4-9]*)
13507 if test "$host_cpu" = ia64; then
13508 # On IA64, the linker does run time linking by default, so we don't
13509 # have to do anything special.
13510 aix_use_runtimelinking=no
13511 exp_sym_flag='-Bexport'
13512 no_entry_flag=""
13513 else
13514 aix_use_runtimelinking=no
13516 # Test if we are trying to use run time linking or normal
13517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13518 # need to do runtime linking.
13519 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13520 for ld_flag in $LDFLAGS; do
13521 case $ld_flag in
13522 *-brtl*)
13523 aix_use_runtimelinking=yes
13524 break
13526 esac
13527 done
13529 esac
13531 exp_sym_flag='-bexport'
13532 no_entry_flag='-bnoentry'
13535 # When large executables or shared objects are built, AIX ld can
13536 # have problems creating the table of contents. If linking a library
13537 # or program results in "error TOC overflow" add -mminimal-toc to
13538 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13539 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13541 archive_cmds_CXX=''
13542 hardcode_direct_CXX=yes
13543 hardcode_direct_absolute_CXX=yes
13544 hardcode_libdir_separator_CXX=':'
13545 link_all_deplibs_CXX=yes
13546 file_list_spec_CXX='${wl}-f,'
13548 if test "$GXX" = yes; then
13549 case $host_os in aix4.[012]|aix4.[012].*)
13550 # We only want to do this on AIX 4.2 and lower, the check
13551 # below for broken collect2 doesn't work under 4.3+
13552 collect2name=`${CC} -print-prog-name=collect2`
13553 if test -f "$collect2name" &&
13554 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13555 then
13556 # We have reworked collect2
13558 else
13559 # We have old collect2
13560 hardcode_direct_CXX=unsupported
13561 # It fails to find uninstalled libraries when the uninstalled
13562 # path is not listed in the libpath. Setting hardcode_minus_L
13563 # to unsupported forces relinking
13564 hardcode_minus_L_CXX=yes
13565 hardcode_libdir_flag_spec_CXX='-L$libdir'
13566 hardcode_libdir_separator_CXX=
13568 esac
13569 shared_flag='-shared'
13570 if test "$aix_use_runtimelinking" = yes; then
13571 shared_flag="$shared_flag "'${wl}-G'
13573 else
13574 # not using gcc
13575 if test "$host_cpu" = ia64; then
13576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13577 # chokes on -Wl,-G. The following line is correct:
13578 shared_flag='-G'
13579 else
13580 if test "$aix_use_runtimelinking" = yes; then
13581 shared_flag='${wl}-G'
13582 else
13583 shared_flag='${wl}-bM:SRE'
13588 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13589 # It seems that -bexpall does not export symbols beginning with
13590 # underscore (_), so it is better to generate a list of symbols to
13591 # export.
13592 always_export_symbols_CXX=yes
13593 if test "$aix_use_runtimelinking" = yes; then
13594 # Warning - without using the other runtime loading flags (-brtl),
13595 # -berok will link without error, but may produce a broken library.
13596 allow_undefined_flag_CXX='-berok'
13597 # Determine the default libpath from the value encoded in an empty
13598 # executable.
13599 if test "${lt_cv_aix_libpath+set}" = set; then
13600 aix_libpath=$lt_cv_aix_libpath
13601 else
13602 if ${lt_cv_aix_libpath__CXX+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13609 main ()
13613 return 0;
13615 _ACEOF
13616 if ac_fn_cxx_try_link "$LINENO"; then :
13618 lt_aix_libpath_sed='
13619 /Import File Strings/,/^$/ {
13620 /^0/ {
13621 s/^0 *\([^ ]*\) *$/\1/
13625 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13626 # Check for a 64-bit object if we didn't find anything.
13627 if test -z "$lt_cv_aix_libpath__CXX"; then
13628 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13631 rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 if test -z "$lt_cv_aix_libpath__CXX"; then
13634 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13639 aix_libpath=$lt_cv_aix_libpath__CXX
13642 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13644 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13645 else
13646 if test "$host_cpu" = ia64; then
13647 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13648 allow_undefined_flag_CXX="-z nodefs"
13649 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"
13650 else
13651 # Determine the default libpath from the value encoded in an
13652 # empty executable.
13653 if test "${lt_cv_aix_libpath+set}" = set; then
13654 aix_libpath=$lt_cv_aix_libpath
13655 else
13656 if ${lt_cv_aix_libpath__CXX+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13663 main ()
13667 return 0;
13669 _ACEOF
13670 if ac_fn_cxx_try_link "$LINENO"; then :
13672 lt_aix_libpath_sed='
13673 /Import File Strings/,/^$/ {
13674 /^0/ {
13675 s/^0 *\([^ ]*\) *$/\1/
13679 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13680 # Check for a 64-bit object if we didn't find anything.
13681 if test -z "$lt_cv_aix_libpath__CXX"; then
13682 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687 if test -z "$lt_cv_aix_libpath__CXX"; then
13688 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13693 aix_libpath=$lt_cv_aix_libpath__CXX
13696 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13697 # Warning - without using the other run time loading flags,
13698 # -berok will link without error, but may produce a broken library.
13699 no_undefined_flag_CXX=' ${wl}-bernotok'
13700 allow_undefined_flag_CXX=' ${wl}-berok'
13701 if test "$with_gnu_ld" = yes; then
13702 # We only use this code for GNU lds that support --whole-archive.
13703 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13704 else
13705 # Exported symbols can be pulled into shared objects from archives
13706 whole_archive_flag_spec_CXX='$convenience'
13708 archive_cmds_need_lc_CXX=yes
13709 # This is similar to how AIX traditionally builds its shared
13710 # libraries.
13711 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'
13716 beos*)
13717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13718 allow_undefined_flag_CXX=unsupported
13719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13720 # support --undefined. This deserves some investigation. FIXME
13721 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722 else
13723 ld_shlibs_CXX=no
13727 chorus*)
13728 case $cc_basename in
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13733 esac
13736 cygwin* | mingw* | pw32* | cegcc*)
13737 case $GXX,$cc_basename in
13738 ,cl* | no,cl*)
13739 # Native MSVC
13740 # hardcode_libdir_flag_spec is actually meaningless, as there is
13741 # no search path for DLLs.
13742 hardcode_libdir_flag_spec_CXX=' '
13743 allow_undefined_flag_CXX=unsupported
13744 always_export_symbols_CXX=yes
13745 file_list_spec_CXX='@'
13746 # Tell ltmain to make .lib files, not .a files.
13747 libext=lib
13748 # Tell ltmain to make .dll files, not .so files.
13749 shrext_cmds=".dll"
13750 # FIXME: Setting linknames here is a bad hack.
13751 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13752 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13753 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13754 else
13755 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13757 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13758 linknames='
13759 # The linker will not automatically build a static lib if we build a DLL.
13760 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13761 enable_shared_with_static_runtimes_CXX=yes
13762 # Don't use ranlib
13763 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13764 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13765 lt_tool_outputfile="@TOOL_OUTPUT@"~
13766 case $lt_outputfile in
13767 *.exe|*.EXE) ;;
13769 lt_outputfile="$lt_outputfile.exe"
13770 lt_tool_outputfile="$lt_tool_outputfile.exe"
13772 esac~
13773 func_to_tool_file "$lt_outputfile"~
13774 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13775 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13776 $RM "$lt_outputfile.manifest";
13780 # g++
13781 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13782 # as there is no search path for DLLs.
13783 hardcode_libdir_flag_spec_CXX='-L$libdir'
13784 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13785 allow_undefined_flag_CXX=unsupported
13786 always_export_symbols_CXX=no
13787 enable_shared_with_static_runtimes_CXX=yes
13789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13790 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'
13791 # If the export-symbols file already is a .def file (1st line
13792 # is EXPORTS), use it as is; otherwise, prepend...
13793 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13794 cp $export_symbols $output_objdir/$soname.def;
13795 else
13796 echo EXPORTS > $output_objdir/$soname.def;
13797 cat $export_symbols >> $output_objdir/$soname.def;
13799 $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'
13800 else
13801 ld_shlibs_CXX=no
13804 esac
13806 darwin* | rhapsody*)
13809 archive_cmds_need_lc_CXX=no
13810 hardcode_direct_CXX=no
13811 hardcode_automatic_CXX=yes
13812 hardcode_shlibpath_var_CXX=unsupported
13813 if test "$lt_cv_ld_force_load" = "yes"; then
13814 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13816 else
13817 whole_archive_flag_spec_CXX=''
13819 link_all_deplibs_CXX=yes
13820 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13821 case $cc_basename in
13822 ifort*) _lt_dar_can_shared=yes ;;
13823 *) _lt_dar_can_shared=$GCC ;;
13824 esac
13825 if test "$_lt_dar_can_shared" = "yes"; then
13826 output_verbose_link_cmd=func_echo_all
13827 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}"
13828 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13829 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}"
13830 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}"
13831 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13832 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}"
13833 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}"
13836 else
13837 ld_shlibs_CXX=no
13842 dgux*)
13843 case $cc_basename in
13844 ec++*)
13845 # FIXME: insert proper C++ library support
13846 ld_shlibs_CXX=no
13848 ghcx*)
13849 # Green Hills C++ Compiler
13850 # FIXME: insert proper C++ library support
13851 ld_shlibs_CXX=no
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13857 esac
13860 freebsd2.*)
13861 # C++ shared libraries reported to be fairly broken before
13862 # switch to ELF
13863 ld_shlibs_CXX=no
13866 freebsd-elf*)
13867 archive_cmds_need_lc_CXX=no
13870 freebsd* | dragonfly*)
13871 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13872 # conventions
13873 ld_shlibs_CXX=yes
13876 haiku*)
13877 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13878 link_all_deplibs_CXX=yes
13881 hpux9*)
13882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13883 hardcode_libdir_separator_CXX=:
13884 export_dynamic_flag_spec_CXX='${wl}-E'
13885 hardcode_direct_CXX=yes
13886 hardcode_minus_L_CXX=yes # Not in the search PATH,
13887 # but as the default
13888 # location of the library.
13890 case $cc_basename in
13891 CC*)
13892 # FIXME: insert proper C++ library support
13893 ld_shlibs_CXX=no
13895 aCC*)
13896 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'
13897 # Commands to make compiler produce verbose output that lists
13898 # what "hidden" libraries, object files and flags are used when
13899 # linking a shared library.
13901 # There doesn't appear to be a way to prevent this compiler from
13902 # explicitly linking system object files so we need to strip them
13903 # from the output so that they don't get included in the library
13904 # dependencies.
13905 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13908 if test "$GXX" = yes; then
13909 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13910 else
13911 # FIXME: insert proper C++ library support
13912 ld_shlibs_CXX=no
13915 esac
13918 hpux10*|hpux11*)
13919 if test $with_gnu_ld = no; then
13920 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13921 hardcode_libdir_separator_CXX=:
13923 case $host_cpu in
13924 hppa*64*|ia64*)
13927 export_dynamic_flag_spec_CXX='${wl}-E'
13929 esac
13931 case $host_cpu in
13932 hppa*64*|ia64*)
13933 hardcode_direct_CXX=no
13934 hardcode_shlibpath_var_CXX=no
13937 hardcode_direct_CXX=yes
13938 hardcode_direct_absolute_CXX=yes
13939 hardcode_minus_L_CXX=yes # Not in the search PATH,
13940 # but as the default
13941 # location of the library.
13943 esac
13945 case $cc_basename in
13946 CC*)
13947 # FIXME: insert proper C++ library support
13948 ld_shlibs_CXX=no
13950 aCC*)
13951 case $host_cpu in
13952 hppa*64*)
13953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13955 ia64*)
13956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13959 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13961 esac
13962 # Commands to make compiler produce verbose output that lists
13963 # what "hidden" libraries, object files and flags are used when
13964 # linking a shared library.
13966 # There doesn't appear to be a way to prevent this compiler from
13967 # explicitly linking system object files so we need to strip them
13968 # from the output so that they don't get included in the library
13969 # dependencies.
13970 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13973 if test "$GXX" = yes; then
13974 if test $with_gnu_ld = no; then
13975 case $host_cpu in
13976 hppa*64*)
13977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13979 ia64*)
13980 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13983 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13985 esac
13987 else
13988 # FIXME: insert proper C++ library support
13989 ld_shlibs_CXX=no
13992 esac
13995 interix[3-9]*)
13996 hardcode_direct_CXX=no
13997 hardcode_shlibpath_var_CXX=no
13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999 export_dynamic_flag_spec_CXX='${wl}-E'
14000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14001 # Instead, shared libraries are loaded at an image base (0x10000000 by
14002 # default) and relocated if they conflict, which is a slow very memory
14003 # consuming and fragmenting process. To avoid this, we pick a random,
14004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14006 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'
14007 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'
14009 irix5* | irix6*)
14010 case $cc_basename in
14011 CC*)
14012 # SGI C++
14013 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14015 # Archives containing C++ object files must be created using
14016 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14017 # necessary to make sure instantiated templates are included
14018 # in the archive.
14019 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14022 if test "$GXX" = yes; then
14023 if test "$with_gnu_ld" = no; then
14024 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14025 else
14026 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14029 link_all_deplibs_CXX=yes
14031 esac
14032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14033 hardcode_libdir_separator_CXX=:
14034 inherit_rpath_CXX=yes
14037 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14038 case $cc_basename in
14039 KCC*)
14040 # Kuck and Associates, Inc. (KAI) C++ Compiler
14042 # KCC will only create a shared library if the output file
14043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14044 # to its proper name (with version) after linking.
14045 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'
14046 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'
14047 # Commands to make compiler produce verbose output that lists
14048 # what "hidden" libraries, object files and flags are used when
14049 # linking a shared library.
14051 # There doesn't appear to be a way to prevent this compiler from
14052 # explicitly linking system object files so we need to strip them
14053 # from the output so that they don't get included in the library
14054 # dependencies.
14055 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14058 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14060 # Archives containing C++ object files must be created using
14061 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14062 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14064 icpc* | ecpc* )
14065 # Intel C++
14066 with_gnu_ld=yes
14067 # version 8.0 and above of icpc choke on multiply defined symbols
14068 # if we add $predep_objects and $postdep_objects, however 7.1 and
14069 # earlier do not add the objects themselves.
14070 case `$CC -V 2>&1` in
14071 *"Version 7."*)
14072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073 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'
14075 *) # Version 8.0 or newer
14076 tmp_idyn=
14077 case $host_cpu in
14078 ia64*) tmp_idyn=' -i_dynamic';;
14079 esac
14080 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14081 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'
14083 esac
14084 archive_cmds_need_lc_CXX=no
14085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14089 pgCC* | pgcpp*)
14090 # Portland Group C++ compiler
14091 case `$CC -V` in
14092 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14093 prelink_cmds_CXX='tpldir=Template.dir~
14094 rm -rf $tpldir~
14095 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14096 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14097 old_archive_cmds_CXX='tpldir=Template.dir~
14098 rm -rf $tpldir~
14099 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14100 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14101 $RANLIB $oldlib'
14102 archive_cmds_CXX='tpldir=Template.dir~
14103 rm -rf $tpldir~
14104 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14105 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14106 archive_expsym_cmds_CXX='tpldir=Template.dir~
14107 rm -rf $tpldir~
14108 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14109 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14111 *) # Version 6 and above use weak symbols
14112 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14113 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'
14115 esac
14117 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14119 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14121 cxx*)
14122 # Compaq C++
14123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14124 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'
14126 runpath_var=LD_RUN_PATH
14127 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14128 hardcode_libdir_separator_CXX=:
14130 # Commands to make compiler produce verbose output that lists
14131 # what "hidden" libraries, object files and flags are used when
14132 # linking a shared library.
14134 # There doesn't appear to be a way to prevent this compiler from
14135 # explicitly linking system object files so we need to strip them
14136 # from the output so that they don't get included in the library
14137 # dependencies.
14138 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14140 xl* | mpixl* | bgxl*)
14141 # IBM XL 8.0 on PPC, with GNU ld
14142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14144 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145 if test "x$supports_anon_versioning" = xyes; then
14146 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14148 echo "local: *; };" >> $output_objdir/$libname.ver~
14149 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14153 case `$CC -V 2>&1 | sed 5q` in
14154 *Sun\ C*)
14155 # Sun C++ 5.9
14156 no_undefined_flag_CXX=' -zdefs'
14157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14158 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'
14159 hardcode_libdir_flag_spec_CXX='-R$libdir'
14160 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14161 compiler_needs_object_CXX=yes
14163 # Not sure whether something based on
14164 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14165 # would be better.
14166 output_verbose_link_cmd='func_echo_all'
14168 # Archives containing C++ object files must be created using
14169 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14170 # necessary to make sure instantiated templates are included
14171 # in the archive.
14172 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14174 esac
14176 esac
14179 lynxos*)
14180 # FIXME: insert proper C++ library support
14181 ld_shlibs_CXX=no
14184 m88k*)
14185 # FIXME: insert proper C++ library support
14186 ld_shlibs_CXX=no
14189 mvs*)
14190 case $cc_basename in
14191 cxx*)
14192 # FIXME: insert proper C++ library support
14193 ld_shlibs_CXX=no
14196 # FIXME: insert proper C++ library support
14197 ld_shlibs_CXX=no
14199 esac
14202 netbsd*)
14203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14204 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14205 wlarc=
14206 hardcode_libdir_flag_spec_CXX='-R$libdir'
14207 hardcode_direct_CXX=yes
14208 hardcode_shlibpath_var_CXX=no
14210 # Workaround some broken pre-1.5 toolchains
14211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14214 *nto* | *qnx*)
14215 ld_shlibs_CXX=yes
14218 openbsd2*)
14219 # C++ shared libraries are fairly broken
14220 ld_shlibs_CXX=no
14223 openbsd*)
14224 if test -f /usr/libexec/ld.so; then
14225 hardcode_direct_CXX=yes
14226 hardcode_shlibpath_var_CXX=no
14227 hardcode_direct_absolute_CXX=yes
14228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14231 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14232 export_dynamic_flag_spec_CXX='${wl}-E'
14233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14235 output_verbose_link_cmd=func_echo_all
14236 else
14237 ld_shlibs_CXX=no
14241 osf3* | osf4* | osf5*)
14242 case $cc_basename in
14243 KCC*)
14244 # Kuck and Associates, Inc. (KAI) C++ Compiler
14246 # KCC will only create a shared library if the output file
14247 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14248 # to its proper name (with version) after linking.
14249 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'
14251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14252 hardcode_libdir_separator_CXX=:
14254 # Archives containing C++ object files must be created using
14255 # the KAI C++ compiler.
14256 case $host in
14257 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14258 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14259 esac
14261 RCC*)
14262 # Rational C++ 2.4.1
14263 # FIXME: insert proper C++ library support
14264 ld_shlibs_CXX=no
14266 cxx*)
14267 case $host in
14268 osf3*)
14269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14270 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14274 allow_undefined_flag_CXX=' -expect_unresolved \*'
14275 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14276 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14277 echo "-hidden">> $lib.exp~
14278 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14279 $RM $lib.exp'
14280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14282 esac
14284 hardcode_libdir_separator_CXX=:
14286 # Commands to make compiler produce verbose output that lists
14287 # what "hidden" libraries, object files and flags are used when
14288 # linking a shared library.
14290 # There doesn't appear to be a way to prevent this compiler from
14291 # explicitly linking system object files so we need to strip them
14292 # from the output so that they don't get included in the library
14293 # dependencies.
14294 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14299 case $host in
14300 osf3*)
14301 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14304 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14306 esac
14308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14309 hardcode_libdir_separator_CXX=:
14311 # Commands to make compiler produce verbose output that lists
14312 # what "hidden" libraries, object files and flags are used when
14313 # linking a shared library.
14314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14316 else
14317 # FIXME: insert proper C++ library support
14318 ld_shlibs_CXX=no
14321 esac
14324 psos*)
14325 # FIXME: insert proper C++ library support
14326 ld_shlibs_CXX=no
14329 sunos4*)
14330 case $cc_basename in
14331 CC*)
14332 # Sun C++ 4.x
14333 # FIXME: insert proper C++ library support
14334 ld_shlibs_CXX=no
14336 lcc*)
14337 # Lucid
14338 # FIXME: insert proper C++ library support
14339 ld_shlibs_CXX=no
14342 # FIXME: insert proper C++ library support
14343 ld_shlibs_CXX=no
14345 esac
14348 solaris*)
14349 case $cc_basename in
14350 CC* | sunCC*)
14351 # Sun C++ 4.2, 5.x and Centerline C++
14352 archive_cmds_need_lc_CXX=yes
14353 no_undefined_flag_CXX=' -zdefs'
14354 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14355 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14356 $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'
14358 hardcode_libdir_flag_spec_CXX='-R$libdir'
14359 hardcode_shlibpath_var_CXX=no
14360 case $host_os in
14361 solaris2.[0-5] | solaris2.[0-5].*) ;;
14363 # The compiler driver will combine and reorder linker options,
14364 # but understands `-z linker_flag'.
14365 # Supported since Solaris 2.6 (maybe 2.5.1?)
14366 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14368 esac
14369 link_all_deplibs_CXX=yes
14371 output_verbose_link_cmd='func_echo_all'
14373 # Archives containing C++ object files must be created using
14374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14375 # necessary to make sure instantiated templates are included
14376 # in the archive.
14377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14379 gcx*)
14380 # Green Hills C++ Compiler
14381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14383 # The C++ compiler must be used to create the archive.
14384 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14387 # GNU C++ compiler with Solaris linker
14388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14389 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14390 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14391 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14392 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14393 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14395 # Commands to make compiler produce verbose output that lists
14396 # what "hidden" libraries, object files and flags are used when
14397 # linking a shared library.
14398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14399 else
14400 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14401 # platform.
14402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14403 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14406 # Commands to make compiler produce verbose output that lists
14407 # what "hidden" libraries, object files and flags are used when
14408 # linking a shared library.
14409 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14412 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14413 case $host_os in
14414 solaris2.[0-5] | solaris2.[0-5].*) ;;
14416 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14418 esac
14421 esac
14424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14425 no_undefined_flag_CXX='${wl}-z,text'
14426 archive_cmds_need_lc_CXX=no
14427 hardcode_shlibpath_var_CXX=no
14428 runpath_var='LD_RUN_PATH'
14430 case $cc_basename in
14431 CC*)
14432 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14433 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14436 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14437 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14439 esac
14442 sysv5* | sco3.2v5* | sco5v6*)
14443 # Note: We can NOT use -z defs as we might desire, because we do not
14444 # link with -lc, and that would cause any symbols used from libc to
14445 # always be unresolved, which means just about no library would
14446 # ever link correctly. If we're not using GNU ld we use -z text
14447 # though, which does catch some bad symbols but isn't as heavy-handed
14448 # as -z defs.
14449 no_undefined_flag_CXX='${wl}-z,text'
14450 allow_undefined_flag_CXX='${wl}-z,nodefs'
14451 archive_cmds_need_lc_CXX=no
14452 hardcode_shlibpath_var_CXX=no
14453 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14454 hardcode_libdir_separator_CXX=':'
14455 link_all_deplibs_CXX=yes
14456 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14457 runpath_var='LD_RUN_PATH'
14459 case $cc_basename in
14460 CC*)
14461 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14462 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14463 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14464 '"$old_archive_cmds_CXX"
14465 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14466 '"$reload_cmds_CXX"
14469 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14470 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14472 esac
14475 tandem*)
14476 case $cc_basename in
14477 NCC*)
14478 # NonStop-UX NCC 3.20
14479 # FIXME: insert proper C++ library support
14480 ld_shlibs_CXX=no
14483 # FIXME: insert proper C++ library support
14484 ld_shlibs_CXX=no
14486 esac
14489 vxworks*)
14490 # FIXME: insert proper C++ library support
14491 ld_shlibs_CXX=no
14495 # FIXME: insert proper C++ library support
14496 ld_shlibs_CXX=no
14498 esac
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14501 $as_echo "$ld_shlibs_CXX" >&6; }
14502 test "$ld_shlibs_CXX" = no && can_build_shared=no
14504 GCC_CXX="$GXX"
14505 LD_CXX="$LD"
14507 ## CAVEAT EMPTOR:
14508 ## There is no encapsulation within the following macros, do not change
14509 ## the running order or otherwise move them around unless you know exactly
14510 ## what you are doing...
14511 # Dependencies to place before and after the object being linked:
14512 predep_objects_CXX=
14513 postdep_objects_CXX=
14514 predeps_CXX=
14515 postdeps_CXX=
14516 compiler_lib_search_path_CXX=
14518 cat > conftest.$ac_ext <<_LT_EOF
14519 class Foo
14521 public:
14522 Foo (void) { a = 0; }
14523 private:
14524 int a;
14526 _LT_EOF
14529 _lt_libdeps_save_CFLAGS=$CFLAGS
14530 case "$CC $CFLAGS " in #(
14531 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14532 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14533 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14534 esac
14536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14537 (eval $ac_compile) 2>&5
14538 ac_status=$?
14539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14540 test $ac_status = 0; }; then
14541 # Parse the compiler output and extract the necessary
14542 # objects, libraries and library flags.
14544 # Sentinel used to keep track of whether or not we are before
14545 # the conftest object file.
14546 pre_test_object_deps_done=no
14548 for p in `eval "$output_verbose_link_cmd"`; do
14549 case ${prev}${p} in
14551 -L* | -R* | -l*)
14552 # Some compilers place space between "-{L,R}" and the path.
14553 # Remove the space.
14554 if test $p = "-L" ||
14555 test $p = "-R"; then
14556 prev=$p
14557 continue
14560 # Expand the sysroot to ease extracting the directories later.
14561 if test -z "$prev"; then
14562 case $p in
14563 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14564 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14565 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14566 esac
14568 case $p in
14569 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14570 esac
14571 if test "$pre_test_object_deps_done" = no; then
14572 case ${prev} in
14573 -L | -R)
14574 # Internal compiler library paths should come after those
14575 # provided the user. The postdeps already come after the
14576 # user supplied libs so there is no need to process them.
14577 if test -z "$compiler_lib_search_path_CXX"; then
14578 compiler_lib_search_path_CXX="${prev}${p}"
14579 else
14580 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14583 # The "-l" case would never come before the object being
14584 # linked, so don't bother handling this case.
14585 esac
14586 else
14587 if test -z "$postdeps_CXX"; then
14588 postdeps_CXX="${prev}${p}"
14589 else
14590 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14593 prev=
14596 *.lto.$objext) ;; # Ignore GCC LTO objects
14597 *.$objext)
14598 # This assumes that the test object file only shows up
14599 # once in the compiler output.
14600 if test "$p" = "conftest.$objext"; then
14601 pre_test_object_deps_done=yes
14602 continue
14605 if test "$pre_test_object_deps_done" = no; then
14606 if test -z "$predep_objects_CXX"; then
14607 predep_objects_CXX="$p"
14608 else
14609 predep_objects_CXX="$predep_objects_CXX $p"
14611 else
14612 if test -z "$postdep_objects_CXX"; then
14613 postdep_objects_CXX="$p"
14614 else
14615 postdep_objects_CXX="$postdep_objects_CXX $p"
14620 *) ;; # Ignore the rest.
14622 esac
14623 done
14625 # Clean up.
14626 rm -f a.out a.exe
14627 else
14628 echo "libtool.m4: error: problem compiling CXX test program"
14631 $RM -f confest.$objext
14632 CFLAGS=$_lt_libdeps_save_CFLAGS
14634 # PORTME: override above test on systems where it is broken
14635 case $host_os in
14636 interix[3-9]*)
14637 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14638 # hack all around it, let's just trust "g++" to DTRT.
14639 predep_objects_CXX=
14640 postdep_objects_CXX=
14641 postdeps_CXX=
14644 linux*)
14645 case `$CC -V 2>&1 | sed 5q` in
14646 *Sun\ C*)
14647 # Sun C++ 5.9
14649 # The more standards-conforming stlport4 library is
14650 # incompatible with the Cstd library. Avoid specifying
14651 # it if it's in CXXFLAGS. Ignore libCrun as
14652 # -library=stlport4 depends on it.
14653 case " $CXX $CXXFLAGS " in
14654 *" -library=stlport4 "*)
14655 solaris_use_stlport4=yes
14657 esac
14659 if test "$solaris_use_stlport4" != yes; then
14660 postdeps_CXX='-library=Cstd -library=Crun'
14663 esac
14666 solaris*)
14667 case $cc_basename in
14668 CC* | sunCC*)
14669 # The more standards-conforming stlport4 library is
14670 # incompatible with the Cstd library. Avoid specifying
14671 # it if it's in CXXFLAGS. Ignore libCrun as
14672 # -library=stlport4 depends on it.
14673 case " $CXX $CXXFLAGS " in
14674 *" -library=stlport4 "*)
14675 solaris_use_stlport4=yes
14677 esac
14679 # Adding this requires a known-good setup of shared libraries for
14680 # Sun compiler versions before 5.6, else PIC objects from an old
14681 # archive will be linked into the output, leading to subtle bugs.
14682 if test "$solaris_use_stlport4" != yes; then
14683 postdeps_CXX='-library=Cstd -library=Crun'
14686 esac
14688 esac
14691 case " $postdeps_CXX " in
14692 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14693 esac
14694 compiler_lib_search_dirs_CXX=
14695 if test -n "${compiler_lib_search_path_CXX}"; then
14696 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14729 lt_prog_compiler_wl_CXX=
14730 lt_prog_compiler_pic_CXX=
14731 lt_prog_compiler_static_CXX=
14734 # C++ specific cases for pic, static, wl, etc.
14735 if test "$GXX" = yes; then
14736 lt_prog_compiler_wl_CXX='-Wl,'
14737 lt_prog_compiler_static_CXX='-static'
14739 case $host_os in
14740 aix*)
14741 # All AIX code is PIC.
14742 if test "$host_cpu" = ia64; then
14743 # AIX 5 now supports IA64 processor
14744 lt_prog_compiler_static_CXX='-Bstatic'
14748 amigaos*)
14749 case $host_cpu in
14750 powerpc)
14751 # see comment about AmigaOS4 .so support
14752 lt_prog_compiler_pic_CXX='-fPIC'
14754 m68k)
14755 # FIXME: we need at least 68020 code to build shared libraries, but
14756 # adding the `-m68020' flag to GCC prevents building anything better,
14757 # like `-m68040'.
14758 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14760 esac
14763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14764 # PIC is the default for these OSes.
14766 mingw* | cygwin* | os2* | pw32* | cegcc*)
14767 # This hack is so that the source file can tell whether it is being
14768 # built for inclusion in a dll (and should export symbols for example).
14769 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14770 # (--disable-auto-import) libraries
14771 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14773 darwin* | rhapsody*)
14774 # PIC is the default on this platform
14775 # Common symbols not allowed in MH_DYLIB files
14776 lt_prog_compiler_pic_CXX='-fno-common'
14778 *djgpp*)
14779 # DJGPP does not support shared libraries at all
14780 lt_prog_compiler_pic_CXX=
14782 haiku*)
14783 # PIC is the default for Haiku.
14784 # The "-static" flag exists, but is broken.
14785 lt_prog_compiler_static_CXX=
14787 interix[3-9]*)
14788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14789 # Instead, we relocate shared libraries at runtime.
14791 sysv4*MP*)
14792 if test -d /usr/nec; then
14793 lt_prog_compiler_pic_CXX=-Kconform_pic
14796 hpux*)
14797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14799 # sets the default TLS model and affects inlining.
14800 case $host_cpu in
14801 hppa*64*)
14804 lt_prog_compiler_pic_CXX='-fPIC'
14806 esac
14808 *qnx* | *nto*)
14809 # QNX uses GNU C++, but need to define -shared option too, otherwise
14810 # it will coredump.
14811 lt_prog_compiler_pic_CXX='-fPIC -shared'
14814 lt_prog_compiler_pic_CXX='-fPIC'
14816 esac
14817 else
14818 case $host_os in
14819 aix[4-9]*)
14820 # All AIX code is PIC.
14821 if test "$host_cpu" = ia64; then
14822 # AIX 5 now supports IA64 processor
14823 lt_prog_compiler_static_CXX='-Bstatic'
14824 else
14825 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14828 chorus*)
14829 case $cc_basename in
14830 cxch68*)
14831 # Green Hills C++ Compiler
14832 # _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"
14834 esac
14836 mingw* | cygwin* | os2* | pw32* | cegcc*)
14837 # This hack is so that the source file can tell whether it is being
14838 # built for inclusion in a dll (and should export symbols for example).
14839 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14841 dgux*)
14842 case $cc_basename in
14843 ec++*)
14844 lt_prog_compiler_pic_CXX='-KPIC'
14846 ghcx*)
14847 # Green Hills C++ Compiler
14848 lt_prog_compiler_pic_CXX='-pic'
14852 esac
14854 freebsd* | dragonfly*)
14855 # FreeBSD uses GNU C++
14857 hpux9* | hpux10* | hpux11*)
14858 case $cc_basename in
14859 CC*)
14860 lt_prog_compiler_wl_CXX='-Wl,'
14861 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14862 if test "$host_cpu" != ia64; then
14863 lt_prog_compiler_pic_CXX='+Z'
14866 aCC*)
14867 lt_prog_compiler_wl_CXX='-Wl,'
14868 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14869 case $host_cpu in
14870 hppa*64*|ia64*)
14871 # +Z the default
14874 lt_prog_compiler_pic_CXX='+Z'
14876 esac
14880 esac
14882 interix*)
14883 # This is c89, which is MS Visual C++ (no shared libs)
14884 # Anyone wants to do a port?
14886 irix5* | irix6* | nonstopux*)
14887 case $cc_basename in
14888 CC*)
14889 lt_prog_compiler_wl_CXX='-Wl,'
14890 lt_prog_compiler_static_CXX='-non_shared'
14891 # CC pic flag -KPIC is the default.
14895 esac
14897 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14898 case $cc_basename in
14899 KCC*)
14900 # KAI C++ Compiler
14901 lt_prog_compiler_wl_CXX='--backend -Wl,'
14902 lt_prog_compiler_pic_CXX='-fPIC'
14904 ecpc* )
14905 # old Intel C++ for x86_64 which still supported -KPIC.
14906 lt_prog_compiler_wl_CXX='-Wl,'
14907 lt_prog_compiler_pic_CXX='-KPIC'
14908 lt_prog_compiler_static_CXX='-static'
14910 icpc* )
14911 # Intel C++, used to be incompatible with GCC.
14912 # ICC 10 doesn't accept -KPIC any more.
14913 lt_prog_compiler_wl_CXX='-Wl,'
14914 lt_prog_compiler_pic_CXX='-fPIC'
14915 lt_prog_compiler_static_CXX='-static'
14917 pgCC* | pgcpp*)
14918 # Portland Group C++ compiler
14919 lt_prog_compiler_wl_CXX='-Wl,'
14920 lt_prog_compiler_pic_CXX='-fpic'
14921 lt_prog_compiler_static_CXX='-Bstatic'
14923 cxx*)
14924 # Compaq C++
14925 # Make sure the PIC flag is empty. It appears that all Alpha
14926 # Linux and Compaq Tru64 Unix objects are PIC.
14927 lt_prog_compiler_pic_CXX=
14928 lt_prog_compiler_static_CXX='-non_shared'
14930 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14931 # IBM XL 8.0, 9.0 on PPC and BlueGene
14932 lt_prog_compiler_wl_CXX='-Wl,'
14933 lt_prog_compiler_pic_CXX='-qpic'
14934 lt_prog_compiler_static_CXX='-qstaticlink'
14937 case `$CC -V 2>&1 | sed 5q` in
14938 *Sun\ C*)
14939 # Sun C++ 5.9
14940 lt_prog_compiler_pic_CXX='-KPIC'
14941 lt_prog_compiler_static_CXX='-Bstatic'
14942 lt_prog_compiler_wl_CXX='-Qoption ld '
14944 esac
14946 esac
14948 lynxos*)
14950 m88k*)
14952 mvs*)
14953 case $cc_basename in
14954 cxx*)
14955 lt_prog_compiler_pic_CXX='-W c,exportall'
14959 esac
14961 netbsd* | netbsdelf*-gnu)
14963 *qnx* | *nto*)
14964 # QNX uses GNU C++, but need to define -shared option too, otherwise
14965 # it will coredump.
14966 lt_prog_compiler_pic_CXX='-fPIC -shared'
14968 osf3* | osf4* | osf5*)
14969 case $cc_basename in
14970 KCC*)
14971 lt_prog_compiler_wl_CXX='--backend -Wl,'
14973 RCC*)
14974 # Rational C++ 2.4.1
14975 lt_prog_compiler_pic_CXX='-pic'
14977 cxx*)
14978 # Digital/Compaq C++
14979 lt_prog_compiler_wl_CXX='-Wl,'
14980 # Make sure the PIC flag is empty. It appears that all Alpha
14981 # Linux and Compaq Tru64 Unix objects are PIC.
14982 lt_prog_compiler_pic_CXX=
14983 lt_prog_compiler_static_CXX='-non_shared'
14987 esac
14989 psos*)
14991 solaris*)
14992 case $cc_basename in
14993 CC* | sunCC*)
14994 # Sun C++ 4.2, 5.x and Centerline C++
14995 lt_prog_compiler_pic_CXX='-KPIC'
14996 lt_prog_compiler_static_CXX='-Bstatic'
14997 lt_prog_compiler_wl_CXX='-Qoption ld '
14999 gcx*)
15000 # Green Hills C++ Compiler
15001 lt_prog_compiler_pic_CXX='-PIC'
15005 esac
15007 sunos4*)
15008 case $cc_basename in
15009 CC*)
15010 # Sun C++ 4.x
15011 lt_prog_compiler_pic_CXX='-pic'
15012 lt_prog_compiler_static_CXX='-Bstatic'
15014 lcc*)
15015 # Lucid
15016 lt_prog_compiler_pic_CXX='-pic'
15020 esac
15022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15023 case $cc_basename in
15024 CC*)
15025 lt_prog_compiler_wl_CXX='-Wl,'
15026 lt_prog_compiler_pic_CXX='-KPIC'
15027 lt_prog_compiler_static_CXX='-Bstatic'
15029 esac
15031 tandem*)
15032 case $cc_basename in
15033 NCC*)
15034 # NonStop-UX NCC 3.20
15035 lt_prog_compiler_pic_CXX='-KPIC'
15039 esac
15041 vxworks*)
15044 lt_prog_compiler_can_build_shared_CXX=no
15046 esac
15049 case $host_os in
15050 # For platforms which do not support PIC, -DPIC is meaningless:
15051 *djgpp*)
15052 lt_prog_compiler_pic_CXX=
15055 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15057 esac
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15060 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15061 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15062 $as_echo_n "(cached) " >&6
15063 else
15064 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15067 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15068 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15071 # Check to make sure the PIC flag actually works.
15073 if test -n "$lt_prog_compiler_pic_CXX"; then
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15075 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15076 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15077 $as_echo_n "(cached) " >&6
15078 else
15079 lt_cv_prog_compiler_pic_works_CXX=no
15080 ac_outfile=conftest.$ac_objext
15081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15082 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15083 # Insert the option either (1) after the last *FLAGS variable, or
15084 # (2) before a word containing "conftest.", or (3) at the end.
15085 # Note that $ac_compile itself does not contain backslashes and begins
15086 # with a dollar sign (not a hyphen), so the echo should work correctly.
15087 # The option is referenced via a variable to avoid confusing sed.
15088 lt_compile=`echo "$ac_compile" | $SED \
15089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15091 -e 's:$: $lt_compiler_flag:'`
15092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15093 (eval "$lt_compile" 2>conftest.err)
15094 ac_status=$?
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 if (exit $ac_status) && test -s "$ac_outfile"; then
15098 # The compiler can only warn and ignore the option if not recognized
15099 # So say no if there are warnings other than the usual output.
15100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15103 lt_cv_prog_compiler_pic_works_CXX=yes
15106 $RM conftest*
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15110 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15112 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15113 case $lt_prog_compiler_pic_CXX in
15114 "" | " "*) ;;
15115 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15116 esac
15117 else
15118 lt_prog_compiler_pic_CXX=
15119 lt_prog_compiler_can_build_shared_CXX=no
15129 # Check to make sure the static flag actually works.
15131 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15134 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 lt_cv_prog_compiler_static_works_CXX=no
15138 save_LDFLAGS="$LDFLAGS"
15139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15142 # The linker can only warn and ignore the option if not recognized
15143 # So say no if there are warnings
15144 if test -s conftest.err; then
15145 # Append any errors to the config.log.
15146 cat conftest.err 1>&5
15147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15149 if diff conftest.exp conftest.er2 >/dev/null; then
15150 lt_cv_prog_compiler_static_works_CXX=yes
15152 else
15153 lt_cv_prog_compiler_static_works_CXX=yes
15156 $RM -r conftest*
15157 LDFLAGS="$save_LDFLAGS"
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15161 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15163 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15165 else
15166 lt_prog_compiler_static_CXX=
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15174 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 lt_cv_prog_compiler_c_o_CXX=no
15178 $RM -r conftest 2>/dev/null
15179 mkdir conftest
15180 cd conftest
15181 mkdir out
15182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15184 lt_compiler_flag="-o out/conftest2.$ac_objext"
15185 # Insert the option either (1) after the last *FLAGS variable, or
15186 # (2) before a word containing "conftest.", or (3) at the end.
15187 # Note that $ac_compile itself does not contain backslashes and begins
15188 # with a dollar sign (not a hyphen), so the echo should work correctly.
15189 lt_compile=`echo "$ac_compile" | $SED \
15190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15192 -e 's:$: $lt_compiler_flag:'`
15193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15194 (eval "$lt_compile" 2>out/conftest.err)
15195 ac_status=$?
15196 cat out/conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15199 then
15200 # The compiler can only warn and ignore the option if not recognized
15201 # So say no if there are warnings
15202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15205 lt_cv_prog_compiler_c_o_CXX=yes
15208 chmod u+w . 2>&5
15209 $RM conftest*
15210 # SGI C++ compiler will create directory out/ii_files/ for
15211 # template instantiation
15212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15213 $RM out/* && rmdir out
15214 cd ..
15215 $RM -r conftest
15216 $RM conftest*
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15220 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15226 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 lt_cv_prog_compiler_c_o_CXX=no
15230 $RM -r conftest 2>/dev/null
15231 mkdir conftest
15232 cd conftest
15233 mkdir out
15234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15236 lt_compiler_flag="-o out/conftest2.$ac_objext"
15237 # Insert the option either (1) after the last *FLAGS variable, or
15238 # (2) before a word containing "conftest.", or (3) at the end.
15239 # Note that $ac_compile itself does not contain backslashes and begins
15240 # with a dollar sign (not a hyphen), so the echo should work correctly.
15241 lt_compile=`echo "$ac_compile" | $SED \
15242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
15245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15246 (eval "$lt_compile" 2>out/conftest.err)
15247 ac_status=$?
15248 cat out/conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15251 then
15252 # The compiler can only warn and ignore the option if not recognized
15253 # So say no if there are warnings
15254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15257 lt_cv_prog_compiler_c_o_CXX=yes
15260 chmod u+w . 2>&5
15261 $RM conftest*
15262 # SGI C++ compiler will create directory out/ii_files/ for
15263 # template instantiation
15264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15265 $RM out/* && rmdir out
15266 cd ..
15267 $RM -r conftest
15268 $RM conftest*
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15272 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15277 hard_links="nottested"
15278 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15279 # do not overwrite the value of need_locks provided by the user
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15281 $as_echo_n "checking if we can lock with hard links... " >&6; }
15282 hard_links=yes
15283 $RM conftest*
15284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15285 touch conftest.a
15286 ln conftest.a conftest.b 2>&5 || hard_links=no
15287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15289 $as_echo "$hard_links" >&6; }
15290 if test "$hard_links" = no; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15292 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15293 need_locks=warn
15295 else
15296 need_locks=no
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15302 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15304 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15305 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15306 case $host_os in
15307 aix[4-9]*)
15308 # If we're using GNU nm, then we don't want the "-C" option.
15309 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15310 # Also, AIX nm treats weak defined symbols like other global defined
15311 # symbols, whereas GNU nm marks them as "W".
15312 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15313 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15314 else
15315 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'
15318 pw32*)
15319 export_symbols_cmds_CXX="$ltdll_cmds"
15321 cygwin* | mingw* | cegcc*)
15322 case $cc_basename in
15323 cl*)
15324 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15327 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15328 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15330 esac
15332 linux* | k*bsd*-gnu | gnu*)
15333 link_all_deplibs_CXX=no
15336 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15338 esac
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15341 $as_echo "$ld_shlibs_CXX" >&6; }
15342 test "$ld_shlibs_CXX" = no && can_build_shared=no
15344 with_gnu_ld_CXX=$with_gnu_ld
15352 # Do we need to explicitly link libc?
15354 case "x$archive_cmds_need_lc_CXX" in
15355 x|xyes)
15356 # Assume -lc should be added
15357 archive_cmds_need_lc_CXX=yes
15359 if test "$enable_shared" = yes && test "$GCC" = yes; then
15360 case $archive_cmds_CXX in
15361 *'~'*)
15362 # FIXME: we may have to deal with multi-command sequences.
15364 '$CC '*)
15365 # Test whether the compiler implicitly links with -lc since on some
15366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15367 # to ld, don't add -lc before -lgcc.
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15369 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15370 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 $RM conftest*
15374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15377 (eval $ac_compile) 2>&5
15378 ac_status=$?
15379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15380 test $ac_status = 0; } 2>conftest.err; then
15381 soname=conftest
15382 lib=conftest
15383 libobjs=conftest.$ac_objext
15384 deplibs=
15385 wl=$lt_prog_compiler_wl_CXX
15386 pic_flag=$lt_prog_compiler_pic_CXX
15387 compiler_flags=-v
15388 linker_flags=-v
15389 verstring=
15390 output_objdir=.
15391 libname=conftest
15392 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15393 allow_undefined_flag_CXX=
15394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15395 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15396 ac_status=$?
15397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15398 test $ac_status = 0; }
15399 then
15400 lt_cv_archive_cmds_need_lc_CXX=no
15401 else
15402 lt_cv_archive_cmds_need_lc_CXX=yes
15404 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15405 else
15406 cat conftest.err 1>&5
15408 $RM conftest*
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15412 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15413 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15415 esac
15418 esac
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15482 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15484 library_names_spec=
15485 libname_spec='lib$name'
15486 soname_spec=
15487 shrext_cmds=".so"
15488 postinstall_cmds=
15489 postuninstall_cmds=
15490 finish_cmds=
15491 finish_eval=
15492 shlibpath_var=
15493 shlibpath_overrides_runpath=unknown
15494 version_type=none
15495 dynamic_linker="$host_os ld.so"
15496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15497 need_lib_prefix=unknown
15498 hardcode_into_libs=no
15500 # when you set need_version to no, make sure it does not cause -set_version
15501 # flags to be left without arguments
15502 need_version=unknown
15504 case $host_os in
15505 aix3*)
15506 version_type=linux # correct to gnu/linux during the next big refactor
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15508 shlibpath_var=LIBPATH
15510 # AIX 3 has no versioning support, so we append a major version to the name.
15511 soname_spec='${libname}${release}${shared_ext}$major'
15514 aix[4-9]*)
15515 version_type=linux # correct to gnu/linux during the next big refactor
15516 need_lib_prefix=no
15517 need_version=no
15518 hardcode_into_libs=yes
15519 if test "$host_cpu" = ia64; then
15520 # AIX 5 supports IA64
15521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 else
15524 # With GCC up to 2.95.x, collect2 would create an import file
15525 # for dependence libraries. The import file would start with
15526 # the line `#! .'. This would cause the generated library to
15527 # depend on `.', always an invalid library. This was fixed in
15528 # development snapshots of GCC prior to 3.0.
15529 case $host_os in
15530 aix4 | aix4.[01] | aix4.[01].*)
15531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15532 echo ' yes '
15533 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15535 else
15536 can_build_shared=no
15539 esac
15540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15541 # soname into executable. Probably we can add versioning support to
15542 # collect2, so additional links can be useful in future.
15543 if test "$aix_use_runtimelinking" = yes; then
15544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15545 # instead of lib<name>.a to let people know that these are not
15546 # typical AIX shared libraries.
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 else
15549 # We preserve .a as extension for shared libraries through AIX4.2
15550 # and later when we are not doing run time linking.
15551 library_names_spec='${libname}${release}.a $libname.a'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15554 shlibpath_var=LIBPATH
15558 amigaos*)
15559 case $host_cpu in
15560 powerpc)
15561 # Since July 2007 AmigaOS4 officially supports .so libraries.
15562 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 m68k)
15566 library_names_spec='$libname.ixlibrary $libname.a'
15567 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15568 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15570 esac
15573 beos*)
15574 library_names_spec='${libname}${shared_ext}'
15575 dynamic_linker="$host_os ld.so"
15576 shlibpath_var=LIBRARY_PATH
15579 bsdi[45]*)
15580 version_type=linux # correct to gnu/linux during the next big refactor
15581 need_version=no
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15588 # the default ld.so.conf also contains /usr/contrib/lib and
15589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15590 # libtool to hard-code these into programs
15593 cygwin* | mingw* | pw32* | cegcc*)
15594 version_type=windows
15595 shrext_cmds=".dll"
15596 need_version=no
15597 need_lib_prefix=no
15599 case $GCC,$cc_basename in
15600 yes,*)
15601 # gcc
15602 library_names_spec='$libname.dll.a'
15603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15604 postinstall_cmds='base_file=`basename \${file}`~
15605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15606 dldir=$destdir/`dirname \$dlpath`~
15607 test -d \$dldir || mkdir -p \$dldir~
15608 $install_prog $dir/$dlname \$dldir/$dlname~
15609 chmod a+x \$dldir/$dlname~
15610 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15611 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15614 dlpath=$dir/\$dldll~
15615 $RM \$dlpath'
15616 shlibpath_overrides_runpath=yes
15618 case $host_os in
15619 cygwin*)
15620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15624 mingw* | cegcc*)
15625 # MinGW DLLs use traditional 'lib' prefix
15626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15628 pw32*)
15629 # pw32 DLLs use 'pw' prefix rather than 'lib'
15630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15632 esac
15633 dynamic_linker='Win32 ld.exe'
15636 *,cl*)
15637 # Native MSVC
15638 libname_spec='$name'
15639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15640 library_names_spec='${libname}.dll.lib'
15642 case $build_os in
15643 mingw*)
15644 sys_lib_search_path_spec=
15645 lt_save_ifs=$IFS
15646 IFS=';'
15647 for lt_path in $LIB
15649 IFS=$lt_save_ifs
15650 # Let DOS variable expansion print the short 8.3 style file name.
15651 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15652 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15653 done
15654 IFS=$lt_save_ifs
15655 # Convert to MSYS style.
15656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15658 cygwin*)
15659 # Convert to unix form, then to dos form, then back to unix form
15660 # but this time dos style (no spaces!) so that the unix form looks
15661 # like /cygdrive/c/PROGRA~1:/cygdr...
15662 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15663 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15664 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15667 sys_lib_search_path_spec="$LIB"
15668 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15669 # It is most probably a Windows format PATH.
15670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15671 else
15672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15674 # FIXME: find the short name or the path components, as spaces are
15675 # common. (e.g. "Program Files" -> "PROGRA~1")
15677 esac
15679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15680 postinstall_cmds='base_file=`basename \${file}`~
15681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15682 dldir=$destdir/`dirname \$dlpath`~
15683 test -d \$dldir || mkdir -p \$dldir~
15684 $install_prog $dir/$dlname \$dldir/$dlname'
15685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15686 dlpath=$dir/\$dldll~
15687 $RM \$dlpath'
15688 shlibpath_overrides_runpath=yes
15689 dynamic_linker='Win32 link.exe'
15693 # Assume MSVC wrapper
15694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15695 dynamic_linker='Win32 ld.exe'
15697 esac
15698 # FIXME: first we should search . and the directory the executable is in
15699 shlibpath_var=PATH
15702 darwin* | rhapsody*)
15703 dynamic_linker="$host_os dyld"
15704 version_type=darwin
15705 need_lib_prefix=no
15706 need_version=no
15707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15708 soname_spec='${libname}${release}${major}$shared_ext'
15709 shlibpath_overrides_runpath=yes
15710 shlibpath_var=DYLD_LIBRARY_PATH
15711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15716 dgux*)
15717 version_type=linux # correct to gnu/linux during the next big refactor
15718 need_lib_prefix=no
15719 need_version=no
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15725 freebsd* | dragonfly*)
15726 # DragonFly does not have aout. When/if they implement a new
15727 # versioning mechanism, adjust this.
15728 if test -x /usr/bin/objformat; then
15729 objformat=`/usr/bin/objformat`
15730 else
15731 case $host_os in
15732 freebsd[23].*) objformat=aout ;;
15733 *) objformat=elf ;;
15734 esac
15736 version_type=freebsd-$objformat
15737 case $version_type in
15738 freebsd-elf*)
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15740 need_version=no
15741 need_lib_prefix=no
15743 freebsd-*)
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15745 need_version=yes
15747 esac
15748 shlibpath_var=LD_LIBRARY_PATH
15749 case $host_os in
15750 freebsd2.*)
15751 shlibpath_overrides_runpath=yes
15753 freebsd3.[01]* | freebsdelf3.[01]*)
15754 shlibpath_overrides_runpath=yes
15755 hardcode_into_libs=yes
15757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15759 shlibpath_overrides_runpath=no
15760 hardcode_into_libs=yes
15762 *) # from 4.6 on, and DragonFly
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15766 esac
15769 haiku*)
15770 version_type=linux # correct to gnu/linux during the next big refactor
15771 need_lib_prefix=no
15772 need_version=no
15773 dynamic_linker="$host_os runtime_loader"
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 shlibpath_var=LIBRARY_PATH
15777 shlibpath_overrides_runpath=yes
15778 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15779 hardcode_into_libs=yes
15782 hpux9* | hpux10* | hpux11*)
15783 # Give a soname corresponding to the major version so that dld.sl refuses to
15784 # link against other versions.
15785 version_type=sunos
15786 need_lib_prefix=no
15787 need_version=no
15788 case $host_cpu in
15789 ia64*)
15790 shrext_cmds='.so'
15791 hardcode_into_libs=yes
15792 dynamic_linker="$host_os dld.so"
15793 shlibpath_var=LD_LIBRARY_PATH
15794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15796 soname_spec='${libname}${release}${shared_ext}$major'
15797 if test "X$HPUX_IA64_MODE" = X32; then
15798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15799 else
15800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804 hppa*64*)
15805 shrext_cmds='.sl'
15806 hardcode_into_libs=yes
15807 dynamic_linker="$host_os dld.sl"
15808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15816 shrext_cmds='.sl'
15817 dynamic_linker="$host_os dld.sl"
15818 shlibpath_var=SHLIB_PATH
15819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 soname_spec='${libname}${release}${shared_ext}$major'
15823 esac
15824 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15825 postinstall_cmds='chmod 555 $lib'
15826 # or fails outright, so override atomically:
15827 install_override_mode=555
15830 interix[3-9]*)
15831 version_type=linux # correct to gnu/linux during the next big refactor
15832 need_lib_prefix=no
15833 need_version=no
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 shlibpath_overrides_runpath=no
15839 hardcode_into_libs=yes
15842 irix5* | irix6* | nonstopux*)
15843 case $host_os in
15844 nonstopux*) version_type=nonstopux ;;
15846 if test "$lt_cv_prog_gnu_ld" = yes; then
15847 version_type=linux # correct to gnu/linux during the next big refactor
15848 else
15849 version_type=irix
15850 fi ;;
15851 esac
15852 need_lib_prefix=no
15853 need_version=no
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15856 case $host_os in
15857 irix5* | nonstopux*)
15858 libsuff= shlibsuff=
15861 case $LD in # libtool.m4 will add one of these switches to LD
15862 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15863 libsuff= shlibsuff= libmagic=32-bit;;
15864 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15865 libsuff=32 shlibsuff=N32 libmagic=N32;;
15866 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15867 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15868 *) libsuff= shlibsuff= libmagic=never-match;;
15869 esac
15871 esac
15872 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15873 shlibpath_overrides_runpath=no
15874 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15875 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15876 hardcode_into_libs=yes
15879 # No shared lib support for Linux oldld, aout, or coff.
15880 linux*oldld* | linux*aout* | linux*coff*)
15881 dynamic_linker=no
15884 # This must be glibc/ELF.
15885 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15886 version_type=linux # correct to gnu/linux during the next big refactor
15887 need_lib_prefix=no
15888 need_version=no
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=no
15895 # Some binutils ld are patched to set DT_RUNPATH
15896 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15899 lt_cv_shlibpath_overrides_runpath=no
15900 save_LDFLAGS=$LDFLAGS
15901 save_libdir=$libdir
15902 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15903 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15908 main ()
15912 return 0;
15914 _ACEOF
15915 if ac_fn_cxx_try_link "$LINENO"; then :
15916 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15917 lt_cv_shlibpath_overrides_runpath=yes
15920 rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922 LDFLAGS=$save_LDFLAGS
15923 libdir=$save_libdir
15927 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15929 # This implies no fast_install, which is unacceptable.
15930 # Some rework will be needed to allow for fast_install
15931 # before this can be enabled.
15932 hardcode_into_libs=yes
15934 # Append ld.so.conf contents to the search path
15935 if test -f /etc/ld.so.conf; then
15936 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15940 # We used to test for /lib/ld.so.1 and disable shared libraries on
15941 # powerpc, because MkLinux only supported shared libraries with the
15942 # GNU dynamic linker. Since this was broken with cross compilers,
15943 # most powerpc-linux boxes support dynamic linking these days and
15944 # people can always --disable-shared, the test was removed, and we
15945 # assume the GNU/Linux dynamic linker is in use.
15946 dynamic_linker='GNU/Linux ld.so'
15949 netbsdelf*-gnu)
15950 version_type=linux
15951 need_lib_prefix=no
15952 need_version=no
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 shlibpath_var=LD_LIBRARY_PATH
15956 shlibpath_overrides_runpath=no
15957 hardcode_into_libs=yes
15958 dynamic_linker='NetBSD ld.elf_so'
15961 netbsd*)
15962 version_type=sunos
15963 need_lib_prefix=no
15964 need_version=no
15965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15968 dynamic_linker='NetBSD (a.out) ld.so'
15969 else
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 dynamic_linker='NetBSD ld.elf_so'
15974 shlibpath_var=LD_LIBRARY_PATH
15975 shlibpath_overrides_runpath=yes
15976 hardcode_into_libs=yes
15979 newsos6)
15980 version_type=linux # correct to gnu/linux during the next big refactor
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15982 shlibpath_var=LD_LIBRARY_PATH
15983 shlibpath_overrides_runpath=yes
15986 *nto* | *qnx*)
15987 version_type=qnx
15988 need_lib_prefix=no
15989 need_version=no
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 shlibpath_overrides_runpath=no
15994 hardcode_into_libs=yes
15995 dynamic_linker='ldqnx.so'
15998 openbsd*)
15999 version_type=sunos
16000 sys_lib_dlsearch_path_spec="/usr/lib"
16001 need_lib_prefix=no
16002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16003 case $host_os in
16004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16005 *) need_version=no ;;
16006 esac
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011 case $host_os in
16012 openbsd2.[89] | openbsd2.[89].*)
16013 shlibpath_overrides_runpath=no
16016 shlibpath_overrides_runpath=yes
16018 esac
16019 else
16020 shlibpath_overrides_runpath=yes
16024 os2*)
16025 libname_spec='$name'
16026 shrext_cmds=".dll"
16027 need_lib_prefix=no
16028 library_names_spec='$libname${shared_ext} $libname.a'
16029 dynamic_linker='OS/2 ld.exe'
16030 shlibpath_var=LIBPATH
16033 osf3* | osf4* | osf5*)
16034 version_type=osf
16035 need_lib_prefix=no
16036 need_version=no
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16044 rdos*)
16045 dynamic_linker=no
16048 solaris*)
16049 version_type=linux # correct to gnu/linux during the next big refactor
16050 need_lib_prefix=no
16051 need_version=no
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=yes
16056 hardcode_into_libs=yes
16057 # ldd complains unless libraries are executable
16058 postinstall_cmds='chmod +x $lib'
16061 sunos4*)
16062 version_type=sunos
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=yes
16067 if test "$with_gnu_ld" = yes; then
16068 need_lib_prefix=no
16070 need_version=yes
16073 sysv4 | sysv4.3*)
16074 version_type=linux # correct to gnu/linux during the next big refactor
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 case $host_vendor in
16079 sni)
16080 shlibpath_overrides_runpath=no
16081 need_lib_prefix=no
16082 runpath_var=LD_RUN_PATH
16084 siemens)
16085 need_lib_prefix=no
16087 motorola)
16088 need_lib_prefix=no
16089 need_version=no
16090 shlibpath_overrides_runpath=no
16091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16093 esac
16096 sysv4*MP*)
16097 if test -d /usr/nec ;then
16098 version_type=linux # correct to gnu/linux during the next big refactor
16099 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16100 soname_spec='$libname${shared_ext}.$major'
16101 shlibpath_var=LD_LIBRARY_PATH
16105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16106 version_type=freebsd-elf
16107 need_lib_prefix=no
16108 need_version=no
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=yes
16113 hardcode_into_libs=yes
16114 if test "$with_gnu_ld" = yes; then
16115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16116 else
16117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16118 case $host_os in
16119 sco3.2v5*)
16120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16122 esac
16124 sys_lib_dlsearch_path_spec='/usr/lib'
16127 tpf*)
16128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16129 version_type=linux # correct to gnu/linux during the next big refactor
16130 need_lib_prefix=no
16131 need_version=no
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 shlibpath_overrides_runpath=no
16135 hardcode_into_libs=yes
16138 uts4*)
16139 version_type=linux # correct to gnu/linux during the next big refactor
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 shlibpath_var=LD_LIBRARY_PATH
16146 dynamic_linker=no
16148 esac
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16150 $as_echo "$dynamic_linker" >&6; }
16151 test "$dynamic_linker" = no && can_build_shared=no
16153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16154 if test "$GCC" = yes; then
16155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16158 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16159 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16161 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16162 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16204 hardcode_action_CXX=
16205 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16206 test -n "$runpath_var_CXX" ||
16207 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16209 # We can hardcode non-existent directories.
16210 if test "$hardcode_direct_CXX" != no &&
16211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16212 # have to relink, otherwise we might link with an installed library
16213 # when we should be linking with a yet-to-be-installed one
16214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16215 test "$hardcode_minus_L_CXX" != no; then
16216 # Linking always hardcodes the temporary library directory.
16217 hardcode_action_CXX=relink
16218 else
16219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16220 hardcode_action_CXX=immediate
16222 else
16223 # We cannot hardcode anything, or else we can only hardcode existing
16224 # directories.
16225 hardcode_action_CXX=unsupported
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16228 $as_echo "$hardcode_action_CXX" >&6; }
16230 if test "$hardcode_action_CXX" = relink ||
16231 test "$inherit_rpath_CXX" = yes; then
16232 # Fast installation is not supported
16233 enable_fast_install=no
16234 elif test "$shlibpath_overrides_runpath" = yes ||
16235 test "$enable_shared" = no; then
16236 # Fast installation is not necessary
16237 enable_fast_install=needless
16246 fi # test -n "$compiler"
16248 CC=$lt_save_CC
16249 CFLAGS=$lt_save_CFLAGS
16250 LDCXX=$LD
16251 LD=$lt_save_LD
16252 GCC=$lt_save_GCC
16253 with_gnu_ld=$lt_save_with_gnu_ld
16254 lt_cv_path_LDCXX=$lt_cv_path_LD
16255 lt_cv_path_LD=$lt_save_path_LD
16256 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16257 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16258 fi # test "$_lt_caught_CXX_error" != yes
16260 ac_ext=c
16261 ac_cpp='$CPP $CPPFLAGS'
16262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16268 $as_echo_n "checking for inline... " >&6; }
16269 if ${ac_cv_c_inline+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 ac_cv_c_inline=no
16273 for ac_kw in inline __inline__ __inline; do
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 #ifndef __cplusplus
16277 typedef int foo_t;
16278 static $ac_kw foo_t static_foo () {return 0; }
16279 $ac_kw foo_t foo () {return 0; }
16280 #endif
16282 _ACEOF
16283 if ac_fn_c_try_compile "$LINENO"; then :
16284 ac_cv_c_inline=$ac_kw
16286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287 test "$ac_cv_c_inline" != no && break
16288 done
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16292 $as_echo "$ac_cv_c_inline" >&6; }
16294 case $ac_cv_c_inline in
16295 inline | yes) ;;
16297 case $ac_cv_c_inline in
16298 no) ac_val=;;
16299 *) ac_val=$ac_cv_c_inline;;
16300 esac
16301 cat >>confdefs.h <<_ACEOF
16302 #ifndef __cplusplus
16303 #define inline $ac_val
16304 #endif
16305 _ACEOF
16307 esac
16309 if test "x$GCC" = "xyes" ; then
16311 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"
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
16314 $as_echo_n "checking gcc version... " >&6; }
16315 GCC_VERSION=`$CC -dumpversion`
16316 GCC_MAJOR=`echo $GCC_VERSION | cut -d . -f1`
16317 GCC_MINOR=`echo $GCC_VERSION | cut -d . -f2`
16318 GCC_VERSION_NUM=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null`
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
16321 $as_echo "$GCC_VERSION" >&6; }
16322 if test $GCC_VERSION_NUM -ge 304; then
16323 CFLAGS="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self"
16325 if test $GCC_VERSION_NUM -ge 403; then
16326 CFLAGS="$CFLAGS -Wvariadic-macros"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16331 $as_echo_n "checking for ANSI C header files... " >&6; }
16332 if ${ac_cv_header_stdc+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336 /* end confdefs.h. */
16337 #include <stdlib.h>
16338 #include <stdarg.h>
16339 #include <string.h>
16340 #include <float.h>
16343 main ()
16347 return 0;
16349 _ACEOF
16350 if ac_fn_c_try_compile "$LINENO"; then :
16351 ac_cv_header_stdc=yes
16352 else
16353 ac_cv_header_stdc=no
16355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 if test $ac_cv_header_stdc = yes; then
16358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 #include <string.h>
16363 _ACEOF
16364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16365 $EGREP "memchr" >/dev/null 2>&1; then :
16367 else
16368 ac_cv_header_stdc=no
16370 rm -f conftest*
16374 if test $ac_cv_header_stdc = yes; then
16375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16378 #include <stdlib.h>
16380 _ACEOF
16381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16382 $EGREP "free" >/dev/null 2>&1; then :
16384 else
16385 ac_cv_header_stdc=no
16387 rm -f conftest*
16391 if test $ac_cv_header_stdc = yes; then
16392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16393 if test "$cross_compiling" = yes; then :
16395 else
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 #include <ctype.h>
16399 #include <stdlib.h>
16400 #if ((' ' & 0x0FF) == 0x020)
16401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16403 #else
16404 # define ISLOWER(c) \
16405 (('a' <= (c) && (c) <= 'i') \
16406 || ('j' <= (c) && (c) <= 'r') \
16407 || ('s' <= (c) && (c) <= 'z'))
16408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16409 #endif
16411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16413 main ()
16415 int i;
16416 for (i = 0; i < 256; i++)
16417 if (XOR (islower (i), ISLOWER (i))
16418 || toupper (i) != TOUPPER (i))
16419 return 2;
16420 return 0;
16422 _ACEOF
16423 if ac_fn_c_try_run "$LINENO"; then :
16425 else
16426 ac_cv_header_stdc=no
16428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16429 conftest.$ac_objext conftest.beam conftest.$ac_ext
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16435 $as_echo "$ac_cv_header_stdc" >&6; }
16436 if test $ac_cv_header_stdc = yes; then
16438 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16443 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16444 if ${ac_cv_header_time+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 #include <sys/types.h>
16450 #include <sys/time.h>
16451 #include <time.h>
16454 main ()
16456 if ((struct tm *) 0)
16457 return 0;
16459 return 0;
16461 _ACEOF
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 ac_cv_header_time=yes
16464 else
16465 ac_cv_header_time=no
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16470 $as_echo "$ac_cv_header_time" >&6; }
16471 if test $ac_cv_header_time = yes; then
16473 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16478 for ac_header in stdbool.h
16479 do :
16480 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
16481 if test "x$ac_cv_header_stdbool_h" = xyes; then :
16482 cat >>confdefs.h <<_ACEOF
16483 #define HAVE_STDBOOL_H 1
16484 _ACEOF
16488 done
16490 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 mkdtemp
16491 do :
16492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16493 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16494 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16495 cat >>confdefs.h <<_ACEOF
16496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16497 _ACEOF
16500 done
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16504 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16505 set x ${MAKE-make}
16506 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16507 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat >conftest.make <<\_ACEOF
16511 SHELL = /bin/sh
16512 all:
16513 @echo '@@@%%%=$(MAKE)=@@@%%%'
16514 _ACEOF
16515 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16516 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16517 *@@@%%%=?*=@@@%%%*)
16518 eval ac_cv_prog_make_${ac_make}_set=yes;;
16520 eval ac_cv_prog_make_${ac_make}_set=no;;
16521 esac
16522 rm -f conftest.make
16524 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16526 $as_echo "yes" >&6; }
16527 SET_MAKE=
16528 else
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 $as_echo "no" >&6; }
16531 SET_MAKE="MAKE=${MAKE-make}"
16537 ac_ext=c
16538 ac_cpp='$CPP $CPPFLAGS'
16539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16543 acx_pthread_ok=no
16545 # We used to check for pthread.h first, but this fails if pthread.h
16546 # requires special compiler flags (e.g. on True64 or Sequent).
16547 # It gets checked for in the link test anyway.
16549 # First of all, check if the user has set any of the PTHREAD_LIBS,
16550 # etcetera environment variables, and if threads linking works using
16551 # them:
16552 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16553 save_CFLAGS="$CFLAGS"
16554 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16555 save_LIBS="$LIBS"
16556 LIBS="$PTHREAD_LIBS $LIBS"
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16558 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char pthread_join ();
16570 main ()
16572 return pthread_join ();
16574 return 0;
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 acx_pthread_ok=yes
16580 rm -f core conftest.err conftest.$ac_objext \
16581 conftest$ac_exeext conftest.$ac_ext
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16583 $as_echo "$acx_pthread_ok" >&6; }
16584 if test x"$acx_pthread_ok" = xno; then
16585 PTHREAD_LIBS=""
16586 PTHREAD_CFLAGS=""
16588 LIBS="$save_LIBS"
16589 CFLAGS="$save_CFLAGS"
16592 # We must check for the threads library under a number of different
16593 # names; the ordering is very important because some systems
16594 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16595 # libraries is broken (non-POSIX).
16597 # Create a list of thread flags to try. Items starting with a "-" are
16598 # C compiler flags, and other items are library names, except for "none"
16599 # which indicates that we try without any flags at all, and "pthread-config"
16600 # which is a program returning the flags for the Pth emulation library.
16602 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16604 # The ordering *is* (sometimes) important. Some notes on the
16605 # individual items follow:
16607 # pthreads: AIX (must check this before -lpthread)
16608 # none: in case threads are in libc; should be tried before -Kthread and
16609 # other compiler flags to prevent continual compiler warnings
16610 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16611 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16612 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16613 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16614 # -pthreads: Solaris/gcc
16615 # -mthreads: Mingw32/gcc, Lynx/gcc
16616 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16617 # doesn't hurt to check since this sometimes defines pthreads too;
16618 # also defines -D_REENTRANT)
16619 # ... -mt is also the pthreads flag for HP/aCC
16620 # pthread: Linux, etcetera
16621 # --thread-safe: KAI C++
16622 # pthread-config: use pthread-config program (for GNU Pth library)
16624 case "${host_cpu}-${host_os}" in
16625 *solaris*)
16627 # On Solaris (at least, for some versions), libc contains stubbed
16628 # (non-functional) versions of the pthreads routines, so link-based
16629 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16630 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16631 # a function called by this macro, so we could check for that, but
16632 # who knows whether they'll stub that too in a future libc.) So,
16633 # we'll just look for -pthreads and -lpthread first:
16635 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16637 esac
16639 if test x"$acx_pthread_ok" = xno; then
16640 for flag in $acx_pthread_flags; do
16642 case $flag in
16643 none)
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16645 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16650 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16651 PTHREAD_CFLAGS="$flag"
16654 pthread-config)
16655 # Extract the first word of "pthread-config", so it can be a program name with args.
16656 set dummy pthread-config; ac_word=$2
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16658 $as_echo_n "checking for $ac_word... " >&6; }
16659 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 if test -n "$acx_pthread_config"; then
16663 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16664 else
16665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16668 IFS=$as_save_IFS
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_prog_acx_pthread_config="yes"
16673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16674 break 2
16676 done
16677 done
16678 IFS=$as_save_IFS
16680 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16683 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16684 if test -n "$acx_pthread_config"; then
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16686 $as_echo "$acx_pthread_config" >&6; }
16687 else
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16693 if test x"$acx_pthread_config" = xno; then continue; fi
16694 PTHREAD_CFLAGS="`pthread-config --cflags`"
16695 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16700 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16701 PTHREAD_LIBS="-l$flag"
16703 esac
16705 save_LIBS="$LIBS"
16706 save_CFLAGS="$CFLAGS"
16707 LIBS="$PTHREAD_LIBS $LIBS"
16708 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16710 # Check for various functions. We must include pthread.h,
16711 # since some functions may be macros. (On the Sequent, we
16712 # need a special flag -Kthread to make this header compile.)
16713 # We check for pthread_join because it is in -lpthread on IRIX
16714 # while pthread_create is in libc. We check for pthread_attr_init
16715 # due to DEC craziness with -lpthreads. We check for
16716 # pthread_cleanup_push because it is one of the few pthread
16717 # functions on Solaris that doesn't have a non-functional libc stub.
16718 # We try pthread_create on general principles.
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721 #include <pthread.h>
16723 main ()
16725 pthread_t th; pthread_join(th, 0);
16726 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16727 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16729 return 0;
16731 _ACEOF
16732 if ac_fn_c_try_link "$LINENO"; then :
16733 acx_pthread_ok=yes
16735 rm -f core conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16738 LIBS="$save_LIBS"
16739 CFLAGS="$save_CFLAGS"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16742 $as_echo "$acx_pthread_ok" >&6; }
16743 if test "x$acx_pthread_ok" = xyes; then
16744 break;
16747 PTHREAD_LIBS=""
16748 PTHREAD_CFLAGS=""
16749 done
16752 # Various other checks:
16753 if test "x$acx_pthread_ok" = xyes; then
16754 save_LIBS="$LIBS"
16755 LIBS="$PTHREAD_LIBS $LIBS"
16756 save_CFLAGS="$CFLAGS"
16757 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16759 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16761 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16762 attr_name=unknown
16763 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16766 #include <pthread.h>
16768 main ()
16770 int attr=$attr; return attr;
16772 return 0;
16774 _ACEOF
16775 if ac_fn_c_try_link "$LINENO"; then :
16776 attr_name=$attr; break
16778 rm -f core conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
16780 done
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16782 $as_echo "$attr_name" >&6; }
16783 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define PTHREAD_CREATE_JOINABLE $attr_name
16787 _ACEOF
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16792 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16793 flag=no
16794 case "${host_cpu}-${host_os}" in
16795 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16796 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16797 esac
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16799 $as_echo "${flag}" >&6; }
16800 if test "x$flag" != xno; then
16801 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16804 LIBS="$save_LIBS"
16805 CFLAGS="$save_CFLAGS"
16807 # More AIX lossage: must compile with xlc_r or cc_r
16808 if test x"$GCC" != xyes; then
16809 for ac_prog in xlc_r cc_r
16811 # Extract the first word of "$ac_prog", so it can be a program name with args.
16812 set dummy $ac_prog; ac_word=$2
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16814 $as_echo_n "checking for $ac_word... " >&6; }
16815 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817 else
16818 if test -n "$PTHREAD_CC"; then
16819 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16820 else
16821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16822 for as_dir in $PATH
16824 IFS=$as_save_IFS
16825 test -z "$as_dir" && as_dir=.
16826 for ac_exec_ext in '' $ac_executable_extensions; do
16827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16828 ac_cv_prog_PTHREAD_CC="$ac_prog"
16829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16830 break 2
16832 done
16833 done
16834 IFS=$as_save_IFS
16838 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16839 if test -n "$PTHREAD_CC"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16841 $as_echo "$PTHREAD_CC" >&6; }
16842 else
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16848 test -n "$PTHREAD_CC" && break
16849 done
16850 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16852 else
16853 PTHREAD_CC=$CC
16855 else
16856 PTHREAD_CC="$CC"
16863 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16864 if test x"$acx_pthread_ok" = xyes; then
16866 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16869 else
16870 acx_pthread_ok=no
16873 ac_ext=c
16874 ac_cpp='$CPP $CPPFLAGS'
16875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16881 if test "x$ac_cv_func_strtold" != "xyes" ; then
16882 CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
16886 $as_echo_n "checking for library containing cos... " >&6; }
16887 if ${ac_cv_search_cos+:} false; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 ac_func_search_save_LIBS=$LIBS
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16894 /* Override any GCC internal prototype to avoid an error.
16895 Use char because int might match the return type of a GCC
16896 builtin and then its argument prototype would still apply. */
16897 #ifdef __cplusplus
16898 extern "C"
16899 #endif
16900 char cos ();
16902 main ()
16904 return cos ();
16906 return 0;
16908 _ACEOF
16909 for ac_lib in '' m; do
16910 if test -z "$ac_lib"; then
16911 ac_res="none required"
16912 else
16913 ac_res=-l$ac_lib
16914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 ac_cv_search_cos=$ac_res
16919 rm -f core conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext
16921 if ${ac_cv_search_cos+:} false; then :
16922 break
16924 done
16925 if ${ac_cv_search_cos+:} false; then :
16927 else
16928 ac_cv_search_cos=no
16930 rm conftest.$ac_ext
16931 LIBS=$ac_func_search_save_LIBS
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
16934 $as_echo "$ac_cv_search_cos" >&6; }
16935 ac_res=$ac_cv_search_cos
16936 if test "$ac_res" != no; then :
16937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16942 $as_echo_n "checking for library containing socket... " >&6; }
16943 if ${ac_cv_search_socket+:} false; then :
16944 $as_echo_n "(cached) " >&6
16945 else
16946 ac_func_search_save_LIBS=$LIBS
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char socket ();
16958 main ()
16960 return socket ();
16962 return 0;
16964 _ACEOF
16965 for ac_lib in '' socket net; do
16966 if test -z "$ac_lib"; then
16967 ac_res="none required"
16968 else
16969 ac_res=-l$ac_lib
16970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16972 if ac_fn_c_try_link "$LINENO"; then :
16973 ac_cv_search_socket=$ac_res
16975 rm -f core conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext
16977 if ${ac_cv_search_socket+:} false; then :
16978 break
16980 done
16981 if ${ac_cv_search_socket+:} false; then :
16983 else
16984 ac_cv_search_socket=no
16986 rm conftest.$ac_ext
16987 LIBS=$ac_func_search_save_LIBS
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16990 $as_echo "$ac_cv_search_socket" >&6; }
16991 ac_res=$ac_cv_search_socket
16992 if test "$ac_res" != no; then :
16993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16998 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16999 if ${ac_cv_search_gethostbyname+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001 else
17002 ac_func_search_save_LIBS=$LIBS
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17006 /* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 char gethostbyname ();
17014 main ()
17016 return gethostbyname ();
17018 return 0;
17020 _ACEOF
17021 for ac_lib in '' nsl bind; do
17022 if test -z "$ac_lib"; then
17023 ac_res="none required"
17024 else
17025 ac_res=-l$ac_lib
17026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 ac_cv_search_gethostbyname=$ac_res
17031 rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext
17033 if ${ac_cv_search_gethostbyname+:} false; then :
17034 break
17036 done
17037 if ${ac_cv_search_gethostbyname+:} false; then :
17039 else
17040 ac_cv_search_gethostbyname=no
17042 rm conftest.$ac_ext
17043 LIBS=$ac_func_search_save_LIBS
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17046 $as_echo "$ac_cv_search_gethostbyname" >&6; }
17047 ac_res=$ac_cv_search_gethostbyname
17048 if test "$ac_res" != no; then :
17049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing quotacursor_skipidtype" >&5
17054 $as_echo_n "checking for library containing quotacursor_skipidtype... " >&6; }
17055 if ${ac_cv_search_quotacursor_skipidtype+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 ac_func_search_save_LIBS=$LIBS
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17062 /* Override any GCC internal prototype to avoid an error.
17063 Use char because int might match the return type of a GCC
17064 builtin and then its argument prototype would still apply. */
17065 #ifdef __cplusplus
17066 extern "C"
17067 #endif
17068 char quotacursor_skipidtype ();
17070 main ()
17072 return quotacursor_skipidtype ();
17074 return 0;
17076 _ACEOF
17077 for ac_lib in '' quota; do
17078 if test -z "$ac_lib"; then
17079 ac_res="none required"
17080 else
17081 ac_res=-l$ac_lib
17082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17084 if ac_fn_c_try_link "$LINENO"; then :
17085 ac_cv_search_quotacursor_skipidtype=$ac_res
17087 rm -f core conftest.err conftest.$ac_objext \
17088 conftest$ac_exeext
17089 if ${ac_cv_search_quotacursor_skipidtype+:} false; then :
17090 break
17092 done
17093 if ${ac_cv_search_quotacursor_skipidtype+:} false; then :
17095 else
17096 ac_cv_search_quotacursor_skipidtype=no
17098 rm conftest.$ac_ext
17099 LIBS=$ac_func_search_save_LIBS
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_quotacursor_skipidtype" >&5
17102 $as_echo "$ac_cv_search_quotacursor_skipidtype" >&6; }
17103 ac_res=$ac_cv_search_quotacursor_skipidtype
17104 if test "$ac_res" != no; then :
17105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17111 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17112 if test -n "$ac_tool_prefix"; then
17113 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17114 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17116 $as_echo_n "checking for $ac_word... " >&6; }
17117 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17118 $as_echo_n "(cached) " >&6
17119 else
17120 case $PKG_CONFIG in
17121 [\\/]* | ?:[\\/]*)
17122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17126 for as_dir in $PATH
17128 IFS=$as_save_IFS
17129 test -z "$as_dir" && as_dir=.
17130 for ac_exec_ext in '' $ac_executable_extensions; do
17131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17134 break 2
17136 done
17137 done
17138 IFS=$as_save_IFS
17141 esac
17143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17144 if test -n "$PKG_CONFIG"; then
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17146 $as_echo "$PKG_CONFIG" >&6; }
17147 else
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17149 $as_echo "no" >&6; }
17154 if test -z "$ac_cv_path_PKG_CONFIG"; then
17155 ac_pt_PKG_CONFIG=$PKG_CONFIG
17156 # Extract the first word of "pkg-config", so it can be a program name with args.
17157 set dummy pkg-config; ac_word=$2
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17159 $as_echo_n "checking for $ac_word... " >&6; }
17160 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 case $ac_pt_PKG_CONFIG in
17164 [\\/]* | ?:[\\/]*)
17165 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17169 for as_dir in $PATH
17171 IFS=$as_save_IFS
17172 test -z "$as_dir" && as_dir=.
17173 for ac_exec_ext in '' $ac_executable_extensions; do
17174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17175 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17177 break 2
17179 done
17180 done
17181 IFS=$as_save_IFS
17184 esac
17186 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17187 if test -n "$ac_pt_PKG_CONFIG"; then
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17189 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17190 else
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192 $as_echo "no" >&6; }
17195 if test "x$ac_pt_PKG_CONFIG" = x; then
17196 PKG_CONFIG=""
17197 else
17198 case $cross_compiling:$ac_tool_warned in
17199 yes:)
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17202 ac_tool_warned=yes ;;
17203 esac
17204 PKG_CONFIG=$ac_pt_PKG_CONFIG
17206 else
17207 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17211 if test -n "$PKG_CONFIG"; then
17212 _pkg_min_version=0.9.0
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17214 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17215 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17217 $as_echo "yes" >&6; }
17218 else
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17220 $as_echo "no" >&6; }
17221 PKG_CONFIG=""
17226 pkg_failed=no
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
17228 $as_echo_n "checking for OPENSSL... " >&6; }
17230 if test -n "$PKG_CONFIG"; then
17231 if test -n "$OPENSSL_CFLAGS"; then
17232 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
17233 else
17234 if test -n "$PKG_CONFIG" && \
17235 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17236 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17237 ac_status=$?
17238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17239 test $ac_status = 0; }; then
17240 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17241 else
17242 pkg_failed=yes
17245 else
17246 pkg_failed=untried
17248 if test -n "$PKG_CONFIG"; then
17249 if test -n "$OPENSSL_LIBS"; then
17250 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
17251 else
17252 if test -n "$PKG_CONFIG" && \
17253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17254 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17255 ac_status=$?
17256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17257 test $ac_status = 0; }; then
17258 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17259 else
17260 pkg_failed=yes
17263 else
17264 pkg_failed=untried
17269 if test $pkg_failed = yes; then
17271 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17272 _pkg_short_errors_supported=yes
17273 else
17274 _pkg_short_errors_supported=no
17276 if test $_pkg_short_errors_supported = yes; then
17277 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17278 else
17279 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17281 # Put the nasty error message in config.log where it belongs
17282 echo "$OPENSSL_PKG_ERRORS" >&5
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285 $as_echo "no" >&6; }
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17288 $as_echo_n "checking for OpenSSL... " >&6; }
17290 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17291 ssldir="$dir"
17292 if test -f "$dir/include/openssl/ssl.h"; then
17293 found_ssl="yes";
17294 OPENSSL_CFLAGS="-I$ssldir/include";
17295 break;
17297 if test -f "$dir/include/ssl.h"; then
17298 found_ssl="yes";
17299 OPENSSL_CFLAGS="-I$ssldir/include";
17300 break
17302 done
17303 if test x_$found_ssl != x_yes; then
17304 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
17305 else
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17307 $as_echo "$ssldir" >&6; }
17308 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
17311 elif test $pkg_failed = untried; then
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17314 $as_echo_n "checking for OpenSSL... " >&6; }
17316 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17317 ssldir="$dir"
17318 if test -f "$dir/include/openssl/ssl.h"; then
17319 found_ssl="yes";
17320 OPENSSL_CFLAGS="-I$ssldir/include";
17321 break;
17323 if test -f "$dir/include/ssl.h"; then
17324 found_ssl="yes";
17325 OPENSSL_CFLAGS="-I$ssldir/include";
17326 break
17328 done
17329 if test x_$found_ssl != x_yes; then
17330 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
17331 else
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17333 $as_echo "$ssldir" >&6; }
17334 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
17337 else
17338 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
17339 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341 $as_echo "yes" >&6; }
17345 pkg_failed=no
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
17347 $as_echo_n "checking for LIBCURL... " >&6; }
17349 if test -n "$PKG_CONFIG"; then
17350 if test -n "$LIBCURL_CFLAGS"; then
17351 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
17352 else
17353 if test -n "$PKG_CONFIG" && \
17354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17355 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17356 ac_status=$?
17357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17358 test $ac_status = 0; }; then
17359 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17360 else
17361 pkg_failed=yes
17364 else
17365 pkg_failed=untried
17367 if test -n "$PKG_CONFIG"; then
17368 if test -n "$LIBCURL_LIBS"; then
17369 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
17370 else
17371 if test -n "$PKG_CONFIG" && \
17372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17373 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17374 ac_status=$?
17375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17376 test $ac_status = 0; }; then
17377 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17378 else
17379 pkg_failed=yes
17382 else
17383 pkg_failed=untried
17388 if test $pkg_failed = yes; then
17390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17391 _pkg_short_errors_supported=yes
17392 else
17393 _pkg_short_errors_supported=no
17395 if test $_pkg_short_errors_supported = yes; then
17396 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17397 else
17398 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17400 # Put the nasty error message in config.log where it belongs
17401 echo "$LIBCURL_PKG_ERRORS" >&5
17403 as_fn_error $? "Package requirements (libcurl >= $CURL_MINIMUM) were not met:
17405 $LIBCURL_PKG_ERRORS
17407 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17408 installed software in a non-standard prefix.
17410 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17411 and LIBCURL_LIBS to avoid the need to call pkg-config.
17412 See the pkg-config man page for more details.
17413 " "$LINENO" 5
17414 elif test $pkg_failed = untried; then
17415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17417 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17418 is in your PATH or set the PKG_CONFIG environment variable to the full
17419 path to pkg-config.
17421 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17422 and LIBCURL_LIBS to avoid the need to call pkg-config.
17423 See the pkg-config man page for more details.
17425 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17426 See \`config.log' for more details" "$LINENO" 5; }
17427 else
17428 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
17429 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17431 $as_echo "yes" >&6; }
17435 pkg_failed=no
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
17437 $as_echo_n "checking for LIBEVENT... " >&6; }
17439 if test -n "$PKG_CONFIG"; then
17440 if test -n "$LIBEVENT_CFLAGS"; then
17441 pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
17442 else
17443 if test -n "$PKG_CONFIG" && \
17444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17445 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17446 ac_status=$?
17447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17448 test $ac_status = 0; }; then
17449 pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17450 else
17451 pkg_failed=yes
17454 else
17455 pkg_failed=untried
17457 if test -n "$PKG_CONFIG"; then
17458 if test -n "$LIBEVENT_LIBS"; then
17459 pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
17460 else
17461 if test -n "$PKG_CONFIG" && \
17462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17463 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17464 ac_status=$?
17465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17466 test $ac_status = 0; }; then
17467 pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17468 else
17469 pkg_failed=yes
17472 else
17473 pkg_failed=untried
17478 if test $pkg_failed = yes; then
17480 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17481 _pkg_short_errors_supported=yes
17482 else
17483 _pkg_short_errors_supported=no
17485 if test $_pkg_short_errors_supported = yes; then
17486 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17487 else
17488 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17490 # Put the nasty error message in config.log where it belongs
17491 echo "$LIBEVENT_PKG_ERRORS" >&5
17493 as_fn_error $? "Package requirements (libevent >= $LIBEVENT_MINIMUM) were not met:
17495 $LIBEVENT_PKG_ERRORS
17497 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17498 installed software in a non-standard prefix.
17500 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17501 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17502 See the pkg-config man page for more details.
17503 " "$LINENO" 5
17504 elif test $pkg_failed = untried; then
17505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17507 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17508 is in your PATH or set the PKG_CONFIG environment variable to the full
17509 path to pkg-config.
17511 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17512 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17513 See the pkg-config man page for more details.
17515 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17516 See \`config.log' for more details" "$LINENO" 5; }
17517 else
17518 LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
17519 LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17521 $as_echo "yes" >&6; }
17526 # Check whether --with-zlib was given.
17527 if test "${with_zlib+set}" = set; then :
17528 withval=$with_zlib; for dir in `echo "$withval" | tr : ' '`; do
17529 if test -d $dir/include; then
17530 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir/include"
17532 if test -d $dir/lib; then
17533 ZLIB_LDFLAGS="$ZLIB_LDFLAGS -L$dir/lib"
17535 done
17540 # Check whether --with-zlib-includes was given.
17541 if test "${with_zlib_includes+set}" = set; then :
17542 withval=$with_zlib_includes; for dir in `echo "$withval" | tr : ' '`; do
17543 if test -d $dir; then
17544 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir"
17546 done
17550 ac_zlib_saved_CFLAGS="$CFLAGS"
17551 ac_zlib_saved_LDFLAGS="$LDFLAGS"
17552 ac_zlib_saved_LIBS="$LIBS"
17553 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
17554 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
17555 ac_have_zlibh=no
17556 ac_have_zlib=no
17557 touch /tmp/dummy1_zlib.h
17558 for ac_header in /tmp/dummy1_zlib.h
17559 do :
17560 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy1_zlib.h" "ac_cv_header__tmp_dummy1_zlib_h" "#include \"zlib.h\"
17562 if test "x$ac_cv_header__tmp_dummy1_zlib_h" = xyes; then :
17563 cat >>confdefs.h <<_ACEOF
17564 #define HAVE__TMP_DUMMY1_ZLIB_H 1
17565 _ACEOF
17566 ac_have_zlibh=yes
17567 else
17568 ac_have_zlibh=no
17571 done
17573 rm /tmp/dummy1_zlib.h
17574 if test $ac_have_zlibh = yes; then
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17576 $as_echo_n "checking for library containing gzopen... " >&6; }
17577 if ${ac_cv_search_gzopen+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 ac_func_search_save_LIBS=$LIBS
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17584 /* Override any GCC internal prototype to avoid an error.
17585 Use char because int might match the return type of a GCC
17586 builtin and then its argument prototype would still apply. */
17587 #ifdef __cplusplus
17588 extern "C"
17589 #endif
17590 char gzopen ();
17592 main ()
17594 return gzopen ();
17596 return 0;
17598 _ACEOF
17599 for ac_lib in '' z; do
17600 if test -z "$ac_lib"; then
17601 ac_res="none required"
17602 else
17603 ac_res=-l$ac_lib
17604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17606 if ac_fn_c_try_link "$LINENO"; then :
17607 ac_cv_search_gzopen=$ac_res
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext
17611 if ${ac_cv_search_gzopen+:} false; then :
17612 break
17614 done
17615 if ${ac_cv_search_gzopen+:} false; then :
17617 else
17618 ac_cv_search_gzopen=no
17620 rm conftest.$ac_ext
17621 LIBS=$ac_func_search_save_LIBS
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17624 $as_echo "$ac_cv_search_gzopen" >&6; }
17625 ac_res=$ac_cv_search_gzopen
17626 if test "$ac_res" != no; then :
17627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17628 ac_have_zlib=yes
17629 else
17630 ac_have_zlib=no
17634 # List of places to try
17635 testdirs="$HOME/opt/zlib $OBITINSTALL/other"
17636 for dir in $testdirs; do
17637 if test $ac_have_zlib = no; then
17638 if test -f $dir/include/zlib.h; then
17639 ZLIB_CFLAGS="-I$dir/include"
17640 CPPFLAGS="$ac_zlib_saved_CPPFLAGS $ZLIB_CFLAGS"
17641 ZLIB_LDFLAGS="-L$dir/lib"
17642 LDFLAGS="$ac_zlib_saved_LDFLAGS $ZLIB_LDFLAGS"
17643 touch /tmp/dummy3_zlib.h
17644 for ac_header in /tmp/dummy3_zlib.h
17645 do :
17646 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy3_zlib.h" "ac_cv_header__tmp_dummy3_zlib_h" "#include \"zlib.h\"
17648 if test "x$ac_cv_header__tmp_dummy3_zlib_h" = xyes; then :
17649 cat >>confdefs.h <<_ACEOF
17650 #define HAVE__TMP_DUMMY3_ZLIB_H 1
17651 _ACEOF
17652 ac_have_zlibh=yes
17653 else
17654 ac_have_zlibh=no
17657 done
17659 rm /tmp/dummy3_zlib.h
17660 if test $ac_have_zlibh = yes; then
17661 # Force check
17662 ac_cv_search_gzopen=" "
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17664 $as_echo_n "checking for library containing gzopen... " >&6; }
17665 if ${ac_cv_search_gzopen+:} false; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 ac_func_search_save_LIBS=$LIBS
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17672 /* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17675 #ifdef __cplusplus
17676 extern "C"
17677 #endif
17678 char gzopen ();
17680 main ()
17682 return gzopen ();
17684 return 0;
17686 _ACEOF
17687 for ac_lib in '' z; do
17688 if test -z "$ac_lib"; then
17689 ac_res="none required"
17690 else
17691 ac_res=-l$ac_lib
17692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17694 if ac_fn_c_try_link "$LINENO"; then :
17695 ac_cv_search_gzopen=$ac_res
17697 rm -f core conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext
17699 if ${ac_cv_search_gzopen+:} false; then :
17700 break
17702 done
17703 if ${ac_cv_search_gzopen+:} false; then :
17705 else
17706 ac_cv_search_gzopen=no
17708 rm conftest.$ac_ext
17709 LIBS=$ac_func_search_save_LIBS
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17712 $as_echo "$ac_cv_search_gzopen" >&6; }
17713 ac_res=$ac_cv_search_gzopen
17714 if test "$ac_res" != no; then :
17715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17716 ac_have_zlib=yes
17717 else
17718 ac_have_zlib=no
17722 if test $ac_have_zlib = yes ; then
17723 if test $ac_have_zlibh = yes ; then
17724 break;
17729 done
17730 if test $ac_have_zlib = no; then
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB library" >&5
17732 $as_echo "$as_me: WARNING: cannot find ZLIB library" >&2;}
17734 if test $ac_have_zlibh = no; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB headers" >&5
17736 $as_echo "$as_me: WARNING: cannot find ZLIB headers" >&2;}
17737 ac_have_zlib=no
17739 if test $ac_have_zlib = yes; then
17741 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17744 ZLIB_LIBS="$LIBS"
17745 CFLAGS="$ac_zlib_saved_CFLAGS"
17746 LDFLAGS="$ac_zlib_saved_LDFLAGS"
17747 LIBS="$ac_zlib_saved_LIBS"
17753 # Check whether --enable-largefile was given.
17754 if test "${enable_largefile+set}" = set; then :
17755 enableval=$enable_largefile;
17758 if test "$enable_largefile" != no; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17761 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17762 if ${ac_cv_sys_largefile_CC+:} false; then :
17763 $as_echo_n "(cached) " >&6
17764 else
17765 ac_cv_sys_largefile_CC=no
17766 if test "$GCC" != yes; then
17767 ac_save_CC=$CC
17768 while :; do
17769 # IRIX 6.2 and later do not support large files by default,
17770 # so use the C compiler's -n32 option if that helps.
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17773 #include <sys/types.h>
17774 /* Check that off_t can represent 2**63 - 1 correctly.
17775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17776 since some C++ compilers masquerading as C compilers
17777 incorrectly reject 9223372036854775807. */
17778 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17780 && LARGE_OFF_T % 2147483647 == 1)
17781 ? 1 : -1];
17783 main ()
17787 return 0;
17789 _ACEOF
17790 if ac_fn_c_try_compile "$LINENO"; then :
17791 break
17793 rm -f core conftest.err conftest.$ac_objext
17794 CC="$CC -n32"
17795 if ac_fn_c_try_compile "$LINENO"; then :
17796 ac_cv_sys_largefile_CC=' -n32'; break
17798 rm -f core conftest.err conftest.$ac_objext
17799 break
17800 done
17801 CC=$ac_save_CC
17802 rm -f conftest.$ac_ext
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17806 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17807 if test "$ac_cv_sys_largefile_CC" != no; then
17808 CC=$CC$ac_cv_sys_largefile_CC
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17812 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17813 if ${ac_cv_sys_file_offset_bits+:} false; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 while :; do
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819 #include <sys/types.h>
17820 /* Check that off_t can represent 2**63 - 1 correctly.
17821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17822 since some C++ compilers masquerading as C compilers
17823 incorrectly reject 9223372036854775807. */
17824 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17826 && LARGE_OFF_T % 2147483647 == 1)
17827 ? 1 : -1];
17829 main ()
17833 return 0;
17835 _ACEOF
17836 if ac_fn_c_try_compile "$LINENO"; then :
17837 ac_cv_sys_file_offset_bits=no; break
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842 #define _FILE_OFFSET_BITS 64
17843 #include <sys/types.h>
17844 /* Check that off_t can represent 2**63 - 1 correctly.
17845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17846 since some C++ compilers masquerading as C compilers
17847 incorrectly reject 9223372036854775807. */
17848 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17850 && LARGE_OFF_T % 2147483647 == 1)
17851 ? 1 : -1];
17853 main ()
17857 return 0;
17859 _ACEOF
17860 if ac_fn_c_try_compile "$LINENO"; then :
17861 ac_cv_sys_file_offset_bits=64; break
17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 ac_cv_sys_file_offset_bits=unknown
17865 break
17866 done
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17869 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17870 case $ac_cv_sys_file_offset_bits in #(
17871 no | unknown) ;;
17873 cat >>confdefs.h <<_ACEOF
17874 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17875 _ACEOF
17877 esac
17878 rm -rf conftest*
17879 if test $ac_cv_sys_file_offset_bits = unknown; then
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17881 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17882 if ${ac_cv_sys_large_files+:} false; then :
17883 $as_echo_n "(cached) " >&6
17884 else
17885 while :; do
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888 #include <sys/types.h>
17889 /* Check that off_t can represent 2**63 - 1 correctly.
17890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17891 since some C++ compilers masquerading as C compilers
17892 incorrectly reject 9223372036854775807. */
17893 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17895 && LARGE_OFF_T % 2147483647 == 1)
17896 ? 1 : -1];
17898 main ()
17902 return 0;
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"; then :
17906 ac_cv_sys_large_files=no; break
17908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17911 #define _LARGE_FILES 1
17912 #include <sys/types.h>
17913 /* Check that off_t can represent 2**63 - 1 correctly.
17914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17915 since some C++ compilers masquerading as C compilers
17916 incorrectly reject 9223372036854775807. */
17917 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17919 && LARGE_OFF_T % 2147483647 == 1)
17920 ? 1 : -1];
17922 main ()
17926 return 0;
17928 _ACEOF
17929 if ac_fn_c_try_compile "$LINENO"; then :
17930 ac_cv_sys_large_files=1; break
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 ac_cv_sys_large_files=unknown
17934 break
17935 done
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17938 $as_echo "$ac_cv_sys_large_files" >&6; }
17939 case $ac_cv_sys_large_files in #(
17940 no | unknown) ;;
17942 cat >>confdefs.h <<_ACEOF
17943 #define _LARGE_FILES $ac_cv_sys_large_files
17944 _ACEOF
17946 esac
17947 rm -rf conftest*
17953 for ac_func in lseek64
17954 do :
17955 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
17956 if test "x$ac_cv_func_lseek64" = xyes; then :
17957 cat >>confdefs.h <<_ACEOF
17958 #define HAVE_LSEEK64 1
17959 _ACEOF
17962 done
17965 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
17966 # -lseq on Dynix/PTX, -lgen on Unixware.
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
17968 $as_echo_n "checking for library containing getmntent... " >&6; }
17969 if ${ac_cv_search_getmntent+:} false; then :
17970 $as_echo_n "(cached) " >&6
17971 else
17972 ac_func_search_save_LIBS=$LIBS
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17976 /* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17979 #ifdef __cplusplus
17980 extern "C"
17981 #endif
17982 char getmntent ();
17984 main ()
17986 return getmntent ();
17988 return 0;
17990 _ACEOF
17991 for ac_lib in '' sun seq gen; do
17992 if test -z "$ac_lib"; then
17993 ac_res="none required"
17994 else
17995 ac_res=-l$ac_lib
17996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17998 if ac_fn_c_try_link "$LINENO"; then :
17999 ac_cv_search_getmntent=$ac_res
18001 rm -f core conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext
18003 if ${ac_cv_search_getmntent+:} false; then :
18004 break
18006 done
18007 if ${ac_cv_search_getmntent+:} false; then :
18009 else
18010 ac_cv_search_getmntent=no
18012 rm conftest.$ac_ext
18013 LIBS=$ac_func_search_save_LIBS
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
18016 $as_echo "$ac_cv_search_getmntent" >&6; }
18017 ac_res=$ac_cv_search_getmntent
18018 if test "$ac_res" != no; then :
18019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18020 ac_cv_func_getmntent=yes
18022 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
18024 else
18025 ac_cv_func_getmntent=no
18031 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "
18032 #define _XOPEN_SOURCE 600
18033 #include <fcntl.h>
18035 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
18036 ac_have_decl=1
18037 else
18038 ac_have_decl=0
18041 cat >>confdefs.h <<_ACEOF
18042 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
18043 _ACEOF
18045 for ac_func in posix_fadvise
18046 do :
18047 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
18048 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
18049 cat >>confdefs.h <<_ACEOF
18050 #define HAVE_POSIX_FADVISE 1
18051 _ACEOF
18054 done
18059 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
18060 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
18061 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
18062 if test "x$ac_cv_func_inotify_init" = xyes; then :
18063 have_inotify="yes"
18064 else
18065 have_inotify="no"
18068 else
18069 have_inotify="no"
18074 # Check whether --with-inotify was given.
18075 if test "${with_inotify+set}" = set; then :
18076 withval=$with_inotify; want_inotify=${withval}
18077 else
18078 want_inotify=${have_inotify}
18081 if test "x$want_inotify" = "xyes" ; then
18082 if test "x$have_inotify" = "xyes"; then
18083 $as_echo "#define WITH_INOTIFY 1" >>confdefs.h
18085 else
18086 as_fn_error $? "\"inotify not found!\"" "$LINENO" 5
18090 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
18091 if test "x$ac_cv_header_sys_event_h" = xyes; then :
18092 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
18093 if test "x$ac_cv_func_kqueue" = xyes; then :
18094 have_kqueue="yes"
18095 else
18096 have_kqueue="no"
18099 else
18100 have_kqueue="no"
18105 # Check whether --with-kqueue was given.
18106 if test "${with_kqueue+set}" = set; then :
18107 withval=$with_kqueue; want_kqueue=${withval}
18108 else
18109 want_kqueue=${have_kqueue}
18112 if test "x$want_kqueue" = "xyes" ; then
18113 if test "x$have_kqueue" = "xyes"; then
18114 $as_echo "#define WITH_KQUEUE 1" >>confdefs.h
18116 else
18117 as_fn_error $? "\"kqueue not found!\"" "$LINENO" 5
18121 for ac_header in sys/statvfs.h \
18122 xfs/xfs.h
18123 do :
18124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18125 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18127 cat >>confdefs.h <<_ACEOF
18128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18129 _ACEOF
18133 done
18138 # Check whether to enable systemd startup notification.
18139 # This requires libsystemd-daemon.
18141 # Check whether --with-systemd-daemon was given.
18142 if test "${with_systemd_daemon+set}" = set; then :
18143 withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval
18144 else
18145 USE_SYSTEMD_DAEMON=auto
18148 if test "x$USE_SYSTEMD_DAEMON" != "xno"; then :
18151 pkg_failed=no
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
18153 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
18155 if test -n "$PKG_CONFIG"; then
18156 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
18157 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
18158 else
18159 if test -n "$PKG_CONFIG" && \
18160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18161 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18162 ac_status=$?
18163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18164 test $ac_status = 0; }; then
18165 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
18166 else
18167 pkg_failed=yes
18170 else
18171 pkg_failed=untried
18173 if test -n "$PKG_CONFIG"; then
18174 if test -n "$SYSTEMD_DAEMON_LIBS"; then
18175 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
18176 else
18177 if test -n "$PKG_CONFIG" && \
18178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18179 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18180 ac_status=$?
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; }; then
18183 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
18184 else
18185 pkg_failed=yes
18188 else
18189 pkg_failed=untried
18194 if test $pkg_failed = yes; then
18196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18197 _pkg_short_errors_supported=yes
18198 else
18199 _pkg_short_errors_supported=no
18201 if test $_pkg_short_errors_supported = yes; then
18202 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsystemd-daemon"`
18203 else
18204 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsystemd-daemon"`
18206 # Put the nasty error message in config.log where it belongs
18207 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18210 $as_echo "no" >&6; }
18211 if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then :
18212 as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
18216 elif test $pkg_failed = untried; then
18217 if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then :
18218 as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
18222 else
18223 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
18224 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18226 $as_echo "yes" >&6; }
18228 $as_echo "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
18236 DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
18237 DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
18244 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
18245 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
18246 $as_echo_n "(cached) " >&6
18247 else
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lrt $LIBS"
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18253 /* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 char clock_gettime ();
18261 main ()
18263 return clock_gettime ();
18265 return 0;
18267 _ACEOF
18268 if ac_fn_c_try_link "$LINENO"; then :
18269 ac_cv_lib_rt_clock_gettime=yes
18270 else
18271 ac_cv_lib_rt_clock_gettime=no
18273 rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
18278 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
18279 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
18280 libutp_extra_libs="-lrt"
18281 else
18282 libutp_extra_libs=""
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking µTP" >&5
18287 $as_echo_n "checking µTP... " >&6; }
18288 build_utp="no"
18289 if test "x$CXX" != "x" ; then
18290 have_utp="yes"
18291 else
18292 have_utp="no"
18294 # Check whether --enable-utp was given.
18295 if test "${enable_utp+set}" = set; then :
18296 enableval=$enable_utp; want_utp=${enableval}
18297 else
18298 want_utp=${have_utp}
18301 if test "x$want_utp" = "xyes" ; then
18302 if test "x$have_utp" = "xyes"; then
18303 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
18304 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
18305 LIBUTP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a"
18306 if test "x$libutp_extra_libs" != "x" ; then
18307 LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
18308 LIBUTP_LIBS_QT="$LIBUTP_LIBS_QT $libutp_extra_libs"
18310 $as_echo "#define WITH_UTP 1" >>confdefs.h
18312 build_utp="yes"
18313 else
18314 as_fn_error $? "\"Unable to build uTP support -- C++ compiler not found\"" "$LINENO" 5
18320 if test "x$build_utp" = "xyes"; then
18321 BUILD_UTP_TRUE=
18322 BUILD_UTP_FALSE='#'
18323 else
18324 BUILD_UTP_TRUE='#'
18325 BUILD_UTP_FALSE=
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_utp" >&5
18329 $as_echo "$build_utp" >&6; }
18333 ac_save_LIBS="$LIBS"
18334 LIBS="-lminiupnpc"
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system miniupnpc library" >&5
18336 $as_echo_n "checking system miniupnpc library... " >&6; }
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 #include <miniupnpc/miniupnpc.h>
18342 main ()
18344 struct UPNPDev dev;
18346 return 0;
18348 _ACEOF
18349 if ac_fn_c_try_link "$LINENO"; then :
18350 upnp_version="unknown"
18351 else
18352 upnp_version="none"
18355 rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18358 if test "x$upnp_version" = "xunknown" ; then
18359 if test "$cross_compiling" = yes; then :
18360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18362 as_fn_error $? "cannot run test program while cross compiling
18363 See \`config.log' for more details" "$LINENO" 5; }
18364 else
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 #include <stdlib.h>
18368 #include <miniupnpc/miniupnpc.h>
18370 main ()
18372 #ifdef MINIUPNPC_API_VERSION
18373 return EXIT_SUCCESS;
18374 #else
18375 return EXIT_FAILURE;
18376 #endif
18379 return 0;
18381 _ACEOF
18382 if ac_fn_c_try_run "$LINENO"; then :
18383 upnp_version=">= 1.7"
18386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18387 conftest.$ac_objext conftest.beam conftest.$ac_ext
18392 if test "x$upnp_version" = "xunknown" ; then
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18396 #include <stdlib.h>
18397 #include <errno.h>
18398 #include <miniupnpc/miniupnpc.h>
18399 #include <miniupnpc/upnpcommands.h>
18402 main ()
18405 struct UPNPDev * devlist;
18406 struct UPNPUrls urls;
18407 struct IGDdatas data;
18408 char lanaddr[16];
18409 char portStr[8];
18410 char intPort[8];
18411 char intClient[16];
18412 upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
18413 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18414 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18415 portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
18418 return 0;
18420 _ACEOF
18421 if ac_fn_c_try_link "$LINENO"; then :
18424 $as_echo "#define MINIUPNPC_API_VERSION 8" >>confdefs.h
18426 upnp_version="1.6"
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18432 if test "x$upnp_version" = "xunknown" ; then
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18436 #include <stdlib.h>
18437 #include <miniupnpc/miniupnpc.h>
18438 #include <miniupnpc/upnpcommands.h>
18441 main ()
18444 struct UPNPDev * devlist;
18445 struct UPNPUrls urls;
18446 struct IGDdatas data;
18447 char lanaddr[16];
18448 char portStr[8];
18449 char intPort[8];
18450 char intClient[16];
18451 upnpDiscover( 2000, NULL, NULL, 0 );
18452 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18453 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18454 portStr, "TCP", intClient, intPort );
18457 return 0;
18459 _ACEOF
18460 if ac_fn_c_try_link "$LINENO"; then :
18463 $as_echo "#define MINIUPNPC_API_VERSION 5" >>confdefs.h
18465 upnp_version="1.5"
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18471 # ... and the results of our tests
18472 LIBS="$ac_save_LIBS"
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upnp_version" >&5
18474 $as_echo "$upnp_version" >&6; }
18475 if test "x$upnp_version" = "xnone"; then
18476 BUILD_MINIUPNP_TRUE=
18477 BUILD_MINIUPNP_FALSE='#'
18478 else
18479 BUILD_MINIUPNP_TRUE='#'
18480 BUILD_MINIUPNP_FALSE=
18483 if test "x$upnp_version" = "xnone" ; then
18484 LIBUPNP_CFLAGS="-I\$(top_srcdir)/third-party/"
18485 LIBUPNP_LIBS="\$(top_builddir)/third-party/miniupnp/libminiupnp.a"
18486 LIBUPNP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
18487 else
18488 $as_echo "#define SYSTEM_MINIUPNP 1" >>confdefs.h
18490 LIBUPNP_CFLAGS=""
18491 LIBUPNP_LIBS="-lminiupnpc"
18492 LIBUPNP_LIBS_QT="-lminiupnpc"
18502 LIBNATPMP_CFLAGS="-I\$(top_srcdir)/third-party/libnatpmp/"
18503 LIBNATPMP_LIBS="\$(top_builddir)/third-party/libnatpmp/libnatpmp.a"
18504 LIBNATPMP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a"
18505 build_bundled_natpmp="yes"
18506 # Check whether --enable-external-natpmp was given.
18507 if test "${enable_external_natpmp+set}" = set; then :
18508 enableval=$enable_external_natpmp; want_external_natpmp=${enableval}
18509 else
18510 want_external_natpmp=no
18513 if test "x$want_external_natpmp" != "xno" ; then
18514 LIBNATPMP_CFLAGS=""
18515 LIBNATPMP_LIBS="-lnatpmp"
18516 LIBNATPMP_LIBS_QT="-lnatpmp"
18517 build_bundled_natpmp="no"
18519 if test "x$build_bundled_natpmp" = "xyes"; then
18520 BUILD_NATPMP_TRUE=
18521 BUILD_NATPMP_FALSE='#'
18522 else
18523 BUILD_NATPMP_TRUE='#'
18524 BUILD_NATPMP_FALSE=
18533 # Check whether --enable-nls was given.
18534 if test "${enable_nls+set}" = set; then :
18535 enableval=$enable_nls;
18536 else
18537 enable_nls=yes
18540 if test -n "$PKG_CONFIG" && \
18541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18542 glib-2.0 >= \$GLIB_MINIMUM
18543 gio-2.0 >= \$GIO_MINIMUM,
18544 gmodule-2.0 >= \$GLIB_MINIMUM
18545 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18546 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18547 glib-2.0 >= $GLIB_MINIMUM
18548 gio-2.0 >= $GIO_MINIMUM,
18549 gmodule-2.0 >= $GLIB_MINIMUM
18550 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18551 ac_status=$?
18552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18553 test $ac_status = 0; }; then
18554 have_gtk=yes
18555 else
18556 have_gtk=no
18559 # Check whether --with-gtk was given.
18560 if test "${with_gtk+set}" = set; then :
18561 withval=$with_gtk; with_gtk=$withval
18562 else
18563 with_gtk=$have_gtk
18566 if test "x$with_gtk" = "xyes"; then
18567 BUILD_GTK_TRUE=
18568 BUILD_GTK_FALSE='#'
18569 else
18570 BUILD_GTK_TRUE='#'
18571 BUILD_GTK_FALSE=
18574 use_libappindicator=no
18575 if test "x$with_gtk" = "xyes" ; then
18577 if test "x$enable_nls" = "xno" ; then
18578 as_fn_error $? "\"The gtk client cannot be built without nls support. Try adding either --enable-nls or --without-gtk\" " "$LINENO" 5
18582 pkg_failed=no
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
18584 $as_echo_n "checking for GTK... " >&6; }
18586 if test -n "$PKG_CONFIG"; then
18587 if test -n "$GTK_CFLAGS"; then
18588 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18589 else
18590 if test -n "$PKG_CONFIG" && \
18591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18592 glib-2.0 >= \$GLIB_MINIMUM
18593 gio-2.0 >= \$GIO_MINIMUM,
18594 gmodule-2.0 >= \$GLIB_MINIMUM
18595 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18596 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18597 glib-2.0 >= $GLIB_MINIMUM
18598 gio-2.0 >= $GIO_MINIMUM,
18599 gmodule-2.0 >= $GLIB_MINIMUM
18600 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18601 ac_status=$?
18602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18603 test $ac_status = 0; }; then
18604 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_MINIMUM
18605 glib-2.0 >= $GLIB_MINIMUM
18606 gio-2.0 >= $GIO_MINIMUM,
18607 gmodule-2.0 >= $GLIB_MINIMUM
18608 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18609 else
18610 pkg_failed=yes
18613 else
18614 pkg_failed=untried
18616 if test -n "$PKG_CONFIG"; then
18617 if test -n "$GTK_LIBS"; then
18618 pkg_cv_GTK_LIBS="$GTK_LIBS"
18619 else
18620 if test -n "$PKG_CONFIG" && \
18621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18622 glib-2.0 >= \$GLIB_MINIMUM
18623 gio-2.0 >= \$GIO_MINIMUM,
18624 gmodule-2.0 >= \$GLIB_MINIMUM
18625 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18626 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18627 glib-2.0 >= $GLIB_MINIMUM
18628 gio-2.0 >= $GIO_MINIMUM,
18629 gmodule-2.0 >= $GLIB_MINIMUM
18630 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18631 ac_status=$?
18632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18633 test $ac_status = 0; }; then
18634 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_MINIMUM
18635 glib-2.0 >= $GLIB_MINIMUM
18636 gio-2.0 >= $GIO_MINIMUM,
18637 gmodule-2.0 >= $GLIB_MINIMUM
18638 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18639 else
18640 pkg_failed=yes
18643 else
18644 pkg_failed=untried
18649 if test $pkg_failed = yes; then
18651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18652 _pkg_short_errors_supported=yes
18653 else
18654 _pkg_short_errors_supported=no
18656 if test $_pkg_short_errors_supported = yes; then
18657 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18658 glib-2.0 >= $GLIB_MINIMUM
18659 gio-2.0 >= $GIO_MINIMUM,
18660 gmodule-2.0 >= $GLIB_MINIMUM
18661 gthread-2.0 >= $GLIB_MINIMUM"`
18662 else
18663 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18664 glib-2.0 >= $GLIB_MINIMUM
18665 gio-2.0 >= $GIO_MINIMUM,
18666 gmodule-2.0 >= $GLIB_MINIMUM
18667 gthread-2.0 >= $GLIB_MINIMUM"`
18669 # Put the nasty error message in config.log where it belongs
18670 echo "$GTK_PKG_ERRORS" >&5
18672 as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK_MINIMUM
18673 glib-2.0 >= $GLIB_MINIMUM
18674 gio-2.0 >= $GIO_MINIMUM,
18675 gmodule-2.0 >= $GLIB_MINIMUM
18676 gthread-2.0 >= $GLIB_MINIMUM) were not met:
18678 $GTK_PKG_ERRORS
18680 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18681 installed software in a non-standard prefix.
18683 Alternatively, you may set the environment variables GTK_CFLAGS
18684 and GTK_LIBS to avoid the need to call pkg-config.
18685 See the pkg-config man page for more details.
18686 " "$LINENO" 5
18687 elif test $pkg_failed = untried; then
18688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18690 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18691 is in your PATH or set the PKG_CONFIG environment variable to the full
18692 path to pkg-config.
18694 Alternatively, you may set the environment variables GTK_CFLAGS
18695 and GTK_LIBS to avoid the need to call pkg-config.
18696 See the pkg-config man page for more details.
18698 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18699 See \`config.log' for more details" "$LINENO" 5; }
18700 else
18701 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18702 GTK_LIBS=$pkg_cv_GTK_LIBS
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704 $as_echo "yes" >&6; }
18708 pkg_failed=no
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAPPINDICATOR" >&5
18710 $as_echo_n "checking for LIBAPPINDICATOR... " >&6; }
18712 if test -n "$PKG_CONFIG"; then
18713 if test -n "$LIBAPPINDICATOR_CFLAGS"; then
18714 pkg_cv_LIBAPPINDICATOR_CFLAGS="$LIBAPPINDICATOR_CFLAGS"
18715 else
18716 if test -n "$PKG_CONFIG" && \
18717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18718 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18719 ac_status=$?
18720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18721 test $ac_status = 0; }; then
18722 pkg_cv_LIBAPPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18723 else
18724 pkg_failed=yes
18727 else
18728 pkg_failed=untried
18730 if test -n "$PKG_CONFIG"; then
18731 if test -n "$LIBAPPINDICATOR_LIBS"; then
18732 pkg_cv_LIBAPPINDICATOR_LIBS="$LIBAPPINDICATOR_LIBS"
18733 else
18734 if test -n "$PKG_CONFIG" && \
18735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18736 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18737 ac_status=$?
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; then
18740 pkg_cv_LIBAPPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18741 else
18742 pkg_failed=yes
18745 else
18746 pkg_failed=untried
18751 if test $pkg_failed = yes; then
18753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18754 _pkg_short_errors_supported=yes
18755 else
18756 _pkg_short_errors_supported=no
18758 if test $_pkg_short_errors_supported = yes; then
18759 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18760 else
18761 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18763 # Put the nasty error message in config.log where it belongs
18764 echo "$LIBAPPINDICATOR_PKG_ERRORS" >&5
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18767 $as_echo "no" >&6; }
18768 have_libappindicator=no
18769 elif test $pkg_failed = untried; then
18770 have_libappindicator=no
18771 else
18772 LIBAPPINDICATOR_CFLAGS=$pkg_cv_LIBAPPINDICATOR_CFLAGS
18773 LIBAPPINDICATOR_LIBS=$pkg_cv_LIBAPPINDICATOR_LIBS
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18775 $as_echo "yes" >&6; }
18776 have_libappindicator=yes
18778 if test "x$have_libappindicator" = "xyes"; then
18779 use_libappindicator=yes
18780 $as_echo "#define HAVE_LIBAPPINDICATOR 1" >>confdefs.h
18782 else
18783 LIBAPPINDICATOR_CFLAGS=
18784 LIBAPPINDICATOR_LIBS=
18789 use_nls=no
18790 if test "x$enable_nls" = "xyes" ; then
18791 use_nls=yes
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18794 $as_echo_n "checking whether NLS is requested... " >&6; }
18795 # Check whether --enable-nls was given.
18796 if test "${enable_nls+set}" = set; then :
18797 enableval=$enable_nls; USE_NLS=$enableval
18798 else
18799 USE_NLS=yes
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18803 $as_echo "$USE_NLS" >&6; }
18808 case "$am__api_version" in
18809 1.01234)
18810 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18814 esac
18816 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18817 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18818 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18819 if test -n "0.35.0"; then
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
18821 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18823 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18824 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18825 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
18828 # Extract the first word of "intltool-update", so it can be a program name with args.
18829 set dummy intltool-update; ac_word=$2
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18831 $as_echo_n "checking for $ac_word... " >&6; }
18832 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18833 $as_echo_n "(cached) " >&6
18834 else
18835 case $INTLTOOL_UPDATE in
18836 [\\/]* | ?:[\\/]*)
18837 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18843 IFS=$as_save_IFS
18844 test -z "$as_dir" && as_dir=.
18845 for ac_exec_ext in '' $ac_executable_extensions; do
18846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
18848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18849 break 2
18851 done
18852 done
18853 IFS=$as_save_IFS
18856 esac
18858 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
18859 if test -n "$INTLTOOL_UPDATE"; then
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18861 $as_echo "$INTLTOOL_UPDATE" >&6; }
18862 else
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18868 # Extract the first word of "intltool-merge", so it can be a program name with args.
18869 set dummy intltool-merge; ac_word=$2
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18871 $as_echo_n "checking for $ac_word... " >&6; }
18872 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
18873 $as_echo_n "(cached) " >&6
18874 else
18875 case $INTLTOOL_MERGE in
18876 [\\/]* | ?:[\\/]*)
18877 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
18880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18881 for as_dir in $PATH
18883 IFS=$as_save_IFS
18884 test -z "$as_dir" && as_dir=.
18885 for ac_exec_ext in '' $ac_executable_extensions; do
18886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18887 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
18888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18889 break 2
18891 done
18892 done
18893 IFS=$as_save_IFS
18896 esac
18898 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
18899 if test -n "$INTLTOOL_MERGE"; then
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
18901 $as_echo "$INTLTOOL_MERGE" >&6; }
18902 else
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18904 $as_echo "no" >&6; }
18908 # Extract the first word of "intltool-extract", so it can be a program name with args.
18909 set dummy intltool-extract; ac_word=$2
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18911 $as_echo_n "checking for $ac_word... " >&6; }
18912 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
18913 $as_echo_n "(cached) " >&6
18914 else
18915 case $INTLTOOL_EXTRACT in
18916 [\\/]* | ?:[\\/]*)
18917 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18921 for as_dir in $PATH
18923 IFS=$as_save_IFS
18924 test -z "$as_dir" && as_dir=.
18925 for ac_exec_ext in '' $ac_executable_extensions; do
18926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18927 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
18928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18929 break 2
18931 done
18932 done
18933 IFS=$as_save_IFS
18936 esac
18938 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
18939 if test -n "$INTLTOOL_EXTRACT"; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18941 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18942 else
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18944 $as_echo "no" >&6; }
18948 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18949 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
18952 if test -z "$AM_DEFAULT_VERBOSITY"; then
18953 AM_DEFAULT_VERBOSITY=1
18957 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
18958 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
18959 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
18964 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
18965 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
18966 intltool__v_merge_options_0='-q'
18971 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18972 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18973 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18974 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18975 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
18976 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18977 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18978 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18979 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18980 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18981 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18982 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
18983 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
18984 else
18985 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
18987 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18988 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18989 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18990 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18991 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18992 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18993 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
19091 # Check the gettext tools to make sure they are GNU
19092 # Extract the first word of "xgettext", so it can be a program name with args.
19093 set dummy xgettext; ac_word=$2
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19095 $as_echo_n "checking for $ac_word... " >&6; }
19096 if ${ac_cv_path_XGETTEXT+:} false; then :
19097 $as_echo_n "(cached) " >&6
19098 else
19099 case $XGETTEXT in
19100 [\\/]* | ?:[\\/]*)
19101 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19105 for as_dir in $PATH
19107 IFS=$as_save_IFS
19108 test -z "$as_dir" && as_dir=.
19109 for ac_exec_ext in '' $ac_executable_extensions; do
19110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19111 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
19112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19113 break 2
19115 done
19116 done
19117 IFS=$as_save_IFS
19120 esac
19122 XGETTEXT=$ac_cv_path_XGETTEXT
19123 if test -n "$XGETTEXT"; then
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19125 $as_echo "$XGETTEXT" >&6; }
19126 else
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19132 # Extract the first word of "msgmerge", so it can be a program name with args.
19133 set dummy msgmerge; ac_word=$2
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19135 $as_echo_n "checking for $ac_word... " >&6; }
19136 if ${ac_cv_path_MSGMERGE+:} false; then :
19137 $as_echo_n "(cached) " >&6
19138 else
19139 case $MSGMERGE in
19140 [\\/]* | ?:[\\/]*)
19141 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19145 for as_dir in $PATH
19147 IFS=$as_save_IFS
19148 test -z "$as_dir" && as_dir=.
19149 for ac_exec_ext in '' $ac_executable_extensions; do
19150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19151 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19153 break 2
19155 done
19156 done
19157 IFS=$as_save_IFS
19160 esac
19162 MSGMERGE=$ac_cv_path_MSGMERGE
19163 if test -n "$MSGMERGE"; then
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19165 $as_echo "$MSGMERGE" >&6; }
19166 else
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19172 # Extract the first word of "msgfmt", so it can be a program name with args.
19173 set dummy msgfmt; ac_word=$2
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19175 $as_echo_n "checking for $ac_word... " >&6; }
19176 if ${ac_cv_path_MSGFMT+:} false; then :
19177 $as_echo_n "(cached) " >&6
19178 else
19179 case $MSGFMT in
19180 [\\/]* | ?:[\\/]*)
19181 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19185 for as_dir in $PATH
19187 IFS=$as_save_IFS
19188 test -z "$as_dir" && as_dir=.
19189 for ac_exec_ext in '' $ac_executable_extensions; do
19190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19191 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19193 break 2
19195 done
19196 done
19197 IFS=$as_save_IFS
19200 esac
19202 MSGFMT=$ac_cv_path_MSGFMT
19203 if test -n "$MSGFMT"; then
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19205 $as_echo "$MSGFMT" >&6; }
19206 else
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208 $as_echo "no" >&6; }
19212 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19213 set dummy gmsgfmt; ac_word=$2
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19215 $as_echo_n "checking for $ac_word... " >&6; }
19216 if ${ac_cv_path_GMSGFMT+:} false; then :
19217 $as_echo_n "(cached) " >&6
19218 else
19219 case $GMSGFMT in
19220 [\\/]* | ?:[\\/]*)
19221 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19225 for as_dir in $PATH
19227 IFS=$as_save_IFS
19228 test -z "$as_dir" && as_dir=.
19229 for ac_exec_ext in '' $ac_executable_extensions; do
19230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19231 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19233 break 2
19235 done
19236 done
19237 IFS=$as_save_IFS
19239 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19241 esac
19243 GMSGFMT=$ac_cv_path_GMSGFMT
19244 if test -n "$GMSGFMT"; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19246 $as_echo "$GMSGFMT" >&6; }
19247 else
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19253 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19254 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19256 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19257 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19258 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19259 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19260 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19263 # Extract the first word of "perl", so it can be a program name with args.
19264 set dummy perl; ac_word=$2
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19266 $as_echo_n "checking for $ac_word... " >&6; }
19267 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
19268 $as_echo_n "(cached) " >&6
19269 else
19270 case $INTLTOOL_PERL in
19271 [\\/]* | ?:[\\/]*)
19272 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19278 IFS=$as_save_IFS
19279 test -z "$as_dir" && as_dir=.
19280 for ac_exec_ext in '' $ac_executable_extensions; do
19281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19284 break 2
19286 done
19287 done
19288 IFS=$as_save_IFS
19291 esac
19293 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19294 if test -n "$INTLTOOL_PERL"; then
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19296 $as_echo "$INTLTOOL_PERL" >&6; }
19297 else
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19303 if test -z "$INTLTOOL_PERL"; then
19304 as_fn_error $? "perl not found" "$LINENO" 5
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19307 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19308 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
19309 if test $? -ne 0; then
19310 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
19311 else
19312 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19314 $as_echo "$IT_PERL_VERSION" >&6; }
19316 if test "xno-xml" != "xno-xml"; then
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19318 $as_echo_n "checking for XML::Parser... " >&6; }
19319 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19321 $as_echo "ok" >&6; }
19322 else
19323 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
19327 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19330 # Set DATADIRNAME correctly if it is not set yet
19331 # (copied from glib-gettext.m4)
19332 if test -z "$DATADIRNAME"; then
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19337 main ()
19339 extern int _nl_msg_cat_cntr;
19340 return _nl_msg_cat_cntr
19342 return 0;
19344 _ACEOF
19345 if ac_fn_c_try_link "$LINENO"; then :
19346 DATADIRNAME=share
19347 else
19348 case $host in
19349 *-*-solaris*)
19350 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19351 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19352 DATADIRNAME=share
19353 else
19354 DATADIRNAME=lib
19359 DATADIRNAME=lib
19361 esac
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19371 for ac_header in libintl.h
19372 do :
19373 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19374 if test "x$ac_cv_header_libintl_h" = xyes; then :
19375 cat >>confdefs.h <<_ACEOF
19376 #define HAVE_LIBINTL_H 1
19377 _ACEOF
19381 done
19383 GETTEXT_PACKAGE=transmission-gtk
19386 cat >>confdefs.h <<_ACEOF
19387 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19388 _ACEOF
19391 for ac_header in locale.h
19392 do :
19393 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19394 if test "x$ac_cv_header_locale_h" = xyes; then :
19395 cat >>confdefs.h <<_ACEOF
19396 #define HAVE_LOCALE_H 1
19397 _ACEOF
19401 done
19403 if test $ac_cv_header_locale_h = yes; then
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19405 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19406 if ${am_cv_val_LC_MESSAGES+:} false; then :
19407 $as_echo_n "(cached) " >&6
19408 else
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19411 #include <locale.h>
19413 main ()
19415 return LC_MESSAGES
19417 return 0;
19419 _ACEOF
19420 if ac_fn_c_try_link "$LINENO"; then :
19421 am_cv_val_LC_MESSAGES=yes
19422 else
19423 am_cv_val_LC_MESSAGES=no
19425 rm -f core conftest.err conftest.$ac_objext \
19426 conftest$ac_exeext conftest.$ac_ext
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19429 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19430 if test $am_cv_val_LC_MESSAGES = yes; then
19432 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19436 USE_NLS=yes
19439 gt_cv_have_gettext=no
19441 CATOBJEXT=NONE
19442 XGETTEXT=:
19443 INTLLIBS=
19445 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19446 if test "x$ac_cv_header_libintl_h" = xyes; then :
19447 gt_cv_func_dgettext_libintl="no"
19448 libintl_extra_libs=""
19451 # First check in libc
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19454 $as_echo_n "checking for ngettext in libc... " >&6; }
19455 if ${gt_cv_func_ngettext_libc+:} false; then :
19456 $as_echo_n "(cached) " >&6
19457 else
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19461 #include <libintl.h>
19464 main ()
19466 return !ngettext ("","", 1)
19468 return 0;
19470 _ACEOF
19471 if ac_fn_c_try_link "$LINENO"; then :
19472 gt_cv_func_ngettext_libc=yes
19473 else
19474 gt_cv_func_ngettext_libc=no
19476 rm -f core conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19481 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19483 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19485 $as_echo_n "checking for dgettext in libc... " >&6; }
19486 if ${gt_cv_func_dgettext_libc+:} false; then :
19487 $as_echo_n "(cached) " >&6
19488 else
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19492 #include <libintl.h>
19495 main ()
19497 return !dgettext ("","")
19499 return 0;
19501 _ACEOF
19502 if ac_fn_c_try_link "$LINENO"; then :
19503 gt_cv_func_dgettext_libc=yes
19504 else
19505 gt_cv_func_dgettext_libc=no
19507 rm -f core conftest.err conftest.$ac_objext \
19508 conftest$ac_exeext conftest.$ac_ext
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19512 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19515 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19516 for ac_func in bind_textdomain_codeset
19517 do :
19518 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19519 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19520 cat >>confdefs.h <<_ACEOF
19521 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19522 _ACEOF
19525 done
19530 # If we don't have everything we want, check in libintl
19532 if test "$gt_cv_func_dgettext_libc" != "yes" \
19533 || test "$gt_cv_func_ngettext_libc" != "yes" \
19534 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19537 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19538 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-lintl $LIBS"
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19546 /* Override any GCC internal prototype to avoid an error.
19547 Use char because int might match the return type of a GCC
19548 builtin and then its argument prototype would still apply. */
19549 #ifdef __cplusplus
19550 extern "C"
19551 #endif
19552 char bindtextdomain ();
19554 main ()
19556 return bindtextdomain ();
19558 return 0;
19560 _ACEOF
19561 if ac_fn_c_try_link "$LINENO"; then :
19562 ac_cv_lib_intl_bindtextdomain=yes
19563 else
19564 ac_cv_lib_intl_bindtextdomain=no
19566 rm -f core conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19571 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19572 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19574 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19575 if ${ac_cv_lib_intl_ngettext+:} false; then :
19576 $as_echo_n "(cached) " >&6
19577 else
19578 ac_check_lib_save_LIBS=$LIBS
19579 LIBS="-lintl $LIBS"
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19586 #ifdef __cplusplus
19587 extern "C"
19588 #endif
19589 char ngettext ();
19591 main ()
19593 return ngettext ();
19595 return 0;
19597 _ACEOF
19598 if ac_fn_c_try_link "$LINENO"; then :
19599 ac_cv_lib_intl_ngettext=yes
19600 else
19601 ac_cv_lib_intl_ngettext=no
19603 rm -f core conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605 LIBS=$ac_check_lib_save_LIBS
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19608 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19609 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19611 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19612 if ${ac_cv_lib_intl_dgettext+:} false; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 ac_check_lib_save_LIBS=$LIBS
19616 LIBS="-lintl $LIBS"
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char dgettext ();
19628 main ()
19630 return dgettext ();
19632 return 0;
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_lib_intl_dgettext=yes
19637 else
19638 ac_cv_lib_intl_dgettext=no
19640 rm -f core conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19645 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19646 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19647 gt_cv_func_dgettext_libintl=yes
19655 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19657 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19659 $as_echo "" >&6; }
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19661 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19662 if ${ac_cv_lib_intl_ngettext+:} false; then :
19663 $as_echo_n "(cached) " >&6
19664 else
19665 ac_check_lib_save_LIBS=$LIBS
19666 LIBS="-lintl -liconv $LIBS"
19667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19673 #ifdef __cplusplus
19674 extern "C"
19675 #endif
19676 char ngettext ();
19678 main ()
19680 return ngettext ();
19682 return 0;
19684 _ACEOF
19685 if ac_fn_c_try_link "$LINENO"; then :
19686 ac_cv_lib_intl_ngettext=yes
19687 else
19688 ac_cv_lib_intl_ngettext=no
19690 rm -f core conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692 LIBS=$ac_check_lib_save_LIBS
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19695 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19696 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19698 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19699 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19700 $as_echo_n "(cached) " >&6
19701 else
19702 ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lintl -liconv $LIBS"
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19707 /* Override any GCC internal prototype to avoid an error.
19708 Use char because int might match the return type of a GCC
19709 builtin and then its argument prototype would still apply. */
19710 #ifdef __cplusplus
19711 extern "C"
19712 #endif
19713 char dcgettext ();
19715 main ()
19717 return dcgettext ();
19719 return 0;
19721 _ACEOF
19722 if ac_fn_c_try_link "$LINENO"; then :
19723 ac_cv_lib_intl_dcgettext=yes
19724 else
19725 ac_cv_lib_intl_dcgettext=no
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729 LIBS=$ac_check_lib_save_LIBS
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19732 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19733 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19734 gt_cv_func_dgettext_libintl=yes
19735 libintl_extra_libs=-liconv
19736 else
19740 else
19747 # If we found libintl, then check in it for bind_textdomain_codeset();
19748 # we'll prefer libc if neither have bind_textdomain_codeset(),
19749 # and both have dgettext and ngettext
19751 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19752 glib_save_LIBS="$LIBS"
19753 LIBS="$LIBS -lintl $libintl_extra_libs"
19754 unset ac_cv_func_bind_textdomain_codeset
19755 for ac_func in bind_textdomain_codeset
19756 do :
19757 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19758 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19761 _ACEOF
19764 done
19766 LIBS="$glib_save_LIBS"
19768 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19769 gt_cv_func_dgettext_libc=no
19770 else
19771 if test "$gt_cv_func_dgettext_libc" = "yes" \
19772 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19773 gt_cv_func_dgettext_libintl=no
19779 if test "$gt_cv_func_dgettext_libc" = "yes" \
19780 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19781 gt_cv_have_gettext=yes
19784 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19785 INTLLIBS="-lintl $libintl_extra_libs"
19788 if test "$gt_cv_have_gettext" = "yes"; then
19790 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19792 # Extract the first word of "msgfmt", so it can be a program name with args.
19793 set dummy msgfmt; ac_word=$2
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19795 $as_echo_n "checking for $ac_word... " >&6; }
19796 if ${ac_cv_path_MSGFMT+:} false; then :
19797 $as_echo_n "(cached) " >&6
19798 else
19799 case "$MSGFMT" in
19801 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19805 for ac_dir in $PATH; do
19806 test -z "$ac_dir" && ac_dir=.
19807 if test -f $ac_dir/$ac_word; then
19808 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19809 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19810 break
19813 done
19814 IFS="$ac_save_ifs"
19815 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19817 esac
19819 MSGFMT="$ac_cv_path_MSGFMT"
19820 if test "$MSGFMT" != "no"; then
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19822 $as_echo "$MSGFMT" >&6; }
19823 else
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19825 $as_echo "no" >&6; }
19827 if test "$MSGFMT" != "no"; then
19828 glib_save_LIBS="$LIBS"
19829 LIBS="$LIBS $INTLLIBS"
19830 for ac_func in dcgettext
19831 do :
19832 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19833 if test "x$ac_cv_func_dcgettext" = xyes; then :
19834 cat >>confdefs.h <<_ACEOF
19835 #define HAVE_DCGETTEXT 1
19836 _ACEOF
19839 done
19841 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19842 set dummy gmsgfmt; ac_word=$2
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19844 $as_echo_n "checking for $ac_word... " >&6; }
19845 if ${ac_cv_path_GMSGFMT+:} false; then :
19846 $as_echo_n "(cached) " >&6
19847 else
19848 case $GMSGFMT in
19849 [\\/]* | ?:[\\/]*)
19850 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19854 for as_dir in $PATH
19856 IFS=$as_save_IFS
19857 test -z "$as_dir" && as_dir=.
19858 for ac_exec_ext in '' $ac_executable_extensions; do
19859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19860 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19862 break 2
19864 done
19865 done
19866 IFS=$as_save_IFS
19868 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19870 esac
19872 GMSGFMT=$ac_cv_path_GMSGFMT
19873 if test -n "$GMSGFMT"; then
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19875 $as_echo "$GMSGFMT" >&6; }
19876 else
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19878 $as_echo "no" >&6; }
19882 # Extract the first word of "xgettext", so it can be a program name with args.
19883 set dummy xgettext; ac_word=$2
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19885 $as_echo_n "checking for $ac_word... " >&6; }
19886 if ${ac_cv_path_XGETTEXT+:} false; then :
19887 $as_echo_n "(cached) " >&6
19888 else
19889 case "$XGETTEXT" in
19891 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19895 for ac_dir in $PATH; do
19896 test -z "$ac_dir" && ac_dir=.
19897 if test -f $ac_dir/$ac_word; then
19898 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19899 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19900 break
19903 done
19904 IFS="$ac_save_ifs"
19905 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19907 esac
19909 XGETTEXT="$ac_cv_path_XGETTEXT"
19910 if test "$XGETTEXT" != ":"; then
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19912 $as_echo "$XGETTEXT" >&6; }
19913 else
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19915 $as_echo "no" >&6; }
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19922 main ()
19924 extern int _nl_msg_cat_cntr;
19925 return _nl_msg_cat_cntr
19927 return 0;
19929 _ACEOF
19930 if ac_fn_c_try_link "$LINENO"; then :
19931 CATOBJEXT=.gmo
19932 DATADIRNAME=share
19933 else
19934 case $host in
19935 *-*-solaris*)
19936 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19937 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19938 CATOBJEXT=.gmo
19939 DATADIRNAME=share
19940 else
19941 CATOBJEXT=.mo
19942 DATADIRNAME=lib
19947 CATOBJEXT=.mo
19948 DATADIRNAME=lib
19950 esac
19952 rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LIBS="$glib_save_LIBS"
19955 INSTOBJEXT=.mo
19956 else
19957 gt_cv_have_gettext=no
19965 if test "$gt_cv_have_gettext" = "yes" ; then
19967 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19971 if test "$XGETTEXT" != ":"; then
19972 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19974 else
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19976 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19977 XGETTEXT=":"
19981 # We need to process the po/ directory.
19982 POSUB=po
19984 ac_config_commands="$ac_config_commands default-1"
19987 for lang in $ALL_LINGUAS; do
19988 GMOFILES="$GMOFILES $lang.gmo"
19989 POFILES="$POFILES $lang.po"
19990 done
20004 if test "$gt_cv_have_gettext" = "yes"; then
20005 if test "x$ALL_LINGUAS" = "x"; then
20006 LINGUAS=
20007 else
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
20009 $as_echo_n "checking for catalogs to be installed... " >&6; }
20010 NEW_LINGUAS=
20011 for presentlang in $ALL_LINGUAS; do
20012 useit=no
20013 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
20014 desiredlanguages="$LINGUAS"
20015 else
20016 desiredlanguages="$ALL_LINGUAS"
20018 for desiredlang in $desiredlanguages; do
20019 # Use the presentlang catalog if desiredlang is
20020 # a. equal to presentlang, or
20021 # b. a variant of presentlang (because in this case,
20022 # presentlang can be used as a fallback for messages
20023 # which are not translated in the desiredlang catalog).
20024 case "$desiredlang" in
20025 "$presentlang"*) useit=yes;;
20026 esac
20027 done
20028 if test $useit = yes; then
20029 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
20031 done
20032 LINGUAS=$NEW_LINGUAS
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
20034 $as_echo "$LINGUAS" >&6; }
20037 if test -n "$LINGUAS"; then
20038 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
20042 MKINSTALLDIRS=
20043 if test -n "$ac_aux_dir"; then
20044 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
20046 if test -z "$MKINSTALLDIRS"; then
20047 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20051 test -d po || mkdir po
20052 if test "x$srcdir" != "x."; then
20053 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
20054 posrcprefix="$srcdir/"
20055 else
20056 posrcprefix="../$srcdir/"
20058 else
20059 posrcprefix="../"
20061 rm -f po/POTFILES
20062 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
20063 < $srcdir/po/POTFILES.in > po/POTFILES
20065 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
20073 have_darwin="no"
20074 have_msw="no"
20075 case $host_os in
20077 *mingw32*)
20078 have_msw="yes"
20079 CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
20080 CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
20081 LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
20082 transmissionlocaledir="locale"
20083 if test -z "$host_alias"; then
20084 hostaliaswindres=
20085 else
20086 hostaliaswindres="$host_alias-windres";
20088 if test -n "$ac_tool_prefix"; then
20089 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20090 set dummy ${ac_tool_prefix}windres; ac_word=$2
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20092 $as_echo_n "checking for $ac_word... " >&6; }
20093 if ${ac_cv_prog_WINDRES+:} false; then :
20094 $as_echo_n "(cached) " >&6
20095 else
20096 if test -n "$WINDRES"; then
20097 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20098 else
20099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20102 IFS=$as_save_IFS
20103 test -z "$as_dir" && as_dir=.
20104 for ac_exec_ext in '' $ac_executable_extensions; do
20105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20106 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20108 break 2
20110 done
20111 done
20112 IFS=$as_save_IFS
20116 WINDRES=$ac_cv_prog_WINDRES
20117 if test -n "$WINDRES"; then
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20119 $as_echo "$WINDRES" >&6; }
20120 else
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20122 $as_echo "no" >&6; }
20127 if test -z "$ac_cv_prog_WINDRES"; then
20128 ac_ct_WINDRES=$WINDRES
20129 # Extract the first word of "windres", so it can be a program name with args.
20130 set dummy windres; ac_word=$2
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20132 $as_echo_n "checking for $ac_word... " >&6; }
20133 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20134 $as_echo_n "(cached) " >&6
20135 else
20136 if test -n "$ac_ct_WINDRES"; then
20137 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20138 else
20139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20140 for as_dir in $PATH
20142 IFS=$as_save_IFS
20143 test -z "$as_dir" && as_dir=.
20144 for ac_exec_ext in '' $ac_executable_extensions; do
20145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20146 ac_cv_prog_ac_ct_WINDRES="windres"
20147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20148 break 2
20150 done
20151 done
20152 IFS=$as_save_IFS
20156 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20157 if test -n "$ac_ct_WINDRES"; then
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20159 $as_echo "$ac_ct_WINDRES" >&6; }
20160 else
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20162 $as_echo "no" >&6; }
20165 if test "x$ac_ct_WINDRES" = x; then
20166 WINDRES=""
20167 else
20168 case $cross_compiling:$ac_tool_warned in
20169 yes:)
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20172 ac_tool_warned=yes ;;
20173 esac
20174 WINDRES=$ac_ct_WINDRES
20176 else
20177 WINDRES="$ac_cv_prog_WINDRES"
20182 *darwin*)
20183 have_darwin="yes"
20184 CFLAGS="-DMACOSX $CFLAGS"
20187 esac
20189 # Check whether --enable-lightweight was given.
20190 if test "${enable_lightweight+set}" = set; then :
20191 enableval=$enable_lightweight; enable_lightweight=${enableval}
20192 else
20193 enable_lightweight="no"
20196 if test "x$enable_lightweight" = "xyes" ; then
20198 $as_echo "#define TR_LIGHTWEIGHT 1" >>confdefs.h
20202 # Check whether --enable-cli was given.
20203 if test "${enable_cli+set}" = set; then :
20204 enableval=$enable_cli; build_cli=${enableval}
20205 else
20206 build_cli="yes"
20209 if test "x$build_cli" = "xyes"; then
20210 BUILD_CLI_TRUE=
20211 BUILD_CLI_FALSE='#'
20212 else
20213 BUILD_CLI_TRUE='#'
20214 BUILD_CLI_FALSE=
20218 # Check whether --enable-mac was given.
20219 if test "${enable_mac+set}" = set; then :
20220 enableval=$enable_mac; build_mac=${enableval}
20221 else
20222 build_mac=${have_darwin}
20225 if test "x$build_mac" = "xyes"; then
20226 BUILD_MAC_TRUE=
20227 BUILD_MAC_FALSE='#'
20228 else
20229 BUILD_MAC_TRUE='#'
20230 BUILD_MAC_FALSE=
20234 # Check whether --enable-daemon was given.
20235 if test "${enable_daemon+set}" = set; then :
20236 enableval=$enable_daemon; build_daemon=${enableval}
20237 else
20238 build_daemon="yes"
20241 if test "x$build_daemon" = "xyes"; then
20242 BUILD_DAEMON_TRUE=
20243 BUILD_DAEMON_FALSE='#'
20244 else
20245 BUILD_DAEMON_TRUE='#'
20246 BUILD_DAEMON_FALSE=
20251 if test "x$build_mac" = "xyes" ; then
20252 $as_echo "#define BUILD_MAC_CLIENT 1" >>confdefs.h
20254 # Make sure the proper Mac SDK is installed
20255 if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
20256 cat << EOF
20257 You need to install the Mac OS X 10.5 SDK in order to build Transmission
20258 with --enable-mac:
20259 Get your Xcode CD or package
20260 Restart the install
20261 When it gets to "Installation Type", select "Customize"
20262 Select "Mac OS X 10.5 SDK" under "Cross Development"
20263 Finish the install.
20265 exit 1
20268 if test "x$have_darwin" = "xyes"; then
20269 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
20271 $as_echo "#define SYS_DARWIN 1" >>confdefs.h
20274 if test "x$have_msw" = "xyes"; then
20275 $as_echo "#define HAVE_MSW 1" >>confdefs.h
20278 if test "x$have_msw" = "xyes"; then
20279 WIN32_TRUE=
20280 WIN32_FALSE='#'
20281 else
20282 WIN32_TRUE='#'
20283 WIN32_FALSE=
20288 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/dht/Makefile third-party/libutp/Makefile third-party/libnatpmp/Makefile third-party/miniupnp/Makefile macosx/Makefile gtk/Makefile gtk/icons/Makefile qt/config.pri web/Makefile web/images/Makefile web/style/Makefile web/style/jqueryui/Makefile web/style/jqueryui/images/Makefile web/style/transmission/Makefile web/style/transmission/images/Makefile web/style/transmission/images/buttons/Makefile web/javascript/Makefile web/javascript/jquery/Makefile po/Makefile.in"
20291 cat >confcache <<\_ACEOF
20292 # This file is a shell script that caches the results of configure
20293 # tests run on this system so they can be shared between configure
20294 # scripts and configure runs, see configure's option --config-cache.
20295 # It is not useful on other systems. If it contains results you don't
20296 # want to keep, you may remove or edit it.
20298 # config.status only pays attention to the cache file if you give it
20299 # the --recheck option to rerun configure.
20301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20303 # following values.
20305 _ACEOF
20307 # The following way of writing the cache mishandles newlines in values,
20308 # but we know of no workaround that is simple, portable, and efficient.
20309 # So, we kill variables containing newlines.
20310 # Ultrix sh set writes to stderr and can't be redirected directly,
20311 # and sets the high bit in the cache file unless we assign to the vars.
20313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20314 eval ac_val=\$$ac_var
20315 case $ac_val in #(
20316 *${as_nl}*)
20317 case $ac_var in #(
20318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20320 esac
20321 case $ac_var in #(
20322 _ | IFS | as_nl) ;; #(
20323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20324 *) { eval $ac_var=; unset $ac_var;} ;;
20325 esac ;;
20326 esac
20327 done
20329 (set) 2>&1 |
20330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20331 *${as_nl}ac_space=\ *)
20332 # `set' does not quote correctly, so add quotes: double-quote
20333 # substitution turns \\\\ into \\, and sed turns \\ into \.
20334 sed -n \
20335 "s/'/'\\\\''/g;
20336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20337 ;; #(
20339 # `set' quotes correctly as required by POSIX, so do not add quotes.
20340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20342 esac |
20343 sort
20345 sed '
20346 /^ac_cv_env_/b end
20347 t clear
20348 :clear
20349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20350 t end
20351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20352 :end' >>confcache
20353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20354 if test -w "$cache_file"; then
20355 if test "x$cache_file" != "x/dev/null"; then
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20357 $as_echo "$as_me: updating cache $cache_file" >&6;}
20358 if test ! -f "$cache_file" || test -h "$cache_file"; then
20359 cat confcache >"$cache_file"
20360 else
20361 case $cache_file in #(
20362 */* | ?:*)
20363 mv -f confcache "$cache_file"$$ &&
20364 mv -f "$cache_file"$$ "$cache_file" ;; #(
20366 mv -f confcache "$cache_file" ;;
20367 esac
20370 else
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20375 rm -f confcache
20377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20378 # Let make expand exec_prefix.
20379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20381 # Transform confdefs.h into DEFS.
20382 # Protect against shell expansion while executing Makefile rules.
20383 # Protect against Makefile macro expansion.
20385 # If the first sed substitution is executed (which looks for macros that
20386 # take arguments), then branch to the quote section. Otherwise,
20387 # look for a macro that doesn't take arguments.
20388 ac_script='
20389 :mline
20390 /\\$/{
20392 s,\\\n,,
20393 b mline
20395 t clear
20396 :clear
20397 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20398 t quote
20399 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20400 t quote
20401 b any
20402 :quote
20403 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20404 s/\[/\\&/g
20405 s/\]/\\&/g
20406 s/\$/$$/g
20408 :any
20411 s/^\n//
20412 s/\n/ /g
20416 DEFS=`sed -n "$ac_script" confdefs.h`
20419 ac_libobjs=
20420 ac_ltlibobjs=
20422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20423 # 1. Remove the extension, and $U if already installed.
20424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20427 # will be set to the directory where LIBOBJS objects are built.
20428 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20429 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20430 done
20431 LIBOBJS=$ac_libobjs
20433 LTLIBOBJS=$ac_ltlibobjs
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20437 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20438 if test -n "$am_sleep_pid"; then
20439 # Hide warnings about reused PIDs.
20440 wait $am_sleep_pid 2>/dev/null
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20443 $as_echo "done" >&6; }
20444 if test -n "$EXEEXT"; then
20445 am__EXEEXT_TRUE=
20446 am__EXEEXT_FALSE='#'
20447 else
20448 am__EXEEXT_TRUE='#'
20449 am__EXEEXT_FALSE=
20452 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20453 as_fn_error $? "conditional \"AMDEP\" was never defined.
20454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20456 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20457 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20460 if test -z "${TR_UNSTABLE_TRUE}" && test -z "${TR_UNSTABLE_FALSE}"; then
20461 as_fn_error $? "conditional \"TR_UNSTABLE\" was never defined.
20462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20464 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20465 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20468 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20469 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20472 if test -z "${BUILD_UTP_TRUE}" && test -z "${BUILD_UTP_FALSE}"; then
20473 as_fn_error $? "conditional \"BUILD_UTP\" was never defined.
20474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20476 if test -z "${BUILD_MINIUPNP_TRUE}" && test -z "${BUILD_MINIUPNP_FALSE}"; then
20477 as_fn_error $? "conditional \"BUILD_MINIUPNP\" was never defined.
20478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20480 if test -z "${BUILD_NATPMP_TRUE}" && test -z "${BUILD_NATPMP_FALSE}"; then
20481 as_fn_error $? "conditional \"BUILD_NATPMP\" was never defined.
20482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20484 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
20485 as_fn_error $? "conditional \"BUILD_GTK\" was never defined.
20486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20489 ac_config_commands="$ac_config_commands po/stamp-it"
20492 if test -z "${BUILD_CLI_TRUE}" && test -z "${BUILD_CLI_FALSE}"; then
20493 as_fn_error $? "conditional \"BUILD_CLI\" was never defined.
20494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20496 if test -z "${BUILD_MAC_TRUE}" && test -z "${BUILD_MAC_FALSE}"; then
20497 as_fn_error $? "conditional \"BUILD_MAC\" was never defined.
20498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20500 if test -z "${BUILD_DAEMON_TRUE}" && test -z "${BUILD_DAEMON_FALSE}"; then
20501 as_fn_error $? "conditional \"BUILD_DAEMON\" was never defined.
20502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20504 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
20505 as_fn_error $? "conditional \"WIN32\" was never defined.
20506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20509 : "${CONFIG_STATUS=./config.status}"
20510 ac_write_fail=0
20511 ac_clean_files_save=$ac_clean_files
20512 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20514 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20515 as_write_fail=0
20516 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20517 #! $SHELL
20518 # Generated by $as_me.
20519 # Run this file to recreate the current configuration.
20520 # Compiler output produced by configure, useful for debugging
20521 # configure, is in config.log if it exists.
20523 debug=false
20524 ac_cs_recheck=false
20525 ac_cs_silent=false
20527 SHELL=\${CONFIG_SHELL-$SHELL}
20528 export SHELL
20529 _ASEOF
20530 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20531 ## -------------------- ##
20532 ## M4sh Initialization. ##
20533 ## -------------------- ##
20535 # Be more Bourne compatible
20536 DUALCASE=1; export DUALCASE # for MKS sh
20537 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20538 emulate sh
20539 NULLCMD=:
20540 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20541 # is contrary to our usage. Disable this feature.
20542 alias -g '${1+"$@"}'='"$@"'
20543 setopt NO_GLOB_SUBST
20544 else
20545 case `(set -o) 2>/dev/null` in #(
20546 *posix*) :
20547 set -o posix ;; #(
20548 *) :
20550 esac
20554 as_nl='
20556 export as_nl
20557 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20558 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20559 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20561 # Prefer a ksh shell builtin over an external printf program on Solaris,
20562 # but without wasting forks for bash or zsh.
20563 if test -z "$BASH_VERSION$ZSH_VERSION" \
20564 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20565 as_echo='print -r --'
20566 as_echo_n='print -rn --'
20567 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20568 as_echo='printf %s\n'
20569 as_echo_n='printf %s'
20570 else
20571 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20572 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20573 as_echo_n='/usr/ucb/echo -n'
20574 else
20575 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20576 as_echo_n_body='eval
20577 arg=$1;
20578 case $arg in #(
20579 *"$as_nl"*)
20580 expr "X$arg" : "X\\(.*\\)$as_nl";
20581 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20582 esac;
20583 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20585 export as_echo_n_body
20586 as_echo_n='sh -c $as_echo_n_body as_echo'
20588 export as_echo_body
20589 as_echo='sh -c $as_echo_body as_echo'
20592 # The user is always right.
20593 if test "${PATH_SEPARATOR+set}" != set; then
20594 PATH_SEPARATOR=:
20595 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20596 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20597 PATH_SEPARATOR=';'
20602 # IFS
20603 # We need space, tab and new line, in precisely that order. Quoting is
20604 # there to prevent editors from complaining about space-tab.
20605 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20606 # splitting by setting IFS to empty value.)
20607 IFS=" "" $as_nl"
20609 # Find who we are. Look in the path if we contain no directory separator.
20610 as_myself=
20611 case $0 in #((
20612 *[\\/]* ) as_myself=$0 ;;
20613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20614 for as_dir in $PATH
20616 IFS=$as_save_IFS
20617 test -z "$as_dir" && as_dir=.
20618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20619 done
20620 IFS=$as_save_IFS
20623 esac
20624 # We did not find ourselves, most probably we were run as `sh COMMAND'
20625 # in which case we are not to be found in the path.
20626 if test "x$as_myself" = x; then
20627 as_myself=$0
20629 if test ! -f "$as_myself"; then
20630 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20631 exit 1
20634 # Unset variables that we do not need and which cause bugs (e.g. in
20635 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20636 # suppresses any "Segmentation fault" message there. '((' could
20637 # trigger a bug in pdksh 5.2.14.
20638 for as_var in BASH_ENV ENV MAIL MAILPATH
20639 do eval test x\${$as_var+set} = xset \
20640 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20641 done
20642 PS1='$ '
20643 PS2='> '
20644 PS4='+ '
20646 # NLS nuisances.
20647 LC_ALL=C
20648 export LC_ALL
20649 LANGUAGE=C
20650 export LANGUAGE
20652 # CDPATH.
20653 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20656 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20657 # ----------------------------------------
20658 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20659 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20660 # script with STATUS, using 1 if that was 0.
20661 as_fn_error ()
20663 as_status=$1; test $as_status -eq 0 && as_status=1
20664 if test "$4"; then
20665 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20666 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20668 $as_echo "$as_me: error: $2" >&2
20669 as_fn_exit $as_status
20670 } # as_fn_error
20673 # as_fn_set_status STATUS
20674 # -----------------------
20675 # Set $? to STATUS, without forking.
20676 as_fn_set_status ()
20678 return $1
20679 } # as_fn_set_status
20681 # as_fn_exit STATUS
20682 # -----------------
20683 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20684 as_fn_exit ()
20686 set +e
20687 as_fn_set_status $1
20688 exit $1
20689 } # as_fn_exit
20691 # as_fn_unset VAR
20692 # ---------------
20693 # Portably unset VAR.
20694 as_fn_unset ()
20696 { eval $1=; unset $1;}
20698 as_unset=as_fn_unset
20699 # as_fn_append VAR VALUE
20700 # ----------------------
20701 # Append the text in VALUE to the end of the definition contained in VAR. Take
20702 # advantage of any shell optimizations that allow amortized linear growth over
20703 # repeated appends, instead of the typical quadratic growth present in naive
20704 # implementations.
20705 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20706 eval 'as_fn_append ()
20708 eval $1+=\$2
20710 else
20711 as_fn_append ()
20713 eval $1=\$$1\$2
20715 fi # as_fn_append
20717 # as_fn_arith ARG...
20718 # ------------------
20719 # Perform arithmetic evaluation on the ARGs, and store the result in the
20720 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20721 # must be portable across $(()) and expr.
20722 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20723 eval 'as_fn_arith ()
20725 as_val=$(( $* ))
20727 else
20728 as_fn_arith ()
20730 as_val=`expr "$@" || test $? -eq 1`
20732 fi # as_fn_arith
20735 if expr a : '\(a\)' >/dev/null 2>&1 &&
20736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20737 as_expr=expr
20738 else
20739 as_expr=false
20742 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20743 as_basename=basename
20744 else
20745 as_basename=false
20748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20749 as_dirname=dirname
20750 else
20751 as_dirname=false
20754 as_me=`$as_basename -- "$0" ||
20755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20756 X"$0" : 'X\(//\)$' \| \
20757 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20758 $as_echo X/"$0" |
20759 sed '/^.*\/\([^/][^/]*\)\/*$/{
20760 s//\1/
20763 /^X\/\(\/\/\)$/{
20764 s//\1/
20767 /^X\/\(\/\).*/{
20768 s//\1/
20771 s/.*/./; q'`
20773 # Avoid depending upon Character Ranges.
20774 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20775 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20776 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20777 as_cr_digits='0123456789'
20778 as_cr_alnum=$as_cr_Letters$as_cr_digits
20780 ECHO_C= ECHO_N= ECHO_T=
20781 case `echo -n x` in #(((((
20782 -n*)
20783 case `echo 'xy\c'` in
20784 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20785 xy) ECHO_C='\c';;
20786 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20787 ECHO_T=' ';;
20788 esac;;
20790 ECHO_N='-n';;
20791 esac
20793 rm -f conf$$ conf$$.exe conf$$.file
20794 if test -d conf$$.dir; then
20795 rm -f conf$$.dir/conf$$.file
20796 else
20797 rm -f conf$$.dir
20798 mkdir conf$$.dir 2>/dev/null
20800 if (echo >conf$$.file) 2>/dev/null; then
20801 if ln -s conf$$.file conf$$ 2>/dev/null; then
20802 as_ln_s='ln -s'
20803 # ... but there are two gotchas:
20804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20806 # In both cases, we have to default to `cp -pR'.
20807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20808 as_ln_s='cp -pR'
20809 elif ln conf$$.file conf$$ 2>/dev/null; then
20810 as_ln_s=ln
20811 else
20812 as_ln_s='cp -pR'
20814 else
20815 as_ln_s='cp -pR'
20817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20818 rmdir conf$$.dir 2>/dev/null
20821 # as_fn_mkdir_p
20822 # -------------
20823 # Create "$as_dir" as a directory, including parents if necessary.
20824 as_fn_mkdir_p ()
20827 case $as_dir in #(
20828 -*) as_dir=./$as_dir;;
20829 esac
20830 test -d "$as_dir" || eval $as_mkdir_p || {
20831 as_dirs=
20832 while :; do
20833 case $as_dir in #(
20834 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20835 *) as_qdir=$as_dir;;
20836 esac
20837 as_dirs="'$as_qdir' $as_dirs"
20838 as_dir=`$as_dirname -- "$as_dir" ||
20839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20840 X"$as_dir" : 'X\(//\)[^/]' \| \
20841 X"$as_dir" : 'X\(//\)$' \| \
20842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20843 $as_echo X"$as_dir" |
20844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20845 s//\1/
20848 /^X\(\/\/\)[^/].*/{
20849 s//\1/
20852 /^X\(\/\/\)$/{
20853 s//\1/
20856 /^X\(\/\).*/{
20857 s//\1/
20860 s/.*/./; q'`
20861 test -d "$as_dir" && break
20862 done
20863 test -z "$as_dirs" || eval "mkdir $as_dirs"
20864 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20867 } # as_fn_mkdir_p
20868 if mkdir -p . 2>/dev/null; then
20869 as_mkdir_p='mkdir -p "$as_dir"'
20870 else
20871 test -d ./-p && rmdir ./-p
20872 as_mkdir_p=false
20876 # as_fn_executable_p FILE
20877 # -----------------------
20878 # Test if FILE is an executable regular file.
20879 as_fn_executable_p ()
20881 test -f "$1" && test -x "$1"
20882 } # as_fn_executable_p
20883 as_test_x='test -x'
20884 as_executable_p=as_fn_executable_p
20886 # Sed expression to map a string onto a valid CPP name.
20887 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20889 # Sed expression to map a string onto a valid variable name.
20890 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20893 exec 6>&1
20894 ## ----------------------------------- ##
20895 ## Main body of $CONFIG_STATUS script. ##
20896 ## ----------------------------------- ##
20897 _ASEOF
20898 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901 # Save the log message, to keep $0 and so on meaningful, and to
20902 # report actual input values of CONFIG_FILES etc. instead of their
20903 # values after options handling.
20904 ac_log="
20905 This file was extended by transmission $as_me 2.84, which was
20906 generated by GNU Autoconf 2.69. Invocation command line was
20908 CONFIG_FILES = $CONFIG_FILES
20909 CONFIG_HEADERS = $CONFIG_HEADERS
20910 CONFIG_LINKS = $CONFIG_LINKS
20911 CONFIG_COMMANDS = $CONFIG_COMMANDS
20912 $ $0 $@
20914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20917 _ACEOF
20919 case $ac_config_files in *"
20920 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20921 esac
20925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20926 # Files that config.status was made for.
20927 config_files="$ac_config_files"
20928 config_commands="$ac_config_commands"
20930 _ACEOF
20932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20933 ac_cs_usage="\
20934 \`$as_me' instantiates files and other configuration actions
20935 from templates according to the current configuration. Unless the files
20936 and actions are specified as TAGs, all are instantiated by default.
20938 Usage: $0 [OPTION]... [TAG]...
20940 -h, --help print this help, then exit
20941 -V, --version print version number and configuration settings, then exit
20942 --config print configuration, then exit
20943 -q, --quiet, --silent
20944 do not print progress messages
20945 -d, --debug don't remove temporary files
20946 --recheck update $as_me by reconfiguring in the same conditions
20947 --file=FILE[:TEMPLATE]
20948 instantiate the configuration file FILE
20950 Configuration files:
20951 $config_files
20953 Configuration commands:
20954 $config_commands
20956 Report bugs to <http://trac.transmissionbt.com/newticket>."
20958 _ACEOF
20959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20960 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20961 ac_cs_version="\\
20962 transmission config.status 2.84
20963 configured by $0, generated by GNU Autoconf 2.69,
20964 with options \\"\$ac_cs_config\\"
20966 Copyright (C) 2012 Free Software Foundation, Inc.
20967 This config.status script is free software; the Free Software Foundation
20968 gives unlimited permission to copy, distribute and modify it."
20970 ac_pwd='$ac_pwd'
20971 srcdir='$srcdir'
20972 INSTALL='$INSTALL'
20973 MKDIR_P='$MKDIR_P'
20974 AWK='$AWK'
20975 test -n "\$AWK" || AWK=awk
20976 _ACEOF
20978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20979 # The default lists apply if the user does not specify any file.
20980 ac_need_defaults=:
20981 while test $# != 0
20983 case $1 in
20984 --*=?*)
20985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20987 ac_shift=:
20989 --*=)
20990 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20991 ac_optarg=
20992 ac_shift=:
20995 ac_option=$1
20996 ac_optarg=$2
20997 ac_shift=shift
20999 esac
21001 case $ac_option in
21002 # Handling of the options.
21003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21004 ac_cs_recheck=: ;;
21005 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21006 $as_echo "$ac_cs_version"; exit ;;
21007 --config | --confi | --conf | --con | --co | --c )
21008 $as_echo "$ac_cs_config"; exit ;;
21009 --debug | --debu | --deb | --de | --d | -d )
21010 debug=: ;;
21011 --file | --fil | --fi | --f )
21012 $ac_shift
21013 case $ac_optarg in
21014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21015 '') as_fn_error $? "missing file argument" ;;
21016 esac
21017 as_fn_append CONFIG_FILES " '$ac_optarg'"
21018 ac_need_defaults=false;;
21019 --he | --h | --help | --hel | -h )
21020 $as_echo "$ac_cs_usage"; exit ;;
21021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21022 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21023 ac_cs_silent=: ;;
21025 # This is an error.
21026 -*) as_fn_error $? "unrecognized option: \`$1'
21027 Try \`$0 --help' for more information." ;;
21029 *) as_fn_append ac_config_targets " $1"
21030 ac_need_defaults=false ;;
21032 esac
21033 shift
21034 done
21036 ac_configure_extra_args=
21038 if $ac_cs_silent; then
21039 exec 6>/dev/null
21040 ac_configure_extra_args="$ac_configure_extra_args --silent"
21043 _ACEOF
21044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21045 if \$ac_cs_recheck; then
21046 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21047 shift
21048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21049 CONFIG_SHELL='$SHELL'
21050 export CONFIG_SHELL
21051 exec "\$@"
21054 _ACEOF
21055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21056 exec 5>>config.log
21058 echo
21059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21060 ## Running $as_me. ##
21061 _ASBOX
21062 $as_echo "$ac_log"
21063 } >&5
21065 _ACEOF
21066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21068 # INIT-COMMANDS
21070 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21073 # The HP-UX ksh and POSIX shell print the target directory to stdout
21074 # if CDPATH is set.
21075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21077 sed_quote_subst='$sed_quote_subst'
21078 double_quote_subst='$double_quote_subst'
21079 delay_variable_subst='$delay_variable_subst'
21080 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21081 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21082 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21083 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21084 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21085 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21086 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21087 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21088 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21089 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21090 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21091 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21092 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21093 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21094 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21095 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21096 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21097 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21098 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21099 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21100 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21101 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21102 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21103 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21104 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21105 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21106 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21107 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21108 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21109 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21110 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21111 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21112 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21113 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21114 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21115 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21116 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21117 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21118 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21119 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21120 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21121 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21122 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21123 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21124 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21125 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21126 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21127 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21128 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21129 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21130 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21131 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21132 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21133 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21134 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21135 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21136 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21137 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21138 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21139 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21140 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21141 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21142 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21143 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21144 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21145 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21146 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21147 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21148 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21149 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21150 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21151 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21152 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21153 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21154 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21155 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21156 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21157 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21158 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21159 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21160 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21161 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21162 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21163 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21164 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21165 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21166 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21167 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21168 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21169 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21170 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21171 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21172 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21173 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21174 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21175 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21176 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21177 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21178 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21179 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21180 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21181 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21182 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21183 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21184 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21185 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21186 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21187 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21188 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21189 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21190 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21191 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21192 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21193 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21194 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21195 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21196 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21197 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21198 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21199 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21200 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21201 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21202 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21203 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21204 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21205 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21206 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21207 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21208 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21209 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21210 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21211 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21212 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21213 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21214 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21215 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21216 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21217 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21218 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21219 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21220 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21221 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21222 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21223 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21224 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21225 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21226 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21227 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21228 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21229 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21230 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21231 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21232 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21233 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21234 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21235 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21236 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21237 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21238 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21239 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21240 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21241 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21242 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21243 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21244 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21245 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21246 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21247 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21248 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21249 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21250 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21251 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21252 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21253 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21254 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21255 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21256 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21257 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21258 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21259 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21260 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21261 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21262 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21263 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21265 LTCC='$LTCC'
21266 LTCFLAGS='$LTCFLAGS'
21267 compiler='$compiler_DEFAULT'
21269 # A function that is used when there is no print builtin or printf.
21270 func_fallback_echo ()
21272 eval 'cat <<_LTECHO_EOF
21274 _LTECHO_EOF'
21277 # Quote evaled strings.
21278 for var in SHELL \
21279 ECHO \
21280 PATH_SEPARATOR \
21281 SED \
21282 GREP \
21283 EGREP \
21284 FGREP \
21285 LD \
21286 NM \
21287 LN_S \
21288 lt_SP2NL \
21289 lt_NL2SP \
21290 reload_flag \
21291 OBJDUMP \
21292 deplibs_check_method \
21293 file_magic_cmd \
21294 file_magic_glob \
21295 want_nocaseglob \
21296 DLLTOOL \
21297 sharedlib_from_linklib_cmd \
21298 AR \
21299 AR_FLAGS \
21300 archiver_list_spec \
21301 STRIP \
21302 RANLIB \
21303 CC \
21304 CFLAGS \
21305 compiler \
21306 lt_cv_sys_global_symbol_pipe \
21307 lt_cv_sys_global_symbol_to_cdecl \
21308 lt_cv_sys_global_symbol_to_c_name_address \
21309 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21310 nm_file_list_spec \
21311 lt_prog_compiler_no_builtin_flag \
21312 lt_prog_compiler_pic \
21313 lt_prog_compiler_wl \
21314 lt_prog_compiler_static \
21315 lt_cv_prog_compiler_c_o \
21316 need_locks \
21317 MANIFEST_TOOL \
21318 DSYMUTIL \
21319 NMEDIT \
21320 LIPO \
21321 OTOOL \
21322 OTOOL64 \
21323 shrext_cmds \
21324 export_dynamic_flag_spec \
21325 whole_archive_flag_spec \
21326 compiler_needs_object \
21327 with_gnu_ld \
21328 allow_undefined_flag \
21329 no_undefined_flag \
21330 hardcode_libdir_flag_spec \
21331 hardcode_libdir_separator \
21332 exclude_expsyms \
21333 include_expsyms \
21334 file_list_spec \
21335 variables_saved_for_relink \
21336 libname_spec \
21337 library_names_spec \
21338 soname_spec \
21339 install_override_mode \
21340 finish_eval \
21341 old_striplib \
21342 striplib \
21343 compiler_lib_search_dirs \
21344 predep_objects \
21345 postdep_objects \
21346 predeps \
21347 postdeps \
21348 compiler_lib_search_path \
21349 LD_CXX \
21350 reload_flag_CXX \
21351 compiler_CXX \
21352 lt_prog_compiler_no_builtin_flag_CXX \
21353 lt_prog_compiler_pic_CXX \
21354 lt_prog_compiler_wl_CXX \
21355 lt_prog_compiler_static_CXX \
21356 lt_cv_prog_compiler_c_o_CXX \
21357 export_dynamic_flag_spec_CXX \
21358 whole_archive_flag_spec_CXX \
21359 compiler_needs_object_CXX \
21360 with_gnu_ld_CXX \
21361 allow_undefined_flag_CXX \
21362 no_undefined_flag_CXX \
21363 hardcode_libdir_flag_spec_CXX \
21364 hardcode_libdir_separator_CXX \
21365 exclude_expsyms_CXX \
21366 include_expsyms_CXX \
21367 file_list_spec_CXX \
21368 compiler_lib_search_dirs_CXX \
21369 predep_objects_CXX \
21370 postdep_objects_CXX \
21371 predeps_CXX \
21372 postdeps_CXX \
21373 compiler_lib_search_path_CXX; do
21374 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21375 *[\\\\\\\`\\"\\\$]*)
21376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21379 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21381 esac
21382 done
21384 # Double-quote double-evaled strings.
21385 for var in reload_cmds \
21386 old_postinstall_cmds \
21387 old_postuninstall_cmds \
21388 old_archive_cmds \
21389 extract_expsyms_cmds \
21390 old_archive_from_new_cmds \
21391 old_archive_from_expsyms_cmds \
21392 archive_cmds \
21393 archive_expsym_cmds \
21394 module_cmds \
21395 module_expsym_cmds \
21396 export_symbols_cmds \
21397 prelink_cmds \
21398 postlink_cmds \
21399 postinstall_cmds \
21400 postuninstall_cmds \
21401 finish_cmds \
21402 sys_lib_search_path_spec \
21403 sys_lib_dlsearch_path_spec \
21404 reload_cmds_CXX \
21405 old_archive_cmds_CXX \
21406 old_archive_from_new_cmds_CXX \
21407 old_archive_from_expsyms_cmds_CXX \
21408 archive_cmds_CXX \
21409 archive_expsym_cmds_CXX \
21410 module_cmds_CXX \
21411 module_expsym_cmds_CXX \
21412 export_symbols_cmds_CXX \
21413 prelink_cmds_CXX \
21414 postlink_cmds_CXX; do
21415 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21416 *[\\\\\\\`\\"\\\$]*)
21417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21422 esac
21423 done
21425 ac_aux_dir='$ac_aux_dir'
21426 xsi_shell='$xsi_shell'
21427 lt_shell_append='$lt_shell_append'
21429 # See if we are running on zsh, and set the options which allow our
21430 # commands through without removal of \ escapes INIT.
21431 if test -n "\${ZSH_VERSION+set}" ; then
21432 setopt NO_GLOB_SUBST
21436 PACKAGE='$PACKAGE'
21437 VERSION='$VERSION'
21438 TIMESTAMP='$TIMESTAMP'
21439 RM='$RM'
21440 ofile='$ofile'
21448 _ACEOF
21450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21452 # Handling of arguments.
21453 for ac_config_target in $ac_config_targets
21455 case $ac_config_target in
21456 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21457 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21458 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21460 "transmission-gtk.spec") CONFIG_FILES="$CONFIG_FILES transmission-gtk.spec" ;;
21461 "cli/Makefile") CONFIG_FILES="$CONFIG_FILES cli/Makefile" ;;
21462 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
21463 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
21464 "libtransmission/Makefile") CONFIG_FILES="$CONFIG_FILES libtransmission/Makefile" ;;
21465 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21466 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
21467 "third-party/dht/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/dht/Makefile" ;;
21468 "third-party/libutp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libutp/Makefile" ;;
21469 "third-party/libnatpmp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libnatpmp/Makefile" ;;
21470 "third-party/miniupnp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/miniupnp/Makefile" ;;
21471 "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;;
21472 "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
21473 "gtk/icons/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/icons/Makefile" ;;
21474 "qt/config.pri") CONFIG_FILES="$CONFIG_FILES qt/config.pri" ;;
21475 "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
21476 "web/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/Makefile" ;;
21477 "web/style/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/Makefile" ;;
21478 "web/style/jqueryui/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/jqueryui/Makefile" ;;
21479 "web/style/jqueryui/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/jqueryui/images/Makefile" ;;
21480 "web/style/transmission/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/Makefile" ;;
21481 "web/style/transmission/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/images/Makefile" ;;
21482 "web/style/transmission/images/buttons/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/images/buttons/Makefile" ;;
21483 "web/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/Makefile" ;;
21484 "web/javascript/jquery/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/jquery/Makefile" ;;
21485 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21486 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
21488 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21489 esac
21490 done
21493 # If the user did not use the arguments to specify the items to instantiate,
21494 # then the envvar interface is used. Set only those that are not.
21495 # We use the long form for the default assignment because of an extremely
21496 # bizarre bug on SunOS 4.1.3.
21497 if $ac_need_defaults; then
21498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21502 # Have a temporary directory for convenience. Make it in the build tree
21503 # simply because there is no reason against having it here, and in addition,
21504 # creating and moving files from /tmp can sometimes cause problems.
21505 # Hook for its removal unless debugging.
21506 # Note that there is a small window in which the directory will not be cleaned:
21507 # after its creation but before its name has been assigned to `$tmp'.
21508 $debug ||
21510 tmp= ac_tmp=
21511 trap 'exit_status=$?
21512 : "${ac_tmp:=$tmp}"
21513 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21515 trap 'as_fn_exit 1' 1 2 13 15
21517 # Create a (secure) tmp directory for tmp files.
21520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21521 test -d "$tmp"
21522 } ||
21524 tmp=./conf$$-$RANDOM
21525 (umask 077 && mkdir "$tmp")
21526 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21527 ac_tmp=$tmp
21529 # Set up the scripts for CONFIG_FILES section.
21530 # No need to generate them if there are no CONFIG_FILES.
21531 # This happens for instance with `./config.status config.h'.
21532 if test -n "$CONFIG_FILES"; then
21535 ac_cr=`echo X | tr X '\015'`
21536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21537 # But we know of no other shell where ac_cr would be empty at this
21538 # point, so we can use a bashism as a fallback.
21539 if test "x$ac_cr" = x; then
21540 eval ac_cr=\$\'\\r\'
21542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21544 ac_cs_awk_cr='\\r'
21545 else
21546 ac_cs_awk_cr=$ac_cr
21549 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21550 _ACEOF
21554 echo "cat >conf$$subs.awk <<_ACEOF" &&
21555 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21556 echo "_ACEOF"
21557 } >conf$$subs.sh ||
21558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21560 ac_delim='%!_!# '
21561 for ac_last_try in false false false false false :; do
21562 . ./conf$$subs.sh ||
21563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21565 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21566 if test $ac_delim_n = $ac_delim_num; then
21567 break
21568 elif $ac_last_try; then
21569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21570 else
21571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21573 done
21574 rm -f conf$$subs.sh
21576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21577 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21578 _ACEOF
21579 sed -n '
21581 s/^/S["/; s/!.*/"]=/
21584 s/^[^!]*!//
21585 :repl
21586 t repl
21587 s/'"$ac_delim"'$//
21588 t delim
21591 s/\(.\{148\}\)..*/\1/
21592 t more1
21593 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21596 b repl
21597 :more1
21598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21601 s/.\{148\}//
21602 t nl
21603 :delim
21605 s/\(.\{148\}\)..*/\1/
21606 t more2
21607 s/["\\]/\\&/g; s/^/"/; s/$/"/
21610 :more2
21611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21614 s/.\{148\}//
21615 t delim
21616 ' <conf$$subs.awk | sed '
21617 /^[^""]/{
21619 s/\n//
21621 ' >>$CONFIG_STATUS || ac_write_fail=1
21622 rm -f conf$$subs.awk
21623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21624 _ACAWK
21625 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21626 for (key in S) S_is_set[key] = 1
21627 FS = "\a"
21631 line = $ 0
21632 nfields = split(line, field, "@")
21633 substed = 0
21634 len = length(field[1])
21635 for (i = 2; i < nfields; i++) {
21636 key = field[i]
21637 keylen = length(key)
21638 if (S_is_set[key]) {
21639 value = S[key]
21640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21641 len += length(value) + length(field[++i])
21642 substed = 1
21643 } else
21644 len += 1 + keylen
21647 print line
21650 _ACAWK
21651 _ACEOF
21652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21654 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21655 else
21657 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21658 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21659 _ACEOF
21661 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21662 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21663 # trailing colons and then remove the whole line if VPATH becomes empty
21664 # (actually we leave an empty line to preserve line numbers).
21665 if test "x$srcdir" = x.; then
21666 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21668 s///
21669 s/^/:/
21670 s/[ ]*$/:/
21671 s/:\$(srcdir):/:/g
21672 s/:\${srcdir}:/:/g
21673 s/:@srcdir@:/:/g
21674 s/^:*//
21675 s/:*$//
21677 s/\(=[ ]*\).*/\1/
21679 s/\n//
21680 s/^[^=]*=[ ]*$//
21684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21685 fi # test -n "$CONFIG_FILES"
21688 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21689 shift
21690 for ac_tag
21692 case $ac_tag in
21693 :[FHLC]) ac_mode=$ac_tag; continue;;
21694 esac
21695 case $ac_mode$ac_tag in
21696 :[FHL]*:*);;
21697 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21698 :[FH]-) ac_tag=-:-;;
21699 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21700 esac
21701 ac_save_IFS=$IFS
21702 IFS=:
21703 set x $ac_tag
21704 IFS=$ac_save_IFS
21705 shift
21706 ac_file=$1
21707 shift
21709 case $ac_mode in
21710 :L) ac_source=$1;;
21711 :[FH])
21712 ac_file_inputs=
21713 for ac_f
21715 case $ac_f in
21716 -) ac_f="$ac_tmp/stdin";;
21717 *) # Look for the file first in the build tree, then in the source tree
21718 # (if the path is not absolute). The absolute path cannot be DOS-style,
21719 # because $ac_f cannot contain `:'.
21720 test -f "$ac_f" ||
21721 case $ac_f in
21722 [\\/$]*) false;;
21723 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21724 esac ||
21725 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21726 esac
21727 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21728 as_fn_append ac_file_inputs " '$ac_f'"
21729 done
21731 # Let's still pretend it is `configure' which instantiates (i.e., don't
21732 # use $as_me), people would be surprised to read:
21733 # /* config.h. Generated by config.status. */
21734 configure_input='Generated from '`
21735 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21736 `' by configure.'
21737 if test x"$ac_file" != x-; then
21738 configure_input="$ac_file. $configure_input"
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21740 $as_echo "$as_me: creating $ac_file" >&6;}
21742 # Neutralize special characters interpreted by sed in replacement strings.
21743 case $configure_input in #(
21744 *\&* | *\|* | *\\* )
21745 ac_sed_conf_input=`$as_echo "$configure_input" |
21746 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21747 *) ac_sed_conf_input=$configure_input;;
21748 esac
21750 case $ac_tag in
21751 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21753 esac
21755 esac
21757 ac_dir=`$as_dirname -- "$ac_file" ||
21758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21759 X"$ac_file" : 'X\(//\)[^/]' \| \
21760 X"$ac_file" : 'X\(//\)$' \| \
21761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21762 $as_echo X"$ac_file" |
21763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21764 s//\1/
21767 /^X\(\/\/\)[^/].*/{
21768 s//\1/
21771 /^X\(\/\/\)$/{
21772 s//\1/
21775 /^X\(\/\).*/{
21776 s//\1/
21779 s/.*/./; q'`
21780 as_dir="$ac_dir"; as_fn_mkdir_p
21781 ac_builddir=.
21783 case "$ac_dir" in
21784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21787 # A ".." for each directory in $ac_dir_suffix.
21788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21789 case $ac_top_builddir_sub in
21790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21792 esac ;;
21793 esac
21794 ac_abs_top_builddir=$ac_pwd
21795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21796 # for backward compatibility:
21797 ac_top_builddir=$ac_top_build_prefix
21799 case $srcdir in
21800 .) # We are building in place.
21801 ac_srcdir=.
21802 ac_top_srcdir=$ac_top_builddir_sub
21803 ac_abs_top_srcdir=$ac_pwd ;;
21804 [\\/]* | ?:[\\/]* ) # Absolute name.
21805 ac_srcdir=$srcdir$ac_dir_suffix;
21806 ac_top_srcdir=$srcdir
21807 ac_abs_top_srcdir=$srcdir ;;
21808 *) # Relative name.
21809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21810 ac_top_srcdir=$ac_top_build_prefix$srcdir
21811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21812 esac
21813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21816 case $ac_mode in
21819 # CONFIG_FILE
21822 case $INSTALL in
21823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21825 esac
21826 ac_MKDIR_P=$MKDIR_P
21827 case $MKDIR_P in
21828 [\\/$]* | ?:[\\/]* ) ;;
21829 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21830 esac
21831 _ACEOF
21833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21834 # If the template does not know about datarootdir, expand it.
21835 # FIXME: This hack should be removed a few years after 2.60.
21836 ac_datarootdir_hack=; ac_datarootdir_seen=
21837 ac_sed_dataroot='
21838 /datarootdir/ {
21842 /@datadir@/p
21843 /@docdir@/p
21844 /@infodir@/p
21845 /@localedir@/p
21846 /@mandir@/p'
21847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21848 *datarootdir*) ac_datarootdir_seen=yes;;
21849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21852 _ACEOF
21853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21854 ac_datarootdir_hack='
21855 s&@datadir@&$datadir&g
21856 s&@docdir@&$docdir&g
21857 s&@infodir@&$infodir&g
21858 s&@localedir@&$localedir&g
21859 s&@mandir@&$mandir&g
21860 s&\\\${datarootdir}&$datarootdir&g' ;;
21861 esac
21862 _ACEOF
21864 # Neutralize VPATH when `$srcdir' = `.'.
21865 # Shell code in configure.ac might set extrasub.
21866 # FIXME: do we really want to maintain this feature?
21867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21868 ac_sed_extra="$ac_vpsub
21869 $extrasub
21870 _ACEOF
21871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21874 s|@configure_input@|$ac_sed_conf_input|;t t
21875 s&@top_builddir@&$ac_top_builddir_sub&;t t
21876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21877 s&@srcdir@&$ac_srcdir&;t t
21878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21879 s&@top_srcdir@&$ac_top_srcdir&;t t
21880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21881 s&@builddir@&$ac_builddir&;t t
21882 s&@abs_builddir@&$ac_abs_builddir&;t t
21883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21884 s&@INSTALL@&$ac_INSTALL&;t t
21885 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21886 $ac_datarootdir_hack
21888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21889 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21892 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21894 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21896 which seems to be undefined. Please make sure it is defined" >&5
21897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21898 which seems to be undefined. Please make sure it is defined" >&2;}
21900 rm -f "$ac_tmp/stdin"
21901 case $ac_file in
21902 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21903 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21904 esac \
21905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21909 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21910 $as_echo "$as_me: executing $ac_file commands" >&6;}
21912 esac
21915 case $ac_file$ac_mode in
21916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21917 # Older Autoconf quotes --file arguments for eval, but not when files
21918 # are listed without --file. Let's play safe and only enable the eval
21919 # if we detect the quoting.
21920 case $CONFIG_FILES in
21921 *\'*) eval set x "$CONFIG_FILES" ;;
21922 *) set x $CONFIG_FILES ;;
21923 esac
21924 shift
21925 for mf
21927 # Strip MF so we end up with the name of the file.
21928 mf=`echo "$mf" | sed -e 's/:.*$//'`
21929 # Check whether this is an Automake generated Makefile or not.
21930 # We used to match only the files named 'Makefile.in', but
21931 # some people rename them; so instead we look at the file content.
21932 # Grep'ing the first line is not enough: some people post-process
21933 # each Makefile.in and add a new line on top of each file to say so.
21934 # Grep'ing the whole file is not good either: AIX grep has a line
21935 # limit of 2048, but all sed's we know have understand at least 4000.
21936 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21937 dirpart=`$as_dirname -- "$mf" ||
21938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21939 X"$mf" : 'X\(//\)[^/]' \| \
21940 X"$mf" : 'X\(//\)$' \| \
21941 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21942 $as_echo X"$mf" |
21943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21944 s//\1/
21947 /^X\(\/\/\)[^/].*/{
21948 s//\1/
21951 /^X\(\/\/\)$/{
21952 s//\1/
21955 /^X\(\/\).*/{
21956 s//\1/
21959 s/.*/./; q'`
21960 else
21961 continue
21963 # Extract the definition of DEPDIR, am__include, and am__quote
21964 # from the Makefile without running 'make'.
21965 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21966 test -z "$DEPDIR" && continue
21967 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21968 test -z "$am__include" && continue
21969 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21970 # Find all dependency output files, they are included files with
21971 # $(DEPDIR) in their names. We invoke sed twice because it is the
21972 # simplest approach to changing $(DEPDIR) to its actual value in the
21973 # expansion.
21974 for file in `sed -n "
21975 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21976 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21977 # Make sure the directory exists.
21978 test -f "$dirpart/$file" && continue
21979 fdir=`$as_dirname -- "$file" ||
21980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21981 X"$file" : 'X\(//\)[^/]' \| \
21982 X"$file" : 'X\(//\)$' \| \
21983 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21984 $as_echo X"$file" |
21985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21986 s//\1/
21989 /^X\(\/\/\)[^/].*/{
21990 s//\1/
21993 /^X\(\/\/\)$/{
21994 s//\1/
21997 /^X\(\/\).*/{
21998 s//\1/
22001 s/.*/./; q'`
22002 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22003 # echo "creating $dirpart/$file"
22004 echo '# dummy' > "$dirpart/$file"
22005 done
22006 done
22009 "libtool":C)
22011 # See if we are running on zsh, and set the options which allow our
22012 # commands through without removal of \ escapes.
22013 if test -n "${ZSH_VERSION+set}" ; then
22014 setopt NO_GLOB_SUBST
22017 cfgfile="${ofile}T"
22018 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22019 $RM "$cfgfile"
22021 cat <<_LT_EOF >> "$cfgfile"
22022 #! $SHELL
22024 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22025 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22026 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22027 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22029 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22030 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22031 # Foundation, Inc.
22032 # Written by Gordon Matzigkeit, 1996
22034 # This file is part of GNU Libtool.
22036 # GNU Libtool is free software; you can redistribute it and/or
22037 # modify it under the terms of the GNU General Public License as
22038 # published by the Free Software Foundation; either version 2 of
22039 # the License, or (at your option) any later version.
22041 # As a special exception to the GNU General Public License,
22042 # if you distribute this file as part of a program or library that
22043 # is built using GNU Libtool, you may include this file under the
22044 # same distribution terms that you use for the rest of that program.
22046 # GNU Libtool is distributed in the hope that it will be useful,
22047 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22049 # GNU General Public License for more details.
22051 # You should have received a copy of the GNU General Public License
22052 # along with GNU Libtool; see the file COPYING. If not, a copy
22053 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22054 # obtained by writing to the Free Software Foundation, Inc.,
22055 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22058 # The names of the tagged configurations supported by this script.
22059 available_tags="CXX "
22061 # ### BEGIN LIBTOOL CONFIG
22063 # Which release of libtool.m4 was used?
22064 macro_version=$macro_version
22065 macro_revision=$macro_revision
22067 # Whether or not to build shared libraries.
22068 build_libtool_libs=$enable_shared
22070 # Whether or not to build static libraries.
22071 build_old_libs=$enable_static
22073 # What type of objects to build.
22074 pic_mode=$pic_mode
22076 # Whether or not to optimize for fast installation.
22077 fast_install=$enable_fast_install
22079 # Shell to use when invoking shell scripts.
22080 SHELL=$lt_SHELL
22082 # An echo program that protects backslashes.
22083 ECHO=$lt_ECHO
22085 # The PATH separator for the build system.
22086 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22088 # The host system.
22089 host_alias=$host_alias
22090 host=$host
22091 host_os=$host_os
22093 # The build system.
22094 build_alias=$build_alias
22095 build=$build
22096 build_os=$build_os
22098 # A sed program that does not truncate output.
22099 SED=$lt_SED
22101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22102 Xsed="\$SED -e 1s/^X//"
22104 # A grep program that handles long lines.
22105 GREP=$lt_GREP
22107 # An ERE matcher.
22108 EGREP=$lt_EGREP
22110 # A literal string matcher.
22111 FGREP=$lt_FGREP
22113 # A BSD- or MS-compatible name lister.
22114 NM=$lt_NM
22116 # Whether we need soft or hard links.
22117 LN_S=$lt_LN_S
22119 # What is the maximum length of a command?
22120 max_cmd_len=$max_cmd_len
22122 # Object file suffix (normally "o").
22123 objext=$ac_objext
22125 # Executable file suffix (normally "").
22126 exeext=$exeext
22128 # whether the shell understands "unset".
22129 lt_unset=$lt_unset
22131 # turn spaces into newlines.
22132 SP2NL=$lt_lt_SP2NL
22134 # turn newlines into spaces.
22135 NL2SP=$lt_lt_NL2SP
22137 # convert \$build file names to \$host format.
22138 to_host_file_cmd=$lt_cv_to_host_file_cmd
22140 # convert \$build files to toolchain format.
22141 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22143 # An object symbol dumper.
22144 OBJDUMP=$lt_OBJDUMP
22146 # Method to check whether dependent libraries are shared objects.
22147 deplibs_check_method=$lt_deplibs_check_method
22149 # Command to use when deplibs_check_method = "file_magic".
22150 file_magic_cmd=$lt_file_magic_cmd
22152 # How to find potential files when deplibs_check_method = "file_magic".
22153 file_magic_glob=$lt_file_magic_glob
22155 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22156 want_nocaseglob=$lt_want_nocaseglob
22158 # DLL creation program.
22159 DLLTOOL=$lt_DLLTOOL
22161 # Command to associate shared and link libraries.
22162 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22164 # The archiver.
22165 AR=$lt_AR
22167 # Flags to create an archive.
22168 AR_FLAGS=$lt_AR_FLAGS
22170 # How to feed a file listing to the archiver.
22171 archiver_list_spec=$lt_archiver_list_spec
22173 # A symbol stripping program.
22174 STRIP=$lt_STRIP
22176 # Commands used to install an old-style archive.
22177 RANLIB=$lt_RANLIB
22178 old_postinstall_cmds=$lt_old_postinstall_cmds
22179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22181 # Whether to use a lock for old archive extraction.
22182 lock_old_archive_extraction=$lock_old_archive_extraction
22184 # A C compiler.
22185 LTCC=$lt_CC
22187 # LTCC compiler flags.
22188 LTCFLAGS=$lt_CFLAGS
22190 # Take the output of nm and produce a listing of raw symbols and C names.
22191 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22193 # Transform the output of nm in a proper C declaration.
22194 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22196 # Transform the output of nm in a C name address pair.
22197 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22199 # Transform the output of nm in a C name address pair when lib prefix is needed.
22200 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22202 # Specify filename containing input files for \$NM.
22203 nm_file_list_spec=$lt_nm_file_list_spec
22205 # The root where to search for dependent libraries,and in which our libraries should be installed.
22206 lt_sysroot=$lt_sysroot
22208 # The name of the directory that contains temporary libtool files.
22209 objdir=$objdir
22211 # Used to examine libraries when file_magic_cmd begins with "file".
22212 MAGIC_CMD=$MAGIC_CMD
22214 # Must we lock files when doing compilation?
22215 need_locks=$lt_need_locks
22217 # Manifest tool.
22218 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22220 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22221 DSYMUTIL=$lt_DSYMUTIL
22223 # Tool to change global to local symbols on Mac OS X.
22224 NMEDIT=$lt_NMEDIT
22226 # Tool to manipulate fat objects and archives on Mac OS X.
22227 LIPO=$lt_LIPO
22229 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22230 OTOOL=$lt_OTOOL
22232 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22233 OTOOL64=$lt_OTOOL64
22235 # Old archive suffix (normally "a").
22236 libext=$libext
22238 # Shared library suffix (normally ".so").
22239 shrext_cmds=$lt_shrext_cmds
22241 # The commands to extract the exported symbol list from a shared archive.
22242 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22244 # Variables whose values should be saved in libtool wrapper scripts and
22245 # restored at link time.
22246 variables_saved_for_relink=$lt_variables_saved_for_relink
22248 # Do we need the "lib" prefix for modules?
22249 need_lib_prefix=$need_lib_prefix
22251 # Do we need a version for libraries?
22252 need_version=$need_version
22254 # Library versioning type.
22255 version_type=$version_type
22257 # Shared library runtime path variable.
22258 runpath_var=$runpath_var
22260 # Shared library path variable.
22261 shlibpath_var=$shlibpath_var
22263 # Is shlibpath searched before the hard-coded library search path?
22264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22266 # Format of library name prefix.
22267 libname_spec=$lt_libname_spec
22269 # List of archive names. First name is the real one, the rest are links.
22270 # The last name is the one that the linker finds with -lNAME
22271 library_names_spec=$lt_library_names_spec
22273 # The coded name of the library, if different from the real name.
22274 soname_spec=$lt_soname_spec
22276 # Permission mode override for installation of shared libraries.
22277 install_override_mode=$lt_install_override_mode
22279 # Command to use after installation of a shared archive.
22280 postinstall_cmds=$lt_postinstall_cmds
22282 # Command to use after uninstallation of a shared archive.
22283 postuninstall_cmds=$lt_postuninstall_cmds
22285 # Commands used to finish a libtool library installation in a directory.
22286 finish_cmds=$lt_finish_cmds
22288 # As "finish_cmds", except a single script fragment to be evaled but
22289 # not shown.
22290 finish_eval=$lt_finish_eval
22292 # Whether we should hardcode library paths into libraries.
22293 hardcode_into_libs=$hardcode_into_libs
22295 # Compile-time system search path for libraries.
22296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22298 # Run-time system search path for libraries.
22299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22301 # Whether dlopen is supported.
22302 dlopen_support=$enable_dlopen
22304 # Whether dlopen of programs is supported.
22305 dlopen_self=$enable_dlopen_self
22307 # Whether dlopen of statically linked programs is supported.
22308 dlopen_self_static=$enable_dlopen_self_static
22310 # Commands to strip libraries.
22311 old_striplib=$lt_old_striplib
22312 striplib=$lt_striplib
22315 # The linker used to build libraries.
22316 LD=$lt_LD
22318 # How to create reloadable object files.
22319 reload_flag=$lt_reload_flag
22320 reload_cmds=$lt_reload_cmds
22322 # Commands used to build an old-style archive.
22323 old_archive_cmds=$lt_old_archive_cmds
22325 # A language specific compiler.
22326 CC=$lt_compiler
22328 # Is the compiler the GNU compiler?
22329 with_gcc=$GCC
22331 # Compiler flag to turn off builtin functions.
22332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22334 # Additional compiler flags for building library objects.
22335 pic_flag=$lt_lt_prog_compiler_pic
22337 # How to pass a linker flag through the compiler.
22338 wl=$lt_lt_prog_compiler_wl
22340 # Compiler flag to prevent dynamic linking.
22341 link_static_flag=$lt_lt_prog_compiler_static
22343 # Does compiler simultaneously support -c and -o options?
22344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22346 # Whether or not to add -lc for building shared libraries.
22347 build_libtool_need_lc=$archive_cmds_need_lc
22349 # Whether or not to disallow shared libs when runtime libs are static.
22350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22352 # Compiler flag to allow reflexive dlopens.
22353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22355 # Compiler flag to generate shared objects directly from archives.
22356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22358 # Whether the compiler copes with passing no objects directly.
22359 compiler_needs_object=$lt_compiler_needs_object
22361 # Create an old-style archive from a shared archive.
22362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22364 # Create a temporary old-style archive to link instead of a shared archive.
22365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22367 # Commands used to build a shared archive.
22368 archive_cmds=$lt_archive_cmds
22369 archive_expsym_cmds=$lt_archive_expsym_cmds
22371 # Commands used to build a loadable module if different from building
22372 # a shared archive.
22373 module_cmds=$lt_module_cmds
22374 module_expsym_cmds=$lt_module_expsym_cmds
22376 # Whether we are building with GNU ld or not.
22377 with_gnu_ld=$lt_with_gnu_ld
22379 # Flag that allows shared libraries with undefined symbols to be built.
22380 allow_undefined_flag=$lt_allow_undefined_flag
22382 # Flag that enforces no undefined symbols.
22383 no_undefined_flag=$lt_no_undefined_flag
22385 # Flag to hardcode \$libdir into a binary during linking.
22386 # This must work even if \$libdir does not exist
22387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22389 # Whether we need a single "-rpath" flag with a separated argument.
22390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22392 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22393 # DIR into the resulting binary.
22394 hardcode_direct=$hardcode_direct
22396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22397 # DIR into the resulting binary and the resulting library dependency is
22398 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22399 # library is relocated.
22400 hardcode_direct_absolute=$hardcode_direct_absolute
22402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22403 # into the resulting binary.
22404 hardcode_minus_L=$hardcode_minus_L
22406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22407 # into the resulting binary.
22408 hardcode_shlibpath_var=$hardcode_shlibpath_var
22410 # Set to "yes" if building a shared library automatically hardcodes DIR
22411 # into the library and all subsequent libraries and executables linked
22412 # against it.
22413 hardcode_automatic=$hardcode_automatic
22415 # Set to yes if linker adds runtime paths of dependent libraries
22416 # to runtime path list.
22417 inherit_rpath=$inherit_rpath
22419 # Whether libtool must link a program against all its dependency libraries.
22420 link_all_deplibs=$link_all_deplibs
22422 # Set to "yes" if exported symbols are required.
22423 always_export_symbols=$always_export_symbols
22425 # The commands to list exported symbols.
22426 export_symbols_cmds=$lt_export_symbols_cmds
22428 # Symbols that should not be listed in the preloaded symbols.
22429 exclude_expsyms=$lt_exclude_expsyms
22431 # Symbols that must always be exported.
22432 include_expsyms=$lt_include_expsyms
22434 # Commands necessary for linking programs (against libraries) with templates.
22435 prelink_cmds=$lt_prelink_cmds
22437 # Commands necessary for finishing linking programs.
22438 postlink_cmds=$lt_postlink_cmds
22440 # Specify filename containing input files.
22441 file_list_spec=$lt_file_list_spec
22443 # How to hardcode a shared library path into an executable.
22444 hardcode_action=$hardcode_action
22446 # The directories searched by this compiler when creating a shared library.
22447 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22449 # Dependencies to place before and after the objects being linked to
22450 # create a shared library.
22451 predep_objects=$lt_predep_objects
22452 postdep_objects=$lt_postdep_objects
22453 predeps=$lt_predeps
22454 postdeps=$lt_postdeps
22456 # The library search path used internally by the compiler when linking
22457 # a shared library.
22458 compiler_lib_search_path=$lt_compiler_lib_search_path
22460 # ### END LIBTOOL CONFIG
22462 _LT_EOF
22464 case $host_os in
22465 aix3*)
22466 cat <<\_LT_EOF >> "$cfgfile"
22467 # AIX sometimes has problems with the GCC collect2 program. For some
22468 # reason, if we set the COLLECT_NAMES environment variable, the problems
22469 # vanish in a puff of smoke.
22470 if test "X${COLLECT_NAMES+set}" != Xset; then
22471 COLLECT_NAMES=
22472 export COLLECT_NAMES
22474 _LT_EOF
22476 esac
22479 ltmain="$ac_aux_dir/ltmain.sh"
22482 # We use sed instead of cat because bash on DJGPP gets confused if
22483 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22484 # text mode, it properly converts lines to CR/LF. This bash problem
22485 # is reportedly fixed, but why not run on old versions too?
22486 sed '$q' "$ltmain" >> "$cfgfile" \
22487 || (rm -f "$cfgfile"; exit 1)
22489 if test x"$xsi_shell" = xyes; then
22490 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22491 func_dirname ()\
22493 \ case ${1} in\
22494 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22495 \ * ) func_dirname_result="${3}" ;;\
22496 \ esac\
22497 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22498 && mv -f "$cfgfile.tmp" "$cfgfile" \
22499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22500 test 0 -eq $? || _lt_function_replace_fail=:
22503 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22504 func_basename ()\
22506 \ func_basename_result="${1##*/}"\
22507 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22508 && mv -f "$cfgfile.tmp" "$cfgfile" \
22509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22510 test 0 -eq $? || _lt_function_replace_fail=:
22513 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22514 func_dirname_and_basename ()\
22516 \ case ${1} in\
22517 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22518 \ * ) func_dirname_result="${3}" ;;\
22519 \ esac\
22520 \ func_basename_result="${1##*/}"\
22521 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22522 && mv -f "$cfgfile.tmp" "$cfgfile" \
22523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22524 test 0 -eq $? || _lt_function_replace_fail=:
22527 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22528 func_stripname ()\
22530 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22531 \ # positional parameters, so assign one to ordinary parameter first.\
22532 \ func_stripname_result=${3}\
22533 \ func_stripname_result=${func_stripname_result#"${1}"}\
22534 \ func_stripname_result=${func_stripname_result%"${2}"}\
22535 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22536 && mv -f "$cfgfile.tmp" "$cfgfile" \
22537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22538 test 0 -eq $? || _lt_function_replace_fail=:
22541 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22542 func_split_long_opt ()\
22544 \ func_split_long_opt_name=${1%%=*}\
22545 \ func_split_long_opt_arg=${1#*=}\
22546 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22547 && mv -f "$cfgfile.tmp" "$cfgfile" \
22548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22549 test 0 -eq $? || _lt_function_replace_fail=:
22552 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22553 func_split_short_opt ()\
22555 \ func_split_short_opt_arg=${1#??}\
22556 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22557 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22558 && mv -f "$cfgfile.tmp" "$cfgfile" \
22559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22560 test 0 -eq $? || _lt_function_replace_fail=:
22563 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22564 func_lo2o ()\
22566 \ case ${1} in\
22567 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22568 \ *) func_lo2o_result=${1} ;;\
22569 \ esac\
22570 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22571 && mv -f "$cfgfile.tmp" "$cfgfile" \
22572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22573 test 0 -eq $? || _lt_function_replace_fail=:
22576 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22577 func_xform ()\
22579 func_xform_result=${1%.*}.lo\
22580 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22581 && mv -f "$cfgfile.tmp" "$cfgfile" \
22582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22583 test 0 -eq $? || _lt_function_replace_fail=:
22586 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22587 func_arith ()\
22589 func_arith_result=$(( $* ))\
22590 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22591 && mv -f "$cfgfile.tmp" "$cfgfile" \
22592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22593 test 0 -eq $? || _lt_function_replace_fail=:
22596 sed -e '/^func_len ()$/,/^} # func_len /c\
22597 func_len ()\
22599 func_len_result=${#1}\
22600 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22601 && mv -f "$cfgfile.tmp" "$cfgfile" \
22602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22603 test 0 -eq $? || _lt_function_replace_fail=:
22607 if test x"$lt_shell_append" = xyes; then
22608 sed -e '/^func_append ()$/,/^} # func_append /c\
22609 func_append ()\
22611 eval "${1}+=\\${2}"\
22612 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22613 && mv -f "$cfgfile.tmp" "$cfgfile" \
22614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22615 test 0 -eq $? || _lt_function_replace_fail=:
22618 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22619 func_append_quoted ()\
22621 \ func_quote_for_eval "${2}"\
22622 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22623 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22624 && mv -f "$cfgfile.tmp" "$cfgfile" \
22625 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22626 test 0 -eq $? || _lt_function_replace_fail=:
22629 # Save a `func_append' function call where possible by direct use of '+='
22630 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22631 && mv -f "$cfgfile.tmp" "$cfgfile" \
22632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22633 test 0 -eq $? || _lt_function_replace_fail=:
22634 else
22635 # Save a `func_append' function call even when '+=' is not available
22636 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22637 && mv -f "$cfgfile.tmp" "$cfgfile" \
22638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22639 test 0 -eq $? || _lt_function_replace_fail=:
22642 if test x"$_lt_function_replace_fail" = x":"; then
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22644 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22648 mv -f "$cfgfile" "$ofile" ||
22649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22650 chmod +x "$ofile"
22653 cat <<_LT_EOF >> "$ofile"
22655 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22657 # The linker used to build libraries.
22658 LD=$lt_LD_CXX
22660 # How to create reloadable object files.
22661 reload_flag=$lt_reload_flag_CXX
22662 reload_cmds=$lt_reload_cmds_CXX
22664 # Commands used to build an old-style archive.
22665 old_archive_cmds=$lt_old_archive_cmds_CXX
22667 # A language specific compiler.
22668 CC=$lt_compiler_CXX
22670 # Is the compiler the GNU compiler?
22671 with_gcc=$GCC_CXX
22673 # Compiler flag to turn off builtin functions.
22674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22676 # Additional compiler flags for building library objects.
22677 pic_flag=$lt_lt_prog_compiler_pic_CXX
22679 # How to pass a linker flag through the compiler.
22680 wl=$lt_lt_prog_compiler_wl_CXX
22682 # Compiler flag to prevent dynamic linking.
22683 link_static_flag=$lt_lt_prog_compiler_static_CXX
22685 # Does compiler simultaneously support -c and -o options?
22686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22688 # Whether or not to add -lc for building shared libraries.
22689 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22691 # Whether or not to disallow shared libs when runtime libs are static.
22692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22694 # Compiler flag to allow reflexive dlopens.
22695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22697 # Compiler flag to generate shared objects directly from archives.
22698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22700 # Whether the compiler copes with passing no objects directly.
22701 compiler_needs_object=$lt_compiler_needs_object_CXX
22703 # Create an old-style archive from a shared archive.
22704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22706 # Create a temporary old-style archive to link instead of a shared archive.
22707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22709 # Commands used to build a shared archive.
22710 archive_cmds=$lt_archive_cmds_CXX
22711 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22713 # Commands used to build a loadable module if different from building
22714 # a shared archive.
22715 module_cmds=$lt_module_cmds_CXX
22716 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22718 # Whether we are building with GNU ld or not.
22719 with_gnu_ld=$lt_with_gnu_ld_CXX
22721 # Flag that allows shared libraries with undefined symbols to be built.
22722 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22724 # Flag that enforces no undefined symbols.
22725 no_undefined_flag=$lt_no_undefined_flag_CXX
22727 # Flag to hardcode \$libdir into a binary during linking.
22728 # This must work even if \$libdir does not exist
22729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22731 # Whether we need a single "-rpath" flag with a separated argument.
22732 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22735 # DIR into the resulting binary.
22736 hardcode_direct=$hardcode_direct_CXX
22738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22739 # DIR into the resulting binary and the resulting library dependency is
22740 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22741 # library is relocated.
22742 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22744 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22745 # into the resulting binary.
22746 hardcode_minus_L=$hardcode_minus_L_CXX
22748 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22749 # into the resulting binary.
22750 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22752 # Set to "yes" if building a shared library automatically hardcodes DIR
22753 # into the library and all subsequent libraries and executables linked
22754 # against it.
22755 hardcode_automatic=$hardcode_automatic_CXX
22757 # Set to yes if linker adds runtime paths of dependent libraries
22758 # to runtime path list.
22759 inherit_rpath=$inherit_rpath_CXX
22761 # Whether libtool must link a program against all its dependency libraries.
22762 link_all_deplibs=$link_all_deplibs_CXX
22764 # Set to "yes" if exported symbols are required.
22765 always_export_symbols=$always_export_symbols_CXX
22767 # The commands to list exported symbols.
22768 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22770 # Symbols that should not be listed in the preloaded symbols.
22771 exclude_expsyms=$lt_exclude_expsyms_CXX
22773 # Symbols that must always be exported.
22774 include_expsyms=$lt_include_expsyms_CXX
22776 # Commands necessary for linking programs (against libraries) with templates.
22777 prelink_cmds=$lt_prelink_cmds_CXX
22779 # Commands necessary for finishing linking programs.
22780 postlink_cmds=$lt_postlink_cmds_CXX
22782 # Specify filename containing input files.
22783 file_list_spec=$lt_file_list_spec_CXX
22785 # How to hardcode a shared library path into an executable.
22786 hardcode_action=$hardcode_action_CXX
22788 # The directories searched by this compiler when creating a shared library.
22789 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22791 # Dependencies to place before and after the objects being linked to
22792 # create a shared library.
22793 predep_objects=$lt_predep_objects_CXX
22794 postdep_objects=$lt_postdep_objects_CXX
22795 predeps=$lt_predeps_CXX
22796 postdeps=$lt_postdeps_CXX
22798 # The library search path used internally by the compiler when linking
22799 # a shared library.
22800 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22802 # ### END LIBTOOL TAG CONFIG: CXX
22803 _LT_EOF
22806 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22807 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22808 esac ;;
22809 "po/stamp-it":C)
22810 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
22811 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
22813 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
22814 >"po/stamp-it.tmp"
22815 sed '/^#/d
22816 s/^[[].*] *//
22817 /^[ ]*$/d
22818 '"s|^| $ac_top_srcdir/|" \
22819 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
22821 sed '/^POTFILES =/,/[^\\]$/ {
22822 /^POTFILES =/!d
22823 r po/POTFILES
22825 ' "po/Makefile.in" >"po/Makefile"
22826 rm -f "po/Makefile.tmp"
22827 mv "po/stamp-it.tmp" "po/stamp-it"
22830 esac
22831 done # for ac_tag
22834 as_fn_exit 0
22835 _ACEOF
22836 ac_clean_files=$ac_clean_files_save
22838 test $ac_write_fail = 0 ||
22839 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22842 # configure is writing to config.log, and then calls config.status.
22843 # config.status does its own redirection, appending to config.log.
22844 # Unfortunately, on DOS this fails, as config.log is still kept open
22845 # by configure, so config.status won't be able to write to it; its
22846 # output is simply discarded. So we exec the FD to /dev/null,
22847 # effectively closing config.log, so it can be properly (re)opened and
22848 # appended to by config.status. When coming back to configure, we
22849 # need to make the FD available again.
22850 if test "$no_create" != yes; then
22851 ac_cs_success=:
22852 ac_config_status_args=
22853 test "$silent" = yes &&
22854 ac_config_status_args="$ac_config_status_args --quiet"
22855 exec 5>/dev/null
22856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22857 exec 5>>config.log
22858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22859 # would make configure fail if this is the last instruction.
22860 $ac_cs_success || as_fn_exit 1
22862 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22864 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22868 echo "
22870 Configuration:
22872 Source code location: ${srcdir}
22873 Compiler: ${CXX}
22875 Build libtransmission: yes
22876 * optimized for low-resource systems: ${enable_lightweight}
22877 * µTP enabled: ${build_utp}
22879 Build Command-Line client: ${build_cli}
22881 Build GTK+ client: ${with_gtk}
22882 * libappindicator for an Ubuntu-style tray: ${use_libappindicator}
22884 Build Daemon: ${build_daemon}
22886 Build Mac client: ${build_mac}