Transmission: update to 2.76
[tomato.git] / release / src / router / transmission / configure
blobe25645697908b26fda139fb54813897fef9ceb43
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for transmission 2.76.
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.76'
594 PACKAGE_STRING='transmission 2.76'
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 ZLIB_LIBS
720 ZLIB_LDFLAGS
721 ZLIB_CFLAGS
722 LIBEVENT_LIBS
723 LIBEVENT_CFLAGS
724 LIBCURL_LIBS
725 LIBCURL_CFLAGS
726 PKG_CONFIG
727 PTHREAD_CFLAGS
728 PTHREAD_LIBS
729 PTHREAD_CC
730 acx_pthread_config
731 HAVE_CXX
732 CXXCPP
733 am__fastdepCXX_FALSE
734 am__fastdepCXX_TRUE
735 CXXDEPMODE
736 ac_ct_CXX
737 CXXFLAGS
739 LIBAPPINDICATOR_MINIMUM
740 GIO_MINIMUM
741 GLIB_MINIMUM
742 GTK_MINIMUM
743 OPENSSL_MINIMUM
744 LIBEVENT_MINIUM
745 CURL_MINIMUM
746 TR_UNSTABLE_FALSE
747 TR_UNSTABLE_TRUE
749 OTOOL64
750 OTOOL
751 LIPO
752 NMEDIT
753 DSYMUTIL
754 MANIFEST_TOOL
755 RANLIB
756 ac_ct_AR
758 DLLTOOL
759 OBJDUMP
760 LN_S
762 ac_ct_DUMPBIN
763 DUMPBIN
765 FGREP
766 EGREP
767 GREP
769 am__fastdepCC_FALSE
770 am__fastdepCC_TRUE
771 CCDEPMODE
772 am__nodep
773 AMDEPBACKSLASH
774 AMDEP_FALSE
775 AMDEP_TRUE
776 am__quote
777 am__include
778 DEPDIR
779 OBJEXT
780 EXEEXT
781 ac_ct_CC
782 CPPFLAGS
783 LDFLAGS
784 CFLAGS
786 host_os
787 host_vendor
788 host_cpu
789 host
790 build_os
791 build_vendor
792 build_cpu
793 build
794 LIBTOOL
795 am__untar
796 am__tar
797 AMTAR
798 am__leading_dot
799 SET_MAKE
801 mkdir_p
802 MKDIR_P
803 INSTALL_STRIP_PROGRAM
804 STRIP
805 install_sh
806 MAKEINFO
807 AUTOHEADER
808 AUTOMAKE
809 AUTOCONF
810 ACLOCAL
811 VERSION
812 PACKAGE
813 CYGPATH_W
814 am__isrc
815 INSTALL_DATA
816 INSTALL_SCRIPT
817 INSTALL_PROGRAM
818 AM_BACKSLASH
819 AM_DEFAULT_VERBOSITY
820 AM_DEFAULT_V
821 AM_V
822 PEERID_PREFIX
823 USERAGENT_PREFIX
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL
862 OPENSSL_LIBS
863 OPENSSL_CFLAGS'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_silent_rules
868 enable_shared
869 enable_static
870 with_pic
871 enable_fast_install
872 enable_dependency_tracking
873 with_gnu_ld
874 with_sysroot
875 enable_libtool_lock
876 with_zlib
877 with_zlib_includes
878 enable_largefile
879 with_inotify
880 with_kqueue
881 enable_utp
882 enable_external_natpmp
883 enable_nls
884 with_gtk
885 enable_lightweight
886 enable_cli
887 enable_mac
888 enable_daemon
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
900 CXXFLAGS
902 CXXCPP
903 PKG_CONFIG
904 OPENSSL_CFLAGS
905 OPENSSL_LIBS
906 LIBCURL_CFLAGS
907 LIBCURL_LIBS
908 LIBEVENT_CFLAGS
909 LIBEVENT_LIBS
910 GTK_CFLAGS
911 GTK_LIBS
912 LIBAPPINDICATOR_CFLAGS
913 LIBAPPINDICATOR_LIBS'
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
964 ac_prev=
965 ac_dashdash=
966 for ac_option
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
975 case $ac_option in
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
979 esac
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
985 ac_dashdash=yes ;;
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1321 esac
1322 done
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $? "missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377 test "$silent" = yes && exec 6>/dev/null
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $? "pwd does not report name of working directory"
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1406 /^X\(\/\/\)$/{
1407 s//\1/
1410 /^X\(\/\).*/{
1411 s//\1/
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1419 else
1420 ac_srcdir_defaulted=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1448 # Report the --help message.
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454 \`configure' configures transmission 2.76 to adapt to many kinds of systems.
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1461 Defaults for the options are specified in brackets.
1463 Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1485 For better control, use the options below.
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/transmission]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1509 cat <<\_ACEOF
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of transmission 2.76:";;
1525 esac
1526 cat <<\_ACEOF
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-silent-rules less verbose build output (undo: `make V=1')
1533 --disable-silent-rules verbose build output (undo: `make V=0')
1534 --enable-shared[=PKGS] build shared libraries [default=yes]
1535 --enable-static[=PKGS] build static libraries [default=yes]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --disable-dependency-tracking speeds up one-time build
1539 --enable-dependency-tracking do not reject slow dependency extractors
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-largefile omit support for large files
1542 --enable-utp build µTP support
1543 --enable-external-natpmp
1544 Use system external-natpmp
1545 --enable-nls enable native language support
1546 --disable-nls do not use Native Language Support
1547 --enable-lightweight optimize libtransmission for low-resource systems:
1548 smaller cache size, prefer unencrypted peer
1549 connections, etc.
1550 --enable-cli build command-line client
1551 --enable-mac build Mac client
1552 --enable-daemon build daemon
1554 Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1557 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1558 both]
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-sysroot=DIR Search for dependent libraries within DIR
1561 (or the compiler's sysroot if not specified).
1562 --with-zlib=DIR search for ZLIB in DIR/include and DIR/lib
1563 --with-zlib-includes=DIR
1564 search for ZLIB includes in DIR
1565 --with-inotify Enable inotify support (default=auto)
1566 --with-kqueue Enable kqueue support (default=auto)
1567 --with-gtk with Gtk
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CPP C preprocessor
1578 CXX C++ compiler command
1579 CXXFLAGS C++ compiler flags
1580 CXXCPP C++ preprocessor
1581 PKG_CONFIG path to pkg-config utility
1582 OPENSSL_CFLAGS
1583 C compiler flags for OPENSSL, overriding pkg-config
1584 OPENSSL_LIBS
1585 linker flags for OPENSSL, overriding pkg-config
1586 LIBCURL_CFLAGS
1587 C compiler flags for LIBCURL, overriding pkg-config
1588 LIBCURL_LIBS
1589 linker flags for LIBCURL, overriding pkg-config
1590 LIBEVENT_CFLAGS
1591 C compiler flags for LIBEVENT, overriding pkg-config
1592 LIBEVENT_LIBS
1593 linker flags for LIBEVENT, overriding pkg-config
1594 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1595 GTK_LIBS linker flags for GTK, overriding pkg-config
1596 LIBAPPINDICATOR_CFLAGS
1597 C compiler flags for LIBAPPINDICATOR, overriding pkg-config
1598 LIBAPPINDICATOR_LIBS
1599 linker flags for LIBAPPINDICATOR, overriding pkg-config
1601 Use these variables to override the choices made by `configure' or to help
1602 it to find libraries and programs with nonstandard names/locations.
1604 Report bugs to <http://trac.transmissionbt.com/newticket>.
1605 _ACEOF
1606 ac_status=$?
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
1615 ac_builddir=.
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666 cat <<\_ACEOF
1667 transmission configure 2.76
1668 generated by GNU Autoconf 2.69
1670 Copyright (C) 2012 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673 _ACEOF
1674 exit
1677 ## ------------------------ ##
1678 ## Autoconf initialization. ##
1679 ## ------------------------ ##
1681 # ac_fn_c_try_compile LINENO
1682 # --------------------------
1683 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_compile ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=1
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_compile
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_link ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 test -x conftest$ac_exeext
1747 }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_c_try_link
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_header_compile
1796 # ac_fn_c_try_cpp LINENO
1797 # ----------------------
1798 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_cpp ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { { ac_try="$ac_cpp conftest.$ac_ext"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } > conftest.i && {
1818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_cpp
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836 # that executables *can* be run.
1837 ac_fn_c_try_run ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=$ac_status
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_run
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1903 #undef $2
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1920 main ()
1922 return $2 ();
1924 return 0;
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929 else
1930 eval "$3=no"
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_cxx_try_compile LINENO
1943 # ----------------------------
1944 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_compile ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 rm -f conftest.$ac_objext
1949 if { { ac_try="$ac_compile"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_compile") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && {
1965 test -z "$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1967 } && test -s conftest.$ac_objext; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 ac_retval=1
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_cxx_try_compile
1980 # ac_fn_cxx_try_cpp LINENO
1981 # ------------------------
1982 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_cpp ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } > conftest.i && {
2002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=1
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_cxx_try_cpp
2017 # ac_fn_cxx_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_link ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 test -x conftest$ac_exeext
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=1
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_cxx_try_link
2063 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # -------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2067 # accordingly.
2068 ac_fn_c_check_header_mongrel ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if eval \${$3+:} false; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 else
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2091 else
2092 ac_header_compiler=no
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_c_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2107 else
2108 ac_header_preproc=no
2110 rm -f conftest.err conftest.i conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 yes:no: )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 no:yes:* )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
2133 ( $as_echo "## ------------------------------------------------------- ##
2134 ## Report this to http://trac.transmissionbt.com/newticket ##
2135 ## ------------------------------------------------------- ##"
2136 ) | sed "s/^/$as_me: WARNING: /" >&2
2138 esac
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 eval "$3=\$ac_header_compiler"
2146 eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_header_mongrel
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2157 # accordingly.
2158 ac_fn_c_check_decl ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 #ifndef $as_decl_name
2175 #ifdef __cplusplus
2176 (void) $as_decl_use;
2177 #else
2178 (void) $as_decl_name;
2179 #endif
2180 #endif
2183 return 0;
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 eval "$3=yes"
2188 else
2189 eval "$3=no"
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_decl
2199 cat >config.log <<_ACEOF
2200 This file contains any messages produced by compilers while
2201 running configure, to aid debugging if configure makes a mistake.
2203 It was created by transmission $as_me 2.76, which was
2204 generated by GNU Autoconf 2.69. Invocation command line was
2206 $ $0 $@
2208 _ACEOF
2209 exec 5>>config.log
2211 cat <<_ASUNAME
2212 ## --------- ##
2213 ## Platform. ##
2214 ## --------- ##
2216 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2222 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2225 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2226 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2227 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2229 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2230 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2231 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2233 _ASUNAME
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 $as_echo "PATH: $as_dir"
2241 done
2242 IFS=$as_save_IFS
2244 } >&5
2246 cat >&5 <<_ACEOF
2249 ## ----------- ##
2250 ## Core tests. ##
2251 ## ----------- ##
2253 _ACEOF
2256 # Keep a trace of the command line.
2257 # Strip out --no-create and --no-recursion so they do not pile up.
2258 # Strip out --silent because we don't want to record it for future runs.
2259 # Also quote any args containing shell meta-characters.
2260 # Make two passes to allow for proper duplicate-argument suppression.
2261 ac_configure_args=
2262 ac_configure_args0=
2263 ac_configure_args1=
2264 ac_must_keep_next=false
2265 for ac_pass in 1 2
2267 for ac_arg
2269 case $ac_arg in
2270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272 | -silent | --silent | --silen | --sile | --sil)
2273 continue ;;
2274 *\'*)
2275 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 esac
2277 case $ac_pass in
2278 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2280 as_fn_append ac_configure_args1 " '$ac_arg'"
2281 if test $ac_must_keep_next = true; then
2282 ac_must_keep_next=false # Got value, back to normal.
2283 else
2284 case $ac_arg in
2285 *=* | --config-cache | -C | -disable-* | --disable-* \
2286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288 | -with-* | --with-* | -without-* | --without-* | --x)
2289 case "$ac_configure_args0 " in
2290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291 esac
2293 -* ) ac_must_keep_next=true ;;
2294 esac
2296 as_fn_append ac_configure_args " '$ac_arg'"
2298 esac
2299 done
2300 done
2301 { ac_configure_args0=; unset ac_configure_args0;}
2302 { ac_configure_args1=; unset ac_configure_args1;}
2304 # When interrupted or exit'd, cleanup temporary files, and complete
2305 # config.log. We remove comments because anyway the quotes in there
2306 # would cause problems or look ugly.
2307 # WARNING: Use '\'' to represent an apostrophe within the trap.
2308 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2309 trap 'exit_status=$?
2310 # Save into config.log some information that might help in debugging.
2312 echo
2314 $as_echo "## ---------------- ##
2315 ## Cache variables. ##
2316 ## ---------------- ##"
2317 echo
2318 # The following way of writing the cache mishandles newlines in values,
2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321 eval ac_val=\$$ac_var
2322 case $ac_val in #(
2323 *${as_nl}*)
2324 case $ac_var in #(
2325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327 esac
2328 case $ac_var in #(
2329 _ | IFS | as_nl) ;; #(
2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331 *) { eval $ac_var=; unset $ac_var;} ;;
2332 esac ;;
2333 esac
2334 done
2335 (set) 2>&1 |
2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337 *${as_nl}ac_space=\ *)
2338 sed -n \
2339 "s/'\''/'\''\\\\'\'''\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341 ;; #(
2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 esac |
2346 sort
2348 echo
2350 $as_echo "## ----------------- ##
2351 ## Output variables. ##
2352 ## ----------------- ##"
2353 echo
2354 for ac_var in $ac_subst_vars
2356 eval ac_val=\$$ac_var
2357 case $ac_val in
2358 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359 esac
2360 $as_echo "$ac_var='\''$ac_val'\''"
2361 done | sort
2362 echo
2364 if test -n "$ac_subst_files"; then
2365 $as_echo "## ------------------- ##
2366 ## File substitutions. ##
2367 ## ------------------- ##"
2368 echo
2369 for ac_var in $ac_subst_files
2371 eval ac_val=\$$ac_var
2372 case $ac_val in
2373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 esac
2375 $as_echo "$ac_var='\''$ac_val'\''"
2376 done | sort
2377 echo
2380 if test -s confdefs.h; then
2381 $as_echo "## ----------- ##
2382 ## confdefs.h. ##
2383 ## ----------- ##"
2384 echo
2385 cat confdefs.h
2386 echo
2388 test "$ac_signal" != 0 &&
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
2391 } >&5
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394 exit $exit_status
2396 for ac_signal in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 done
2399 ac_signal=0
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest* confdefs.h
2404 $as_echo "/* confdefs.h */" > confdefs.h
2406 # Predefined preprocessor variables.
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2410 _ACEOF
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414 _ACEOF
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418 _ACEOF
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2422 _ACEOF
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426 _ACEOF
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2430 _ACEOF
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2435 ac_site_file1=NONE
2436 ac_site_file2=NONE
2437 if test -n "$CONFIG_SITE"; then
2438 # We do not want a PATH search for config.site.
2439 case $CONFIG_SITE in #((
2440 -*) ac_site_file1=./$CONFIG_SITE;;
2441 */*) ac_site_file1=$CONFIG_SITE;;
2442 *) ac_site_file1=./$CONFIG_SITE;;
2443 esac
2444 elif test "x$prefix" != xNONE; then
2445 ac_site_file1=$prefix/share/config.site
2446 ac_site_file2=$prefix/etc/config.site
2447 else
2448 ac_site_file1=$ac_default_prefix/share/config.site
2449 ac_site_file2=$ac_default_prefix/etc/config.site
2451 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2453 test "x$ac_site_file" = xNONE && continue
2454 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457 sed 's/^/| /' "$ac_site_file" >&5
2458 . "$ac_site_file" \
2459 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461 as_fn_error $? "failed to load site script $ac_site_file
2462 See \`config.log' for more details" "$LINENO" 5; }
2464 done
2466 if test -r "$cache_file"; then
2467 # Some versions of bash will fail to source /dev/null (special files
2468 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2469 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471 $as_echo "$as_me: loading cache $cache_file" >&6;}
2472 case $cache_file in
2473 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474 *) . "./$cache_file";;
2475 esac
2477 else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479 $as_echo "$as_me: creating cache $cache_file" >&6;}
2480 >$cache_file
2483 # Check that the precious variables saved in the cache have kept the same
2484 # value.
2485 ac_cache_corrupted=false
2486 for ac_var in $ac_precious_vars; do
2487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488 eval ac_new_set=\$ac_env_${ac_var}_set
2489 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490 eval ac_new_val=\$ac_env_${ac_var}_value
2491 case $ac_old_set,$ac_new_set in
2492 set,)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2496 ,set)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499 ac_cache_corrupted=: ;;
2500 ,);;
2502 if test "x$ac_old_val" != "x$ac_new_val"; then
2503 # differences in whitespace do not lead to failure.
2504 ac_old_val_w=`echo x $ac_old_val`
2505 ac_new_val_w=`echo x $ac_new_val`
2506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509 ac_cache_corrupted=:
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513 eval $ac_var=\$ac_old_val
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2516 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2518 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2519 fi;;
2520 esac
2521 # Pass precious variables to config.status.
2522 if test "$ac_new_set" = set; then
2523 case $ac_new_val in
2524 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525 *) ac_arg=$ac_var=$ac_new_val ;;
2526 esac
2527 case " $ac_configure_args " in
2528 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2529 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530 esac
2532 done
2533 if $ac_cache_corrupted; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 ## -------------------- ##
2541 ## Main body of script. ##
2542 ## -------------------- ##
2544 ac_ext=c
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 USERAGENT_PREFIX=2.76
2553 PEERID_PREFIX=-TR2760-
2556 # Check whether --enable-silent-rules was given.
2557 if test "${enable_silent_rules+set}" = set; then :
2558 enableval=$enable_silent_rules;
2561 case $enable_silent_rules in
2562 yes) AM_DEFAULT_VERBOSITY=0;;
2563 no) AM_DEFAULT_VERBOSITY=1;;
2564 *) AM_DEFAULT_VERBOSITY=0;;
2565 esac
2566 am_make=${MAKE-make}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2568 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2569 if ${am_cv_make_support_nested_variables+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if $as_echo 'TRUE=$(BAR$(V))
2573 BAR0=false
2574 BAR1=true
2576 am__doit:
2577 @$(TRUE)
2578 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2579 am_cv_make_support_nested_variables=yes
2580 else
2581 am_cv_make_support_nested_variables=no
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2585 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2586 if test $am_cv_make_support_nested_variables = yes; then
2587 AM_V='$(V)'
2588 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2589 else
2590 AM_V=$AM_DEFAULT_VERBOSITY
2591 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2593 AM_BACKSLASH='\'
2599 am__api_version='1.11'
2601 ac_aux_dir=
2602 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2603 if test -f "$ac_dir/install-sh"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/install-sh -c"
2606 break
2607 elif test -f "$ac_dir/install.sh"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/install.sh -c"
2610 break
2611 elif test -f "$ac_dir/shtool"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/shtool install -c"
2614 break
2616 done
2617 if test -z "$ac_aux_dir"; then
2618 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2621 # These three variables are undocumented and unsupported,
2622 # and are intended to be withdrawn in a future Autoconf release.
2623 # They can cause serious problems if a builder's source tree is in a directory
2624 # whose full name contains unusual characters.
2625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630 # Find a good install program. We prefer a C program (faster),
2631 # so one script is as good as another. But avoid the broken or
2632 # incompatible versions:
2633 # SysV /etc/install, /usr/sbin/install
2634 # SunOS /usr/etc/install
2635 # IRIX /sbin/install
2636 # AIX /bin/install
2637 # AmigaOS /C/install, which installs bootblocks on floppy discs
2638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2641 # OS/2's system install, which has a completely different semantic
2642 # ./install, which can be erroneously created by make from ./install.sh.
2643 # Reject install programs that cannot install multiple files.
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2645 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2646 if test -z "$INSTALL"; then
2647 if ${ac_cv_path_install+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 # Account for people who put trailing slashes in PATH elements.
2656 case $as_dir/ in #((
2657 ./ | .// | /[cC]/* | \
2658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2659 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2660 /usr/ucb/* ) ;;
2662 # OSF1 and SCO ODT 3.0 have their own names for install.
2663 # Don't use installbsd from OSF since it installs stuff as root
2664 # by default.
2665 for ac_prog in ginstall scoinst install; do
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2668 if test $ac_prog = install &&
2669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670 # AIX install. It has an incompatible calling convention.
2672 elif test $ac_prog = install &&
2673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2674 # program-specific install script used by HP pwplus--don't use.
2676 else
2677 rm -rf conftest.one conftest.two conftest.dir
2678 echo one > conftest.one
2679 echo two > conftest.two
2680 mkdir conftest.dir
2681 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2682 test -s conftest.one && test -s conftest.two &&
2683 test -s conftest.dir/conftest.one &&
2684 test -s conftest.dir/conftest.two
2685 then
2686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2687 break 3
2691 done
2692 done
2694 esac
2696 done
2697 IFS=$as_save_IFS
2699 rm -rf conftest.one conftest.two conftest.dir
2702 if test "${ac_cv_path_install+set}" = set; then
2703 INSTALL=$ac_cv_path_install
2704 else
2705 # As a last resort, use the slow shell script. Don't cache a
2706 # value for INSTALL within a source directory, because that will
2707 # break other packages using the cache if that directory is
2708 # removed, or if the value is a relative name.
2709 INSTALL=$ac_install_sh
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2713 $as_echo "$INSTALL" >&6; }
2715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2716 # It thinks the first close brace ends the variable substitution.
2717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2724 $as_echo_n "checking whether build environment is sane... " >&6; }
2725 # Just in case
2726 sleep 1
2727 echo timestamp > conftest.file
2728 # Reject unsafe characters in $srcdir or the absolute working directory
2729 # name. Accept space and tab only in the latter.
2730 am_lf='
2732 case `pwd` in
2733 *[\\\"\#\$\&\'\`$am_lf]*)
2734 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2735 esac
2736 case $srcdir in
2737 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2738 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2739 esac
2741 # Do `set' in a subshell so we don't clobber the current shell's
2742 # arguments. Must try -L first in case configure is actually a
2743 # symlink; some systems play weird games with the mod time of symlinks
2744 # (eg FreeBSD returns the mod time of the symlink's containing
2745 # directory).
2746 if (
2747 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2748 if test "$*" = "X"; then
2749 # -L didn't work.
2750 set X `ls -t "$srcdir/configure" conftest.file`
2752 rm -f conftest.file
2753 if test "$*" != "X $srcdir/configure conftest.file" \
2754 && test "$*" != "X conftest.file $srcdir/configure"; then
2756 # If neither matched, then we have a broken ls. This can happen
2757 # if, for instance, CONFIG_SHELL is bash and it inherits a
2758 # broken ls alias from the environment. This has actually
2759 # happened. Such a system could not be considered "sane".
2760 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2761 alias in your environment" "$LINENO" 5
2764 test "$2" = conftest.file
2766 then
2767 # Ok.
2769 else
2770 as_fn_error $? "newly created file is older than distributed files!
2771 Check your system clock" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2774 $as_echo "yes" >&6; }
2775 test "$program_prefix" != NONE &&
2776 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2777 # Use a double $ so make ignores it.
2778 test "$program_suffix" != NONE &&
2779 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2780 # Double any \ or $.
2781 # By default was `s,x,x', remove it if useless.
2782 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2783 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2785 # expand $ac_aux_dir to an absolute path
2786 am_aux_dir=`cd $ac_aux_dir && pwd`
2788 if test x"${MISSING+set}" != xset; then
2789 case $am_aux_dir in
2790 *\ * | *\ *)
2791 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2793 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2794 esac
2796 # Use eval to expand $SHELL
2797 if eval "$MISSING --run true"; then
2798 am_missing_run="$MISSING --run "
2799 else
2800 am_missing_run=
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2802 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2805 if test x"${install_sh}" != xset; then
2806 case $am_aux_dir in
2807 *\ * | *\ *)
2808 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2810 install_sh="\${SHELL} $am_aux_dir/install-sh"
2811 esac
2814 # Installed binaries are usually stripped using `strip' when the user
2815 # run `make install-strip'. However `strip' might not be the right
2816 # tool to use in cross-compilation environments, therefore Automake
2817 # will honor the `STRIP' environment variable to overrule this program.
2818 if test "$cross_compiling" != no; then
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}strip; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_STRIP+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$STRIP"; then
2828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2843 IFS=$as_save_IFS
2847 STRIP=$ac_cv_prog_STRIP
2848 if test -n "$STRIP"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2850 $as_echo "$STRIP" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2858 if test -z "$ac_cv_prog_STRIP"; then
2859 ac_ct_STRIP=$STRIP
2860 # Extract the first word of "strip", so it can be a program name with args.
2861 set dummy strip; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$ac_ct_STRIP"; then
2868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877 ac_cv_prog_ac_ct_STRIP="strip"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2881 done
2882 done
2883 IFS=$as_save_IFS
2887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2888 if test -n "$ac_ct_STRIP"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2890 $as_echo "$ac_ct_STRIP" >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2896 if test "x$ac_ct_STRIP" = x; then
2897 STRIP=":"
2898 else
2899 case $cross_compiling:$ac_tool_warned in
2900 yes:)
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903 ac_tool_warned=yes ;;
2904 esac
2905 STRIP=$ac_ct_STRIP
2907 else
2908 STRIP="$ac_cv_prog_STRIP"
2912 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2915 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2916 if test -z "$MKDIR_P"; then
2917 if ${ac_cv_path_mkdir+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_prog in mkdir gmkdir; do
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2928 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2929 'mkdir (GNU coreutils) '* | \
2930 'mkdir (coreutils) '* | \
2931 'mkdir (fileutils) '4.1*)
2932 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2933 break 3;;
2934 esac
2935 done
2936 done
2937 done
2938 IFS=$as_save_IFS
2942 test -d ./--version && rmdir ./--version
2943 if test "${ac_cv_path_mkdir+set}" = set; then
2944 MKDIR_P="$ac_cv_path_mkdir -p"
2945 else
2946 # As a last resort, use the slow shell script. Don't cache a
2947 # value for MKDIR_P within a source directory, because that will
2948 # break other packages using the cache if that directory is
2949 # removed, or if the value is a relative name.
2950 MKDIR_P="$ac_install_sh -d"
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2954 $as_echo "$MKDIR_P" >&6; }
2956 mkdir_p="$MKDIR_P"
2957 case $mkdir_p in
2958 [\\/$]* | ?:[\\/]*) ;;
2959 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2960 esac
2962 for ac_prog in gawk mawk nawk awk
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_AWK+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$AWK"; then
2972 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_AWK="$ac_prog"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 AWK=$ac_cv_prog_AWK
2992 if test -n "$AWK"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2994 $as_echo "$AWK" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3001 test -n "$AWK" && break
3002 done
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3005 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3006 set x ${MAKE-make}
3007 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3008 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 cat >conftest.make <<\_ACEOF
3012 SHELL = /bin/sh
3013 all:
3014 @echo '@@@%%%=$(MAKE)=@@@%%%'
3015 _ACEOF
3016 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3017 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3018 *@@@%%%=?*=@@@%%%*)
3019 eval ac_cv_prog_make_${ac_make}_set=yes;;
3021 eval ac_cv_prog_make_${ac_make}_set=no;;
3022 esac
3023 rm -f conftest.make
3025 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3027 $as_echo "yes" >&6; }
3028 SET_MAKE=
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 SET_MAKE="MAKE=${MAKE-make}"
3035 rm -rf .tst 2>/dev/null
3036 mkdir .tst 2>/dev/null
3037 if test -d .tst; then
3038 am__leading_dot=.
3039 else
3040 am__leading_dot=_
3042 rmdir .tst 2>/dev/null
3044 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3045 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3046 # is not polluted with repeated "-I."
3047 am__isrc=' -I$(srcdir)'
3048 # test to see if srcdir already configured
3049 if test -f $srcdir/config.status; then
3050 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3054 # test whether we have cygpath
3055 if test -z "$CYGPATH_W"; then
3056 if (cygpath --version) >/dev/null 2>/dev/null; then
3057 CYGPATH_W='cygpath -w'
3058 else
3059 CYGPATH_W=echo
3064 # Define the identity of the package.
3065 PACKAGE='transmission'
3066 VERSION='2.76'
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE "$PACKAGE"
3071 _ACEOF
3074 cat >>confdefs.h <<_ACEOF
3075 #define VERSION "$VERSION"
3076 _ACEOF
3078 # Some tools Automake needs.
3080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3094 # We need awk for the "check" target. The system "awk" is bad on
3095 # some platforms.
3096 # Always define AMTAR for backward compatibility. Yes, it's still used
3097 # in the wild :-( We should find a proper way to deprecate it ...
3098 AMTAR='$${TAR-tar}'
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3102 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3103 # Loop over all known methods to create a tar archive until one works.
3104 _am_tools='gnutar pax cpio none'
3105 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3106 # Do not fold the above two line into one, because Tru64 sh and
3107 # Solaris sh will not grok spaces in the rhs of `-'.
3108 for _am_tool in $_am_tools
3110 case $_am_tool in
3111 gnutar)
3112 for _am_tar in tar gnutar gtar;
3114 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3115 ($_am_tar --version) >&5 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } && break
3119 done
3120 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3121 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3122 am__untar="$_am_tar -xf -"
3124 plaintar)
3125 # Must skip GNU tar: if it does not support --format= it doesn't create
3126 # ustar tarball either.
3127 (tar --version) >/dev/null 2>&1 && continue
3128 am__tar='tar chf - "$$tardir"'
3129 am__tar_='tar chf - "$tardir"'
3130 am__untar='tar xf -'
3132 pax)
3133 am__tar='pax -L -x pax -w "$$tardir"'
3134 am__tar_='pax -L -x pax -w "$tardir"'
3135 am__untar='pax -r'
3137 cpio)
3138 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3139 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3140 am__untar='cpio -i -H pax -d'
3142 none)
3143 am__tar=false
3144 am__tar_=false
3145 am__untar=false
3147 esac
3149 # If the value was cached, stop now. We just wanted to have am__tar
3150 # and am__untar set.
3151 test -n "${am_cv_prog_tar_pax}" && break
3153 # tar/untar a dummy directory, and stop if the command works
3154 rm -rf conftest.dir
3155 mkdir conftest.dir
3156 echo GrepMe > conftest.dir/file
3157 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3158 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3162 rm -rf conftest.dir
3163 if test -s conftest.tar; then
3164 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3165 ($am__untar <conftest.tar) >&5 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }
3169 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3171 done
3172 rm -rf conftest.dir
3174 if ${am_cv_prog_tar_pax+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 am_cv_prog_tar_pax=$_am_tool
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3181 $as_echo "$am_cv_prog_tar_pax" >&6; }
3187 case `pwd` in
3188 *\ * | *\ *)
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3190 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3191 esac
3195 macro_version='2.4.2'
3196 macro_revision='1.3337'
3210 ltmain="$ac_aux_dir/ltmain.sh"
3212 # Make sure we can run config.sub.
3213 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3214 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3217 $as_echo_n "checking build system type... " >&6; }
3218 if ${ac_cv_build+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 ac_build_alias=$build_alias
3222 test "x$ac_build_alias" = x &&
3223 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3224 test "x$ac_build_alias" = x &&
3225 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3226 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3227 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3231 $as_echo "$ac_cv_build" >&6; }
3232 case $ac_cv_build in
3233 *-*-*) ;;
3234 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3235 esac
3236 build=$ac_cv_build
3237 ac_save_IFS=$IFS; IFS='-'
3238 set x $ac_cv_build
3239 shift
3240 build_cpu=$1
3241 build_vendor=$2
3242 shift; shift
3243 # Remember, the first character of IFS is used to create $*,
3244 # except with old shells:
3245 build_os=$*
3246 IFS=$ac_save_IFS
3247 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3251 $as_echo_n "checking host system type... " >&6; }
3252 if ${ac_cv_host+:} false; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test "x$host_alias" = x; then
3256 ac_cv_host=$ac_cv_build
3257 else
3258 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3259 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3264 $as_echo "$ac_cv_host" >&6; }
3265 case $ac_cv_host in
3266 *-*-*) ;;
3267 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3268 esac
3269 host=$ac_cv_host
3270 ac_save_IFS=$IFS; IFS='-'
3271 set x $ac_cv_host
3272 shift
3273 host_cpu=$1
3274 host_vendor=$2
3275 shift; shift
3276 # Remember, the first character of IFS is used to create $*,
3277 # except with old shells:
3278 host_os=$*
3279 IFS=$ac_save_IFS
3280 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3283 # Backslashify metacharacters that are still active within
3284 # double-quoted strings.
3285 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3287 # Same as above, but do not quote variable references.
3288 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3290 # Sed substitution to delay expansion of an escaped shell variable in a
3291 # double_quote_subst'ed string.
3292 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3294 # Sed substitution to delay expansion of an escaped single quote.
3295 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3297 # Sed substitution to avoid accidental globbing in evaled expressions
3298 no_glob_subst='s/\*/\\\*/g'
3300 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3301 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3305 $as_echo_n "checking how to print strings... " >&6; }
3306 # Test print first, because it will be a builtin if present.
3307 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3308 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3309 ECHO='print -r --'
3310 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3311 ECHO='printf %s\n'
3312 else
3313 # Use this function as a fallback that always works.
3314 func_fallback_echo ()
3316 eval 'cat <<_LTECHO_EOF
3318 _LTECHO_EOF'
3320 ECHO='func_fallback_echo'
3323 # func_echo_all arg...
3324 # Invoke $ECHO with all args, space-separated.
3325 func_echo_all ()
3327 $ECHO ""
3330 case "$ECHO" in
3331 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3332 $as_echo "printf" >&6; } ;;
3333 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3334 $as_echo "print -r" >&6; } ;;
3335 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3336 $as_echo "cat" >&6; } ;;
3337 esac
3352 DEPDIR="${am__leading_dot}deps"
3354 ac_config_commands="$ac_config_commands depfiles"
3357 am_make=${MAKE-make}
3358 cat > confinc << 'END'
3359 am__doit:
3360 @echo this is the am__doit target
3361 .PHONY: am__doit
3363 # If we don't find an include directive, just comment out the code.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3365 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3366 am__include="#"
3367 am__quote=
3368 _am_result=none
3369 # First try GNU make style include.
3370 echo "include confinc" > confmf
3371 # Ignore all kinds of additional output from `make'.
3372 case `$am_make -s -f confmf 2> /dev/null` in #(
3373 *the\ am__doit\ target*)
3374 am__include=include
3375 am__quote=
3376 _am_result=GNU
3378 esac
3379 # Now try BSD make style include.
3380 if test "$am__include" = "#"; then
3381 echo '.include "confinc"' > confmf
3382 case `$am_make -s -f confmf 2> /dev/null` in #(
3383 *the\ am__doit\ target*)
3384 am__include=.include
3385 am__quote="\""
3386 _am_result=BSD
3388 esac
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3393 $as_echo "$_am_result" >&6; }
3394 rm -f confinc confmf
3396 # Check whether --enable-dependency-tracking was given.
3397 if test "${enable_dependency_tracking+set}" = set; then :
3398 enableval=$enable_dependency_tracking;
3401 if test "x$enable_dependency_tracking" != xno; then
3402 am_depcomp="$ac_aux_dir/depcomp"
3403 AMDEPBACKSLASH='\'
3404 am__nodep='_no'
3406 if test "x$enable_dependency_tracking" != xno; then
3407 AMDEP_TRUE=
3408 AMDEP_FALSE='#'
3409 else
3410 AMDEP_TRUE='#'
3411 AMDEP_FALSE=
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_CC+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$ac_cv_prog_CC"; then
3460 ac_ct_CC=$CC
3461 # Extract the first word of "gcc", so it can be a program name with args.
3462 set dummy gcc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$ac_ct_CC"; then
3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_ac_ct_CC="gcc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3482 done
3483 done
3484 IFS=$as_save_IFS
3488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489 if test -n "$ac_ct_CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3491 $as_echo "$ac_ct_CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3497 if test "x$ac_ct_CC" = x; then
3498 CC=""
3499 else
3500 case $cross_compiling:$ac_tool_warned in
3501 yes:)
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504 ac_tool_warned=yes ;;
3505 esac
3506 CC=$ac_ct_CC
3508 else
3509 CC="$ac_cv_prog_CC"
3512 if test -z "$CC"; then
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3515 set dummy ${ac_tool_prefix}cc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_CC+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_CC="${ac_tool_prefix}cc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3541 CC=$ac_cv_prog_CC
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3545 else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3553 if test -z "$CC"; then
3554 # Extract the first word of "cc", so it can be a program name with args.
3555 set dummy cc; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 ac_prog_rejected=no
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573 ac_prog_rejected=yes
3574 continue
3576 ac_cv_prog_CC="cc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3582 IFS=$as_save_IFS
3584 if test $ac_prog_rejected = yes; then
3585 # We found a bogon in the path, so make sure we never use it.
3586 set dummy $ac_cv_prog_CC
3587 shift
3588 if test $# != 0; then
3589 # We chose a different compiler from the bogus one.
3590 # However, it has the same basename, so the bogon will be chosen
3591 # first if we set CC to just the basename; use the full file name.
3592 shift
3593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3598 CC=$ac_cv_prog_CC
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3602 else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 for ac_prog in cl.exe
3613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if ${ac_cv_prog_CC+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3640 CC=$ac_cv_prog_CC
3641 if test -n "$CC"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3650 test -n "$CC" && break
3651 done
3653 if test -z "$CC"; then
3654 ac_ct_CC=$CC
3655 for ac_prog in cl.exe
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658 set dummy $ac_prog; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$ac_ct_CC"; then
3665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_CC="$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3678 done
3679 done
3680 IFS=$as_save_IFS
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 $as_echo "$ac_ct_CC" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3694 test -n "$ac_ct_CC" && break
3695 done
3697 if test "x$ac_ct_CC" = x; then
3698 CC=""
3699 else
3700 case $cross_compiling:$ac_tool_warned in
3701 yes:)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704 ac_tool_warned=yes ;;
3705 esac
3706 CC=$ac_ct_CC
3713 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "no acceptable C compiler found in \$PATH
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 # Provide some information about the compiler.
3719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3720 set X $ac_compile
3721 ac_compiler=$2
3722 for ac_option in --version -v -V -qversion; do
3723 { { ac_try="$ac_compiler $ac_option >&5"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3731 ac_status=$?
3732 if test -s conftest.err; then
3733 sed '10a\
3734 ... rest of stderr output deleted ...
3735 10q' conftest.err >conftest.er1
3736 cat conftest.er1 >&5
3738 rm -f conftest.er1 conftest.err
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }
3741 done
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 ac_clean_files_save=$ac_clean_files
3755 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3756 # Try to create an executable without -o first, disregard a.out.
3757 # It will help us diagnose broken compilers, and finding out an intuition
3758 # of exeext.
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3760 $as_echo_n "checking whether the C compiler works... " >&6; }
3761 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3763 # The possible output files:
3764 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3766 ac_rmfiles=
3767 for ac_file in $ac_files
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3772 esac
3773 done
3774 rm -f $ac_rmfiles
3776 if { { ac_try="$ac_link_default"
3777 case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_link_default") 2>&5
3784 ac_status=$?
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; then :
3787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3789 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3790 # so that the user can short-circuit this test for compilers unknown to
3791 # Autoconf.
3792 for ac_file in $ac_files ''
3794 test -f "$ac_file" || continue
3795 case $ac_file in
3796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3798 [ab].out )
3799 # We found the default executable, but exeext='' is most
3800 # certainly right.
3801 break;;
3802 *.* )
3803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3804 then :; else
3805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807 # We set ac_cv_exeext here because the later test for it is not
3808 # safe: cross compilers may not add the suffix if given an `-o'
3809 # argument, so we may need to know it at that point already.
3810 # Even if this section looks crufty: it has the advantage of
3811 # actually working.
3812 break;;
3814 break;;
3815 esac
3816 done
3817 test "$ac_cv_exeext" = no && ac_cv_exeext=
3819 else
3820 ac_file=''
3822 if test -z "$ac_file"; then :
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 $as_echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error 77 "C compiler cannot create executables
3831 See \`config.log' for more details" "$LINENO" 5; }
3832 else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3834 $as_echo "yes" >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3839 $as_echo "$ac_file" >&6; }
3840 ac_exeext=$ac_cv_exeext
3842 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3843 ac_clean_files=$ac_clean_files_save
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845 $as_echo_n "checking for suffix of executables... " >&6; }
3846 if { { ac_try="$ac_link"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3859 # work properly (i.e., refer to `conftest.exe'), while it won't with
3860 # `rm'.
3861 for ac_file in conftest.exe conftest conftest.*; do
3862 test -f "$ac_file" || continue
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866 break;;
3867 * ) break;;
3868 esac
3869 done
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3874 See \`config.log' for more details" "$LINENO" 5; }
3876 rm -f conftest conftest$ac_cv_exeext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878 $as_echo "$ac_cv_exeext" >&6; }
3880 rm -f conftest.$ac_ext
3881 EXEEXT=$ac_cv_exeext
3882 ac_exeext=$EXEEXT
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885 #include <stdio.h>
3887 main ()
3889 FILE *f = fopen ("conftest.out", "w");
3890 return ferror (f) || fclose (f) != 0;
3893 return 0;
3895 _ACEOF
3896 ac_clean_files="$ac_clean_files conftest.out"
3897 # Check that the compiler produces executables we can run. If not, either
3898 # the compiler is broken, or we cross compile.
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3900 $as_echo_n "checking whether we are cross compiling... " >&6; }
3901 if test "$cross_compiling" != yes; then
3902 { { ac_try="$ac_link"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }
3913 if { ac_try='./conftest$ac_cv_exeext'
3914 { { case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; }; then
3924 cross_compiling=no
3925 else
3926 if test "$cross_compiling" = maybe; then
3927 cross_compiling=yes
3928 else
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot run C compiled programs.
3932 If you meant to cross compile, use \`--host'.
3933 See \`config.log' for more details" "$LINENO" 5; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3938 $as_echo "$cross_compiling" >&6; }
3940 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3941 ac_clean_files=$ac_clean_files_save
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3943 $as_echo_n "checking for suffix of object files... " >&6; }
3944 if ${ac_cv_objext+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3951 main ()
3955 return 0;
3957 _ACEOF
3958 rm -f conftest.o conftest.obj
3959 if { { ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_compile") 2>&5
3967 ac_status=$?
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }; then :
3970 for ac_file in conftest.o conftest.obj conftest.*; do
3971 test -f "$ac_file" || continue;
3972 case $ac_file in
3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3975 break;;
3976 esac
3977 done
3978 else
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error $? "cannot compute suffix of object files: cannot compile
3985 See \`config.log' for more details" "$LINENO" 5; }
3987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3990 $as_echo "$ac_cv_objext" >&6; }
3991 OBJEXT=$ac_cv_objext
3992 ac_objext=$OBJEXT
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3995 if ${ac_cv_c_compiler_gnu+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4002 main ()
4004 #ifndef __GNUC__
4005 choke me
4006 #endif
4009 return 0;
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_compiler_gnu=yes
4014 else
4015 ac_compiler_gnu=no
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023 if test $ac_compiler_gnu = yes; then
4024 GCC=yes
4025 else
4026 GCC=
4028 ac_test_CFLAGS=${CFLAGS+set}
4029 ac_save_CFLAGS=$CFLAGS
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4032 if ${ac_cv_prog_cc_g+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 ac_save_c_werror_flag=$ac_c_werror_flag
4036 ac_c_werror_flag=yes
4037 ac_cv_prog_cc_g=no
4038 CFLAGS="-g"
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4043 main ()
4047 return 0;
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_g=yes
4052 else
4053 CFLAGS=""
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4062 return 0;
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"; then :
4067 else
4068 ac_c_werror_flag=$ac_save_c_werror_flag
4069 CFLAGS="-g"
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4078 return 0;
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_cv_prog_cc_g=yes
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_c_werror_flag=$ac_save_c_werror_flag
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4092 $as_echo "$ac_cv_prog_cc_g" >&6; }
4093 if test "$ac_test_CFLAGS" = set; then
4094 CFLAGS=$ac_save_CFLAGS
4095 elif test $ac_cv_prog_cc_g = yes; then
4096 if test "$GCC" = yes; then
4097 CFLAGS="-g -O2"
4098 else
4099 CFLAGS="-g"
4101 else
4102 if test "$GCC" = yes; then
4103 CFLAGS="-O2"
4104 else
4105 CFLAGS=
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4110 if ${ac_cv_prog_cc_c89+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 ac_cv_prog_cc_c89=no
4114 ac_save_CC=$CC
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <stdarg.h>
4118 #include <stdio.h>
4119 struct stat;
4120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4121 struct buf { int x; };
4122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123 static char *e (p, i)
4124 char **p;
4125 int i;
4127 return p[i];
4129 static char *f (char * (*g) (char **, int), char **p, ...)
4131 char *s;
4132 va_list v;
4133 va_start (v,p);
4134 s = g (p, va_arg (v,int));
4135 va_end (v);
4136 return s;
4139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4140 function prototypes and stuff, but not '\xHH' hex character constants.
4141 These don't provoke an error unfortunately, instead are silently treated
4142 as 'x'. The following induces an error, until -std is added to get
4143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4144 array size at least. It's necessary to write '\x00'==0 to get something
4145 that's true only with -std. */
4146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149 inside strings and character constants. */
4150 #define FOO(x) 'x'
4151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4153 int test (int i, double x);
4154 struct s1 {int (*f) (int a);};
4155 struct s2 {int (*f) (double a);};
4156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157 int argc;
4158 char **argv;
4160 main ()
4162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4164 return 0;
4166 _ACEOF
4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4170 CC="$ac_save_CC $ac_arg"
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_c89=$ac_arg
4174 rm -f core conftest.err conftest.$ac_objext
4175 test "x$ac_cv_prog_cc_c89" != "xno" && break
4176 done
4177 rm -f conftest.$ac_ext
4178 CC=$ac_save_CC
4181 # AC_CACHE_VAL
4182 case "x$ac_cv_prog_cc_c89" in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4186 xno)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4190 CC="$CC $ac_cv_prog_cc_c89"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4193 esac
4194 if test "x$ac_cv_prog_cc_c89" != xno; then :
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 depcc="$CC" am_compiler_list=
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4207 $as_echo_n "checking dependency style of $depcc... " >&6; }
4208 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4212 # We make a subdir and do the tests there. Otherwise we can end up
4213 # making bogus files that we don't know about and never remove. For
4214 # instance it was reported that on HP-UX the gcc test will end up
4215 # making a dummy file named `D' -- because `-MD' means `put the output
4216 # in D'.
4217 rm -rf conftest.dir
4218 mkdir conftest.dir
4219 # Copy depcomp to subdir because otherwise we won't find it if we're
4220 # using a relative directory.
4221 cp "$am_depcomp" conftest.dir
4222 cd conftest.dir
4223 # We will build objects and dependencies in a subdirectory because
4224 # it helps to detect inapplicable dependency modes. For instance
4225 # both Tru64's cc and ICC support -MD to output dependencies as a
4226 # side effect of compilation, but ICC will put the dependencies in
4227 # the current directory while Tru64 will put them in the object
4228 # directory.
4229 mkdir sub
4231 am_cv_CC_dependencies_compiler_type=none
4232 if test "$am_compiler_list" = ""; then
4233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4235 am__universal=false
4236 case " $depcc " in #(
4237 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4238 esac
4240 for depmode in $am_compiler_list; do
4241 # Setup a source with many dependencies, because some compilers
4242 # like to wrap large dependency lists on column 80 (with \), and
4243 # we should not choose a depcomp mode which is confused by this.
4245 # We need to recreate these files for each test, as the compiler may
4246 # overwrite some of them when testing with obscure command lines.
4247 # This happens at least with the AIX C compiler.
4248 : > sub/conftest.c
4249 for i in 1 2 3 4 5 6; do
4250 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4251 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4252 # Solaris 8's {/usr,}/bin/sh.
4253 touch sub/conftst$i.h
4254 done
4255 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4257 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4258 # mode. It turns out that the SunPro C++ compiler does not properly
4259 # handle `-M -o', and we need to detect this. Also, some Intel
4260 # versions had trouble with output in subdirs
4261 am__obj=sub/conftest.${OBJEXT-o}
4262 am__minus_obj="-o $am__obj"
4263 case $depmode in
4264 gcc)
4265 # This depmode causes a compiler race in universal mode.
4266 test "$am__universal" = false || continue
4268 nosideeffect)
4269 # after this tag, mechanisms are not by side-effect, so they'll
4270 # only be used when explicitly requested
4271 if test "x$enable_dependency_tracking" = xyes; then
4272 continue
4273 else
4274 break
4277 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4278 # This compiler won't grok `-c -o', but also, the minuso test has
4279 # not run yet. These depmodes are late enough in the game, and
4280 # so weak that their functioning should not be impacted.
4281 am__obj=conftest.${OBJEXT-o}
4282 am__minus_obj=
4284 none) break ;;
4285 esac
4286 if depmode=$depmode \
4287 source=sub/conftest.c object=$am__obj \
4288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4289 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4290 >/dev/null 2>conftest.err &&
4291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4293 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4295 # icc doesn't choke on unknown options, it will just issue warnings
4296 # or remarks (even with -Werror). So we grep stderr for any message
4297 # that says an option was ignored or not supported.
4298 # When given -MP, icc 7.0 and 7.1 complain thusly:
4299 # icc: Command line warning: ignoring option '-M'; no argument required
4300 # The diagnosis changed in icc 8.0:
4301 # icc: Command line remark: option '-MP' not supported
4302 if (grep 'ignoring option' conftest.err ||
4303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4304 am_cv_CC_dependencies_compiler_type=$depmode
4305 break
4308 done
4310 cd ..
4311 rm -rf conftest.dir
4312 else
4313 am_cv_CC_dependencies_compiler_type=none
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4318 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4322 test "x$enable_dependency_tracking" != xno \
4323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4324 am__fastdepCC_TRUE=
4325 am__fastdepCC_FALSE='#'
4326 else
4327 am__fastdepCC_TRUE='#'
4328 am__fastdepCC_FALSE=
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4333 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4334 if ${ac_cv_path_SED+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4338 for ac_i in 1 2 3 4 5 6 7; do
4339 ac_script="$ac_script$as_nl$ac_script"
4340 done
4341 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4342 { ac_script=; unset ac_script;}
4343 if test -z "$SED"; then
4344 ac_path_SED_found=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_prog in sed gsed; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4354 as_fn_executable_p "$ac_path_SED" || continue
4355 # Check for GNU ac_path_SED and select it if it is found.
4356 # Check for GNU $ac_path_SED
4357 case `"$ac_path_SED" --version 2>&1` in
4358 *GNU*)
4359 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4361 ac_count=0
4362 $as_echo_n 0123456789 >"conftest.in"
4363 while :
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo '' >> "conftest.nl"
4369 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 as_fn_arith $ac_count + 1 && ac_count=$as_val
4372 if test $ac_count -gt ${ac_path_SED_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_SED="$ac_path_SED"
4375 ac_path_SED_max=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4379 done
4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381 esac
4383 $ac_path_SED_found && break 3
4384 done
4385 done
4386 done
4387 IFS=$as_save_IFS
4388 if test -z "$ac_cv_path_SED"; then
4389 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4391 else
4392 ac_cv_path_SED=$SED
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4397 $as_echo "$ac_cv_path_SED" >&6; }
4398 SED="$ac_cv_path_SED"
4399 rm -f conftest.sed
4401 test -z "$SED" && SED=sed
4402 Xsed="$SED -e 1s/^X//"
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4415 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4416 if ${ac_cv_path_GREP+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -z "$GREP"; then
4420 ac_path_GREP_found=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_prog in grep ggrep; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4430 as_fn_executable_p "$ac_path_GREP" || continue
4431 # Check for GNU ac_path_GREP and select it if it is found.
4432 # Check for GNU $ac_path_GREP
4433 case `"$ac_path_GREP" --version 2>&1` in
4434 *GNU*)
4435 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4437 ac_count=0
4438 $as_echo_n 0123456789 >"conftest.in"
4439 while :
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'GREP' >> "conftest.nl"
4445 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447 as_fn_arith $ac_count + 1 && ac_count=$as_val
4448 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_GREP="$ac_path_GREP"
4451 ac_path_GREP_max=$ac_count
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4455 done
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 esac
4459 $ac_path_GREP_found && break 3
4460 done
4461 done
4462 done
4463 IFS=$as_save_IFS
4464 if test -z "$ac_cv_path_GREP"; then
4465 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4467 else
4468 ac_cv_path_GREP=$GREP
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4473 $as_echo "$ac_cv_path_GREP" >&6; }
4474 GREP="$ac_cv_path_GREP"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4478 $as_echo_n "checking for egrep... " >&6; }
4479 if ${ac_cv_path_EGREP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4483 then ac_cv_path_EGREP="$GREP -E"
4484 else
4485 if test -z "$EGREP"; then
4486 ac_path_EGREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_prog in egrep; do
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4496 as_fn_executable_p "$ac_path_EGREP" || continue
4497 # Check for GNU ac_path_EGREP and select it if it is found.
4498 # Check for GNU $ac_path_EGREP
4499 case `"$ac_path_EGREP" --version 2>&1` in
4500 *GNU*)
4501 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4503 ac_count=0
4504 $as_echo_n 0123456789 >"conftest.in"
4505 while :
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 $as_echo 'EGREP' >> "conftest.nl"
4511 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513 as_fn_arith $ac_count + 1 && ac_count=$as_val
4514 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_EGREP="$ac_path_EGREP"
4517 ac_path_EGREP_max=$ac_count
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4521 done
4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 esac
4525 $ac_path_EGREP_found && break 3
4526 done
4527 done
4528 done
4529 IFS=$as_save_IFS
4530 if test -z "$ac_cv_path_EGREP"; then
4531 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533 else
4534 ac_cv_path_EGREP=$EGREP
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4540 $as_echo "$ac_cv_path_EGREP" >&6; }
4541 EGREP="$ac_cv_path_EGREP"
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4545 $as_echo_n "checking for fgrep... " >&6; }
4546 if ${ac_cv_path_FGREP+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4550 then ac_cv_path_FGREP="$GREP -F"
4551 else
4552 if test -z "$FGREP"; then
4553 ac_path_FGREP_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in fgrep; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4563 as_fn_executable_p "$ac_path_FGREP" || continue
4564 # Check for GNU ac_path_FGREP and select it if it is found.
4565 # Check for GNU $ac_path_FGREP
4566 case `"$ac_path_FGREP" --version 2>&1` in
4567 *GNU*)
4568 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4570 ac_count=0
4571 $as_echo_n 0123456789 >"conftest.in"
4572 while :
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo 'FGREP' >> "conftest.nl"
4578 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_FGREP="$ac_path_FGREP"
4584 ac_path_FGREP_max=$ac_count
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4588 done
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4592 $ac_path_FGREP_found && break 3
4593 done
4594 done
4595 done
4596 IFS=$as_save_IFS
4597 if test -z "$ac_cv_path_FGREP"; then
4598 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4600 else
4601 ac_cv_path_FGREP=$FGREP
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4607 $as_echo "$ac_cv_path_FGREP" >&6; }
4608 FGREP="$ac_cv_path_FGREP"
4611 test -z "$GREP" && GREP=grep
4631 # Check whether --with-gnu-ld was given.
4632 if test "${with_gnu_ld+set}" = set; then :
4633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4634 else
4635 with_gnu_ld=no
4638 ac_prog=ld
4639 if test "$GCC" = yes; then
4640 # Check if gcc -print-prog-name=ld gives a path.
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4642 $as_echo_n "checking for ld used by $CC... " >&6; }
4643 case $host in
4644 *-*-mingw*)
4645 # gcc leaves a trailing carriage return which upsets mingw
4646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4649 esac
4650 case $ac_prog in
4651 # Accept absolute paths.
4652 [\\/]* | ?:[\\/]*)
4653 re_direlt='/[^/][^/]*/\.\./'
4654 # Canonicalize the pathname of ld
4655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4658 done
4659 test -z "$LD" && LD="$ac_prog"
4662 # If it fails, then pretend we aren't using GCC.
4663 ac_prog=ld
4666 # If it is relative, then search for the first ld in PATH.
4667 with_gnu_ld=unknown
4669 esac
4670 elif test "$with_gnu_ld" = yes; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4672 $as_echo_n "checking for GNU ld... " >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4675 $as_echo_n "checking for non-GNU ld... " >&6; }
4677 if ${lt_cv_path_LD+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -z "$LD"; then
4681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4682 for ac_dir in $PATH; do
4683 IFS="$lt_save_ifs"
4684 test -z "$ac_dir" && ac_dir=.
4685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4686 lt_cv_path_LD="$ac_dir/$ac_prog"
4687 # Check to see if the program is GNU ld. I'd rather use --version,
4688 # but apparently some variants of GNU ld only accept -v.
4689 # Break only if it was the GNU/non-GNU ld that we prefer.
4690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4691 *GNU* | *'with BFD'*)
4692 test "$with_gnu_ld" != no && break
4695 test "$with_gnu_ld" != yes && break
4697 esac
4699 done
4700 IFS="$lt_save_ifs"
4701 else
4702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4706 LD="$lt_cv_path_LD"
4707 if test -n "$LD"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4709 $as_echo "$LD" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4714 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4716 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4717 if ${lt_cv_prog_gnu_ld+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4721 case `$LD -v 2>&1 </dev/null` in
4722 *GNU* | *'with BFD'*)
4723 lt_cv_prog_gnu_ld=yes
4726 lt_cv_prog_gnu_ld=no
4728 esac
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4731 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4732 with_gnu_ld=$lt_cv_prog_gnu_ld
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4743 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4744 if ${lt_cv_path_NM+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$NM"; then
4748 # Let the user override the test.
4749 lt_cv_path_NM="$NM"
4750 else
4751 lt_nm_to_check="${ac_tool_prefix}nm"
4752 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4753 lt_nm_to_check="$lt_nm_to_check nm"
4755 for lt_tmp_nm in $lt_nm_to_check; do
4756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4757 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4758 IFS="$lt_save_ifs"
4759 test -z "$ac_dir" && ac_dir=.
4760 tmp_nm="$ac_dir/$lt_tmp_nm"
4761 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4762 # Check to see if the nm accepts a BSD-compat flag.
4763 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4764 # nm: unknown option "B" ignored
4765 # Tru64's nm complains that /dev/null is an invalid object file
4766 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4767 */dev/null* | *'Invalid file or object type'*)
4768 lt_cv_path_NM="$tmp_nm -B"
4769 break
4772 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4773 */dev/null*)
4774 lt_cv_path_NM="$tmp_nm -p"
4775 break
4778 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4779 continue # so that we can try to find one that supports BSD flags
4781 esac
4783 esac
4785 done
4786 IFS="$lt_save_ifs"
4787 done
4788 : ${lt_cv_path_NM=no}
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4792 $as_echo "$lt_cv_path_NM" >&6; }
4793 if test "$lt_cv_path_NM" != "no"; then
4794 NM="$lt_cv_path_NM"
4795 else
4796 # Didn't find any BSD compatible name lister, look for dumpbin.
4797 if test -n "$DUMPBIN"; then :
4798 # Let the user override the test.
4799 else
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in dumpbin "link -dump"
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_DUMPBIN+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$DUMPBIN"; then
4811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 DUMPBIN=$ac_cv_prog_DUMPBIN
4831 if test -n "$DUMPBIN"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4833 $as_echo "$DUMPBIN" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4840 test -n "$DUMPBIN" && break
4841 done
4843 if test -z "$DUMPBIN"; then
4844 ac_ct_DUMPBIN=$DUMPBIN
4845 for ac_prog in dumpbin "link -dump"
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -n "$ac_ct_DUMPBIN"; then
4855 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4870 IFS=$as_save_IFS
4874 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4875 if test -n "$ac_ct_DUMPBIN"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4877 $as_echo "$ac_ct_DUMPBIN" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4884 test -n "$ac_ct_DUMPBIN" && break
4885 done
4887 if test "x$ac_ct_DUMPBIN" = x; then
4888 DUMPBIN=":"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 DUMPBIN=$ac_ct_DUMPBIN
4900 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4901 *COFF*)
4902 DUMPBIN="$DUMPBIN -symbols"
4905 DUMPBIN=:
4907 esac
4910 if test "$DUMPBIN" != ":"; then
4911 NM="$DUMPBIN"
4914 test -z "$NM" && NM=nm
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4922 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4923 if ${lt_cv_nm_interface+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 lt_cv_nm_interface="BSD nm"
4927 echo "int some_variable = 0;" > conftest.$ac_ext
4928 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4929 (eval "$ac_compile" 2>conftest.err)
4930 cat conftest.err >&5
4931 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4932 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4933 cat conftest.err >&5
4934 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4935 cat conftest.out >&5
4936 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4937 lt_cv_nm_interface="MS dumpbin"
4939 rm -f conftest*
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4942 $as_echo "$lt_cv_nm_interface" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4945 $as_echo_n "checking whether ln -s works... " >&6; }
4946 LN_S=$as_ln_s
4947 if test "$LN_S" = "ln -s"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4949 $as_echo "yes" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4952 $as_echo "no, using $LN_S" >&6; }
4955 # find the maximum length of command line arguments
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4957 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4958 if ${lt_cv_sys_max_cmd_len+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4962 teststring="ABCD"
4964 case $build_os in
4965 msdosdjgpp*)
4966 # On DJGPP, this test can blow up pretty badly due to problems in libc
4967 # (any single argument exceeding 2000 bytes causes a buffer overrun
4968 # during glob expansion). Even if it were fixed, the result of this
4969 # check would be larger than it should be.
4970 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4973 gnu*)
4974 # Under GNU Hurd, this test is not required because there is
4975 # no limit to the length of command line arguments.
4976 # Libtool will interpret -1 as no limit whatsoever
4977 lt_cv_sys_max_cmd_len=-1;
4980 cygwin* | mingw* | cegcc*)
4981 # On Win9x/ME, this test blows up -- it succeeds, but takes
4982 # about 5 minutes as the teststring grows exponentially.
4983 # Worse, since 9x/ME are not pre-emptively multitasking,
4984 # you end up with a "frozen" computer, even though with patience
4985 # the test eventually succeeds (with a max line length of 256k).
4986 # Instead, let's just punt: use the minimum linelength reported by
4987 # all of the supported platforms: 8192 (on NT/2K/XP).
4988 lt_cv_sys_max_cmd_len=8192;
4991 mint*)
4992 # On MiNT this can take a long time and run out of memory.
4993 lt_cv_sys_max_cmd_len=8192;
4996 amigaos*)
4997 # On AmigaOS with pdksh, this test takes hours, literally.
4998 # So we just punt and use a minimum line length of 8192.
4999 lt_cv_sys_max_cmd_len=8192;
5002 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5003 # This has been around since 386BSD, at least. Likely further.
5004 if test -x /sbin/sysctl; then
5005 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5006 elif test -x /usr/sbin/sysctl; then
5007 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5008 else
5009 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5011 # And add a safety zone
5012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5016 interix*)
5017 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5018 lt_cv_sys_max_cmd_len=196608
5021 os2*)
5022 # The test takes a long time on OS/2.
5023 lt_cv_sys_max_cmd_len=8192
5026 osf*)
5027 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5028 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5029 # nice to cause kernel panics so lets avoid the loop below.
5030 # First set a reasonable default.
5031 lt_cv_sys_max_cmd_len=16384
5033 if test -x /sbin/sysconfig; then
5034 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5035 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5036 esac
5039 sco3.2v5*)
5040 lt_cv_sys_max_cmd_len=102400
5042 sysv5* | sco5v6* | sysv4.2uw2*)
5043 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5044 if test -n "$kargmax"; then
5045 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5046 else
5047 lt_cv_sys_max_cmd_len=32768
5051 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5052 if test -n "$lt_cv_sys_max_cmd_len"; then
5053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5055 else
5056 # Make teststring a little bigger before we do anything with it.
5057 # a 1K string should be a reasonable start.
5058 for i in 1 2 3 4 5 6 7 8 ; do
5059 teststring=$teststring$teststring
5060 done
5061 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5062 # If test is not a shell built-in, we'll probably end up computing a
5063 # maximum length that is only half of the actual maximum length, but
5064 # we can't tell.
5065 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5066 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5067 test $i != 17 # 1/2 MB should be enough
5069 i=`expr $i + 1`
5070 teststring=$teststring$teststring
5071 done
5072 # Only check the string length outside the loop.
5073 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5074 teststring=
5075 # Add a significant safety factor because C++ compilers can tack on
5076 # massive amounts of additional arguments before passing them to the
5077 # linker. It appears as though 1/2 is a usable value.
5078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5081 esac
5085 if test -n $lt_cv_sys_max_cmd_len ; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5087 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5090 $as_echo "none" >&6; }
5092 max_cmd_len=$lt_cv_sys_max_cmd_len
5099 : ${CP="cp -f"}
5100 : ${MV="mv -f"}
5101 : ${RM="rm -f"}
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5104 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5105 # Try some XSI features
5106 xsi_shell=no
5107 ( _lt_dummy="a/b/c"
5108 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5109 = c,a/b,b/c, \
5110 && eval 'test $(( 1 + 1 )) -eq 2 \
5111 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5112 && xsi_shell=yes
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5114 $as_echo "$xsi_shell" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5118 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5119 lt_shell_append=no
5120 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5121 >/dev/null 2>&1 \
5122 && lt_shell_append=yes
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5124 $as_echo "$lt_shell_append" >&6; }
5127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5128 lt_unset=unset
5129 else
5130 lt_unset=false
5137 # test EBCDIC or ASCII
5138 case `echo X|tr X '\101'` in
5139 A) # ASCII based system
5140 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5141 lt_SP2NL='tr \040 \012'
5142 lt_NL2SP='tr \015\012 \040\040'
5144 *) # EBCDIC based system
5145 lt_SP2NL='tr \100 \n'
5146 lt_NL2SP='tr \r\n \100\100'
5148 esac
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5159 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5160 if ${lt_cv_to_host_file_cmd+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 case $host in
5164 *-*-mingw* )
5165 case $build in
5166 *-*-mingw* ) # actually msys
5167 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5169 *-*-cygwin* )
5170 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5172 * ) # otherwise, assume *nix
5173 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5175 esac
5177 *-*-cygwin* )
5178 case $build in
5179 *-*-mingw* ) # actually msys
5180 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5182 *-*-cygwin* )
5183 lt_cv_to_host_file_cmd=func_convert_file_noop
5185 * ) # otherwise, assume *nix
5186 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5188 esac
5190 * ) # unhandled hosts (and "normal" native builds)
5191 lt_cv_to_host_file_cmd=func_convert_file_noop
5193 esac
5197 to_host_file_cmd=$lt_cv_to_host_file_cmd
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5199 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5206 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5207 if ${lt_cv_to_tool_file_cmd+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 #assume ordinary cross tools, or native build.
5211 lt_cv_to_tool_file_cmd=func_convert_file_noop
5212 case $host in
5213 *-*-mingw* )
5214 case $build in
5215 *-*-mingw* ) # actually msys
5216 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5218 esac
5220 esac
5224 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5226 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5233 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5234 if ${lt_cv_ld_reload_flag+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 lt_cv_ld_reload_flag='-r'
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5240 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5241 reload_flag=$lt_cv_ld_reload_flag
5242 case $reload_flag in
5243 "" | " "*) ;;
5244 *) reload_flag=" $reload_flag" ;;
5245 esac
5246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5247 case $host_os in
5248 cygwin* | mingw* | pw32* | cegcc*)
5249 if test "$GCC" != yes; then
5250 reload_cmds=false
5253 darwin*)
5254 if test "$GCC" = yes; then
5255 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5256 else
5257 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260 esac
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_OBJDUMP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$OBJDUMP"; then
5279 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 OBJDUMP=$ac_cv_prog_OBJDUMP
5299 if test -n "$OBJDUMP"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5301 $as_echo "$OBJDUMP" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5309 if test -z "$ac_cv_prog_OBJDUMP"; then
5310 ac_ct_OBJDUMP=$OBJDUMP
5311 # Extract the first word of "objdump", so it can be a program name with args.
5312 set dummy objdump; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_OBJDUMP"; then
5319 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5339 if test -n "$ac_ct_OBJDUMP"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5341 $as_echo "$ac_ct_OBJDUMP" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5347 if test "x$ac_ct_OBJDUMP" = x; then
5348 OBJDUMP="false"
5349 else
5350 case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356 OBJDUMP=$ac_ct_OBJDUMP
5358 else
5359 OBJDUMP="$ac_cv_prog_OBJDUMP"
5362 test -z "$OBJDUMP" && OBJDUMP=objdump
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5373 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5374 if ${lt_cv_deplibs_check_method+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 lt_cv_file_magic_cmd='$MAGIC_CMD'
5378 lt_cv_file_magic_test_file=
5379 lt_cv_deplibs_check_method='unknown'
5380 # Need to set the preceding variable on all platforms that support
5381 # interlibrary dependencies.
5382 # 'none' -- dependencies not supported.
5383 # `unknown' -- same as none, but documents that we really don't know.
5384 # 'pass_all' -- all dependencies passed with no checks.
5385 # 'test_compile' -- check by making test program.
5386 # 'file_magic [[regex]]' -- check by looking for files in library path
5387 # which responds to the $file_magic_cmd with a given extended regex.
5388 # If you have `file' or equivalent on your system and you're not sure
5389 # whether `pass_all' will *always* work, you probably want this one.
5391 case $host_os in
5392 aix[4-9]*)
5393 lt_cv_deplibs_check_method=pass_all
5396 beos*)
5397 lt_cv_deplibs_check_method=pass_all
5400 bsdi[45]*)
5401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5402 lt_cv_file_magic_cmd='/usr/bin/file -L'
5403 lt_cv_file_magic_test_file=/shlib/libc.so
5406 cygwin*)
5407 # func_win32_libid is a shell function defined in ltmain.sh
5408 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5409 lt_cv_file_magic_cmd='func_win32_libid'
5412 mingw* | pw32*)
5413 # Base MSYS/MinGW do not provide the 'file' command needed by
5414 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5415 # unless we find 'file', for example because we are cross-compiling.
5416 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5417 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5418 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5419 lt_cv_file_magic_cmd='func_win32_libid'
5420 else
5421 # Keep this pattern in sync with the one in func_win32_libid.
5422 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5427 cegcc*)
5428 # use the weaker test based on 'objdump'. See mingw*.
5429 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5430 lt_cv_file_magic_cmd='$OBJDUMP -f'
5433 darwin* | rhapsody*)
5434 lt_cv_deplibs_check_method=pass_all
5437 freebsd* | dragonfly*)
5438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5439 case $host_cpu in
5440 i*86 )
5441 # Not sure whether the presence of OpenBSD here was a mistake.
5442 # Let's accept both of them until this is cleared up.
5443 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5444 lt_cv_file_magic_cmd=/usr/bin/file
5445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5447 esac
5448 else
5449 lt_cv_deplibs_check_method=pass_all
5453 gnu*)
5454 lt_cv_deplibs_check_method=pass_all
5457 haiku*)
5458 lt_cv_deplibs_check_method=pass_all
5461 hpux10.20* | hpux11*)
5462 lt_cv_file_magic_cmd=/usr/bin/file
5463 case $host_cpu in
5464 ia64*)
5465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5466 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5468 hppa*64*)
5469 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]'
5470 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5474 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5476 esac
5479 interix[3-9]*)
5480 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5484 irix5* | irix6* | nonstopux*)
5485 case $LD in
5486 *-32|*"-32 ") libmagic=32-bit;;
5487 *-n32|*"-n32 ") libmagic=N32;;
5488 *-64|*"-64 ") libmagic=64-bit;;
5489 *) libmagic=never-match;;
5490 esac
5491 lt_cv_deplibs_check_method=pass_all
5494 # This must be glibc/ELF.
5495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5496 lt_cv_deplibs_check_method=pass_all
5499 netbsd* | netbsdelf*-gnu)
5500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5502 else
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5507 newos6*)
5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5509 lt_cv_file_magic_cmd=/usr/bin/file
5510 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5513 *nto* | *qnx*)
5514 lt_cv_deplibs_check_method=pass_all
5517 openbsd*)
5518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5520 else
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525 osf3* | osf4* | osf5*)
5526 lt_cv_deplibs_check_method=pass_all
5529 rdos*)
5530 lt_cv_deplibs_check_method=pass_all
5533 solaris*)
5534 lt_cv_deplibs_check_method=pass_all
5537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5538 lt_cv_deplibs_check_method=pass_all
5541 sysv4 | sysv4.3*)
5542 case $host_vendor in
5543 motorola)
5544 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]'
5545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5547 ncr)
5548 lt_cv_deplibs_check_method=pass_all
5550 sequent)
5551 lt_cv_file_magic_cmd='/bin/file'
5552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5554 sni)
5555 lt_cv_file_magic_cmd='/bin/file'
5556 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5557 lt_cv_file_magic_test_file=/lib/libc.so
5559 siemens)
5560 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_deplibs_check_method=pass_all
5565 esac
5568 tpf*)
5569 lt_cv_deplibs_check_method=pass_all
5571 esac
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5575 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5577 file_magic_glob=
5578 want_nocaseglob=no
5579 if test "$build" = "$host"; then
5580 case $host_os in
5581 mingw* | pw32*)
5582 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5583 want_nocaseglob=yes
5584 else
5585 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5588 esac
5591 file_magic_cmd=$lt_cv_file_magic_cmd
5592 deplibs_check_method=$lt_cv_deplibs_check_method
5593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5616 if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_DLLTOOL+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if test -n "$DLLTOOL"; then
5625 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5638 done
5639 done
5640 IFS=$as_save_IFS
5644 DLLTOOL=$ac_cv_prog_DLLTOOL
5645 if test -n "$DLLTOOL"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5647 $as_echo "$DLLTOOL" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5655 if test -z "$ac_cv_prog_DLLTOOL"; then
5656 ac_ct_DLLTOOL=$DLLTOOL
5657 # Extract the first word of "dlltool", so it can be a program name with args.
5658 set dummy dlltool; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$ac_ct_DLLTOOL"; then
5665 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5678 done
5679 done
5680 IFS=$as_save_IFS
5684 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5685 if test -n "$ac_ct_DLLTOOL"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5687 $as_echo "$ac_ct_DLLTOOL" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5693 if test "x$ac_ct_DLLTOOL" = x; then
5694 DLLTOOL="false"
5695 else
5696 case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702 DLLTOOL=$ac_ct_DLLTOOL
5704 else
5705 DLLTOOL="$ac_cv_prog_DLLTOOL"
5708 test -z "$DLLTOOL" && DLLTOOL=dlltool
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5720 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5721 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 lt_cv_sharedlib_from_linklib_cmd='unknown'
5726 case $host_os in
5727 cygwin* | mingw* | pw32* | cegcc*)
5728 # two different shell functions defined in ltmain.sh
5729 # decide which to use based on capabilities of $DLLTOOL
5730 case `$DLLTOOL --help 2>&1` in
5731 *--identify-strict*)
5732 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5735 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5737 esac
5740 # fallback: assume linklib IS sharedlib
5741 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5743 esac
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5747 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5748 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5749 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5758 if test -n "$ac_tool_prefix"; then
5759 for ac_prog in ar
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_AR+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$AR"; then
5769 ac_cv_prog_AR="$AR" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5782 done
5783 done
5784 IFS=$as_save_IFS
5788 AR=$ac_cv_prog_AR
5789 if test -n "$AR"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5791 $as_echo "$AR" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5798 test -n "$AR" && break
5799 done
5801 if test -z "$AR"; then
5802 ac_ct_AR=$AR
5803 for ac_prog in ar
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$ac_ct_AR"; then
5813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_AR="$ac_prog"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5826 done
5827 done
5828 IFS=$as_save_IFS
5832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5833 if test -n "$ac_ct_AR"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5835 $as_echo "$ac_ct_AR" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5842 test -n "$ac_ct_AR" && break
5843 done
5845 if test "x$ac_ct_AR" = x; then
5846 AR="false"
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849 yes:)
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852 ac_tool_warned=yes ;;
5853 esac
5854 AR=$ac_ct_AR
5858 : ${AR=ar}
5859 : ${AR_FLAGS=cru}
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5872 $as_echo_n "checking for archiver @FILE support... " >&6; }
5873 if ${lt_cv_ar_at_file+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 lt_cv_ar_at_file=no
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5881 main ()
5885 return 0;
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"; then :
5889 echo conftest.$ac_objext > conftest.lst
5890 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5892 (eval $lt_ar_try) 2>&5
5893 ac_status=$?
5894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895 test $ac_status = 0; }
5896 if test "$ac_status" -eq 0; then
5897 # Ensure the archiver fails upon bogus file names.
5898 rm -f conftest.$ac_objext libconftest.a
5899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5900 (eval $lt_ar_try) 2>&5
5901 ac_status=$?
5902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903 test $ac_status = 0; }
5904 if test "$ac_status" -ne 0; then
5905 lt_cv_ar_at_file=@
5908 rm -f conftest.* libconftest.a
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5915 $as_echo "$lt_cv_ar_at_file" >&6; }
5917 if test "x$lt_cv_ar_at_file" = xno; then
5918 archiver_list_spec=
5919 else
5920 archiver_list_spec=$lt_cv_ar_at_file
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}strip; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_STRIP+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -n "$STRIP"; then
5938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5951 done
5952 done
5953 IFS=$as_save_IFS
5957 STRIP=$ac_cv_prog_STRIP
5958 if test -n "$STRIP"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5960 $as_echo "$STRIP" >&6; }
5961 else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5968 if test -z "$ac_cv_prog_STRIP"; then
5969 ac_ct_STRIP=$STRIP
5970 # Extract the first word of "strip", so it can be a program name with args.
5971 set dummy strip; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$ac_ct_STRIP"; then
5978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_ac_ct_STRIP="strip"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5991 done
5992 done
5993 IFS=$as_save_IFS
5997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5998 if test -n "$ac_ct_STRIP"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6000 $as_echo "$ac_ct_STRIP" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6006 if test "x$ac_ct_STRIP" = x; then
6007 STRIP=":"
6008 else
6009 case $cross_compiling:$ac_tool_warned in
6010 yes:)
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015 STRIP=$ac_ct_STRIP
6017 else
6018 STRIP="$ac_cv_prog_STRIP"
6021 test -z "$STRIP" && STRIP=:
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_RANLIB+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$RANLIB"; then
6037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6052 IFS=$as_save_IFS
6056 RANLIB=$ac_cv_prog_RANLIB
6057 if test -n "$RANLIB"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6059 $as_echo "$RANLIB" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_RANLIB"; then
6068 ac_ct_RANLIB=$RANLIB
6069 # Extract the first word of "ranlib", so it can be a program name with args.
6070 set dummy ranlib; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_RANLIB"; then
6077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_ac_ct_RANLIB="ranlib"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6097 if test -n "$ac_ct_RANLIB"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6099 $as_echo "$ac_ct_RANLIB" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_RANLIB" = x; then
6106 RANLIB=":"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 RANLIB=$ac_ct_RANLIB
6116 else
6117 RANLIB="$ac_cv_prog_RANLIB"
6120 test -z "$RANLIB" && RANLIB=:
6127 # Determine commands to create old-style static archives.
6128 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6129 old_postinstall_cmds='chmod 644 $oldlib'
6130 old_postuninstall_cmds=
6132 if test -n "$RANLIB"; then
6133 case $host_os in
6134 openbsd*)
6135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6140 esac
6141 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6144 case $host_os in
6145 darwin*)
6146 lock_old_archive_extraction=yes ;;
6148 lock_old_archive_extraction=no ;;
6149 esac
6189 # If no C compiler was specified, use CC.
6190 LTCC=${LTCC-"$CC"}
6192 # If no C compiler flags were specified, use CFLAGS.
6193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6195 # Allow CC to be a program name with arguments.
6196 compiler=$CC
6199 # Check for command to grab the raw symbol name followed by C symbol from nm.
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6201 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6202 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6206 # These are sane defaults that work on at least a few old systems.
6207 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6209 # Character class describing NM global symbol codes.
6210 symcode='[BCDEGRST]'
6212 # Regexp to match symbols that can be accessed directly from C.
6213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6215 # Define system-specific variables.
6216 case $host_os in
6217 aix*)
6218 symcode='[BCDT]'
6220 cygwin* | mingw* | pw32* | cegcc*)
6221 symcode='[ABCDGISTW]'
6223 hpux*)
6224 if test "$host_cpu" = ia64; then
6225 symcode='[ABCDEGRST]'
6228 irix* | nonstopux*)
6229 symcode='[BCDEGRST]'
6231 osf*)
6232 symcode='[BCDEGQRST]'
6234 solaris*)
6235 symcode='[BDRT]'
6237 sco3.2v5*)
6238 symcode='[DT]'
6240 sysv4.2uw2*)
6241 symcode='[DT]'
6243 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6244 symcode='[ABDT]'
6246 sysv4)
6247 symcode='[DFNSTU]'
6249 esac
6251 # If we're using GNU nm, then use its standard symbol codes.
6252 case `$NM -V 2>&1` in
6253 *GNU* | *'with BFD'*)
6254 symcode='[ABCDGIRSTW]' ;;
6255 esac
6257 # Transform an extracted symbol line into a proper C declaration.
6258 # Some systems (esp. on ia64) link data and code symbols differently,
6259 # so use this general approach.
6260 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6262 # Transform an extracted symbol line into symbol name and symbol address
6263 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6264 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'"
6266 # Handle CRLF in mingw tool chain
6267 opt_cr=
6268 case $build_os in
6269 mingw*)
6270 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6272 esac
6274 # Try without a prefix underscore, then with it.
6275 for ac_symprfx in "" "_"; do
6277 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6278 symxfrm="\\1 $ac_symprfx\\2 \\2"
6280 # Write the raw and C identifiers.
6281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6282 # Fake it for dumpbin and say T for any non-static function
6283 # and D for any global variable.
6284 # Also find C++ and __fastcall symbols from MSVC++,
6285 # which start with @ or ?.
6286 lt_cv_sys_global_symbol_pipe="$AWK '"\
6287 " {last_section=section; section=\$ 3};"\
6288 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6289 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6290 " \$ 0!~/External *\|/{next};"\
6291 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6292 " {if(hide[section]) next};"\
6293 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6294 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6295 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6296 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6297 " ' prfx=^$ac_symprfx"
6298 else
6299 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6301 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6303 # Check to see that the pipe works correctly.
6304 pipe_works=no
6306 rm -f conftest*
6307 cat > conftest.$ac_ext <<_LT_EOF
6308 #ifdef __cplusplus
6309 extern "C" {
6310 #endif
6311 char nm_test_var;
6312 void nm_test_func(void);
6313 void nm_test_func(void){}
6314 #ifdef __cplusplus
6316 #endif
6317 int main(){nm_test_var='a';nm_test_func();return(0);}
6318 _LT_EOF
6320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321 (eval $ac_compile) 2>&5
6322 ac_status=$?
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }; then
6325 # Now try to grab the symbols.
6326 nlist=conftest.nm
6327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6328 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6329 ac_status=$?
6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331 test $ac_status = 0; } && test -s "$nlist"; then
6332 # Try sorting and uniquifying the output.
6333 if sort "$nlist" | uniq > "$nlist"T; then
6334 mv -f "$nlist"T "$nlist"
6335 else
6336 rm -f "$nlist"T
6339 # Make sure that we snagged all the symbols we need.
6340 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6341 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6342 cat <<_LT_EOF > conftest.$ac_ext
6343 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6344 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6345 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6346 relocations are performed -- see ld's documentation on pseudo-relocs. */
6347 # define LT_DLSYM_CONST
6348 #elif defined(__osf__)
6349 /* This system does not cope well with relocations in const data. */
6350 # define LT_DLSYM_CONST
6351 #else
6352 # define LT_DLSYM_CONST const
6353 #endif
6355 #ifdef __cplusplus
6356 extern "C" {
6357 #endif
6359 _LT_EOF
6360 # Now generate the symbol file.
6361 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6363 cat <<_LT_EOF >> conftest.$ac_ext
6365 /* The mapping between symbol names and symbols. */
6366 LT_DLSYM_CONST struct {
6367 const char *name;
6368 void *address;
6370 lt__PROGRAM__LTX_preloaded_symbols[] =
6372 { "@PROGRAM@", (void *) 0 },
6373 _LT_EOF
6374 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6375 cat <<\_LT_EOF >> conftest.$ac_ext
6376 {0, (void *) 0}
6379 /* This works around a problem in FreeBSD linker */
6380 #ifdef FREEBSD_WORKAROUND
6381 static const void *lt_preloaded_setup() {
6382 return lt__PROGRAM__LTX_preloaded_symbols;
6384 #endif
6386 #ifdef __cplusplus
6388 #endif
6389 _LT_EOF
6390 # Now try linking the two files.
6391 mv conftest.$ac_objext conftstm.$ac_objext
6392 lt_globsym_save_LIBS=$LIBS
6393 lt_globsym_save_CFLAGS=$CFLAGS
6394 LIBS="conftstm.$ac_objext"
6395 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6397 (eval $ac_link) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6401 pipe_works=yes
6403 LIBS=$lt_globsym_save_LIBS
6404 CFLAGS=$lt_globsym_save_CFLAGS
6405 else
6406 echo "cannot find nm_test_func in $nlist" >&5
6408 else
6409 echo "cannot find nm_test_var in $nlist" >&5
6411 else
6412 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6414 else
6415 echo "$progname: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 rm -rf conftest* conftst*
6420 # Do not use the global_symbol_pipe unless it works.
6421 if test "$pipe_works" = yes; then
6422 break
6423 else
6424 lt_cv_sys_global_symbol_pipe=
6426 done
6430 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6431 lt_cv_sys_global_symbol_to_cdecl=
6433 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6435 $as_echo "failed" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6438 $as_echo "ok" >&6; }
6441 # Response file support.
6442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6443 nm_file_list_spec='@'
6444 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6445 nm_file_list_spec='@'
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6475 $as_echo_n "checking for sysroot... " >&6; }
6477 # Check whether --with-sysroot was given.
6478 if test "${with_sysroot+set}" = set; then :
6479 withval=$with_sysroot;
6480 else
6481 with_sysroot=no
6485 lt_sysroot=
6486 case ${with_sysroot} in #(
6487 yes)
6488 if test "$GCC" = yes; then
6489 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6491 ;; #(
6493 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6494 ;; #(
6495 no|'')
6496 ;; #(
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6499 $as_echo "${with_sysroot}" >&6; }
6500 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6502 esac
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6505 $as_echo "${lt_sysroot:-no}" >&6; }
6511 # Check whether --enable-libtool-lock was given.
6512 if test "${enable_libtool_lock+set}" = set; then :
6513 enableval=$enable_libtool_lock;
6516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6518 # Some flags need to be propagated to the compiler or linker for good
6519 # libtool support.
6520 case $host in
6521 ia64-*-hpux*)
6522 # Find out which ABI we are using.
6523 echo 'int i;' > conftest.$ac_ext
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525 (eval $ac_compile) 2>&5
6526 ac_status=$?
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; }; then
6529 case `/usr/bin/file conftest.$ac_objext` in
6530 *ELF-32*)
6531 HPUX_IA64_MODE="32"
6533 *ELF-64*)
6534 HPUX_IA64_MODE="64"
6536 esac
6538 rm -rf conftest*
6540 *-*-irix6*)
6541 # Find out which ABI we are using.
6542 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 if test "$lt_cv_prog_gnu_ld" = yes; then
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *32-bit*)
6551 LD="${LD-ld} -melf32bsmip"
6553 *N32*)
6554 LD="${LD-ld} -melf32bmipn32"
6556 *64-bit*)
6557 LD="${LD-ld} -melf64bmip"
6559 esac
6560 else
6561 case `/usr/bin/file conftest.$ac_objext` in
6562 *32-bit*)
6563 LD="${LD-ld} -32"
6565 *N32*)
6566 LD="${LD-ld} -n32"
6568 *64-bit*)
6569 LD="${LD-ld} -64"
6571 esac
6574 rm -rf conftest*
6577 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6578 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6579 # Find out which ABI we are using.
6580 echo 'int i;' > conftest.$ac_ext
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }; then
6586 case `/usr/bin/file conftest.o` in
6587 *32-bit*)
6588 case $host in
6589 x86_64-*kfreebsd*-gnu)
6590 LD="${LD-ld} -m elf_i386_fbsd"
6592 x86_64-*linux*)
6593 LD="${LD-ld} -m elf_i386"
6595 ppc64-*linux*|powerpc64-*linux*)
6596 LD="${LD-ld} -m elf32ppclinux"
6598 s390x-*linux*)
6599 LD="${LD-ld} -m elf_s390"
6601 sparc64-*linux*)
6602 LD="${LD-ld} -m elf32_sparc"
6604 esac
6606 *64-bit*)
6607 case $host in
6608 x86_64-*kfreebsd*-gnu)
6609 LD="${LD-ld} -m elf_x86_64_fbsd"
6611 x86_64-*linux*)
6612 LD="${LD-ld} -m elf_x86_64"
6614 ppc*-*linux*|powerpc*-*linux*)
6615 LD="${LD-ld} -m elf64ppc"
6617 s390*-*linux*|s390*-*tpf*)
6618 LD="${LD-ld} -m elf64_s390"
6620 sparc*-*linux*)
6621 LD="${LD-ld} -m elf64_sparc"
6623 esac
6625 esac
6627 rm -rf conftest*
6630 *-*-sco3.2v5*)
6631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6632 SAVE_CFLAGS="$CFLAGS"
6633 CFLAGS="$CFLAGS -belf"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6635 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6636 if ${lt_cv_cc_needs_belf+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 ac_ext=c
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6649 main ()
6653 return 0;
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"; then :
6657 lt_cv_cc_needs_belf=yes
6658 else
6659 lt_cv_cc_needs_belf=no
6661 rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6671 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6672 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6673 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6674 CFLAGS="$SAVE_CFLAGS"
6677 *-*solaris*)
6678 # Find out which ABI we are using.
6679 echo 'int i;' > conftest.$ac_ext
6680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681 (eval $ac_compile) 2>&5
6682 ac_status=$?
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }; then
6685 case `/usr/bin/file conftest.o` in
6686 *64-bit*)
6687 case $lt_cv_prog_gnu_ld in
6688 yes*)
6689 case $host in
6690 i?86-*-solaris*)
6691 LD="${LD-ld} -m elf_x86_64"
6693 sparc*-*-solaris*)
6694 LD="${LD-ld} -m elf64_sparc"
6696 esac
6697 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6698 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6699 LD="${LD-ld}_sol2"
6703 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6704 LD="${LD-ld} -64"
6707 esac
6709 esac
6711 rm -rf conftest*
6713 esac
6715 need_locks="$enable_libtool_lock"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}mt; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$MANIFEST_TOOL"; then
6726 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6745 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6746 if test -n "$MANIFEST_TOOL"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6748 $as_echo "$MANIFEST_TOOL" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6756 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6757 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6758 # Extract the first word of "mt", so it can be a program name with args.
6759 set dummy mt; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$ac_ct_MANIFEST_TOOL"; then
6766 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6786 if test -n "$ac_ct_MANIFEST_TOOL"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6788 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6794 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6795 MANIFEST_TOOL=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6805 else
6806 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6809 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6811 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6812 if ${lt_cv_path_mainfest_tool+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 lt_cv_path_mainfest_tool=no
6816 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6817 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6818 cat conftest.err >&5
6819 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6820 lt_cv_path_mainfest_tool=yes
6822 rm -f conftest*
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6825 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6826 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6827 MANIFEST_TOOL=:
6835 case $host_os in
6836 rhapsody* | darwin*)
6837 if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$DSYMUTIL"; then
6846 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6865 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6866 if test -n "$DSYMUTIL"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6868 $as_echo "$DSYMUTIL" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6876 if test -z "$ac_cv_prog_DSYMUTIL"; then
6877 ac_ct_DSYMUTIL=$DSYMUTIL
6878 # Extract the first word of "dsymutil", so it can be a program name with args.
6879 set dummy dsymutil; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 if test -n "$ac_ct_DSYMUTIL"; then
6886 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6899 done
6900 done
6901 IFS=$as_save_IFS
6905 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6906 if test -n "$ac_ct_DSYMUTIL"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6908 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6909 else
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6914 if test "x$ac_ct_DSYMUTIL" = x; then
6915 DSYMUTIL=":"
6916 else
6917 case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923 DSYMUTIL=$ac_ct_DSYMUTIL
6925 else
6926 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6929 if test -n "$ac_tool_prefix"; then
6930 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6931 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_NMEDIT+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$NMEDIT"; then
6938 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6957 NMEDIT=$ac_cv_prog_NMEDIT
6958 if test -n "$NMEDIT"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6960 $as_echo "$NMEDIT" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6968 if test -z "$ac_cv_prog_NMEDIT"; then
6969 ac_ct_NMEDIT=$NMEDIT
6970 # Extract the first word of "nmedit", so it can be a program name with args.
6971 set dummy nmedit; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if test -n "$ac_ct_NMEDIT"; then
6978 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6991 done
6992 done
6993 IFS=$as_save_IFS
6997 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6998 if test -n "$ac_ct_NMEDIT"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7000 $as_echo "$ac_ct_NMEDIT" >&6; }
7001 else
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7006 if test "x$ac_ct_NMEDIT" = x; then
7007 NMEDIT=":"
7008 else
7009 case $cross_compiling:$ac_tool_warned in
7010 yes:)
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7013 ac_tool_warned=yes ;;
7014 esac
7015 NMEDIT=$ac_ct_NMEDIT
7017 else
7018 NMEDIT="$ac_cv_prog_NMEDIT"
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_LIPO+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$LIPO"; then
7030 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7043 done
7044 done
7045 IFS=$as_save_IFS
7049 LIPO=$ac_cv_prog_LIPO
7050 if test -n "$LIPO"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7052 $as_echo "$LIPO" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7060 if test -z "$ac_cv_prog_LIPO"; then
7061 ac_ct_LIPO=$LIPO
7062 # Extract the first word of "lipo", so it can be a program name with args.
7063 set dummy lipo; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_LIPO"; then
7070 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_LIPO="lipo"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7090 if test -n "$ac_ct_LIPO"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7092 $as_echo "$ac_ct_LIPO" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7098 if test "x$ac_ct_LIPO" = x; then
7099 LIPO=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 LIPO=$ac_ct_LIPO
7109 else
7110 LIPO="$ac_cv_prog_LIPO"
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}otool; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_OTOOL+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 if test -n "$OTOOL"; then
7122 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7135 done
7136 done
7137 IFS=$as_save_IFS
7141 OTOOL=$ac_cv_prog_OTOOL
7142 if test -n "$OTOOL"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7144 $as_echo "$OTOOL" >&6; }
7145 else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7152 if test -z "$ac_cv_prog_OTOOL"; then
7153 ac_ct_OTOOL=$OTOOL
7154 # Extract the first word of "otool", so it can be a program name with args.
7155 set dummy otool; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if test -n "$ac_ct_OTOOL"; then
7162 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_ac_ct_OTOOL="otool"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7175 done
7176 done
7177 IFS=$as_save_IFS
7181 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7182 if test -n "$ac_ct_OTOOL"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7184 $as_echo "$ac_ct_OTOOL" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7190 if test "x$ac_ct_OTOOL" = x; then
7191 OTOOL=":"
7192 else
7193 case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199 OTOOL=$ac_ct_OTOOL
7201 else
7202 OTOOL="$ac_cv_prog_OTOOL"
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_OTOOL64+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$OTOOL64"; then
7214 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7227 done
7228 done
7229 IFS=$as_save_IFS
7233 OTOOL64=$ac_cv_prog_OTOOL64
7234 if test -n "$OTOOL64"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7236 $as_echo "$OTOOL64" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7244 if test -z "$ac_cv_prog_OTOOL64"; then
7245 ac_ct_OTOOL64=$OTOOL64
7246 # Extract the first word of "otool64", so it can be a program name with args.
7247 set dummy otool64; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_OTOOL64"; then
7254 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_ac_ct_OTOOL64="otool64"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7267 done
7268 done
7269 IFS=$as_save_IFS
7273 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7274 if test -n "$ac_ct_OTOOL64"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7276 $as_echo "$ac_ct_OTOOL64" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7282 if test "x$ac_ct_OTOOL64" = x; then
7283 OTOOL64=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 OTOOL64=$ac_ct_OTOOL64
7293 else
7294 OTOOL64="$ac_cv_prog_OTOOL64"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7324 $as_echo_n "checking for -single_module linker flag... " >&6; }
7325 if ${lt_cv_apple_cc_single_mod+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 lt_cv_apple_cc_single_mod=no
7329 if test -z "${LT_MULTI_MODULE}"; then
7330 # By default we will add the -single_module flag. You can override
7331 # by either setting the environment variable LT_MULTI_MODULE
7332 # non-empty at configure time, or by adding -multi_module to the
7333 # link flags.
7334 rm -rf libconftest.dylib*
7335 echo "int foo(void){return 1;}" > conftest.c
7336 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337 -dynamiclib -Wl,-single_module conftest.c" >&5
7338 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7339 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7340 _lt_result=$?
7341 # If there is a non-empty error log, and "single_module"
7342 # appears in it, assume the flag caused a linker warning
7343 if test -s conftest.err && $GREP single_module conftest.err; then
7344 cat conftest.err >&5
7345 # Otherwise, if the output was created with a 0 exit code from
7346 # the compiler, it worked.
7347 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7348 lt_cv_apple_cc_single_mod=yes
7349 else
7350 cat conftest.err >&5
7352 rm -rf libconftest.dylib*
7353 rm -f conftest.*
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7357 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7360 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7361 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 lt_cv_ld_exported_symbols_list=no
7365 save_LDFLAGS=$LDFLAGS
7366 echo "_main" > conftest.sym
7367 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7372 main ()
7376 return 0;
7378 _ACEOF
7379 if ac_fn_c_try_link "$LINENO"; then :
7380 lt_cv_ld_exported_symbols_list=yes
7381 else
7382 lt_cv_ld_exported_symbols_list=no
7384 rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386 LDFLAGS="$save_LDFLAGS"
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7390 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7393 $as_echo_n "checking for -force_load linker flag... " >&6; }
7394 if ${lt_cv_ld_force_load+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 lt_cv_ld_force_load=no
7398 cat > conftest.c << _LT_EOF
7399 int forced_loaded() { return 2;}
7400 _LT_EOF
7401 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7402 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7403 echo "$AR cru libconftest.a conftest.o" >&5
7404 $AR cru libconftest.a conftest.o 2>&5
7405 echo "$RANLIB libconftest.a" >&5
7406 $RANLIB libconftest.a 2>&5
7407 cat > conftest.c << _LT_EOF
7408 int main() { return 0;}
7409 _LT_EOF
7410 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7411 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7412 _lt_result=$?
7413 if test -s conftest.err && $GREP force_load conftest.err; then
7414 cat conftest.err >&5
7415 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7416 lt_cv_ld_force_load=yes
7417 else
7418 cat conftest.err >&5
7420 rm -f conftest.err libconftest.a conftest conftest.c
7421 rm -rf conftest.dSYM
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7425 $as_echo "$lt_cv_ld_force_load" >&6; }
7426 case $host_os in
7427 rhapsody* | darwin1.[012])
7428 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7429 darwin1.*)
7430 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7431 darwin*) # darwin 5.x on
7432 # if running on 10.5 or later, the deployment target defaults
7433 # to the OS version, if on x86, and 10.4, the deployment
7434 # target defaults to 10.4. Don't you love it?
7435 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7436 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7437 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7438 10.[012]*)
7439 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7440 10.*)
7441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7442 esac
7444 esac
7445 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7446 _lt_dar_single_mod='$single_module'
7448 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7449 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7450 else
7451 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7453 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7454 _lt_dsymutil='~$DSYMUTIL $lib || :'
7455 else
7456 _lt_dsymutil=
7459 esac
7461 ac_ext=c
7462 ac_cpp='$CPP $CPPFLAGS'
7463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7467 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7468 # On Suns, sometimes $CPP names a directory.
7469 if test -n "$CPP" && test -d "$CPP"; then
7470 CPP=
7472 if test -z "$CPP"; then
7473 if ${ac_cv_prog_CPP+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 # Double quotes because CPP needs to be expanded
7477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7479 ac_preproc_ok=false
7480 for ac_c_preproc_warn_flag in '' yes
7482 # Use a header file that comes with gcc, so configuring glibc
7483 # with a fresh cross-compiler works.
7484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7485 # <limits.h> exists even on freestanding compilers.
7486 # On the NeXT, cc -E runs the code through the compiler's parser,
7487 # not just through cpp. "Syntax error" is here to catch this case.
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 #ifdef __STDC__
7491 # include <limits.h>
7492 #else
7493 # include <assert.h>
7494 #endif
7495 Syntax error
7496 _ACEOF
7497 if ac_fn_c_try_cpp "$LINENO"; then :
7499 else
7500 # Broken: fails on valid input.
7501 continue
7503 rm -f conftest.err conftest.i conftest.$ac_ext
7505 # OK, works on sane cases. Now check whether nonexistent headers
7506 # can be detected and how.
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #include <ac_nonexistent.h>
7510 _ACEOF
7511 if ac_fn_c_try_cpp "$LINENO"; then :
7512 # Broken: success on invalid input.
7513 continue
7514 else
7515 # Passes both tests.
7516 ac_preproc_ok=:
7517 break
7519 rm -f conftest.err conftest.i conftest.$ac_ext
7521 done
7522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7523 rm -f conftest.i conftest.err conftest.$ac_ext
7524 if $ac_preproc_ok; then :
7525 break
7528 done
7529 ac_cv_prog_CPP=$CPP
7532 CPP=$ac_cv_prog_CPP
7533 else
7534 ac_cv_prog_CPP=$CPP
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7537 $as_echo "$CPP" >&6; }
7538 ac_preproc_ok=false
7539 for ac_c_preproc_warn_flag in '' yes
7541 # Use a header file that comes with gcc, so configuring glibc
7542 # with a fresh cross-compiler works.
7543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7544 # <limits.h> exists even on freestanding compilers.
7545 # On the NeXT, cc -E runs the code through the compiler's parser,
7546 # not just through cpp. "Syntax error" is here to catch this case.
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 #ifdef __STDC__
7550 # include <limits.h>
7551 #else
7552 # include <assert.h>
7553 #endif
7554 Syntax error
7555 _ACEOF
7556 if ac_fn_c_try_cpp "$LINENO"; then :
7558 else
7559 # Broken: fails on valid input.
7560 continue
7562 rm -f conftest.err conftest.i conftest.$ac_ext
7564 # OK, works on sane cases. Now check whether nonexistent headers
7565 # can be detected and how.
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #include <ac_nonexistent.h>
7569 _ACEOF
7570 if ac_fn_c_try_cpp "$LINENO"; then :
7571 # Broken: success on invalid input.
7572 continue
7573 else
7574 # Passes both tests.
7575 ac_preproc_ok=:
7576 break
7578 rm -f conftest.err conftest.i conftest.$ac_ext
7580 done
7581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7582 rm -f conftest.i conftest.err conftest.$ac_ext
7583 if $ac_preproc_ok; then :
7585 else
7586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7588 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7589 See \`config.log' for more details" "$LINENO" 5; }
7592 ac_ext=c
7593 ac_cpp='$CPP $CPPFLAGS'
7594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7600 $as_echo_n "checking for ANSI C header files... " >&6; }
7601 if ${ac_cv_header_stdc+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <stdlib.h>
7607 #include <stdarg.h>
7608 #include <string.h>
7609 #include <float.h>
7612 main ()
7616 return 0;
7618 _ACEOF
7619 if ac_fn_c_try_compile "$LINENO"; then :
7620 ac_cv_header_stdc=yes
7621 else
7622 ac_cv_header_stdc=no
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 if test $ac_cv_header_stdc = yes; then
7627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 #include <string.h>
7632 _ACEOF
7633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634 $EGREP "memchr" >/dev/null 2>&1; then :
7636 else
7637 ac_cv_header_stdc=no
7639 rm -f conftest*
7643 if test $ac_cv_header_stdc = yes; then
7644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #include <stdlib.h>
7649 _ACEOF
7650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7651 $EGREP "free" >/dev/null 2>&1; then :
7653 else
7654 ac_cv_header_stdc=no
7656 rm -f conftest*
7660 if test $ac_cv_header_stdc = yes; then
7661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7662 if test "$cross_compiling" = yes; then :
7664 else
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 #include <ctype.h>
7668 #include <stdlib.h>
7669 #if ((' ' & 0x0FF) == 0x020)
7670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7672 #else
7673 # define ISLOWER(c) \
7674 (('a' <= (c) && (c) <= 'i') \
7675 || ('j' <= (c) && (c) <= 'r') \
7676 || ('s' <= (c) && (c) <= 'z'))
7677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7678 #endif
7680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7682 main ()
7684 int i;
7685 for (i = 0; i < 256; i++)
7686 if (XOR (islower (i), ISLOWER (i))
7687 || toupper (i) != TOUPPER (i))
7688 return 2;
7689 return 0;
7691 _ACEOF
7692 if ac_fn_c_try_run "$LINENO"; then :
7694 else
7695 ac_cv_header_stdc=no
7697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7698 conftest.$ac_objext conftest.beam conftest.$ac_ext
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7704 $as_echo "$ac_cv_header_stdc" >&6; }
7705 if test $ac_cv_header_stdc = yes; then
7707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7713 inttypes.h stdint.h unistd.h
7714 do :
7715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7719 cat >>confdefs.h <<_ACEOF
7720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721 _ACEOF
7725 done
7728 for ac_header in dlfcn.h
7729 do :
7730 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7732 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_DLFCN_H 1
7735 _ACEOF
7739 done
7745 # Set options
7749 enable_dlopen=no
7752 enable_win32_dll=no
7755 # Check whether --enable-shared was given.
7756 if test "${enable_shared+set}" = set; then :
7757 enableval=$enable_shared; p=${PACKAGE-default}
7758 case $enableval in
7759 yes) enable_shared=yes ;;
7760 no) enable_shared=no ;;
7762 enable_shared=no
7763 # Look at the argument we got. We use all the common list separators.
7764 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7765 for pkg in $enableval; do
7766 IFS="$lt_save_ifs"
7767 if test "X$pkg" = "X$p"; then
7768 enable_shared=yes
7770 done
7771 IFS="$lt_save_ifs"
7773 esac
7774 else
7775 enable_shared=yes
7786 # Check whether --enable-static was given.
7787 if test "${enable_static+set}" = set; then :
7788 enableval=$enable_static; p=${PACKAGE-default}
7789 case $enableval in
7790 yes) enable_static=yes ;;
7791 no) enable_static=no ;;
7793 enable_static=no
7794 # Look at the argument we got. We use all the common list separators.
7795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7796 for pkg in $enableval; do
7797 IFS="$lt_save_ifs"
7798 if test "X$pkg" = "X$p"; then
7799 enable_static=yes
7801 done
7802 IFS="$lt_save_ifs"
7804 esac
7805 else
7806 enable_static=yes
7818 # Check whether --with-pic was given.
7819 if test "${with_pic+set}" = set; then :
7820 withval=$with_pic; lt_p=${PACKAGE-default}
7821 case $withval in
7822 yes|no) pic_mode=$withval ;;
7824 pic_mode=default
7825 # Look at the argument we got. We use all the common list separators.
7826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7827 for lt_pkg in $withval; do
7828 IFS="$lt_save_ifs"
7829 if test "X$lt_pkg" = "X$lt_p"; then
7830 pic_mode=yes
7832 done
7833 IFS="$lt_save_ifs"
7835 esac
7836 else
7837 pic_mode=default
7841 test -z "$pic_mode" && pic_mode=default
7849 # Check whether --enable-fast-install was given.
7850 if test "${enable_fast_install+set}" = set; then :
7851 enableval=$enable_fast_install; p=${PACKAGE-default}
7852 case $enableval in
7853 yes) enable_fast_install=yes ;;
7854 no) enable_fast_install=no ;;
7856 enable_fast_install=no
7857 # Look at the argument we got. We use all the common list separators.
7858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7859 for pkg in $enableval; do
7860 IFS="$lt_save_ifs"
7861 if test "X$pkg" = "X$p"; then
7862 enable_fast_install=yes
7864 done
7865 IFS="$lt_save_ifs"
7867 esac
7868 else
7869 enable_fast_install=yes
7882 # This can be used to rebuild libtool when needed
7883 LIBTOOL_DEPS="$ltmain"
7885 # Always use our own libtool.
7886 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7917 test -z "$LN_S" && LN_S="ln -s"
7932 if test -n "${ZSH_VERSION+set}" ; then
7933 setopt NO_GLOB_SUBST
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7937 $as_echo_n "checking for objdir... " >&6; }
7938 if ${lt_cv_objdir+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 rm -f .libs 2>/dev/null
7942 mkdir .libs 2>/dev/null
7943 if test -d .libs; then
7944 lt_cv_objdir=.libs
7945 else
7946 # MS-DOS does not allow filenames that begin with a dot.
7947 lt_cv_objdir=_libs
7949 rmdir .libs 2>/dev/null
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7952 $as_echo "$lt_cv_objdir" >&6; }
7953 objdir=$lt_cv_objdir
7959 cat >>confdefs.h <<_ACEOF
7960 #define LT_OBJDIR "$lt_cv_objdir/"
7961 _ACEOF
7966 case $host_os in
7967 aix3*)
7968 # AIX sometimes has problems with the GCC collect2 program. For some
7969 # reason, if we set the COLLECT_NAMES environment variable, the problems
7970 # vanish in a puff of smoke.
7971 if test "X${COLLECT_NAMES+set}" != Xset; then
7972 COLLECT_NAMES=
7973 export COLLECT_NAMES
7976 esac
7978 # Global variables:
7979 ofile=libtool
7980 can_build_shared=yes
7982 # All known linkers require a `.a' archive for static linking (except MSVC,
7983 # which needs '.lib').
7984 libext=a
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7988 old_CC="$CC"
7989 old_CFLAGS="$CFLAGS"
7991 # Set sane defaults for various variables
7992 test -z "$CC" && CC=cc
7993 test -z "$LTCC" && LTCC=$CC
7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7995 test -z "$LD" && LD=ld
7996 test -z "$ac_objext" && ac_objext=o
7998 for cc_temp in $compiler""; do
7999 case $cc_temp in
8000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8002 \-*) ;;
8003 *) break;;
8004 esac
8005 done
8006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8009 # Only perform the check for file, if the check method requires it
8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8011 case $deplibs_check_method in
8012 file_magic*)
8013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8015 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8016 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 case $MAGIC_CMD in
8020 [\\/*] | ?:[\\/]*)
8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8024 lt_save_MAGIC_CMD="$MAGIC_CMD"
8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027 for ac_dir in $ac_dummy; do
8028 IFS="$lt_save_ifs"
8029 test -z "$ac_dir" && ac_dir=.
8030 if test -f $ac_dir/${ac_tool_prefix}file; then
8031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8032 if test -n "$file_magic_test_file"; then
8033 case $deplibs_check_method in
8034 "file_magic "*)
8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038 $EGREP "$file_magic_regex" > /dev/null; then
8040 else
8041 cat <<_LT_EOF 1>&2
8043 *** Warning: the command libtool uses to detect shared libraries,
8044 *** $file_magic_cmd, produces output that libtool cannot recognize.
8045 *** The result is that libtool may fail to recognize shared libraries
8046 *** as such. This will affect the creation of libtool libraries that
8047 *** depend on shared libraries, but programs linked with such libtool
8048 *** libraries will work regardless of this problem. Nevertheless, you
8049 *** may want to report the problem to your system manager and/or to
8050 *** bug-libtool@gnu.org
8052 _LT_EOF
8053 fi ;;
8054 esac
8056 break
8058 done
8059 IFS="$lt_save_ifs"
8060 MAGIC_CMD="$lt_save_MAGIC_CMD"
8062 esac
8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066 if test -n "$MAGIC_CMD"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8068 $as_echo "$MAGIC_CMD" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8078 if test -z "$lt_cv_path_MAGIC_CMD"; then
8079 if test -n "$ac_tool_prefix"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8081 $as_echo_n "checking for file... " >&6; }
8082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 case $MAGIC_CMD in
8086 [\\/*] | ?:[\\/]*)
8087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8090 lt_save_MAGIC_CMD="$MAGIC_CMD"
8091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8093 for ac_dir in $ac_dummy; do
8094 IFS="$lt_save_ifs"
8095 test -z "$ac_dir" && ac_dir=.
8096 if test -f $ac_dir/file; then
8097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8098 if test -n "$file_magic_test_file"; then
8099 case $deplibs_check_method in
8100 "file_magic "*)
8101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8104 $EGREP "$file_magic_regex" > /dev/null; then
8106 else
8107 cat <<_LT_EOF 1>&2
8109 *** Warning: the command libtool uses to detect shared libraries,
8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
8111 *** The result is that libtool may fail to recognize shared libraries
8112 *** as such. This will affect the creation of libtool libraries that
8113 *** depend on shared libraries, but programs linked with such libtool
8114 *** libraries will work regardless of this problem. Nevertheless, you
8115 *** may want to report the problem to your system manager and/or to
8116 *** bug-libtool@gnu.org
8118 _LT_EOF
8119 fi ;;
8120 esac
8122 break
8124 done
8125 IFS="$lt_save_ifs"
8126 MAGIC_CMD="$lt_save_MAGIC_CMD"
8128 esac
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132 if test -n "$MAGIC_CMD"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8134 $as_echo "$MAGIC_CMD" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 else
8142 MAGIC_CMD=:
8148 esac
8150 # Use C for the default configuration in the libtool script
8152 lt_save_CC="$CC"
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 # Source file extension for C test sources.
8161 ac_ext=c
8163 # Object file extension for compiled C test sources.
8164 objext=o
8165 objext=$objext
8167 # Code to be used in simple compile tests
8168 lt_simple_compile_test_code="int some_variable = 0;"
8170 # Code to be used in simple link tests
8171 lt_simple_link_test_code='int main(){return(0);}'
8179 # If no C compiler was specified, use CC.
8180 LTCC=${LTCC-"$CC"}
8182 # If no C compiler flags were specified, use CFLAGS.
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8185 # Allow CC to be a program name with arguments.
8186 compiler=$CC
8188 # Save the default compiler, since it gets overwritten when the other
8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8190 compiler_DEFAULT=$CC
8192 # save warnings/boilerplate of simple test code
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8196 _lt_compiler_boilerplate=`cat conftest.err`
8197 $RM conftest*
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8202 _lt_linker_boilerplate=`cat conftest.err`
8203 $RM -r conftest*
8206 ## CAVEAT EMPTOR:
8207 ## There is no encapsulation within the following macros, do not change
8208 ## the running order or otherwise move them around unless you know exactly
8209 ## what you are doing...
8210 if test -n "$compiler"; then
8212 lt_prog_compiler_no_builtin_flag=
8214 if test "$GCC" = yes; then
8215 case $cc_basename in
8216 nvcc*)
8217 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8219 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8220 esac
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8223 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8224 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 lt_cv_prog_compiler_rtti_exceptions=no
8228 ac_outfile=conftest.$ac_objext
8229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8230 lt_compiler_flag="-fno-rtti -fno-exceptions"
8231 # Insert the option either (1) after the last *FLAGS variable, or
8232 # (2) before a word containing "conftest.", or (3) at the end.
8233 # Note that $ac_compile itself does not contain backslashes and begins
8234 # with a dollar sign (not a hyphen), so the echo should work correctly.
8235 # The option is referenced via a variable to avoid confusing sed.
8236 lt_compile=`echo "$ac_compile" | $SED \
8237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8239 -e 's:$: $lt_compiler_flag:'`
8240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8241 (eval "$lt_compile" 2>conftest.err)
8242 ac_status=$?
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 if (exit $ac_status) && test -s "$ac_outfile"; then
8246 # The compiler can only warn and ignore the option if not recognized
8247 # So say no if there are warnings other than the usual output.
8248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8251 lt_cv_prog_compiler_rtti_exceptions=yes
8254 $RM conftest*
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8258 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8260 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8261 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8262 else
8273 lt_prog_compiler_wl=
8274 lt_prog_compiler_pic=
8275 lt_prog_compiler_static=
8278 if test "$GCC" = yes; then
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_static='-static'
8282 case $host_os in
8283 aix*)
8284 # All AIX code is PIC.
8285 if test "$host_cpu" = ia64; then
8286 # AIX 5 now supports IA64 processor
8287 lt_prog_compiler_static='-Bstatic'
8291 amigaos*)
8292 case $host_cpu in
8293 powerpc)
8294 # see comment about AmigaOS4 .so support
8295 lt_prog_compiler_pic='-fPIC'
8297 m68k)
8298 # FIXME: we need at least 68020 code to build shared libraries, but
8299 # adding the `-m68020' flag to GCC prevents building anything better,
8300 # like `-m68040'.
8301 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8303 esac
8306 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8307 # PIC is the default for these OSes.
8310 mingw* | cygwin* | pw32* | os2* | cegcc*)
8311 # This hack is so that the source file can tell whether it is being
8312 # built for inclusion in a dll (and should export symbols for example).
8313 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8314 # (--disable-auto-import) libraries
8315 lt_prog_compiler_pic='-DDLL_EXPORT'
8318 darwin* | rhapsody*)
8319 # PIC is the default on this platform
8320 # Common symbols not allowed in MH_DYLIB files
8321 lt_prog_compiler_pic='-fno-common'
8324 haiku*)
8325 # PIC is the default for Haiku.
8326 # The "-static" flag exists, but is broken.
8327 lt_prog_compiler_static=
8330 hpux*)
8331 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8332 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8333 # sets the default TLS model and affects inlining.
8334 case $host_cpu in
8335 hppa*64*)
8336 # +Z the default
8339 lt_prog_compiler_pic='-fPIC'
8341 esac
8344 interix[3-9]*)
8345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8346 # Instead, we relocate shared libraries at runtime.
8349 msdosdjgpp*)
8350 # Just because we use GCC doesn't mean we suddenly get shared libraries
8351 # on systems that don't support them.
8352 lt_prog_compiler_can_build_shared=no
8353 enable_shared=no
8356 *nto* | *qnx*)
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8358 # it will coredump.
8359 lt_prog_compiler_pic='-fPIC -shared'
8362 sysv4*MP*)
8363 if test -d /usr/nec; then
8364 lt_prog_compiler_pic=-Kconform_pic
8369 lt_prog_compiler_pic='-fPIC'
8371 esac
8373 case $cc_basename in
8374 nvcc*) # Cuda Compiler Driver 2.2
8375 lt_prog_compiler_wl='-Xlinker '
8376 if test -n "$lt_prog_compiler_pic"; then
8377 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8380 esac
8381 else
8382 # PORTME Check for flag to pass linker flags through the system compiler.
8383 case $host_os in
8384 aix*)
8385 lt_prog_compiler_wl='-Wl,'
8386 if test "$host_cpu" = ia64; then
8387 # AIX 5 now supports IA64 processor
8388 lt_prog_compiler_static='-Bstatic'
8389 else
8390 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8394 mingw* | cygwin* | pw32* | os2* | cegcc*)
8395 # This hack is so that the source file can tell whether it is being
8396 # built for inclusion in a dll (and should export symbols for example).
8397 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 hpux9* | hpux10* | hpux11*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8403 # not for PA HP-UX.
8404 case $host_cpu in
8405 hppa*64*|ia64*)
8406 # +Z the default
8409 lt_prog_compiler_pic='+Z'
8411 esac
8412 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8413 lt_prog_compiler_static='${wl}-a ${wl}archive'
8416 irix5* | irix6* | nonstopux*)
8417 lt_prog_compiler_wl='-Wl,'
8418 # PIC (with -KPIC) is the default.
8419 lt_prog_compiler_static='-non_shared'
8422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8423 case $cc_basename in
8424 # old Intel for x86_64 which still supported -KPIC.
8425 ecc*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-static'
8430 # icc used to be incompatible with GCC.
8431 # ICC 10 doesn't accept -KPIC any more.
8432 icc* | ifort*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-fPIC'
8435 lt_prog_compiler_static='-static'
8437 # Lahey Fortran 8.1.
8438 lf95*)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='--shared'
8441 lt_prog_compiler_static='--static'
8443 nagfor*)
8444 # NAG Fortran compiler
8445 lt_prog_compiler_wl='-Wl,-Wl,,'
8446 lt_prog_compiler_pic='-PIC'
8447 lt_prog_compiler_static='-Bstatic'
8449 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8450 # Portland Group compilers (*not* the Pentium gcc compiler,
8451 # which looks to be a dead project)
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_pic='-fpic'
8454 lt_prog_compiler_static='-Bstatic'
8456 ccc*)
8457 lt_prog_compiler_wl='-Wl,'
8458 # All Alpha code is PIC.
8459 lt_prog_compiler_static='-non_shared'
8461 xl* | bgxl* | bgf* | mpixl*)
8462 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-qpic'
8465 lt_prog_compiler_static='-qstaticlink'
8468 case `$CC -V 2>&1 | sed 5q` in
8469 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8470 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8471 lt_prog_compiler_pic='-KPIC'
8472 lt_prog_compiler_static='-Bstatic'
8473 lt_prog_compiler_wl=''
8475 *Sun\ F* | *Sun*Fortran*)
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl='-Qoption ld '
8480 *Sun\ C*)
8481 # Sun C 5.9
8482 lt_prog_compiler_pic='-KPIC'
8483 lt_prog_compiler_static='-Bstatic'
8484 lt_prog_compiler_wl='-Wl,'
8486 *Intel*\ [CF]*Compiler*)
8487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-fPIC'
8489 lt_prog_compiler_static='-static'
8491 *Portland\ Group*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-fpic'
8494 lt_prog_compiler_static='-Bstatic'
8496 esac
8498 esac
8501 newsos6)
8502 lt_prog_compiler_pic='-KPIC'
8503 lt_prog_compiler_static='-Bstatic'
8506 *nto* | *qnx*)
8507 # QNX uses GNU C++, but need to define -shared option too, otherwise
8508 # it will coredump.
8509 lt_prog_compiler_pic='-fPIC -shared'
8512 osf3* | osf4* | osf5*)
8513 lt_prog_compiler_wl='-Wl,'
8514 # All OSF/1 code is PIC.
8515 lt_prog_compiler_static='-non_shared'
8518 rdos*)
8519 lt_prog_compiler_static='-non_shared'
8522 solaris*)
8523 lt_prog_compiler_pic='-KPIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 case $cc_basename in
8526 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8527 lt_prog_compiler_wl='-Qoption ld ';;
8529 lt_prog_compiler_wl='-Wl,';;
8530 esac
8533 sunos4*)
8534 lt_prog_compiler_wl='-Qoption ld '
8535 lt_prog_compiler_pic='-PIC'
8536 lt_prog_compiler_static='-Bstatic'
8539 sysv4 | sysv4.2uw2* | sysv4.3*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-Bstatic'
8545 sysv4*MP*)
8546 if test -d /usr/nec ;then
8547 lt_prog_compiler_pic='-Kconform_pic'
8548 lt_prog_compiler_static='-Bstatic'
8552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-Bstatic'
8558 unicos*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_can_build_shared=no
8563 uts4*)
8564 lt_prog_compiler_pic='-pic'
8565 lt_prog_compiler_static='-Bstatic'
8569 lt_prog_compiler_can_build_shared=no
8571 esac
8574 case $host_os in
8575 # For platforms which do not support PIC, -DPIC is meaningless:
8576 *djgpp*)
8577 lt_prog_compiler_pic=
8580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8582 esac
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8585 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8586 if ${lt_cv_prog_compiler_pic+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8592 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8593 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8596 # Check to make sure the PIC flag actually works.
8598 if test -n "$lt_prog_compiler_pic"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8600 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8601 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 lt_cv_prog_compiler_pic_works=no
8605 ac_outfile=conftest.$ac_objext
8606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 # The option is referenced via a variable to avoid confusing sed.
8613 lt_compile=`echo "$ac_compile" | $SED \
8614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616 -e 's:$: $lt_compiler_flag:'`
8617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618 (eval "$lt_compile" 2>conftest.err)
8619 ac_status=$?
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 if (exit $ac_status) && test -s "$ac_outfile"; then
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings other than the usual output.
8625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8627 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8628 lt_cv_prog_compiler_pic_works=yes
8631 $RM conftest*
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8635 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8637 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8638 case $lt_prog_compiler_pic in
8639 "" | " "*) ;;
8640 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8641 esac
8642 else
8643 lt_prog_compiler_pic=
8644 lt_prog_compiler_can_build_shared=no
8660 # Check to make sure the static flag actually works.
8662 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8664 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8665 if ${lt_cv_prog_compiler_static_works+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 lt_cv_prog_compiler_static_works=no
8669 save_LDFLAGS="$LDFLAGS"
8670 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8671 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8673 # The linker can only warn and ignore the option if not recognized
8674 # So say no if there are warnings
8675 if test -s conftest.err; then
8676 # Append any errors to the config.log.
8677 cat conftest.err 1>&5
8678 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8680 if diff conftest.exp conftest.er2 >/dev/null; then
8681 lt_cv_prog_compiler_static_works=yes
8683 else
8684 lt_cv_prog_compiler_static_works=yes
8687 $RM -r conftest*
8688 LDFLAGS="$save_LDFLAGS"
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8692 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8694 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8696 else
8697 lt_prog_compiler_static=
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8707 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8708 if ${lt_cv_prog_compiler_c_o+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 lt_cv_prog_compiler_c_o=no
8712 $RM -r conftest 2>/dev/null
8713 mkdir conftest
8714 cd conftest
8715 mkdir out
8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718 lt_compiler_flag="-o out/conftest2.$ac_objext"
8719 # Insert the option either (1) after the last *FLAGS variable, or
8720 # (2) before a word containing "conftest.", or (3) at the end.
8721 # Note that $ac_compile itself does not contain backslashes and begins
8722 # with a dollar sign (not a hyphen), so the echo should work correctly.
8723 lt_compile=`echo "$ac_compile" | $SED \
8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726 -e 's:$: $lt_compiler_flag:'`
8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728 (eval "$lt_compile" 2>out/conftest.err)
8729 ac_status=$?
8730 cat out/conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8733 then
8734 # The compiler can only warn and ignore the option if not recognized
8735 # So say no if there are warnings
8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8739 lt_cv_prog_compiler_c_o=yes
8742 chmod u+w . 2>&5
8743 $RM conftest*
8744 # SGI C++ compiler will create directory out/ii_files/ for
8745 # template instantiation
8746 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8747 $RM out/* && rmdir out
8748 cd ..
8749 $RM -r conftest
8750 $RM conftest*
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8754 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8763 if ${lt_cv_prog_compiler_c_o+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 lt_cv_prog_compiler_c_o=no
8767 $RM -r conftest 2>/dev/null
8768 mkdir conftest
8769 cd conftest
8770 mkdir out
8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 lt_compiler_flag="-o out/conftest2.$ac_objext"
8774 # Insert the option either (1) after the last *FLAGS variable, or
8775 # (2) before a word containing "conftest.", or (3) at the end.
8776 # Note that $ac_compile itself does not contain backslashes and begins
8777 # with a dollar sign (not a hyphen), so the echo should work correctly.
8778 lt_compile=`echo "$ac_compile" | $SED \
8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781 -e 's:$: $lt_compiler_flag:'`
8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783 (eval "$lt_compile" 2>out/conftest.err)
8784 ac_status=$?
8785 cat out/conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8788 then
8789 # The compiler can only warn and ignore the option if not recognized
8790 # So say no if there are warnings
8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8794 lt_cv_prog_compiler_c_o=yes
8797 chmod u+w . 2>&5
8798 $RM conftest*
8799 # SGI C++ compiler will create directory out/ii_files/ for
8800 # template instantiation
8801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8802 $RM out/* && rmdir out
8803 cd ..
8804 $RM -r conftest
8805 $RM conftest*
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8814 hard_links="nottested"
8815 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8816 # do not overwrite the value of need_locks provided by the user
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8818 $as_echo_n "checking if we can lock with hard links... " >&6; }
8819 hard_links=yes
8820 $RM conftest*
8821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8822 touch conftest.a
8823 ln conftest.a conftest.b 2>&5 || hard_links=no
8824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8826 $as_echo "$hard_links" >&6; }
8827 if test "$hard_links" = no; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8830 need_locks=warn
8832 else
8833 need_locks=no
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8844 runpath_var=
8845 allow_undefined_flag=
8846 always_export_symbols=no
8847 archive_cmds=
8848 archive_expsym_cmds=
8849 compiler_needs_object=no
8850 enable_shared_with_static_runtimes=no
8851 export_dynamic_flag_spec=
8852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8853 hardcode_automatic=no
8854 hardcode_direct=no
8855 hardcode_direct_absolute=no
8856 hardcode_libdir_flag_spec=
8857 hardcode_libdir_separator=
8858 hardcode_minus_L=no
8859 hardcode_shlibpath_var=unsupported
8860 inherit_rpath=no
8861 link_all_deplibs=unknown
8862 module_cmds=
8863 module_expsym_cmds=
8864 old_archive_from_new_cmds=
8865 old_archive_from_expsyms_cmds=
8866 thread_safe_flag_spec=
8867 whole_archive_flag_spec=
8868 # include_expsyms should be a list of space-separated symbols to be *always*
8869 # included in the symbol list
8870 include_expsyms=
8871 # exclude_expsyms can be an extended regexp of symbols to exclude
8872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8874 # as well as any symbol that contains `d'.
8875 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8877 # platforms (ab)use it in PIC code, but their linkers get confused if
8878 # the symbol is explicitly referenced. Since portable code cannot
8879 # rely on this symbol name, it's probably fine to never include it in
8880 # preloaded symbol tables.
8881 # Exclude shared library initialization/finalization symbols.
8882 extract_expsyms_cmds=
8884 case $host_os in
8885 cygwin* | mingw* | pw32* | cegcc*)
8886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8887 # When not using gcc, we currently assume that we are using
8888 # Microsoft Visual C++.
8889 if test "$GCC" != yes; then
8890 with_gnu_ld=no
8893 interix*)
8894 # we just hope/assume this is gcc and not c89 (= MSVC++)
8895 with_gnu_ld=yes
8897 openbsd*)
8898 with_gnu_ld=no
8900 linux* | k*bsd*-gnu | gnu*)
8901 link_all_deplibs=no
8903 esac
8905 ld_shlibs=yes
8907 # On some targets, GNU ld is compatible enough with the native linker
8908 # that we're better off using the native interface for both.
8909 lt_use_gnu_ld_interface=no
8910 if test "$with_gnu_ld" = yes; then
8911 case $host_os in
8912 aix*)
8913 # The AIX port of GNU ld has always aspired to compatibility
8914 # with the native linker. However, as the warning in the GNU ld
8915 # block says, versions before 2.19.5* couldn't really create working
8916 # shared libraries, regardless of the interface used.
8917 case `$LD -v 2>&1` in
8918 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8919 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8920 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8922 lt_use_gnu_ld_interface=yes
8924 esac
8927 lt_use_gnu_ld_interface=yes
8929 esac
8932 if test "$lt_use_gnu_ld_interface" = yes; then
8933 # If archive_cmds runs LD, not CC, wlarc should be empty
8934 wlarc='${wl}'
8936 # Set some defaults for GNU ld with shared library support. These
8937 # are reset later if shared libraries are not supported. Putting them
8938 # here allows them to be overridden if necessary.
8939 runpath_var=LD_RUN_PATH
8940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941 export_dynamic_flag_spec='${wl}--export-dynamic'
8942 # ancient GNU ld didn't support --whole-archive et. al.
8943 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8944 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8945 else
8946 whole_archive_flag_spec=
8948 supports_anon_versioning=no
8949 case `$LD -v 2>&1` in
8950 *GNU\ gold*) supports_anon_versioning=yes ;;
8951 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8952 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8953 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8954 *\ 2.11.*) ;; # other 2.11 versions
8955 *) supports_anon_versioning=yes ;;
8956 esac
8958 # See if GNU ld supports shared libraries.
8959 case $host_os in
8960 aix[3-9]*)
8961 # On AIX/PPC, the GNU linker is very broken
8962 if test "$host_cpu" != ia64; then
8963 ld_shlibs=no
8964 cat <<_LT_EOF 1>&2
8966 *** Warning: the GNU linker, at least up to release 2.19, is reported
8967 *** to be unable to reliably create shared libraries on AIX.
8968 *** Therefore, libtool is disabling shared libraries support. If you
8969 *** really care for shared libraries, you may want to install binutils
8970 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8971 *** You will then need to restart the configuration process.
8973 _LT_EOF
8977 amigaos*)
8978 case $host_cpu in
8979 powerpc)
8980 # see comment about AmigaOS4 .so support
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds=''
8984 m68k)
8985 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)'
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_minus_L=yes
8989 esac
8992 beos*)
8993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8994 allow_undefined_flag=unsupported
8995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8996 # support --undefined. This deserves some investigation. FIXME
8997 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 else
8999 ld_shlibs=no
9003 cygwin* | mingw* | pw32* | cegcc*)
9004 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9005 # as there is no search path for DLLs.
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 export_dynamic_flag_spec='${wl}--export-all-symbols'
9008 allow_undefined_flag=unsupported
9009 always_export_symbols=no
9010 enable_shared_with_static_runtimes=yes
9011 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'
9012 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9014 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9016 # If the export-symbols file already is a .def file (1st line
9017 # is EXPORTS), use it as is; otherwise, prepend...
9018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9019 cp $export_symbols $output_objdir/$soname.def;
9020 else
9021 echo EXPORTS > $output_objdir/$soname.def;
9022 cat $export_symbols >> $output_objdir/$soname.def;
9024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9025 else
9026 ld_shlibs=no
9030 haiku*)
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 link_all_deplibs=yes
9035 interix[3-9]*)
9036 hardcode_direct=no
9037 hardcode_shlibpath_var=no
9038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039 export_dynamic_flag_spec='${wl}-E'
9040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9041 # Instead, shared libraries are loaded at an image base (0x10000000 by
9042 # default) and relocated if they conflict, which is a slow very memory
9043 # consuming and fragmenting process. To avoid this, we pick a random,
9044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9047 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'
9050 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9051 tmp_diet=no
9052 if test "$host_os" = linux-dietlibc; then
9053 case $cc_basename in
9054 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9055 esac
9057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9058 && test "$tmp_diet" = no
9059 then
9060 tmp_addflag=' $pic_flag'
9061 tmp_sharedflag='-shared'
9062 case $cc_basename,$host_cpu in
9063 pgcc*) # Portland Group C compiler
9064 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'
9065 tmp_addflag=' $pic_flag'
9067 pgf77* | pgf90* | pgf95* | pgfortran*)
9068 # Portland Group f77 and f90 compilers
9069 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'
9070 tmp_addflag=' $pic_flag -Mnomain' ;;
9071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9072 tmp_addflag=' -i_dynamic' ;;
9073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9074 tmp_addflag=' -i_dynamic -nofor_main' ;;
9075 ifc* | ifort*) # Intel Fortran compiler
9076 tmp_addflag=' -nofor_main' ;;
9077 lf95*) # Lahey Fortran 8.1
9078 whole_archive_flag_spec=
9079 tmp_sharedflag='--shared' ;;
9080 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9081 tmp_sharedflag='-qmkshrobj'
9082 tmp_addflag= ;;
9083 nvcc*) # Cuda Compiler Driver 2.2
9084 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'
9085 compiler_needs_object=yes
9087 esac
9088 case `$CC -V 2>&1 | sed 5q` in
9089 *Sun\ C*) # Sun C 5.9
9090 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'
9091 compiler_needs_object=yes
9092 tmp_sharedflag='-G' ;;
9093 *Sun\ F*) # Sun Fortran 8.3
9094 tmp_sharedflag='-G' ;;
9095 esac
9096 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 if test "x$supports_anon_versioning" = xyes; then
9099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9101 echo "local: *; };" >> $output_objdir/$libname.ver~
9102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9105 case $cc_basename in
9106 xlf* | bgf* | bgxlf* | mpixlf*)
9107 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9108 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9110 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9111 if test "x$supports_anon_versioning" = xyes; then
9112 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9113 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9114 echo "local: *; };" >> $output_objdir/$libname.ver~
9115 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9118 esac
9119 else
9120 ld_shlibs=no
9124 netbsd* | netbsdelf*-gnu)
9125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9126 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9127 wlarc=
9128 else
9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9134 solaris*)
9135 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9136 ld_shlibs=no
9137 cat <<_LT_EOF 1>&2
9139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9140 *** create shared libraries on Solaris systems. Therefore, libtool
9141 *** is disabling shared libraries support. We urge you to upgrade GNU
9142 *** binutils to release 2.9.1 or newer. Another option is to modify
9143 *** your PATH or compiler configuration so that the native linker is
9144 *** used, and then restart.
9146 _LT_EOF
9147 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150 else
9151 ld_shlibs=no
9155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9156 case `$LD -v 2>&1` in
9157 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9158 ld_shlibs=no
9159 cat <<_LT_EOF 1>&2
9161 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9162 *** reliably create shared libraries on SCO systems. Therefore, libtool
9163 *** is disabling shared libraries support. We urge you to upgrade GNU
9164 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9165 *** your PATH or compiler configuration so that the native linker is
9166 *** used, and then restart.
9168 _LT_EOF
9171 # For security reasons, it is highly recommended that you always
9172 # use absolute paths for naming shared libraries, and exclude the
9173 # DT_RUNPATH tag from executables and libraries. But doing so
9174 # requires that you compile everything twice, which is a pain.
9175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9179 else
9180 ld_shlibs=no
9183 esac
9186 sunos4*)
9187 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9188 wlarc=
9189 hardcode_direct=yes
9190 hardcode_shlibpath_var=no
9194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9195 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9197 else
9198 ld_shlibs=no
9201 esac
9203 if test "$ld_shlibs" = no; then
9204 runpath_var=
9205 hardcode_libdir_flag_spec=
9206 export_dynamic_flag_spec=
9207 whole_archive_flag_spec=
9209 else
9210 # PORTME fill in a description of your system's linker (not GNU ld)
9211 case $host_os in
9212 aix3*)
9213 allow_undefined_flag=unsupported
9214 always_export_symbols=yes
9215 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'
9216 # Note: this linker hardcodes the directories in LIBPATH if there
9217 # are no directories specified by -L.
9218 hardcode_minus_L=yes
9219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9220 # Neither direct hardcoding nor static linking is supported with a
9221 # broken collect2.
9222 hardcode_direct=unsupported
9226 aix[4-9]*)
9227 if test "$host_cpu" = ia64; then
9228 # On IA64, the linker does run time linking by default, so we don't
9229 # have to do anything special.
9230 aix_use_runtimelinking=no
9231 exp_sym_flag='-Bexport'
9232 no_entry_flag=""
9233 else
9234 # If we're using GNU nm, then we don't want the "-C" option.
9235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9236 # Also, AIX nm treats weak defined symbols like other global
9237 # defined symbols, whereas GNU nm marks them as "W".
9238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9239 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'
9240 else
9241 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'
9243 aix_use_runtimelinking=no
9245 # Test if we are trying to use run time linking or normal
9246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9247 # need to do runtime linking.
9248 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9249 for ld_flag in $LDFLAGS; do
9250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9251 aix_use_runtimelinking=yes
9252 break
9254 done
9256 esac
9258 exp_sym_flag='-bexport'
9259 no_entry_flag='-bnoentry'
9262 # When large executables or shared objects are built, AIX ld can
9263 # have problems creating the table of contents. If linking a library
9264 # or program results in "error TOC overflow" add -mminimal-toc to
9265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9268 archive_cmds=''
9269 hardcode_direct=yes
9270 hardcode_direct_absolute=yes
9271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
9273 file_list_spec='${wl}-f,'
9275 if test "$GCC" = yes; then
9276 case $host_os in aix4.[012]|aix4.[012].*)
9277 # We only want to do this on AIX 4.2 and lower, the check
9278 # below for broken collect2 doesn't work under 4.3+
9279 collect2name=`${CC} -print-prog-name=collect2`
9280 if test -f "$collect2name" &&
9281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9282 then
9283 # We have reworked collect2
9285 else
9286 # We have old collect2
9287 hardcode_direct=unsupported
9288 # It fails to find uninstalled libraries when the uninstalled
9289 # path is not listed in the libpath. Setting hardcode_minus_L
9290 # to unsupported forces relinking
9291 hardcode_minus_L=yes
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_libdir_separator=
9296 esac
9297 shared_flag='-shared'
9298 if test "$aix_use_runtimelinking" = yes; then
9299 shared_flag="$shared_flag "'${wl}-G'
9301 link_all_deplibs=no
9302 else
9303 # not using gcc
9304 if test "$host_cpu" = ia64; then
9305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9306 # chokes on -Wl,-G. The following line is correct:
9307 shared_flag='-G'
9308 else
9309 if test "$aix_use_runtimelinking" = yes; then
9310 shared_flag='${wl}-G'
9311 else
9312 shared_flag='${wl}-bM:SRE'
9317 export_dynamic_flag_spec='${wl}-bexpall'
9318 # It seems that -bexpall does not export symbols beginning with
9319 # underscore (_), so it is better to generate a list of symbols to export.
9320 always_export_symbols=yes
9321 if test "$aix_use_runtimelinking" = yes; then
9322 # Warning - without using the other runtime loading flags (-brtl),
9323 # -berok will link without error, but may produce a broken library.
9324 allow_undefined_flag='-berok'
9325 # Determine the default libpath from the value encoded in an
9326 # empty executable.
9327 if test "${lt_cv_aix_libpath+set}" = set; then
9328 aix_libpath=$lt_cv_aix_libpath
9329 else
9330 if ${lt_cv_aix_libpath_+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9337 main ()
9341 return 0;
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9346 lt_aix_libpath_sed='
9347 /Import File Strings/,/^$/ {
9348 /^0/ {
9349 s/^0 *\([^ ]*\) *$/\1/
9353 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9354 # Check for a 64-bit object if we didn't find anything.
9355 if test -z "$lt_cv_aix_libpath_"; then
9356 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359 rm -f core conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 if test -z "$lt_cv_aix_libpath_"; then
9362 lt_cv_aix_libpath_="/usr/lib:/lib"
9367 aix_libpath=$lt_cv_aix_libpath_
9370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9371 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"
9372 else
9373 if test "$host_cpu" = ia64; then
9374 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9375 allow_undefined_flag="-z nodefs"
9376 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"
9377 else
9378 # Determine the default libpath from the value encoded in an
9379 # empty executable.
9380 if test "${lt_cv_aix_libpath+set}" = set; then
9381 aix_libpath=$lt_cv_aix_libpath
9382 else
9383 if ${lt_cv_aix_libpath_+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9390 main ()
9394 return 0;
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9399 lt_aix_libpath_sed='
9400 /Import File Strings/,/^$/ {
9401 /^0/ {
9402 s/^0 *\([^ ]*\) *$/\1/
9406 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9407 # Check for a 64-bit object if we didn't find anything.
9408 if test -z "$lt_cv_aix_libpath_"; then
9409 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9412 rm -f core conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 if test -z "$lt_cv_aix_libpath_"; then
9415 lt_cv_aix_libpath_="/usr/lib:/lib"
9420 aix_libpath=$lt_cv_aix_libpath_
9423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9424 # Warning - without using the other run time loading flags,
9425 # -berok will link without error, but may produce a broken library.
9426 no_undefined_flag=' ${wl}-bernotok'
9427 allow_undefined_flag=' ${wl}-berok'
9428 if test "$with_gnu_ld" = yes; then
9429 # We only use this code for GNU lds that support --whole-archive.
9430 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9431 else
9432 # Exported symbols can be pulled into shared objects from archives
9433 whole_archive_flag_spec='$convenience'
9435 archive_cmds_need_lc=yes
9436 # This is similar to how AIX traditionally builds its shared libraries.
9437 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'
9442 amigaos*)
9443 case $host_cpu in
9444 powerpc)
9445 # see comment about AmigaOS4 .so support
9446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 archive_expsym_cmds=''
9449 m68k)
9450 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)'
9451 hardcode_libdir_flag_spec='-L$libdir'
9452 hardcode_minus_L=yes
9454 esac
9457 bsdi[45]*)
9458 export_dynamic_flag_spec=-rdynamic
9461 cygwin* | mingw* | pw32* | cegcc*)
9462 # When not using gcc, we currently assume that we are using
9463 # Microsoft Visual C++.
9464 # hardcode_libdir_flag_spec is actually meaningless, as there is
9465 # no search path for DLLs.
9466 case $cc_basename in
9467 cl*)
9468 # Native MSVC
9469 hardcode_libdir_flag_spec=' '
9470 allow_undefined_flag=unsupported
9471 always_export_symbols=yes
9472 file_list_spec='@'
9473 # Tell ltmain to make .lib files, not .a files.
9474 libext=lib
9475 # Tell ltmain to make .dll files, not .so files.
9476 shrext_cmds=".dll"
9477 # FIXME: Setting linknames here is a bad hack.
9478 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9479 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9480 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9481 else
9482 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9484 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9485 linknames='
9486 # The linker will not automatically build a static lib if we build a DLL.
9487 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9488 enable_shared_with_static_runtimes=yes
9489 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9491 # Don't use ranlib
9492 old_postinstall_cmds='chmod 644 $oldlib'
9493 postlink_cmds='lt_outputfile="@OUTPUT@"~
9494 lt_tool_outputfile="@TOOL_OUTPUT@"~
9495 case $lt_outputfile in
9496 *.exe|*.EXE) ;;
9498 lt_outputfile="$lt_outputfile.exe"
9499 lt_tool_outputfile="$lt_tool_outputfile.exe"
9501 esac~
9502 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9503 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9504 $RM "$lt_outputfile.manifest";
9508 # Assume MSVC wrapper
9509 hardcode_libdir_flag_spec=' '
9510 allow_undefined_flag=unsupported
9511 # Tell ltmain to make .lib files, not .a files.
9512 libext=lib
9513 # Tell ltmain to make .dll files, not .so files.
9514 shrext_cmds=".dll"
9515 # FIXME: Setting linknames here is a bad hack.
9516 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9517 # The linker will automatically build a .lib file if we build a DLL.
9518 old_archive_from_new_cmds='true'
9519 # FIXME: Should let the user specify the lib program.
9520 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9521 enable_shared_with_static_runtimes=yes
9523 esac
9526 darwin* | rhapsody*)
9529 archive_cmds_need_lc=no
9530 hardcode_direct=no
9531 hardcode_automatic=yes
9532 hardcode_shlibpath_var=unsupported
9533 if test "$lt_cv_ld_force_load" = "yes"; then
9534 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\"`'
9536 else
9537 whole_archive_flag_spec=''
9539 link_all_deplibs=yes
9540 allow_undefined_flag="$_lt_dar_allow_undefined"
9541 case $cc_basename in
9542 ifort*) _lt_dar_can_shared=yes ;;
9543 *) _lt_dar_can_shared=$GCC ;;
9544 esac
9545 if test "$_lt_dar_can_shared" = "yes"; then
9546 output_verbose_link_cmd=func_echo_all
9547 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9548 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9549 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}"
9550 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}"
9552 else
9553 ld_shlibs=no
9558 dgux*)
9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_shlibpath_var=no
9564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9565 # support. Future versions do this automatically, but an explicit c++rt0.o
9566 # does not break anything, and helps significantly (at the cost of a little
9567 # extra space).
9568 freebsd2.2*)
9569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9570 hardcode_libdir_flag_spec='-R$libdir'
9571 hardcode_direct=yes
9572 hardcode_shlibpath_var=no
9575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9576 freebsd2.*)
9577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_direct=yes
9579 hardcode_minus_L=yes
9580 hardcode_shlibpath_var=no
9583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9584 freebsd* | dragonfly*)
9585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9591 hpux9*)
9592 if test "$GCC" = yes; then
9593 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'
9594 else
9595 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'
9597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9598 hardcode_libdir_separator=:
9599 hardcode_direct=yes
9601 # hardcode_minus_L: Not really in the search PATH,
9602 # but as the default location of the library.
9603 hardcode_minus_L=yes
9604 export_dynamic_flag_spec='${wl}-E'
9607 hpux10*)
9608 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610 else
9611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9613 if test "$with_gnu_ld" = no; then
9614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615 hardcode_libdir_separator=:
9616 hardcode_direct=yes
9617 hardcode_direct_absolute=yes
9618 export_dynamic_flag_spec='${wl}-E'
9619 # hardcode_minus_L: Not really in the search PATH,
9620 # but as the default location of the library.
9621 hardcode_minus_L=yes
9625 hpux11*)
9626 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9627 case $host_cpu in
9628 hppa*64*)
9629 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 ia64*)
9632 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9637 esac
9638 else
9639 case $host_cpu in
9640 hppa*64*)
9641 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 ia64*)
9644 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9648 # Older versions of the 11.00 compiler do not understand -b yet
9649 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9651 $as_echo_n "checking if $CC understands -b... " >&6; }
9652 if ${lt_cv_prog_compiler__b+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 lt_cv_prog_compiler__b=no
9656 save_LDFLAGS="$LDFLAGS"
9657 LDFLAGS="$LDFLAGS -b"
9658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9660 # The linker can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 if test -s conftest.err; then
9663 # Append any errors to the config.log.
9664 cat conftest.err 1>&5
9665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9667 if diff conftest.exp conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler__b=yes
9670 else
9671 lt_cv_prog_compiler__b=yes
9674 $RM -r conftest*
9675 LDFLAGS="$save_LDFLAGS"
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9679 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9681 if test x"$lt_cv_prog_compiler__b" = xyes; then
9682 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683 else
9684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9688 esac
9690 if test "$with_gnu_ld" = no; then
9691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9692 hardcode_libdir_separator=:
9694 case $host_cpu in
9695 hppa*64*|ia64*)
9696 hardcode_direct=no
9697 hardcode_shlibpath_var=no
9700 hardcode_direct=yes
9701 hardcode_direct_absolute=yes
9702 export_dynamic_flag_spec='${wl}-E'
9704 # hardcode_minus_L: Not really in the search PATH,
9705 # but as the default location of the library.
9706 hardcode_minus_L=yes
9708 esac
9712 irix5* | irix6* | nonstopux*)
9713 if test "$GCC" = yes; then
9714 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'
9715 # Try to use the -exported_symbol ld option, if it does not
9716 # work, assume that -exports_file does not work either and
9717 # implicitly export all symbols.
9718 # This should be the same for all languages, so no per-tag cache variable.
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9720 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9721 if ${lt_cv_irix_exported_symbol+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 save_LDFLAGS="$LDFLAGS"
9725 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 int foo (void) { return 0; }
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731 lt_cv_irix_exported_symbol=yes
9732 else
9733 lt_cv_irix_exported_symbol=no
9735 rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 LDFLAGS="$save_LDFLAGS"
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9740 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9741 if test "$lt_cv_irix_exported_symbol" = yes; then
9742 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'
9744 else
9745 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'
9746 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'
9748 archive_cmds_need_lc='no'
9749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750 hardcode_libdir_separator=:
9751 inherit_rpath=yes
9752 link_all_deplibs=yes
9755 netbsd* | netbsdelf*-gnu)
9756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9758 else
9759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9761 hardcode_libdir_flag_spec='-R$libdir'
9762 hardcode_direct=yes
9763 hardcode_shlibpath_var=no
9766 newsos6)
9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_direct=yes
9769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770 hardcode_libdir_separator=:
9771 hardcode_shlibpath_var=no
9774 *nto* | *qnx*)
9777 openbsd*)
9778 if test -f /usr/libexec/ld.so; then
9779 hardcode_direct=yes
9780 hardcode_shlibpath_var=no
9781 hardcode_direct_absolute=yes
9782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9786 export_dynamic_flag_spec='${wl}-E'
9787 else
9788 case $host_os in
9789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_libdir_flag_spec='-R$libdir'
9794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9797 esac
9799 else
9800 ld_shlibs=no
9804 os2*)
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_minus_L=yes
9807 allow_undefined_flag=unsupported
9808 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'
9809 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9812 osf3*)
9813 if test "$GCC" = yes; then
9814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9815 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'
9816 else
9817 allow_undefined_flag=' -expect_unresolved \*'
9818 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'
9820 archive_cmds_need_lc='no'
9821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9822 hardcode_libdir_separator=:
9825 osf4* | osf5*) # as osf3* with the addition of -msym flag
9826 if test "$GCC" = yes; then
9827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9828 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'
9829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830 else
9831 allow_undefined_flag=' -expect_unresolved \*'
9832 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'
9833 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~
9834 $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'
9836 # Both c and cxx compiler support -rpath directly
9837 hardcode_libdir_flag_spec='-rpath $libdir'
9839 archive_cmds_need_lc='no'
9840 hardcode_libdir_separator=:
9843 solaris*)
9844 no_undefined_flag=' -z defs'
9845 if test "$GCC" = yes; then
9846 wlarc='${wl}'
9847 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9849 $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'
9850 else
9851 case `$CC -V 2>&1` in
9852 *"Compilers 5.0"*)
9853 wlarc=''
9854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9859 wlarc='${wl}'
9860 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9862 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9864 esac
9866 hardcode_libdir_flag_spec='-R$libdir'
9867 hardcode_shlibpath_var=no
9868 case $host_os in
9869 solaris2.[0-5] | solaris2.[0-5].*) ;;
9871 # The compiler driver will combine and reorder linker options,
9872 # but understands `-z linker_flag'. GCC discards it without `$wl',
9873 # but is careful enough not to reorder.
9874 # Supported since Solaris 2.6 (maybe 2.5.1?)
9875 if test "$GCC" = yes; then
9876 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9877 else
9878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9881 esac
9882 link_all_deplibs=yes
9885 sunos4*)
9886 if test "x$host_vendor" = xsequent; then
9887 # Use $CC to link under sequent, because it throws in some extra .o
9888 # files that make .init and .fini sections work.
9889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9890 else
9891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_libdir_flag_spec='-L$libdir'
9894 hardcode_direct=yes
9895 hardcode_minus_L=yes
9896 hardcode_shlibpath_var=no
9899 sysv4)
9900 case $host_vendor in
9901 sni)
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_direct=yes # is this really true???
9905 siemens)
9906 ## LD is ld it makes a PLAMLIB
9907 ## CC just makes a GrossModule.
9908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9909 reload_cmds='$CC -r -o $output$reload_objs'
9910 hardcode_direct=no
9912 motorola)
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9916 esac
9917 runpath_var='LD_RUN_PATH'
9918 hardcode_shlibpath_var=no
9921 sysv4.3*)
9922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_shlibpath_var=no
9924 export_dynamic_flag_spec='-Bexport'
9927 sysv4*MP*)
9928 if test -d /usr/nec; then
9929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930 hardcode_shlibpath_var=no
9931 runpath_var=LD_RUN_PATH
9932 hardcode_runpath_var=yes
9933 ld_shlibs=yes
9937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9938 no_undefined_flag='${wl}-z,text'
9939 archive_cmds_need_lc=no
9940 hardcode_shlibpath_var=no
9941 runpath_var='LD_RUN_PATH'
9943 if test "$GCC" = yes; then
9944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 else
9947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952 sysv5* | sco3.2v5* | sco5v6*)
9953 # Note: We can NOT use -z defs as we might desire, because we do not
9954 # link with -lc, and that would cause any symbols used from libc to
9955 # always be unresolved, which means just about no library would
9956 # ever link correctly. If we're not using GNU ld we use -z text
9957 # though, which does catch some bad symbols but isn't as heavy-handed
9958 # as -z defs.
9959 no_undefined_flag='${wl}-z,text'
9960 allow_undefined_flag='${wl}-z,nodefs'
9961 archive_cmds_need_lc=no
9962 hardcode_shlibpath_var=no
9963 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9964 hardcode_libdir_separator=':'
9965 link_all_deplibs=yes
9966 export_dynamic_flag_spec='${wl}-Bexport'
9967 runpath_var='LD_RUN_PATH'
9969 if test "$GCC" = yes; then
9970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 else
9973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978 uts4*)
9979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 hardcode_shlibpath_var=no
9985 ld_shlibs=no
9987 esac
9989 if test x$host_vendor = xsni; then
9990 case $host in
9991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9992 export_dynamic_flag_spec='${wl}-Blargedynsym'
9994 esac
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9999 $as_echo "$ld_shlibs" >&6; }
10000 test "$ld_shlibs" = no && can_build_shared=no
10002 with_gnu_ld=$with_gnu_ld
10019 # Do we need to explicitly link libc?
10021 case "x$archive_cmds_need_lc" in
10022 x|xyes)
10023 # Assume -lc should be added
10024 archive_cmds_need_lc=yes
10026 if test "$enable_shared" = yes && test "$GCC" = yes; then
10027 case $archive_cmds in
10028 *'~'*)
10029 # FIXME: we may have to deal with multi-command sequences.
10031 '$CC '*)
10032 # Test whether the compiler implicitly links with -lc since on some
10033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10034 # to ld, don't add -lc before -lgcc.
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10036 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10037 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 $RM conftest*
10041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10044 (eval $ac_compile) 2>&5
10045 ac_status=$?
10046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10047 test $ac_status = 0; } 2>conftest.err; then
10048 soname=conftest
10049 lib=conftest
10050 libobjs=conftest.$ac_objext
10051 deplibs=
10052 wl=$lt_prog_compiler_wl
10053 pic_flag=$lt_prog_compiler_pic
10054 compiler_flags=-v
10055 linker_flags=-v
10056 verstring=
10057 output_objdir=.
10058 libname=conftest
10059 lt_save_allow_undefined_flag=$allow_undefined_flag
10060 allow_undefined_flag=
10061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10062 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10063 ac_status=$?
10064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10065 test $ac_status = 0; }
10066 then
10067 lt_cv_archive_cmds_need_lc=no
10068 else
10069 lt_cv_archive_cmds_need_lc=yes
10071 allow_undefined_flag=$lt_save_allow_undefined_flag
10072 else
10073 cat conftest.err 1>&5
10075 $RM conftest*
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10079 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10080 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10082 esac
10085 esac
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10241 if test "$GCC" = yes; then
10242 case $host_os in
10243 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10244 *) lt_awk_arg="/^libraries:/" ;;
10245 esac
10246 case $host_os in
10247 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10248 *) lt_sed_strip_eq="s,=/,/,g" ;;
10249 esac
10250 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10251 case $lt_search_path_spec in
10252 *\;*)
10253 # if the path contains ";" then we assume it to be the separator
10254 # otherwise default to the standard path separator (i.e. ":") - it is
10255 # assumed that no part of a normal pathname contains ";" but that should
10256 # okay in the real world where ";" in dirpaths is itself problematic.
10257 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10260 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10262 esac
10263 # Ok, now we have the path, separated by spaces, we can step through it
10264 # and add multilib dir if necessary.
10265 lt_tmp_lt_search_path_spec=
10266 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10267 for lt_sys_path in $lt_search_path_spec; do
10268 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10270 else
10271 test -d "$lt_sys_path" && \
10272 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10274 done
10275 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10276 BEGIN {RS=" "; FS="/|\n";} {
10277 lt_foo="";
10278 lt_count=0;
10279 for (lt_i = NF; lt_i > 0; lt_i--) {
10280 if ($lt_i != "" && $lt_i != ".") {
10281 if ($lt_i == "..") {
10282 lt_count++;
10283 } else {
10284 if (lt_count == 0) {
10285 lt_foo="/" $lt_i lt_foo;
10286 } else {
10287 lt_count--;
10292 if (lt_foo != "") { lt_freq[lt_foo]++; }
10293 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10295 # AWK program above erroneously prepends '/' to C:/dos/paths
10296 # for these hosts.
10297 case $host_os in
10298 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10299 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10300 esac
10301 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10302 else
10303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10305 library_names_spec=
10306 libname_spec='lib$name'
10307 soname_spec=
10308 shrext_cmds=".so"
10309 postinstall_cmds=
10310 postuninstall_cmds=
10311 finish_cmds=
10312 finish_eval=
10313 shlibpath_var=
10314 shlibpath_overrides_runpath=unknown
10315 version_type=none
10316 dynamic_linker="$host_os ld.so"
10317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10318 need_lib_prefix=unknown
10319 hardcode_into_libs=no
10321 # when you set need_version to no, make sure it does not cause -set_version
10322 # flags to be left without arguments
10323 need_version=unknown
10325 case $host_os in
10326 aix3*)
10327 version_type=linux # correct to gnu/linux during the next big refactor
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10329 shlibpath_var=LIBPATH
10331 # AIX 3 has no versioning support, so we append a major version to the name.
10332 soname_spec='${libname}${release}${shared_ext}$major'
10335 aix[4-9]*)
10336 version_type=linux # correct to gnu/linux during the next big refactor
10337 need_lib_prefix=no
10338 need_version=no
10339 hardcode_into_libs=yes
10340 if test "$host_cpu" = ia64; then
10341 # AIX 5 supports IA64
10342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 else
10345 # With GCC up to 2.95.x, collect2 would create an import file
10346 # for dependence libraries. The import file would start with
10347 # the line `#! .'. This would cause the generated library to
10348 # depend on `.', always an invalid library. This was fixed in
10349 # development snapshots of GCC prior to 3.0.
10350 case $host_os in
10351 aix4 | aix4.[01] | aix4.[01].*)
10352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10353 echo ' yes '
10354 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10356 else
10357 can_build_shared=no
10360 esac
10361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10362 # soname into executable. Probably we can add versioning support to
10363 # collect2, so additional links can be useful in future.
10364 if test "$aix_use_runtimelinking" = yes; then
10365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10366 # instead of lib<name>.a to let people know that these are not
10367 # typical AIX shared libraries.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 else
10370 # We preserve .a as extension for shared libraries through AIX4.2
10371 # and later when we are not doing run time linking.
10372 library_names_spec='${libname}${release}.a $libname.a'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LIBPATH
10379 amigaos*)
10380 case $host_cpu in
10381 powerpc)
10382 # Since July 2007 AmigaOS4 officially supports .so libraries.
10383 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 m68k)
10387 library_names_spec='$libname.ixlibrary $libname.a'
10388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10389 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'
10391 esac
10394 beos*)
10395 library_names_spec='${libname}${shared_ext}'
10396 dynamic_linker="$host_os ld.so"
10397 shlibpath_var=LIBRARY_PATH
10400 bsdi[45]*)
10401 version_type=linux # correct to gnu/linux during the next big refactor
10402 need_version=no
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10408 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10409 # the default ld.so.conf also contains /usr/contrib/lib and
10410 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10411 # libtool to hard-code these into programs
10414 cygwin* | mingw* | pw32* | cegcc*)
10415 version_type=windows
10416 shrext_cmds=".dll"
10417 need_version=no
10418 need_lib_prefix=no
10420 case $GCC,$cc_basename in
10421 yes,*)
10422 # gcc
10423 library_names_spec='$libname.dll.a'
10424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10425 postinstall_cmds='base_file=`basename \${file}`~
10426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10427 dldir=$destdir/`dirname \$dlpath`~
10428 test -d \$dldir || mkdir -p \$dldir~
10429 $install_prog $dir/$dlname \$dldir/$dlname~
10430 chmod a+x \$dldir/$dlname~
10431 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10432 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10435 dlpath=$dir/\$dldll~
10436 $RM \$dlpath'
10437 shlibpath_overrides_runpath=yes
10439 case $host_os in
10440 cygwin*)
10441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10446 mingw* | cegcc*)
10447 # MinGW DLLs use traditional 'lib' prefix
10448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10450 pw32*)
10451 # pw32 DLLs use 'pw' prefix rather than 'lib'
10452 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10454 esac
10455 dynamic_linker='Win32 ld.exe'
10458 *,cl*)
10459 # Native MSVC
10460 libname_spec='$name'
10461 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10462 library_names_spec='${libname}.dll.lib'
10464 case $build_os in
10465 mingw*)
10466 sys_lib_search_path_spec=
10467 lt_save_ifs=$IFS
10468 IFS=';'
10469 for lt_path in $LIB
10471 IFS=$lt_save_ifs
10472 # Let DOS variable expansion print the short 8.3 style file name.
10473 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10474 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10475 done
10476 IFS=$lt_save_ifs
10477 # Convert to MSYS style.
10478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10480 cygwin*)
10481 # Convert to unix form, then to dos form, then back to unix form
10482 # but this time dos style (no spaces!) so that the unix form looks
10483 # like /cygdrive/c/PROGRA~1:/cygdr...
10484 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10485 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10486 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10489 sys_lib_search_path_spec="$LIB"
10490 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10491 # It is most probably a Windows format PATH.
10492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10493 else
10494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10496 # FIXME: find the short name or the path components, as spaces are
10497 # common. (e.g. "Program Files" -> "PROGRA~1")
10499 esac
10501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10502 postinstall_cmds='base_file=`basename \${file}`~
10503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10504 dldir=$destdir/`dirname \$dlpath`~
10505 test -d \$dldir || mkdir -p \$dldir~
10506 $install_prog $dir/$dlname \$dldir/$dlname'
10507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10508 dlpath=$dir/\$dldll~
10509 $RM \$dlpath'
10510 shlibpath_overrides_runpath=yes
10511 dynamic_linker='Win32 link.exe'
10515 # Assume MSVC wrapper
10516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10517 dynamic_linker='Win32 ld.exe'
10519 esac
10520 # FIXME: first we should search . and the directory the executable is in
10521 shlibpath_var=PATH
10524 darwin* | rhapsody*)
10525 dynamic_linker="$host_os dyld"
10526 version_type=darwin
10527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10530 soname_spec='${libname}${release}${major}$shared_ext'
10531 shlibpath_overrides_runpath=yes
10532 shlibpath_var=DYLD_LIBRARY_PATH
10533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10539 dgux*)
10540 version_type=linux # correct to gnu/linux during the next big refactor
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10548 freebsd* | dragonfly*)
10549 # DragonFly does not have aout. When/if they implement a new
10550 # versioning mechanism, adjust this.
10551 if test -x /usr/bin/objformat; then
10552 objformat=`/usr/bin/objformat`
10553 else
10554 case $host_os in
10555 freebsd[23].*) objformat=aout ;;
10556 *) objformat=elf ;;
10557 esac
10559 version_type=freebsd-$objformat
10560 case $version_type in
10561 freebsd-elf*)
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10563 need_version=no
10564 need_lib_prefix=no
10566 freebsd-*)
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10568 need_version=yes
10570 esac
10571 shlibpath_var=LD_LIBRARY_PATH
10572 case $host_os in
10573 freebsd2.*)
10574 shlibpath_overrides_runpath=yes
10576 freebsd3.[01]* | freebsdelf3.[01]*)
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10582 shlibpath_overrides_runpath=no
10583 hardcode_into_libs=yes
10585 *) # from 4.6 on, and DragonFly
10586 shlibpath_overrides_runpath=yes
10587 hardcode_into_libs=yes
10589 esac
10592 gnu*)
10593 version_type=linux # correct to gnu/linux during the next big refactor
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=no
10600 hardcode_into_libs=yes
10603 haiku*)
10604 version_type=linux # correct to gnu/linux during the next big refactor
10605 need_lib_prefix=no
10606 need_version=no
10607 dynamic_linker="$host_os runtime_loader"
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10613 hardcode_into_libs=yes
10616 hpux9* | hpux10* | hpux11*)
10617 # Give a soname corresponding to the major version so that dld.sl refuses to
10618 # link against other versions.
10619 version_type=sunos
10620 need_lib_prefix=no
10621 need_version=no
10622 case $host_cpu in
10623 ia64*)
10624 shrext_cmds='.so'
10625 hardcode_into_libs=yes
10626 dynamic_linker="$host_os dld.so"
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 if test "X$HPUX_IA64_MODE" = X32; then
10632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10633 else
10634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10638 hppa*64*)
10639 shrext_cmds='.sl'
10640 hardcode_into_libs=yes
10641 dynamic_linker="$host_os dld.sl"
10642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10650 shrext_cmds='.sl'
10651 dynamic_linker="$host_os dld.sl"
10652 shlibpath_var=SHLIB_PATH
10653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10657 esac
10658 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10659 postinstall_cmds='chmod 555 $lib'
10660 # or fails outright, so override atomically:
10661 install_override_mode=555
10664 interix[3-9]*)
10665 version_type=linux # correct to gnu/linux during the next big refactor
10666 need_lib_prefix=no
10667 need_version=no
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10676 irix5* | irix6* | nonstopux*)
10677 case $host_os in
10678 nonstopux*) version_type=nonstopux ;;
10680 if test "$lt_cv_prog_gnu_ld" = yes; then
10681 version_type=linux # correct to gnu/linux during the next big refactor
10682 else
10683 version_type=irix
10684 fi ;;
10685 esac
10686 need_lib_prefix=no
10687 need_version=no
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10690 case $host_os in
10691 irix5* | nonstopux*)
10692 libsuff= shlibsuff=
10695 case $LD in # libtool.m4 will add one of these switches to LD
10696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10697 libsuff= shlibsuff= libmagic=32-bit;;
10698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10699 libsuff=32 shlibsuff=N32 libmagic=N32;;
10700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10702 *) libsuff= shlibsuff= libmagic=never-match;;
10703 esac
10705 esac
10706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10707 shlibpath_overrides_runpath=no
10708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10710 hardcode_into_libs=yes
10713 # No shared lib support for Linux oldld, aout, or coff.
10714 linux*oldld* | linux*aout* | linux*coff*)
10715 dynamic_linker=no
10718 # This must be glibc/ELF.
10719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10720 version_type=linux # correct to gnu/linux during the next big refactor
10721 need_lib_prefix=no
10722 need_version=no
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=no
10729 # Some binutils ld are patched to set DT_RUNPATH
10730 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 lt_cv_shlibpath_overrides_runpath=no
10734 save_LDFLAGS=$LDFLAGS
10735 save_libdir=$libdir
10736 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10737 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10742 main ()
10746 return 0;
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10751 lt_cv_shlibpath_overrides_runpath=yes
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LDFLAGS=$save_LDFLAGS
10757 libdir=$save_libdir
10761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10763 # This implies no fast_install, which is unacceptable.
10764 # Some rework will be needed to allow for fast_install
10765 # before this can be enabled.
10766 hardcode_into_libs=yes
10768 # Append ld.so.conf contents to the search path
10769 if test -f /etc/ld.so.conf; then
10770 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' ' '`
10771 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10774 # We used to test for /lib/ld.so.1 and disable shared libraries on
10775 # powerpc, because MkLinux only supported shared libraries with the
10776 # GNU dynamic linker. Since this was broken with cross compilers,
10777 # most powerpc-linux boxes support dynamic linking these days and
10778 # people can always --disable-shared, the test was removed, and we
10779 # assume the GNU/Linux dynamic linker is in use.
10780 dynamic_linker='GNU/Linux ld.so'
10783 netbsdelf*-gnu)
10784 version_type=linux
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10792 dynamic_linker='NetBSD ld.elf_so'
10795 netbsd*)
10796 version_type=sunos
10797 need_lib_prefix=no
10798 need_version=no
10799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10802 dynamic_linker='NetBSD (a.out) ld.so'
10803 else
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 dynamic_linker='NetBSD ld.elf_so'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=yes
10810 hardcode_into_libs=yes
10813 newsos6)
10814 version_type=linux # correct to gnu/linux during the next big refactor
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=yes
10820 *nto* | *qnx*)
10821 version_type=qnx
10822 need_lib_prefix=no
10823 need_version=no
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 shlibpath_overrides_runpath=no
10828 hardcode_into_libs=yes
10829 dynamic_linker='ldqnx.so'
10832 openbsd*)
10833 version_type=sunos
10834 sys_lib_dlsearch_path_spec="/usr/lib"
10835 need_lib_prefix=no
10836 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10837 case $host_os in
10838 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10839 *) need_version=no ;;
10840 esac
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10845 case $host_os in
10846 openbsd2.[89] | openbsd2.[89].*)
10847 shlibpath_overrides_runpath=no
10850 shlibpath_overrides_runpath=yes
10852 esac
10853 else
10854 shlibpath_overrides_runpath=yes
10858 os2*)
10859 libname_spec='$name'
10860 shrext_cmds=".dll"
10861 need_lib_prefix=no
10862 library_names_spec='$libname${shared_ext} $libname.a'
10863 dynamic_linker='OS/2 ld.exe'
10864 shlibpath_var=LIBPATH
10867 osf3* | osf4* | osf5*)
10868 version_type=osf
10869 need_lib_prefix=no
10870 need_version=no
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10875 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10878 rdos*)
10879 dynamic_linker=no
10882 solaris*)
10883 version_type=linux # correct to gnu/linux during the next big refactor
10884 need_lib_prefix=no
10885 need_version=no
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10891 # ldd complains unless libraries are executable
10892 postinstall_cmds='chmod +x $lib'
10895 sunos4*)
10896 version_type=sunos
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=yes
10901 if test "$with_gnu_ld" = yes; then
10902 need_lib_prefix=no
10904 need_version=yes
10907 sysv4 | sysv4.3*)
10908 version_type=linux # correct to gnu/linux during the next big refactor
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 case $host_vendor in
10913 sni)
10914 shlibpath_overrides_runpath=no
10915 need_lib_prefix=no
10916 runpath_var=LD_RUN_PATH
10918 siemens)
10919 need_lib_prefix=no
10921 motorola)
10922 need_lib_prefix=no
10923 need_version=no
10924 shlibpath_overrides_runpath=no
10925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10927 esac
10930 sysv4*MP*)
10931 if test -d /usr/nec ;then
10932 version_type=linux # correct to gnu/linux during the next big refactor
10933 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10934 soname_spec='$libname${shared_ext}.$major'
10935 shlibpath_var=LD_LIBRARY_PATH
10939 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10940 version_type=freebsd-elf
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10947 hardcode_into_libs=yes
10948 if test "$with_gnu_ld" = yes; then
10949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10950 else
10951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10952 case $host_os in
10953 sco3.2v5*)
10954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10956 esac
10958 sys_lib_dlsearch_path_spec='/usr/lib'
10961 tpf*)
10962 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10963 version_type=linux # correct to gnu/linux during the next big refactor
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=no
10969 hardcode_into_libs=yes
10972 uts4*)
10973 version_type=linux # correct to gnu/linux during the next big refactor
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10980 dynamic_linker=no
10982 esac
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10984 $as_echo "$dynamic_linker" >&6; }
10985 test "$dynamic_linker" = no && can_build_shared=no
10987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10988 if test "$GCC" = yes; then
10989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10992 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10993 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10995 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10996 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11091 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11092 hardcode_action=
11093 if test -n "$hardcode_libdir_flag_spec" ||
11094 test -n "$runpath_var" ||
11095 test "X$hardcode_automatic" = "Xyes" ; then
11097 # We can hardcode non-existent directories.
11098 if test "$hardcode_direct" != no &&
11099 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11100 # have to relink, otherwise we might link with an installed library
11101 # when we should be linking with a yet-to-be-installed one
11102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11103 test "$hardcode_minus_L" != no; then
11104 # Linking always hardcodes the temporary library directory.
11105 hardcode_action=relink
11106 else
11107 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11108 hardcode_action=immediate
11110 else
11111 # We cannot hardcode anything, or else we can only hardcode existing
11112 # directories.
11113 hardcode_action=unsupported
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11116 $as_echo "$hardcode_action" >&6; }
11118 if test "$hardcode_action" = relink ||
11119 test "$inherit_rpath" = yes; then
11120 # Fast installation is not supported
11121 enable_fast_install=no
11122 elif test "$shlibpath_overrides_runpath" = yes ||
11123 test "$enable_shared" = no; then
11124 # Fast installation is not necessary
11125 enable_fast_install=needless
11133 if test "x$enable_dlopen" != xyes; then
11134 enable_dlopen=unknown
11135 enable_dlopen_self=unknown
11136 enable_dlopen_self_static=unknown
11137 else
11138 lt_cv_dlopen=no
11139 lt_cv_dlopen_libs=
11141 case $host_os in
11142 beos*)
11143 lt_cv_dlopen="load_add_on"
11144 lt_cv_dlopen_libs=
11145 lt_cv_dlopen_self=yes
11148 mingw* | pw32* | cegcc*)
11149 lt_cv_dlopen="LoadLibrary"
11150 lt_cv_dlopen_libs=
11153 cygwin*)
11154 lt_cv_dlopen="dlopen"
11155 lt_cv_dlopen_libs=
11158 darwin*)
11159 # if libdl is installed we need to link against it
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11161 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11162 if ${ac_cv_lib_dl_dlopen+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 ac_check_lib_save_LIBS=$LIBS
11166 LIBS="-ldl $LIBS"
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11170 /* Override any GCC internal prototype to avoid an error.
11171 Use char because int might match the return type of a GCC
11172 builtin and then its argument prototype would still apply. */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char dlopen ();
11178 main ()
11180 return dlopen ();
11182 return 0;
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"; then :
11186 ac_cv_lib_dl_dlopen=yes
11187 else
11188 ac_cv_lib_dl_dlopen=no
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_lib_save_LIBS
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11195 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11196 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11198 else
11200 lt_cv_dlopen="dyld"
11201 lt_cv_dlopen_libs=
11202 lt_cv_dlopen_self=yes
11209 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11210 if test "x$ac_cv_func_shl_load" = xyes; then :
11211 lt_cv_dlopen="shl_load"
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11214 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11215 if ${ac_cv_lib_dld_shl_load+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-ldld $LIBS"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char shl_load ();
11231 main ()
11233 return shl_load ();
11235 return 0;
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239 ac_cv_lib_dld_shl_load=yes
11240 else
11241 ac_cv_lib_dld_shl_load=no
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11248 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11249 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11250 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11251 else
11252 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11253 if test "x$ac_cv_func_dlopen" = xyes; then :
11254 lt_cv_dlopen="dlopen"
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11257 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11258 if ${ac_cv_lib_dl_dlopen+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-ldl $LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char dlopen ();
11274 main ()
11276 return dlopen ();
11278 return 0;
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 ac_cv_lib_dl_dlopen=yes
11283 else
11284 ac_cv_lib_dl_dlopen=no
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 LIBS=$ac_check_lib_save_LIBS
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11291 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11292 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11296 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11297 if ${ac_cv_lib_svld_dlopen+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-lsvld $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_svld_dlopen=yes
11322 else
11323 ac_cv_lib_svld_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_svld_dlopen" >&5
11330 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11331 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11335 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11336 if ${ac_cv_lib_dld_dld_link+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-ldld $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char dld_link ();
11352 main ()
11354 return dld_link ();
11356 return 0;
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 ac_cv_lib_dld_dld_link=yes
11361 else
11362 ac_cv_lib_dld_dld_link=no
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11369 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11370 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11371 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11390 esac
11392 if test "x$lt_cv_dlopen" != xno; then
11393 enable_dlopen=yes
11394 else
11395 enable_dlopen=no
11398 case $lt_cv_dlopen in
11399 dlopen)
11400 save_CPPFLAGS="$CPPFLAGS"
11401 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11403 save_LDFLAGS="$LDFLAGS"
11404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11406 save_LIBS="$LIBS"
11407 LIBS="$lt_cv_dlopen_libs $LIBS"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11410 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11411 if ${lt_cv_dlopen_self+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 if test "$cross_compiling" = yes; then :
11415 lt_cv_dlopen_self=cross
11416 else
11417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11418 lt_status=$lt_dlunknown
11419 cat > conftest.$ac_ext <<_LT_EOF
11420 #line $LINENO "configure"
11421 #include "confdefs.h"
11423 #if HAVE_DLFCN_H
11424 #include <dlfcn.h>
11425 #endif
11427 #include <stdio.h>
11429 #ifdef RTLD_GLOBAL
11430 # define LT_DLGLOBAL RTLD_GLOBAL
11431 #else
11432 # ifdef DL_GLOBAL
11433 # define LT_DLGLOBAL DL_GLOBAL
11434 # else
11435 # define LT_DLGLOBAL 0
11436 # endif
11437 #endif
11439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11440 find out it does not work in some platform. */
11441 #ifndef LT_DLLAZY_OR_NOW
11442 # ifdef RTLD_LAZY
11443 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11444 # else
11445 # ifdef DL_LAZY
11446 # define LT_DLLAZY_OR_NOW DL_LAZY
11447 # else
11448 # ifdef RTLD_NOW
11449 # define LT_DLLAZY_OR_NOW RTLD_NOW
11450 # else
11451 # ifdef DL_NOW
11452 # define LT_DLLAZY_OR_NOW DL_NOW
11453 # else
11454 # define LT_DLLAZY_OR_NOW 0
11455 # endif
11456 # endif
11457 # endif
11458 # endif
11459 #endif
11461 /* When -fvisbility=hidden is used, assume the code has been annotated
11462 correspondingly for the symbols needed. */
11463 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11464 int fnord () __attribute__((visibility("default")));
11465 #endif
11467 int fnord () { return 42; }
11468 int main ()
11470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11471 int status = $lt_dlunknown;
11473 if (self)
11475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11476 else
11478 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11479 else puts (dlerror ());
11481 /* dlclose (self); */
11483 else
11484 puts (dlerror ());
11486 return status;
11488 _LT_EOF
11489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11490 (eval $ac_link) 2>&5
11491 ac_status=$?
11492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11494 (./conftest; exit; ) >&5 2>/dev/null
11495 lt_status=$?
11496 case x$lt_status in
11497 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11498 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11499 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11500 esac
11501 else :
11502 # compilation failed
11503 lt_cv_dlopen_self=no
11506 rm -fr conftest*
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11511 $as_echo "$lt_cv_dlopen_self" >&6; }
11513 if test "x$lt_cv_dlopen_self" = xyes; then
11514 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11516 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11517 if ${lt_cv_dlopen_self_static+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 if test "$cross_compiling" = yes; then :
11521 lt_cv_dlopen_self_static=cross
11522 else
11523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11524 lt_status=$lt_dlunknown
11525 cat > conftest.$ac_ext <<_LT_EOF
11526 #line $LINENO "configure"
11527 #include "confdefs.h"
11529 #if HAVE_DLFCN_H
11530 #include <dlfcn.h>
11531 #endif
11533 #include <stdio.h>
11535 #ifdef RTLD_GLOBAL
11536 # define LT_DLGLOBAL RTLD_GLOBAL
11537 #else
11538 # ifdef DL_GLOBAL
11539 # define LT_DLGLOBAL DL_GLOBAL
11540 # else
11541 # define LT_DLGLOBAL 0
11542 # endif
11543 #endif
11545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11546 find out it does not work in some platform. */
11547 #ifndef LT_DLLAZY_OR_NOW
11548 # ifdef RTLD_LAZY
11549 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11550 # else
11551 # ifdef DL_LAZY
11552 # define LT_DLLAZY_OR_NOW DL_LAZY
11553 # else
11554 # ifdef RTLD_NOW
11555 # define LT_DLLAZY_OR_NOW RTLD_NOW
11556 # else
11557 # ifdef DL_NOW
11558 # define LT_DLLAZY_OR_NOW DL_NOW
11559 # else
11560 # define LT_DLLAZY_OR_NOW 0
11561 # endif
11562 # endif
11563 # endif
11564 # endif
11565 #endif
11567 /* When -fvisbility=hidden is used, assume the code has been annotated
11568 correspondingly for the symbols needed. */
11569 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11570 int fnord () __attribute__((visibility("default")));
11571 #endif
11573 int fnord () { return 42; }
11574 int main ()
11576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11577 int status = $lt_dlunknown;
11579 if (self)
11581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11582 else
11584 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11585 else puts (dlerror ());
11587 /* dlclose (self); */
11589 else
11590 puts (dlerror ());
11592 return status;
11594 _LT_EOF
11595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11596 (eval $ac_link) 2>&5
11597 ac_status=$?
11598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11600 (./conftest; exit; ) >&5 2>/dev/null
11601 lt_status=$?
11602 case x$lt_status in
11603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11605 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11606 esac
11607 else :
11608 # compilation failed
11609 lt_cv_dlopen_self_static=no
11612 rm -fr conftest*
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11617 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11620 CPPFLAGS="$save_CPPFLAGS"
11621 LDFLAGS="$save_LDFLAGS"
11622 LIBS="$save_LIBS"
11624 esac
11626 case $lt_cv_dlopen_self in
11627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11628 *) enable_dlopen_self=unknown ;;
11629 esac
11631 case $lt_cv_dlopen_self_static in
11632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11633 *) enable_dlopen_self_static=unknown ;;
11634 esac
11653 striplib=
11654 old_striplib=
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11656 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11657 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11659 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11661 $as_echo "yes" >&6; }
11662 else
11663 # FIXME - insert some real tests, host_os isn't really good enough
11664 case $host_os in
11665 darwin*)
11666 if test -n "$STRIP" ; then
11667 striplib="$STRIP -x"
11668 old_striplib="$STRIP -S"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11670 $as_echo "yes" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11680 esac
11694 # Report which library types will actually be built
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11696 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11698 $as_echo "$can_build_shared" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11701 $as_echo_n "checking whether to build shared libraries... " >&6; }
11702 test "$can_build_shared" = "no" && enable_shared=no
11704 # On AIX, shared libraries and static libraries use the same namespace, and
11705 # are all built from PIC.
11706 case $host_os in
11707 aix3*)
11708 test "$enable_shared" = yes && enable_static=no
11709 if test -n "$RANLIB"; then
11710 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11711 postinstall_cmds='$RANLIB $lib'
11715 aix[4-9]*)
11716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11717 test "$enable_shared" = yes && enable_static=no
11720 esac
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11722 $as_echo "$enable_shared" >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11725 $as_echo_n "checking whether to build static libraries... " >&6; }
11726 # Make sure either enable_shared or enable_static is yes.
11727 test "$enable_shared" = yes || enable_static=yes
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11729 $as_echo "$enable_static" >&6; }
11735 ac_ext=c
11736 ac_cpp='$CPP $CPPFLAGS'
11737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11741 CC="$lt_save_CC"
11757 ac_config_commands="$ac_config_commands libtool"
11762 # Only expand once:
11766 if test 0 = "0"; then
11767 supported_build=yes
11768 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11769 else
11770 supported_build=no
11771 if test "x$GCC" = "xyes" ; then
11772 CFLAGS="$CFLAGS -g -O0"
11773 CXXFLAGS="$CXXFLAGS -g -O0"
11776 if test "x$supported_build" = "xno"; then
11777 TR_UNSTABLE_TRUE=
11778 TR_UNSTABLE_FALSE='#'
11779 else
11780 TR_UNSTABLE_TRUE='#'
11781 TR_UNSTABLE_FALSE=
11787 ## MANDATORY for everything
11790 CURL_MINIMUM=7.15.4
11792 LIBEVENT_MINIMUM=2.0.10
11794 OPENSSL_MINIMUM=0.9.4
11799 ## MANDATORY for the GTK+ client
11803 GTK_MINIMUM=3.4.0
11805 GLIB_MINIMUM=2.32.0
11807 GIO_MINIMUM=2.26.0
11812 ## OPTIONAL for the GTK+ client
11816 # create the tray icon with AppIndicator
11817 LIBAPPINDICATOR_MINIMUM=0.4.90
11821 ac_ext=c
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11826 if test -n "$ac_tool_prefix"; then
11827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_prog_CC+:} false; then :
11832 $as_echo_n "(cached) " >&6
11833 else
11834 if test -n "$CC"; then
11835 ac_cv_prog_CC="$CC" # Let the user override the test.
11836 else
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in $PATH
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
11842 for ac_exec_ext in '' $ac_executable_extensions; do
11843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846 break 2
11848 done
11849 done
11850 IFS=$as_save_IFS
11854 CC=$ac_cv_prog_CC
11855 if test -n "$CC"; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11857 $as_echo "$CC" >&6; }
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11865 if test -z "$ac_cv_prog_CC"; then
11866 ac_ct_CC=$CC
11867 # Extract the first word of "gcc", so it can be a program name with args.
11868 set dummy gcc; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 if test -n "$ac_ct_CC"; then
11875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11876 else
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884 ac_cv_prog_ac_ct_CC="gcc"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 break 2
11888 done
11889 done
11890 IFS=$as_save_IFS
11894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11895 if test -n "$ac_ct_CC"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11897 $as_echo "$ac_ct_CC" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11903 if test "x$ac_ct_CC" = x; then
11904 CC=""
11905 else
11906 case $cross_compiling:$ac_tool_warned in
11907 yes:)
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11910 ac_tool_warned=yes ;;
11911 esac
11912 CC=$ac_ct_CC
11914 else
11915 CC="$ac_cv_prog_CC"
11918 if test -z "$CC"; then
11919 if test -n "$ac_tool_prefix"; then
11920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11921 set dummy ${ac_tool_prefix}cc; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_prog_CC+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 if test -n "$CC"; then
11928 ac_cv_prog_CC="$CC" # Let the user override the test.
11929 else
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11937 ac_cv_prog_CC="${ac_tool_prefix}cc"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 break 2
11941 done
11942 done
11943 IFS=$as_save_IFS
11947 CC=$ac_cv_prog_CC
11948 if test -n "$CC"; then
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11950 $as_echo "$CC" >&6; }
11951 else
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11959 if test -z "$CC"; then
11960 # Extract the first word of "cc", so it can be a program name with args.
11961 set dummy cc; ac_word=$2
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963 $as_echo_n "checking for $ac_word... " >&6; }
11964 if ${ac_cv_prog_CC+:} false; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 if test -n "$CC"; then
11968 ac_cv_prog_CC="$CC" # Let the user override the test.
11969 else
11970 ac_prog_rejected=no
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11979 ac_prog_rejected=yes
11980 continue
11982 ac_cv_prog_CC="cc"
11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11986 done
11987 done
11988 IFS=$as_save_IFS
11990 if test $ac_prog_rejected = yes; then
11991 # We found a bogon in the path, so make sure we never use it.
11992 set dummy $ac_cv_prog_CC
11993 shift
11994 if test $# != 0; then
11995 # We chose a different compiler from the bogus one.
11996 # However, it has the same basename, so the bogon will be chosen
11997 # first if we set CC to just the basename; use the full file name.
11998 shift
11999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12004 CC=$ac_cv_prog_CC
12005 if test -n "$CC"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12007 $as_echo "$CC" >&6; }
12008 else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12015 if test -z "$CC"; then
12016 if test -n "$ac_tool_prefix"; then
12017 for ac_prog in cl.exe
12019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if ${ac_cv_prog_CC+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 if test -n "$CC"; then
12027 ac_cv_prog_CC="$CC" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12040 done
12041 done
12042 IFS=$as_save_IFS
12046 CC=$ac_cv_prog_CC
12047 if test -n "$CC"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12049 $as_echo "$CC" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12056 test -n "$CC" && break
12057 done
12059 if test -z "$CC"; then
12060 ac_ct_CC=$CC
12061 for ac_prog in cl.exe
12063 # Extract the first word of "$ac_prog", so it can be a program name with args.
12064 set dummy $ac_prog; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 if test -n "$ac_ct_CC"; then
12071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12072 else
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080 ac_cv_prog_ac_ct_CC="$ac_prog"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12084 done
12085 done
12086 IFS=$as_save_IFS
12090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12091 if test -n "$ac_ct_CC"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12093 $as_echo "$ac_ct_CC" >&6; }
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12100 test -n "$ac_ct_CC" && break
12101 done
12103 if test "x$ac_ct_CC" = x; then
12104 CC=""
12105 else
12106 case $cross_compiling:$ac_tool_warned in
12107 yes:)
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12110 ac_tool_warned=yes ;;
12111 esac
12112 CC=$ac_ct_CC
12119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12121 as_fn_error $? "no acceptable C compiler found in \$PATH
12122 See \`config.log' for more details" "$LINENO" 5; }
12124 # Provide some information about the compiler.
12125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12126 set X $ac_compile
12127 ac_compiler=$2
12128 for ac_option in --version -v -V -qversion; do
12129 { { ac_try="$ac_compiler $ac_option >&5"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12135 $as_echo "$ac_try_echo"; } >&5
12136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12137 ac_status=$?
12138 if test -s conftest.err; then
12139 sed '10a\
12140 ... rest of stderr output deleted ...
12141 10q' conftest.err >conftest.er1
12142 cat conftest.er1 >&5
12144 rm -f conftest.er1 conftest.err
12145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12146 test $ac_status = 0; }
12147 done
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12151 if ${ac_cv_c_compiler_gnu+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12158 main ()
12160 #ifndef __GNUC__
12161 choke me
12162 #endif
12165 return 0;
12167 _ACEOF
12168 if ac_fn_c_try_compile "$LINENO"; then :
12169 ac_compiler_gnu=yes
12170 else
12171 ac_compiler_gnu=no
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12179 if test $ac_compiler_gnu = yes; then
12180 GCC=yes
12181 else
12182 GCC=
12184 ac_test_CFLAGS=${CFLAGS+set}
12185 ac_save_CFLAGS=$CFLAGS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12188 if ${ac_cv_prog_cc_g+:} false; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 ac_save_c_werror_flag=$ac_c_werror_flag
12192 ac_c_werror_flag=yes
12193 ac_cv_prog_cc_g=no
12194 CFLAGS="-g"
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12199 main ()
12203 return 0;
12205 _ACEOF
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207 ac_cv_prog_cc_g=yes
12208 else
12209 CFLAGS=""
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12214 main ()
12218 return 0;
12220 _ACEOF
12221 if ac_fn_c_try_compile "$LINENO"; then :
12223 else
12224 ac_c_werror_flag=$ac_save_c_werror_flag
12225 CFLAGS="-g"
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12230 main ()
12234 return 0;
12236 _ACEOF
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238 ac_cv_prog_cc_g=yes
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 ac_c_werror_flag=$ac_save_c_werror_flag
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12248 $as_echo "$ac_cv_prog_cc_g" >&6; }
12249 if test "$ac_test_CFLAGS" = set; then
12250 CFLAGS=$ac_save_CFLAGS
12251 elif test $ac_cv_prog_cc_g = yes; then
12252 if test "$GCC" = yes; then
12253 CFLAGS="-g -O2"
12254 else
12255 CFLAGS="-g"
12257 else
12258 if test "$GCC" = yes; then
12259 CFLAGS="-O2"
12260 else
12261 CFLAGS=
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12266 if ${ac_cv_prog_cc_c89+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 ac_cv_prog_cc_c89=no
12270 ac_save_CC=$CC
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273 #include <stdarg.h>
12274 #include <stdio.h>
12275 struct stat;
12276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12277 struct buf { int x; };
12278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12279 static char *e (p, i)
12280 char **p;
12281 int i;
12283 return p[i];
12285 static char *f (char * (*g) (char **, int), char **p, ...)
12287 char *s;
12288 va_list v;
12289 va_start (v,p);
12290 s = g (p, va_arg (v,int));
12291 va_end (v);
12292 return s;
12295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12296 function prototypes and stuff, but not '\xHH' hex character constants.
12297 These don't provoke an error unfortunately, instead are silently treated
12298 as 'x'. The following induces an error, until -std is added to get
12299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12300 array size at least. It's necessary to write '\x00'==0 to get something
12301 that's true only with -std. */
12302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12305 inside strings and character constants. */
12306 #define FOO(x) 'x'
12307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12309 int test (int i, double x);
12310 struct s1 {int (*f) (int a);};
12311 struct s2 {int (*f) (double a);};
12312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12313 int argc;
12314 char **argv;
12316 main ()
12318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12320 return 0;
12322 _ACEOF
12323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12326 CC="$ac_save_CC $ac_arg"
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328 ac_cv_prog_cc_c89=$ac_arg
12330 rm -f core conftest.err conftest.$ac_objext
12331 test "x$ac_cv_prog_cc_c89" != "xno" && break
12332 done
12333 rm -f conftest.$ac_ext
12334 CC=$ac_save_CC
12337 # AC_CACHE_VAL
12338 case "x$ac_cv_prog_cc_c89" in
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12341 $as_echo "none needed" >&6; } ;;
12342 xno)
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12344 $as_echo "unsupported" >&6; } ;;
12346 CC="$CC $ac_cv_prog_cc_c89"
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12348 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12349 esac
12350 if test "x$ac_cv_prog_cc_c89" != xno; then :
12354 ac_ext=c
12355 ac_cpp='$CPP $CPPFLAGS'
12356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12360 depcc="$CC" am_compiler_list=
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12363 $as_echo_n "checking dependency style of $depcc... " >&6; }
12364 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12368 # We make a subdir and do the tests there. Otherwise we can end up
12369 # making bogus files that we don't know about and never remove. For
12370 # instance it was reported that on HP-UX the gcc test will end up
12371 # making a dummy file named `D' -- because `-MD' means `put the output
12372 # in D'.
12373 rm -rf conftest.dir
12374 mkdir conftest.dir
12375 # Copy depcomp to subdir because otherwise we won't find it if we're
12376 # using a relative directory.
12377 cp "$am_depcomp" conftest.dir
12378 cd conftest.dir
12379 # We will build objects and dependencies in a subdirectory because
12380 # it helps to detect inapplicable dependency modes. For instance
12381 # both Tru64's cc and ICC support -MD to output dependencies as a
12382 # side effect of compilation, but ICC will put the dependencies in
12383 # the current directory while Tru64 will put them in the object
12384 # directory.
12385 mkdir sub
12387 am_cv_CC_dependencies_compiler_type=none
12388 if test "$am_compiler_list" = ""; then
12389 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12391 am__universal=false
12392 case " $depcc " in #(
12393 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12394 esac
12396 for depmode in $am_compiler_list; do
12397 # Setup a source with many dependencies, because some compilers
12398 # like to wrap large dependency lists on column 80 (with \), and
12399 # we should not choose a depcomp mode which is confused by this.
12401 # We need to recreate these files for each test, as the compiler may
12402 # overwrite some of them when testing with obscure command lines.
12403 # This happens at least with the AIX C compiler.
12404 : > sub/conftest.c
12405 for i in 1 2 3 4 5 6; do
12406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12407 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12408 # Solaris 8's {/usr,}/bin/sh.
12409 touch sub/conftst$i.h
12410 done
12411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12414 # mode. It turns out that the SunPro C++ compiler does not properly
12415 # handle `-M -o', and we need to detect this. Also, some Intel
12416 # versions had trouble with output in subdirs
12417 am__obj=sub/conftest.${OBJEXT-o}
12418 am__minus_obj="-o $am__obj"
12419 case $depmode in
12420 gcc)
12421 # This depmode causes a compiler race in universal mode.
12422 test "$am__universal" = false || continue
12424 nosideeffect)
12425 # after this tag, mechanisms are not by side-effect, so they'll
12426 # only be used when explicitly requested
12427 if test "x$enable_dependency_tracking" = xyes; then
12428 continue
12429 else
12430 break
12433 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12434 # This compiler won't grok `-c -o', but also, the minuso test has
12435 # not run yet. These depmodes are late enough in the game, and
12436 # so weak that their functioning should not be impacted.
12437 am__obj=conftest.${OBJEXT-o}
12438 am__minus_obj=
12440 none) break ;;
12441 esac
12442 if depmode=$depmode \
12443 source=sub/conftest.c object=$am__obj \
12444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12445 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12446 >/dev/null 2>conftest.err &&
12447 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12449 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12451 # icc doesn't choke on unknown options, it will just issue warnings
12452 # or remarks (even with -Werror). So we grep stderr for any message
12453 # that says an option was ignored or not supported.
12454 # When given -MP, icc 7.0 and 7.1 complain thusly:
12455 # icc: Command line warning: ignoring option '-M'; no argument required
12456 # The diagnosis changed in icc 8.0:
12457 # icc: Command line remark: option '-MP' not supported
12458 if (grep 'ignoring option' conftest.err ||
12459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12460 am_cv_CC_dependencies_compiler_type=$depmode
12461 break
12464 done
12466 cd ..
12467 rm -rf conftest.dir
12468 else
12469 am_cv_CC_dependencies_compiler_type=none
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12474 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12475 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12478 test "x$enable_dependency_tracking" != xno \
12479 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12480 am__fastdepCC_TRUE=
12481 am__fastdepCC_FALSE='#'
12482 else
12483 am__fastdepCC_TRUE='#'
12484 am__fastdepCC_FALSE=
12488 ac_ext=cpp
12489 ac_cpp='$CXXCPP $CPPFLAGS'
12490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12493 if test -z "$CXX"; then
12494 if test -n "$CCC"; then
12495 CXX=$CCC
12496 else
12497 if test -n "$ac_tool_prefix"; then
12498 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_prog_CXX+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 if test -n "$CXX"; then
12508 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12509 else
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511 for as_dir in $PATH
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12517 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12521 done
12522 done
12523 IFS=$as_save_IFS
12527 CXX=$ac_cv_prog_CXX
12528 if test -n "$CXX"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12530 $as_echo "$CXX" >&6; }
12531 else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12537 test -n "$CXX" && break
12538 done
12540 if test -z "$CXX"; then
12541 ac_ct_CXX=$CXX
12542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12544 # Extract the first word of "$ac_prog", so it can be a program name with args.
12545 set dummy $ac_prog; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$ac_ct_CXX"; then
12552 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561 ac_cv_prog_ac_ct_CXX="$ac_prog"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12565 done
12566 done
12567 IFS=$as_save_IFS
12571 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12572 if test -n "$ac_ct_CXX"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12574 $as_echo "$ac_ct_CXX" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12581 test -n "$ac_ct_CXX" && break
12582 done
12584 if test "x$ac_ct_CXX" = x; then
12585 CXX="g++"
12586 else
12587 case $cross_compiling:$ac_tool_warned in
12588 yes:)
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12591 ac_tool_warned=yes ;;
12592 esac
12593 CXX=$ac_ct_CXX
12599 # Provide some information about the compiler.
12600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12601 set X $ac_compile
12602 ac_compiler=$2
12603 for ac_option in --version -v -V -qversion; do
12604 { { ac_try="$ac_compiler $ac_option >&5"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12610 $as_echo "$ac_try_echo"; } >&5
12611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12612 ac_status=$?
12613 if test -s conftest.err; then
12614 sed '10a\
12615 ... rest of stderr output deleted ...
12616 10q' conftest.err >conftest.er1
12617 cat conftest.er1 >&5
12619 rm -f conftest.er1 conftest.err
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; }
12622 done
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12625 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12626 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12633 main ()
12635 #ifndef __GNUC__
12636 choke me
12637 #endif
12640 return 0;
12642 _ACEOF
12643 if ac_fn_cxx_try_compile "$LINENO"; then :
12644 ac_compiler_gnu=yes
12645 else
12646 ac_compiler_gnu=no
12648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12653 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12654 if test $ac_compiler_gnu = yes; then
12655 GXX=yes
12656 else
12657 GXX=
12659 ac_test_CXXFLAGS=${CXXFLAGS+set}
12660 ac_save_CXXFLAGS=$CXXFLAGS
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12662 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12663 if ${ac_cv_prog_cxx_g+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12667 ac_cxx_werror_flag=yes
12668 ac_cv_prog_cxx_g=no
12669 CXXFLAGS="-g"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12674 main ()
12678 return 0;
12680 _ACEOF
12681 if ac_fn_cxx_try_compile "$LINENO"; then :
12682 ac_cv_prog_cxx_g=yes
12683 else
12684 CXXFLAGS=""
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12689 main ()
12693 return 0;
12695 _ACEOF
12696 if ac_fn_cxx_try_compile "$LINENO"; then :
12698 else
12699 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12700 CXXFLAGS="-g"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12705 main ()
12709 return 0;
12711 _ACEOF
12712 if ac_fn_cxx_try_compile "$LINENO"; then :
12713 ac_cv_prog_cxx_g=yes
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12723 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12724 if test "$ac_test_CXXFLAGS" = set; then
12725 CXXFLAGS=$ac_save_CXXFLAGS
12726 elif test $ac_cv_prog_cxx_g = yes; then
12727 if test "$GXX" = yes; then
12728 CXXFLAGS="-g -O2"
12729 else
12730 CXXFLAGS="-g"
12732 else
12733 if test "$GXX" = yes; then
12734 CXXFLAGS="-O2"
12735 else
12736 CXXFLAGS=
12739 ac_ext=c
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745 depcc="$CXX" am_compiler_list=
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12748 $as_echo_n "checking dependency style of $depcc... " >&6; }
12749 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12753 # We make a subdir and do the tests there. Otherwise we can end up
12754 # making bogus files that we don't know about and never remove. For
12755 # instance it was reported that on HP-UX the gcc test will end up
12756 # making a dummy file named `D' -- because `-MD' means `put the output
12757 # in D'.
12758 rm -rf conftest.dir
12759 mkdir conftest.dir
12760 # Copy depcomp to subdir because otherwise we won't find it if we're
12761 # using a relative directory.
12762 cp "$am_depcomp" conftest.dir
12763 cd conftest.dir
12764 # We will build objects and dependencies in a subdirectory because
12765 # it helps to detect inapplicable dependency modes. For instance
12766 # both Tru64's cc and ICC support -MD to output dependencies as a
12767 # side effect of compilation, but ICC will put the dependencies in
12768 # the current directory while Tru64 will put them in the object
12769 # directory.
12770 mkdir sub
12772 am_cv_CXX_dependencies_compiler_type=none
12773 if test "$am_compiler_list" = ""; then
12774 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12776 am__universal=false
12777 case " $depcc " in #(
12778 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12779 esac
12781 for depmode in $am_compiler_list; do
12782 # Setup a source with many dependencies, because some compilers
12783 # like to wrap large dependency lists on column 80 (with \), and
12784 # we should not choose a depcomp mode which is confused by this.
12786 # We need to recreate these files for each test, as the compiler may
12787 # overwrite some of them when testing with obscure command lines.
12788 # This happens at least with the AIX C compiler.
12789 : > sub/conftest.c
12790 for i in 1 2 3 4 5 6; do
12791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12793 # Solaris 8's {/usr,}/bin/sh.
12794 touch sub/conftst$i.h
12795 done
12796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12799 # mode. It turns out that the SunPro C++ compiler does not properly
12800 # handle `-M -o', and we need to detect this. Also, some Intel
12801 # versions had trouble with output in subdirs
12802 am__obj=sub/conftest.${OBJEXT-o}
12803 am__minus_obj="-o $am__obj"
12804 case $depmode in
12805 gcc)
12806 # This depmode causes a compiler race in universal mode.
12807 test "$am__universal" = false || continue
12809 nosideeffect)
12810 # after this tag, mechanisms are not by side-effect, so they'll
12811 # only be used when explicitly requested
12812 if test "x$enable_dependency_tracking" = xyes; then
12813 continue
12814 else
12815 break
12818 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12819 # This compiler won't grok `-c -o', but also, the minuso test has
12820 # not run yet. These depmodes are late enough in the game, and
12821 # so weak that their functioning should not be impacted.
12822 am__obj=conftest.${OBJEXT-o}
12823 am__minus_obj=
12825 none) break ;;
12826 esac
12827 if depmode=$depmode \
12828 source=sub/conftest.c object=$am__obj \
12829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12830 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12831 >/dev/null 2>conftest.err &&
12832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12834 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12836 # icc doesn't choke on unknown options, it will just issue warnings
12837 # or remarks (even with -Werror). So we grep stderr for any message
12838 # that says an option was ignored or not supported.
12839 # When given -MP, icc 7.0 and 7.1 complain thusly:
12840 # icc: Command line warning: ignoring option '-M'; no argument required
12841 # The diagnosis changed in icc 8.0:
12842 # icc: Command line remark: option '-MP' not supported
12843 if (grep 'ignoring option' conftest.err ||
12844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12845 am_cv_CXX_dependencies_compiler_type=$depmode
12846 break
12849 done
12851 cd ..
12852 rm -rf conftest.dir
12853 else
12854 am_cv_CXX_dependencies_compiler_type=none
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12859 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12860 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12863 test "x$enable_dependency_tracking" != xno \
12864 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12865 am__fastdepCXX_TRUE=
12866 am__fastdepCXX_FALSE='#'
12867 else
12868 am__fastdepCXX_TRUE='#'
12869 am__fastdepCXX_FALSE=
12875 func_stripname_cnf ()
12877 case ${2} in
12878 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12879 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12880 esac
12881 } # func_stripname_cnf
12883 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12884 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12885 (test "X$CXX" != "Xg++"))) ; then
12886 ac_ext=cpp
12887 ac_cpp='$CXXCPP $CPPFLAGS'
12888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12892 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12893 if test -z "$CXXCPP"; then
12894 if ${ac_cv_prog_CXXCPP+:} false; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 # Double quotes because CXXCPP needs to be expanded
12898 for CXXCPP in "$CXX -E" "/lib/cpp"
12900 ac_preproc_ok=false
12901 for ac_cxx_preproc_warn_flag in '' yes
12903 # Use a header file that comes with gcc, so configuring glibc
12904 # with a fresh cross-compiler works.
12905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12906 # <limits.h> exists even on freestanding compilers.
12907 # On the NeXT, cc -E runs the code through the compiler's parser,
12908 # not just through cpp. "Syntax error" is here to catch this case.
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 #ifdef __STDC__
12912 # include <limits.h>
12913 #else
12914 # include <assert.h>
12915 #endif
12916 Syntax error
12917 _ACEOF
12918 if ac_fn_cxx_try_cpp "$LINENO"; then :
12920 else
12921 # Broken: fails on valid input.
12922 continue
12924 rm -f conftest.err conftest.i conftest.$ac_ext
12926 # OK, works on sane cases. Now check whether nonexistent headers
12927 # can be detected and how.
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 #include <ac_nonexistent.h>
12931 _ACEOF
12932 if ac_fn_cxx_try_cpp "$LINENO"; then :
12933 # Broken: success on invalid input.
12934 continue
12935 else
12936 # Passes both tests.
12937 ac_preproc_ok=:
12938 break
12940 rm -f conftest.err conftest.i conftest.$ac_ext
12942 done
12943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12944 rm -f conftest.i conftest.err conftest.$ac_ext
12945 if $ac_preproc_ok; then :
12946 break
12949 done
12950 ac_cv_prog_CXXCPP=$CXXCPP
12953 CXXCPP=$ac_cv_prog_CXXCPP
12954 else
12955 ac_cv_prog_CXXCPP=$CXXCPP
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12958 $as_echo "$CXXCPP" >&6; }
12959 ac_preproc_ok=false
12960 for ac_cxx_preproc_warn_flag in '' yes
12962 # Use a header file that comes with gcc, so configuring glibc
12963 # with a fresh cross-compiler works.
12964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12965 # <limits.h> exists even on freestanding compilers.
12966 # On the NeXT, cc -E runs the code through the compiler's parser,
12967 # not just through cpp. "Syntax error" is here to catch this case.
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12970 #ifdef __STDC__
12971 # include <limits.h>
12972 #else
12973 # include <assert.h>
12974 #endif
12975 Syntax error
12976 _ACEOF
12977 if ac_fn_cxx_try_cpp "$LINENO"; then :
12979 else
12980 # Broken: fails on valid input.
12981 continue
12983 rm -f conftest.err conftest.i conftest.$ac_ext
12985 # OK, works on sane cases. Now check whether nonexistent headers
12986 # can be detected and how.
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 #include <ac_nonexistent.h>
12990 _ACEOF
12991 if ac_fn_cxx_try_cpp "$LINENO"; then :
12992 # Broken: success on invalid input.
12993 continue
12994 else
12995 # Passes both tests.
12996 ac_preproc_ok=:
12997 break
12999 rm -f conftest.err conftest.i conftest.$ac_ext
13001 done
13002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13003 rm -f conftest.i conftest.err conftest.$ac_ext
13004 if $ac_preproc_ok; then :
13006 else
13007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13009 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13010 See \`config.log' for more details" "$LINENO" 5; }
13013 ac_ext=c
13014 ac_cpp='$CPP $CPPFLAGS'
13015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019 else
13020 _lt_caught_CXX_error=yes
13023 ac_ext=cpp
13024 ac_cpp='$CXXCPP $CPPFLAGS'
13025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13029 archive_cmds_need_lc_CXX=no
13030 allow_undefined_flag_CXX=
13031 always_export_symbols_CXX=no
13032 archive_expsym_cmds_CXX=
13033 compiler_needs_object_CXX=no
13034 export_dynamic_flag_spec_CXX=
13035 hardcode_direct_CXX=no
13036 hardcode_direct_absolute_CXX=no
13037 hardcode_libdir_flag_spec_CXX=
13038 hardcode_libdir_separator_CXX=
13039 hardcode_minus_L_CXX=no
13040 hardcode_shlibpath_var_CXX=unsupported
13041 hardcode_automatic_CXX=no
13042 inherit_rpath_CXX=no
13043 module_cmds_CXX=
13044 module_expsym_cmds_CXX=
13045 link_all_deplibs_CXX=unknown
13046 old_archive_cmds_CXX=$old_archive_cmds
13047 reload_flag_CXX=$reload_flag
13048 reload_cmds_CXX=$reload_cmds
13049 no_undefined_flag_CXX=
13050 whole_archive_flag_spec_CXX=
13051 enable_shared_with_static_runtimes_CXX=no
13053 # Source file extension for C++ test sources.
13054 ac_ext=cpp
13056 # Object file extension for compiled C++ test sources.
13057 objext=o
13058 objext_CXX=$objext
13060 # No sense in running all these tests if we already determined that
13061 # the CXX compiler isn't working. Some variables (like enable_shared)
13062 # are currently assumed to apply to all compilers on this platform,
13063 # and will be corrupted by setting them based on a non-working compiler.
13064 if test "$_lt_caught_CXX_error" != yes; then
13065 # Code to be used in simple compile tests
13066 lt_simple_compile_test_code="int some_variable = 0;"
13068 # Code to be used in simple link tests
13069 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13078 # If no C compiler was specified, use CC.
13079 LTCC=${LTCC-"$CC"}
13081 # If no C compiler flags were specified, use CFLAGS.
13082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13084 # Allow CC to be a program name with arguments.
13085 compiler=$CC
13088 # save warnings/boilerplate of simple test code
13089 ac_outfile=conftest.$ac_objext
13090 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13092 _lt_compiler_boilerplate=`cat conftest.err`
13093 $RM conftest*
13095 ac_outfile=conftest.$ac_objext
13096 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13098 _lt_linker_boilerplate=`cat conftest.err`
13099 $RM -r conftest*
13102 # Allow CC to be a program name with arguments.
13103 lt_save_CC=$CC
13104 lt_save_CFLAGS=$CFLAGS
13105 lt_save_LD=$LD
13106 lt_save_GCC=$GCC
13107 GCC=$GXX
13108 lt_save_with_gnu_ld=$with_gnu_ld
13109 lt_save_path_LD=$lt_cv_path_LD
13110 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13111 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13112 else
13113 $as_unset lt_cv_prog_gnu_ld
13115 if test -n "${lt_cv_path_LDCXX+set}"; then
13116 lt_cv_path_LD=$lt_cv_path_LDCXX
13117 else
13118 $as_unset lt_cv_path_LD
13120 test -z "${LDCXX+set}" || LD=$LDCXX
13121 CC=${CXX-"c++"}
13122 CFLAGS=$CXXFLAGS
13123 compiler=$CC
13124 compiler_CXX=$CC
13125 for cc_temp in $compiler""; do
13126 case $cc_temp in
13127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13129 \-*) ;;
13130 *) break;;
13131 esac
13132 done
13133 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13136 if test -n "$compiler"; then
13137 # We don't want -fno-exception when compiling C++ code, so set the
13138 # no_builtin_flag separately
13139 if test "$GXX" = yes; then
13140 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13141 else
13142 lt_prog_compiler_no_builtin_flag_CXX=
13145 if test "$GXX" = yes; then
13146 # Set up default GNU C++ configuration
13150 # Check whether --with-gnu-ld was given.
13151 if test "${with_gnu_ld+set}" = set; then :
13152 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13153 else
13154 with_gnu_ld=no
13157 ac_prog=ld
13158 if test "$GCC" = yes; then
13159 # Check if gcc -print-prog-name=ld gives a path.
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13161 $as_echo_n "checking for ld used by $CC... " >&6; }
13162 case $host in
13163 *-*-mingw*)
13164 # gcc leaves a trailing carriage return which upsets mingw
13165 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13167 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13168 esac
13169 case $ac_prog in
13170 # Accept absolute paths.
13171 [\\/]* | ?:[\\/]*)
13172 re_direlt='/[^/][^/]*/\.\./'
13173 # Canonicalize the pathname of ld
13174 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13175 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13176 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13177 done
13178 test -z "$LD" && LD="$ac_prog"
13181 # If it fails, then pretend we aren't using GCC.
13182 ac_prog=ld
13185 # If it is relative, then search for the first ld in PATH.
13186 with_gnu_ld=unknown
13188 esac
13189 elif test "$with_gnu_ld" = yes; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13191 $as_echo_n "checking for GNU ld... " >&6; }
13192 else
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13194 $as_echo_n "checking for non-GNU ld... " >&6; }
13196 if ${lt_cv_path_LD+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 if test -z "$LD"; then
13200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13201 for ac_dir in $PATH; do
13202 IFS="$lt_save_ifs"
13203 test -z "$ac_dir" && ac_dir=.
13204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13205 lt_cv_path_LD="$ac_dir/$ac_prog"
13206 # Check to see if the program is GNU ld. I'd rather use --version,
13207 # but apparently some variants of GNU ld only accept -v.
13208 # Break only if it was the GNU/non-GNU ld that we prefer.
13209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13210 *GNU* | *'with BFD'*)
13211 test "$with_gnu_ld" != no && break
13214 test "$with_gnu_ld" != yes && break
13216 esac
13218 done
13219 IFS="$lt_save_ifs"
13220 else
13221 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13225 LD="$lt_cv_path_LD"
13226 if test -n "$LD"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13228 $as_echo "$LD" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13233 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13235 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13236 if ${lt_cv_prog_gnu_ld+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13240 case `$LD -v 2>&1 </dev/null` in
13241 *GNU* | *'with BFD'*)
13242 lt_cv_prog_gnu_ld=yes
13245 lt_cv_prog_gnu_ld=no
13247 esac
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13250 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13251 with_gnu_ld=$lt_cv_prog_gnu_ld
13259 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13260 # archiving commands below assume that GNU ld is being used.
13261 if test "$with_gnu_ld" = yes; then
13262 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13263 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'
13265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13268 # If archive_cmds runs LD, not CC, wlarc should be empty
13269 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13270 # investigate it a little bit more. (MM)
13271 wlarc='${wl}'
13273 # ancient GNU ld didn't support --whole-archive et. al.
13274 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13275 $GREP 'no-whole-archive' > /dev/null; then
13276 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13277 else
13278 whole_archive_flag_spec_CXX=
13280 else
13281 with_gnu_ld=no
13282 wlarc=
13284 # A generic and very simple default shared library creation
13285 # command for GNU C++ for the case where it uses the native
13286 # linker, instead of GNU ld. If possible, this setting should
13287 # overridden to take advantage of the native linker features on
13288 # the platform it is being used on.
13289 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13292 # Commands to make compiler produce verbose output that lists
13293 # what "hidden" libraries, object files and flags are used when
13294 # linking a shared library.
13295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13297 else
13298 GXX=no
13299 with_gnu_ld=no
13300 wlarc=
13303 # PORTME: fill in a description of your system's C++ link characteristics
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13305 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13306 ld_shlibs_CXX=yes
13307 case $host_os in
13308 aix3*)
13309 # FIXME: insert proper C++ library support
13310 ld_shlibs_CXX=no
13312 aix[4-9]*)
13313 if test "$host_cpu" = ia64; then
13314 # On IA64, the linker does run time linking by default, so we don't
13315 # have to do anything special.
13316 aix_use_runtimelinking=no
13317 exp_sym_flag='-Bexport'
13318 no_entry_flag=""
13319 else
13320 aix_use_runtimelinking=no
13322 # Test if we are trying to use run time linking or normal
13323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13324 # need to do runtime linking.
13325 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13326 for ld_flag in $LDFLAGS; do
13327 case $ld_flag in
13328 *-brtl*)
13329 aix_use_runtimelinking=yes
13330 break
13332 esac
13333 done
13335 esac
13337 exp_sym_flag='-bexport'
13338 no_entry_flag='-bnoentry'
13341 # When large executables or shared objects are built, AIX ld can
13342 # have problems creating the table of contents. If linking a library
13343 # or program results in "error TOC overflow" add -mminimal-toc to
13344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13347 archive_cmds_CXX=''
13348 hardcode_direct_CXX=yes
13349 hardcode_direct_absolute_CXX=yes
13350 hardcode_libdir_separator_CXX=':'
13351 link_all_deplibs_CXX=yes
13352 file_list_spec_CXX='${wl}-f,'
13354 if test "$GXX" = yes; then
13355 case $host_os in aix4.[012]|aix4.[012].*)
13356 # We only want to do this on AIX 4.2 and lower, the check
13357 # below for broken collect2 doesn't work under 4.3+
13358 collect2name=`${CC} -print-prog-name=collect2`
13359 if test -f "$collect2name" &&
13360 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13361 then
13362 # We have reworked collect2
13364 else
13365 # We have old collect2
13366 hardcode_direct_CXX=unsupported
13367 # It fails to find uninstalled libraries when the uninstalled
13368 # path is not listed in the libpath. Setting hardcode_minus_L
13369 # to unsupported forces relinking
13370 hardcode_minus_L_CXX=yes
13371 hardcode_libdir_flag_spec_CXX='-L$libdir'
13372 hardcode_libdir_separator_CXX=
13374 esac
13375 shared_flag='-shared'
13376 if test "$aix_use_runtimelinking" = yes; then
13377 shared_flag="$shared_flag "'${wl}-G'
13379 else
13380 # not using gcc
13381 if test "$host_cpu" = ia64; then
13382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13383 # chokes on -Wl,-G. The following line is correct:
13384 shared_flag='-G'
13385 else
13386 if test "$aix_use_runtimelinking" = yes; then
13387 shared_flag='${wl}-G'
13388 else
13389 shared_flag='${wl}-bM:SRE'
13394 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13395 # It seems that -bexpall does not export symbols beginning with
13396 # underscore (_), so it is better to generate a list of symbols to
13397 # export.
13398 always_export_symbols_CXX=yes
13399 if test "$aix_use_runtimelinking" = yes; then
13400 # Warning - without using the other runtime loading flags (-brtl),
13401 # -berok will link without error, but may produce a broken library.
13402 allow_undefined_flag_CXX='-berok'
13403 # Determine the default libpath from the value encoded in an empty
13404 # executable.
13405 if test "${lt_cv_aix_libpath+set}" = set; then
13406 aix_libpath=$lt_cv_aix_libpath
13407 else
13408 if ${lt_cv_aix_libpath__CXX+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13415 main ()
13419 return 0;
13421 _ACEOF
13422 if ac_fn_cxx_try_link "$LINENO"; then :
13424 lt_aix_libpath_sed='
13425 /Import File Strings/,/^$/ {
13426 /^0/ {
13427 s/^0 *\([^ ]*\) *$/\1/
13431 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13432 # Check for a 64-bit object if we didn't find anything.
13433 if test -z "$lt_cv_aix_libpath__CXX"; then
13434 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13437 rm -f core conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$lt_cv_aix_libpath__CXX"; then
13440 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13445 aix_libpath=$lt_cv_aix_libpath__CXX
13448 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13450 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"
13451 else
13452 if test "$host_cpu" = ia64; then
13453 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13454 allow_undefined_flag_CXX="-z nodefs"
13455 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"
13456 else
13457 # Determine the default libpath from the value encoded in an
13458 # empty executable.
13459 if test "${lt_cv_aix_libpath+set}" = set; then
13460 aix_libpath=$lt_cv_aix_libpath
13461 else
13462 if ${lt_cv_aix_libpath__CXX+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13469 main ()
13473 return 0;
13475 _ACEOF
13476 if ac_fn_cxx_try_link "$LINENO"; then :
13478 lt_aix_libpath_sed='
13479 /Import File Strings/,/^$/ {
13480 /^0/ {
13481 s/^0 *\([^ ]*\) *$/\1/
13485 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 # Check for a 64-bit object if we didn't find anything.
13487 if test -z "$lt_cv_aix_libpath__CXX"; then
13488 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 if test -z "$lt_cv_aix_libpath__CXX"; then
13494 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13499 aix_libpath=$lt_cv_aix_libpath__CXX
13502 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503 # Warning - without using the other run time loading flags,
13504 # -berok will link without error, but may produce a broken library.
13505 no_undefined_flag_CXX=' ${wl}-bernotok'
13506 allow_undefined_flag_CXX=' ${wl}-berok'
13507 if test "$with_gnu_ld" = yes; then
13508 # We only use this code for GNU lds that support --whole-archive.
13509 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13510 else
13511 # Exported symbols can be pulled into shared objects from archives
13512 whole_archive_flag_spec_CXX='$convenience'
13514 archive_cmds_need_lc_CXX=yes
13515 # This is similar to how AIX traditionally builds its shared
13516 # libraries.
13517 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'
13522 beos*)
13523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13524 allow_undefined_flag_CXX=unsupported
13525 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13526 # support --undefined. This deserves some investigation. FIXME
13527 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13528 else
13529 ld_shlibs_CXX=no
13533 chorus*)
13534 case $cc_basename in
13536 # FIXME: insert proper C++ library support
13537 ld_shlibs_CXX=no
13539 esac
13542 cygwin* | mingw* | pw32* | cegcc*)
13543 case $GXX,$cc_basename in
13544 ,cl* | no,cl*)
13545 # Native MSVC
13546 # hardcode_libdir_flag_spec is actually meaningless, as there is
13547 # no search path for DLLs.
13548 hardcode_libdir_flag_spec_CXX=' '
13549 allow_undefined_flag_CXX=unsupported
13550 always_export_symbols_CXX=yes
13551 file_list_spec_CXX='@'
13552 # Tell ltmain to make .lib files, not .a files.
13553 libext=lib
13554 # Tell ltmain to make .dll files, not .so files.
13555 shrext_cmds=".dll"
13556 # FIXME: Setting linknames here is a bad hack.
13557 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13558 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13559 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13560 else
13561 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13563 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13564 linknames='
13565 # The linker will not automatically build a static lib if we build a DLL.
13566 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13567 enable_shared_with_static_runtimes_CXX=yes
13568 # Don't use ranlib
13569 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13570 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13571 lt_tool_outputfile="@TOOL_OUTPUT@"~
13572 case $lt_outputfile in
13573 *.exe|*.EXE) ;;
13575 lt_outputfile="$lt_outputfile.exe"
13576 lt_tool_outputfile="$lt_tool_outputfile.exe"
13578 esac~
13579 func_to_tool_file "$lt_outputfile"~
13580 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13581 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13582 $RM "$lt_outputfile.manifest";
13586 # g++
13587 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13588 # as there is no search path for DLLs.
13589 hardcode_libdir_flag_spec_CXX='-L$libdir'
13590 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13591 allow_undefined_flag_CXX=unsupported
13592 always_export_symbols_CXX=no
13593 enable_shared_with_static_runtimes_CXX=yes
13595 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13596 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'
13597 # If the export-symbols file already is a .def file (1st line
13598 # is EXPORTS), use it as is; otherwise, prepend...
13599 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13600 cp $export_symbols $output_objdir/$soname.def;
13601 else
13602 echo EXPORTS > $output_objdir/$soname.def;
13603 cat $export_symbols >> $output_objdir/$soname.def;
13605 $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'
13606 else
13607 ld_shlibs_CXX=no
13610 esac
13612 darwin* | rhapsody*)
13615 archive_cmds_need_lc_CXX=no
13616 hardcode_direct_CXX=no
13617 hardcode_automatic_CXX=yes
13618 hardcode_shlibpath_var_CXX=unsupported
13619 if test "$lt_cv_ld_force_load" = "yes"; then
13620 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\"`'
13622 else
13623 whole_archive_flag_spec_CXX=''
13625 link_all_deplibs_CXX=yes
13626 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13627 case $cc_basename in
13628 ifort*) _lt_dar_can_shared=yes ;;
13629 *) _lt_dar_can_shared=$GCC ;;
13630 esac
13631 if test "$_lt_dar_can_shared" = "yes"; then
13632 output_verbose_link_cmd=func_echo_all
13633 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}"
13634 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13635 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}"
13636 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}"
13637 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13638 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}"
13639 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}"
13642 else
13643 ld_shlibs_CXX=no
13648 dgux*)
13649 case $cc_basename in
13650 ec++*)
13651 # FIXME: insert proper C++ library support
13652 ld_shlibs_CXX=no
13654 ghcx*)
13655 # Green Hills C++ Compiler
13656 # FIXME: insert proper C++ library support
13657 ld_shlibs_CXX=no
13660 # FIXME: insert proper C++ library support
13661 ld_shlibs_CXX=no
13663 esac
13666 freebsd2.*)
13667 # C++ shared libraries reported to be fairly broken before
13668 # switch to ELF
13669 ld_shlibs_CXX=no
13672 freebsd-elf*)
13673 archive_cmds_need_lc_CXX=no
13676 freebsd* | dragonfly*)
13677 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13678 # conventions
13679 ld_shlibs_CXX=yes
13682 gnu*)
13685 haiku*)
13686 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13687 link_all_deplibs_CXX=yes
13690 hpux9*)
13691 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13692 hardcode_libdir_separator_CXX=:
13693 export_dynamic_flag_spec_CXX='${wl}-E'
13694 hardcode_direct_CXX=yes
13695 hardcode_minus_L_CXX=yes # Not in the search PATH,
13696 # but as the default
13697 # location of the library.
13699 case $cc_basename in
13700 CC*)
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13704 aCC*)
13705 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'
13706 # Commands to make compiler produce verbose output that lists
13707 # what "hidden" libraries, object files and flags are used when
13708 # linking a shared library.
13710 # There doesn't appear to be a way to prevent this compiler from
13711 # explicitly linking system object files so we need to strip them
13712 # from the output so that they don't get included in the library
13713 # dependencies.
13714 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"'
13717 if test "$GXX" = yes; then
13718 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'
13719 else
13720 # FIXME: insert proper C++ library support
13721 ld_shlibs_CXX=no
13724 esac
13727 hpux10*|hpux11*)
13728 if test $with_gnu_ld = no; then
13729 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13730 hardcode_libdir_separator_CXX=:
13732 case $host_cpu in
13733 hppa*64*|ia64*)
13736 export_dynamic_flag_spec_CXX='${wl}-E'
13738 esac
13740 case $host_cpu in
13741 hppa*64*|ia64*)
13742 hardcode_direct_CXX=no
13743 hardcode_shlibpath_var_CXX=no
13746 hardcode_direct_CXX=yes
13747 hardcode_direct_absolute_CXX=yes
13748 hardcode_minus_L_CXX=yes # Not in the search PATH,
13749 # but as the default
13750 # location of the library.
13752 esac
13754 case $cc_basename in
13755 CC*)
13756 # FIXME: insert proper C++ library support
13757 ld_shlibs_CXX=no
13759 aCC*)
13760 case $host_cpu in
13761 hppa*64*)
13762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13764 ia64*)
13765 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13768 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13770 esac
13771 # Commands to make compiler produce verbose output that lists
13772 # what "hidden" libraries, object files and flags are used when
13773 # linking a shared library.
13775 # There doesn't appear to be a way to prevent this compiler from
13776 # explicitly linking system object files so we need to strip them
13777 # from the output so that they don't get included in the library
13778 # dependencies.
13779 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"'
13782 if test "$GXX" = yes; then
13783 if test $with_gnu_ld = no; then
13784 case $host_cpu in
13785 hppa*64*)
13786 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13788 ia64*)
13789 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13792 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'
13794 esac
13796 else
13797 # FIXME: insert proper C++ library support
13798 ld_shlibs_CXX=no
13801 esac
13804 interix[3-9]*)
13805 hardcode_direct_CXX=no
13806 hardcode_shlibpath_var_CXX=no
13807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13808 export_dynamic_flag_spec_CXX='${wl}-E'
13809 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13810 # Instead, shared libraries are loaded at an image base (0x10000000 by
13811 # default) and relocated if they conflict, which is a slow very memory
13812 # consuming and fragmenting process. To avoid this, we pick a random,
13813 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13814 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13815 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'
13816 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'
13818 irix5* | irix6*)
13819 case $cc_basename in
13820 CC*)
13821 # SGI C++
13822 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'
13824 # Archives containing C++ object files must be created using
13825 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13826 # necessary to make sure instantiated templates are included
13827 # in the archive.
13828 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13831 if test "$GXX" = yes; then
13832 if test "$with_gnu_ld" = no; then
13833 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'
13834 else
13835 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'
13838 link_all_deplibs_CXX=yes
13840 esac
13841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13842 hardcode_libdir_separator_CXX=:
13843 inherit_rpath_CXX=yes
13846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13847 case $cc_basename in
13848 KCC*)
13849 # Kuck and Associates, Inc. (KAI) C++ Compiler
13851 # KCC will only create a shared library if the output file
13852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13853 # to its proper name (with version) after linking.
13854 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'
13855 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'
13856 # Commands to make compiler produce verbose output that lists
13857 # what "hidden" libraries, object files and flags are used when
13858 # linking a shared library.
13860 # There doesn't appear to be a way to prevent this compiler from
13861 # explicitly linking system object files so we need to strip them
13862 # from the output so that they don't get included in the library
13863 # dependencies.
13864 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"'
13866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13867 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13869 # Archives containing C++ object files must be created using
13870 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13871 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13873 icpc* | ecpc* )
13874 # Intel C++
13875 with_gnu_ld=yes
13876 # version 8.0 and above of icpc choke on multiply defined symbols
13877 # if we add $predep_objects and $postdep_objects, however 7.1 and
13878 # earlier do not add the objects themselves.
13879 case `$CC -V 2>&1` in
13880 *"Version 7."*)
13881 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13882 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'
13884 *) # Version 8.0 or newer
13885 tmp_idyn=
13886 case $host_cpu in
13887 ia64*) tmp_idyn=' -i_dynamic';;
13888 esac
13889 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13890 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'
13892 esac
13893 archive_cmds_need_lc_CXX=no
13894 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13895 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13896 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13898 pgCC* | pgcpp*)
13899 # Portland Group C++ compiler
13900 case `$CC -V` in
13901 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13902 prelink_cmds_CXX='tpldir=Template.dir~
13903 rm -rf $tpldir~
13904 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13905 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13906 old_archive_cmds_CXX='tpldir=Template.dir~
13907 rm -rf $tpldir~
13908 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13909 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13910 $RANLIB $oldlib'
13911 archive_cmds_CXX='tpldir=Template.dir~
13912 rm -rf $tpldir~
13913 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13914 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13915 archive_expsym_cmds_CXX='tpldir=Template.dir~
13916 rm -rf $tpldir~
13917 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13918 $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'
13920 *) # Version 6 and above use weak symbols
13921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13922 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'
13924 esac
13926 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13927 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13928 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'
13930 cxx*)
13931 # Compaq C++
13932 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13933 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'
13935 runpath_var=LD_RUN_PATH
13936 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13937 hardcode_libdir_separator_CXX=:
13939 # Commands to make compiler produce verbose output that lists
13940 # what "hidden" libraries, object files and flags are used when
13941 # linking a shared library.
13943 # There doesn't appear to be a way to prevent this compiler from
13944 # explicitly linking system object files so we need to strip them
13945 # from the output so that they don't get included in the library
13946 # dependencies.
13947 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'
13949 xl* | mpixl* | bgxl*)
13950 # IBM XL 8.0 on PPC, with GNU ld
13951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13953 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13954 if test "x$supports_anon_versioning" = xyes; then
13955 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13957 echo "local: *; };" >> $output_objdir/$libname.ver~
13958 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13962 case `$CC -V 2>&1 | sed 5q` in
13963 *Sun\ C*)
13964 # Sun C++ 5.9
13965 no_undefined_flag_CXX=' -zdefs'
13966 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13967 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'
13968 hardcode_libdir_flag_spec_CXX='-R$libdir'
13969 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'
13970 compiler_needs_object_CXX=yes
13972 # Not sure whether something based on
13973 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13974 # would be better.
13975 output_verbose_link_cmd='func_echo_all'
13977 # Archives containing C++ object files must be created using
13978 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13979 # necessary to make sure instantiated templates are included
13980 # in the archive.
13981 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13983 esac
13985 esac
13988 lynxos*)
13989 # FIXME: insert proper C++ library support
13990 ld_shlibs_CXX=no
13993 m88k*)
13994 # FIXME: insert proper C++ library support
13995 ld_shlibs_CXX=no
13998 mvs*)
13999 case $cc_basename in
14000 cxx*)
14001 # FIXME: insert proper C++ library support
14002 ld_shlibs_CXX=no
14005 # FIXME: insert proper C++ library support
14006 ld_shlibs_CXX=no
14008 esac
14011 netbsd*)
14012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14013 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14014 wlarc=
14015 hardcode_libdir_flag_spec_CXX='-R$libdir'
14016 hardcode_direct_CXX=yes
14017 hardcode_shlibpath_var_CXX=no
14019 # Workaround some broken pre-1.5 toolchains
14020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14023 *nto* | *qnx*)
14024 ld_shlibs_CXX=yes
14027 openbsd2*)
14028 # C++ shared libraries are fairly broken
14029 ld_shlibs_CXX=no
14032 openbsd*)
14033 if test -f /usr/libexec/ld.so; then
14034 hardcode_direct_CXX=yes
14035 hardcode_shlibpath_var_CXX=no
14036 hardcode_direct_absolute_CXX=yes
14037 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14040 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14041 export_dynamic_flag_spec_CXX='${wl}-E'
14042 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14044 output_verbose_link_cmd=func_echo_all
14045 else
14046 ld_shlibs_CXX=no
14050 osf3* | osf4* | osf5*)
14051 case $cc_basename in
14052 KCC*)
14053 # Kuck and Associates, Inc. (KAI) C++ Compiler
14055 # KCC will only create a shared library if the output file
14056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14057 # to its proper name (with version) after linking.
14058 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'
14060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14061 hardcode_libdir_separator_CXX=:
14063 # Archives containing C++ object files must be created using
14064 # the KAI C++ compiler.
14065 case $host in
14066 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14067 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14068 esac
14070 RCC*)
14071 # Rational C++ 2.4.1
14072 # FIXME: insert proper C++ library support
14073 ld_shlibs_CXX=no
14075 cxx*)
14076 case $host in
14077 osf3*)
14078 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14079 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'
14080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14083 allow_undefined_flag_CXX=' -expect_unresolved \*'
14084 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'
14085 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14086 echo "-hidden">> $lib.exp~
14087 $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~
14088 $RM $lib.exp'
14089 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14091 esac
14093 hardcode_libdir_separator_CXX=:
14095 # Commands to make compiler produce verbose output that lists
14096 # what "hidden" libraries, object files and flags are used when
14097 # linking a shared library.
14099 # There doesn't appear to be a way to prevent this compiler from
14100 # explicitly linking system object files so we need to strip them
14101 # from the output so that they don't get included in the library
14102 # dependencies.
14103 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"'
14106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14107 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14108 case $host in
14109 osf3*)
14110 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'
14113 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'
14115 esac
14117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14118 hardcode_libdir_separator_CXX=:
14120 # Commands to make compiler produce verbose output that lists
14121 # what "hidden" libraries, object files and flags are used when
14122 # linking a shared library.
14123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14125 else
14126 # FIXME: insert proper C++ library support
14127 ld_shlibs_CXX=no
14130 esac
14133 psos*)
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14138 sunos4*)
14139 case $cc_basename in
14140 CC*)
14141 # Sun C++ 4.x
14142 # FIXME: insert proper C++ library support
14143 ld_shlibs_CXX=no
14145 lcc*)
14146 # Lucid
14147 # FIXME: insert proper C++ library support
14148 ld_shlibs_CXX=no
14151 # FIXME: insert proper C++ library support
14152 ld_shlibs_CXX=no
14154 esac
14157 solaris*)
14158 case $cc_basename in
14159 CC* | sunCC*)
14160 # Sun C++ 4.2, 5.x and Centerline C++
14161 archive_cmds_need_lc_CXX=yes
14162 no_undefined_flag_CXX=' -zdefs'
14163 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14164 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14165 $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'
14167 hardcode_libdir_flag_spec_CXX='-R$libdir'
14168 hardcode_shlibpath_var_CXX=no
14169 case $host_os in
14170 solaris2.[0-5] | solaris2.[0-5].*) ;;
14172 # The compiler driver will combine and reorder linker options,
14173 # but understands `-z linker_flag'.
14174 # Supported since Solaris 2.6 (maybe 2.5.1?)
14175 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14177 esac
14178 link_all_deplibs_CXX=yes
14180 output_verbose_link_cmd='func_echo_all'
14182 # Archives containing C++ object files must be created using
14183 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14184 # necessary to make sure instantiated templates are included
14185 # in the archive.
14186 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14188 gcx*)
14189 # Green Hills C++ Compiler
14190 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14192 # The C++ compiler must be used to create the archive.
14193 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14196 # GNU C++ compiler with Solaris linker
14197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14198 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14199 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14200 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14201 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14202 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14204 # Commands to make compiler produce verbose output that lists
14205 # what "hidden" libraries, object files and flags are used when
14206 # linking a shared library.
14207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14208 else
14209 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14210 # platform.
14211 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14212 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14213 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14215 # Commands to make compiler produce verbose output that lists
14216 # what "hidden" libraries, object files and flags are used when
14217 # linking a shared library.
14218 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14221 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14222 case $host_os in
14223 solaris2.[0-5] | solaris2.[0-5].*) ;;
14225 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14227 esac
14230 esac
14233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14234 no_undefined_flag_CXX='${wl}-z,text'
14235 archive_cmds_need_lc_CXX=no
14236 hardcode_shlibpath_var_CXX=no
14237 runpath_var='LD_RUN_PATH'
14239 case $cc_basename in
14240 CC*)
14241 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248 esac
14251 sysv5* | sco3.2v5* | sco5v6*)
14252 # Note: We can NOT use -z defs as we might desire, because we do not
14253 # link with -lc, and that would cause any symbols used from libc to
14254 # always be unresolved, which means just about no library would
14255 # ever link correctly. If we're not using GNU ld we use -z text
14256 # though, which does catch some bad symbols but isn't as heavy-handed
14257 # as -z defs.
14258 no_undefined_flag_CXX='${wl}-z,text'
14259 allow_undefined_flag_CXX='${wl}-z,nodefs'
14260 archive_cmds_need_lc_CXX=no
14261 hardcode_shlibpath_var_CXX=no
14262 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14263 hardcode_libdir_separator_CXX=':'
14264 link_all_deplibs_CXX=yes
14265 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14266 runpath_var='LD_RUN_PATH'
14268 case $cc_basename in
14269 CC*)
14270 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14271 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14272 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14273 '"$old_archive_cmds_CXX"
14274 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14275 '"$reload_cmds_CXX"
14278 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281 esac
14284 tandem*)
14285 case $cc_basename in
14286 NCC*)
14287 # NonStop-UX NCC 3.20
14288 # FIXME: insert proper C++ library support
14289 ld_shlibs_CXX=no
14292 # FIXME: insert proper C++ library support
14293 ld_shlibs_CXX=no
14295 esac
14298 vxworks*)
14299 # FIXME: insert proper C++ library support
14300 ld_shlibs_CXX=no
14304 # FIXME: insert proper C++ library support
14305 ld_shlibs_CXX=no
14307 esac
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14310 $as_echo "$ld_shlibs_CXX" >&6; }
14311 test "$ld_shlibs_CXX" = no && can_build_shared=no
14313 GCC_CXX="$GXX"
14314 LD_CXX="$LD"
14316 ## CAVEAT EMPTOR:
14317 ## There is no encapsulation within the following macros, do not change
14318 ## the running order or otherwise move them around unless you know exactly
14319 ## what you are doing...
14320 # Dependencies to place before and after the object being linked:
14321 predep_objects_CXX=
14322 postdep_objects_CXX=
14323 predeps_CXX=
14324 postdeps_CXX=
14325 compiler_lib_search_path_CXX=
14327 cat > conftest.$ac_ext <<_LT_EOF
14328 class Foo
14330 public:
14331 Foo (void) { a = 0; }
14332 private:
14333 int a;
14335 _LT_EOF
14338 _lt_libdeps_save_CFLAGS=$CFLAGS
14339 case "$CC $CFLAGS " in #(
14340 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14341 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14342 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14343 esac
14345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14346 (eval $ac_compile) 2>&5
14347 ac_status=$?
14348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14349 test $ac_status = 0; }; then
14350 # Parse the compiler output and extract the necessary
14351 # objects, libraries and library flags.
14353 # Sentinel used to keep track of whether or not we are before
14354 # the conftest object file.
14355 pre_test_object_deps_done=no
14357 for p in `eval "$output_verbose_link_cmd"`; do
14358 case ${prev}${p} in
14360 -L* | -R* | -l*)
14361 # Some compilers place space between "-{L,R}" and the path.
14362 # Remove the space.
14363 if test $p = "-L" ||
14364 test $p = "-R"; then
14365 prev=$p
14366 continue
14369 # Expand the sysroot to ease extracting the directories later.
14370 if test -z "$prev"; then
14371 case $p in
14372 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14373 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14374 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14375 esac
14377 case $p in
14378 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14379 esac
14380 if test "$pre_test_object_deps_done" = no; then
14381 case ${prev} in
14382 -L | -R)
14383 # Internal compiler library paths should come after those
14384 # provided the user. The postdeps already come after the
14385 # user supplied libs so there is no need to process them.
14386 if test -z "$compiler_lib_search_path_CXX"; then
14387 compiler_lib_search_path_CXX="${prev}${p}"
14388 else
14389 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14392 # The "-l" case would never come before the object being
14393 # linked, so don't bother handling this case.
14394 esac
14395 else
14396 if test -z "$postdeps_CXX"; then
14397 postdeps_CXX="${prev}${p}"
14398 else
14399 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14402 prev=
14405 *.lto.$objext) ;; # Ignore GCC LTO objects
14406 *.$objext)
14407 # This assumes that the test object file only shows up
14408 # once in the compiler output.
14409 if test "$p" = "conftest.$objext"; then
14410 pre_test_object_deps_done=yes
14411 continue
14414 if test "$pre_test_object_deps_done" = no; then
14415 if test -z "$predep_objects_CXX"; then
14416 predep_objects_CXX="$p"
14417 else
14418 predep_objects_CXX="$predep_objects_CXX $p"
14420 else
14421 if test -z "$postdep_objects_CXX"; then
14422 postdep_objects_CXX="$p"
14423 else
14424 postdep_objects_CXX="$postdep_objects_CXX $p"
14429 *) ;; # Ignore the rest.
14431 esac
14432 done
14434 # Clean up.
14435 rm -f a.out a.exe
14436 else
14437 echo "libtool.m4: error: problem compiling CXX test program"
14440 $RM -f confest.$objext
14441 CFLAGS=$_lt_libdeps_save_CFLAGS
14443 # PORTME: override above test on systems where it is broken
14444 case $host_os in
14445 interix[3-9]*)
14446 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14447 # hack all around it, let's just trust "g++" to DTRT.
14448 predep_objects_CXX=
14449 postdep_objects_CXX=
14450 postdeps_CXX=
14453 linux*)
14454 case `$CC -V 2>&1 | sed 5q` in
14455 *Sun\ C*)
14456 # Sun C++ 5.9
14458 # The more standards-conforming stlport4 library is
14459 # incompatible with the Cstd library. Avoid specifying
14460 # it if it's in CXXFLAGS. Ignore libCrun as
14461 # -library=stlport4 depends on it.
14462 case " $CXX $CXXFLAGS " in
14463 *" -library=stlport4 "*)
14464 solaris_use_stlport4=yes
14466 esac
14468 if test "$solaris_use_stlport4" != yes; then
14469 postdeps_CXX='-library=Cstd -library=Crun'
14472 esac
14475 solaris*)
14476 case $cc_basename in
14477 CC* | sunCC*)
14478 # The more standards-conforming stlport4 library is
14479 # incompatible with the Cstd library. Avoid specifying
14480 # it if it's in CXXFLAGS. Ignore libCrun as
14481 # -library=stlport4 depends on it.
14482 case " $CXX $CXXFLAGS " in
14483 *" -library=stlport4 "*)
14484 solaris_use_stlport4=yes
14486 esac
14488 # Adding this requires a known-good setup of shared libraries for
14489 # Sun compiler versions before 5.6, else PIC objects from an old
14490 # archive will be linked into the output, leading to subtle bugs.
14491 if test "$solaris_use_stlport4" != yes; then
14492 postdeps_CXX='-library=Cstd -library=Crun'
14495 esac
14497 esac
14500 case " $postdeps_CXX " in
14501 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14502 esac
14503 compiler_lib_search_dirs_CXX=
14504 if test -n "${compiler_lib_search_path_CXX}"; then
14505 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14538 lt_prog_compiler_wl_CXX=
14539 lt_prog_compiler_pic_CXX=
14540 lt_prog_compiler_static_CXX=
14543 # C++ specific cases for pic, static, wl, etc.
14544 if test "$GXX" = yes; then
14545 lt_prog_compiler_wl_CXX='-Wl,'
14546 lt_prog_compiler_static_CXX='-static'
14548 case $host_os in
14549 aix*)
14550 # All AIX code is PIC.
14551 if test "$host_cpu" = ia64; then
14552 # AIX 5 now supports IA64 processor
14553 lt_prog_compiler_static_CXX='-Bstatic'
14557 amigaos*)
14558 case $host_cpu in
14559 powerpc)
14560 # see comment about AmigaOS4 .so support
14561 lt_prog_compiler_pic_CXX='-fPIC'
14563 m68k)
14564 # FIXME: we need at least 68020 code to build shared libraries, but
14565 # adding the `-m68020' flag to GCC prevents building anything better,
14566 # like `-m68040'.
14567 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14569 esac
14572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14573 # PIC is the default for these OSes.
14575 mingw* | cygwin* | os2* | pw32* | cegcc*)
14576 # This hack is so that the source file can tell whether it is being
14577 # built for inclusion in a dll (and should export symbols for example).
14578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14579 # (--disable-auto-import) libraries
14580 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14582 darwin* | rhapsody*)
14583 # PIC is the default on this platform
14584 # Common symbols not allowed in MH_DYLIB files
14585 lt_prog_compiler_pic_CXX='-fno-common'
14587 *djgpp*)
14588 # DJGPP does not support shared libraries at all
14589 lt_prog_compiler_pic_CXX=
14591 haiku*)
14592 # PIC is the default for Haiku.
14593 # The "-static" flag exists, but is broken.
14594 lt_prog_compiler_static_CXX=
14596 interix[3-9]*)
14597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14598 # Instead, we relocate shared libraries at runtime.
14600 sysv4*MP*)
14601 if test -d /usr/nec; then
14602 lt_prog_compiler_pic_CXX=-Kconform_pic
14605 hpux*)
14606 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14607 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14608 # sets the default TLS model and affects inlining.
14609 case $host_cpu in
14610 hppa*64*)
14613 lt_prog_compiler_pic_CXX='-fPIC'
14615 esac
14617 *qnx* | *nto*)
14618 # QNX uses GNU C++, but need to define -shared option too, otherwise
14619 # it will coredump.
14620 lt_prog_compiler_pic_CXX='-fPIC -shared'
14623 lt_prog_compiler_pic_CXX='-fPIC'
14625 esac
14626 else
14627 case $host_os in
14628 aix[4-9]*)
14629 # All AIX code is PIC.
14630 if test "$host_cpu" = ia64; then
14631 # AIX 5 now supports IA64 processor
14632 lt_prog_compiler_static_CXX='-Bstatic'
14633 else
14634 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14637 chorus*)
14638 case $cc_basename in
14639 cxch68*)
14640 # Green Hills C++ Compiler
14641 # _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"
14643 esac
14645 mingw* | cygwin* | os2* | pw32* | cegcc*)
14646 # This hack is so that the source file can tell whether it is being
14647 # built for inclusion in a dll (and should export symbols for example).
14648 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14650 dgux*)
14651 case $cc_basename in
14652 ec++*)
14653 lt_prog_compiler_pic_CXX='-KPIC'
14655 ghcx*)
14656 # Green Hills C++ Compiler
14657 lt_prog_compiler_pic_CXX='-pic'
14661 esac
14663 freebsd* | dragonfly*)
14664 # FreeBSD uses GNU C++
14666 hpux9* | hpux10* | hpux11*)
14667 case $cc_basename in
14668 CC*)
14669 lt_prog_compiler_wl_CXX='-Wl,'
14670 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14671 if test "$host_cpu" != ia64; then
14672 lt_prog_compiler_pic_CXX='+Z'
14675 aCC*)
14676 lt_prog_compiler_wl_CXX='-Wl,'
14677 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14678 case $host_cpu in
14679 hppa*64*|ia64*)
14680 # +Z the default
14683 lt_prog_compiler_pic_CXX='+Z'
14685 esac
14689 esac
14691 interix*)
14692 # This is c89, which is MS Visual C++ (no shared libs)
14693 # Anyone wants to do a port?
14695 irix5* | irix6* | nonstopux*)
14696 case $cc_basename in
14697 CC*)
14698 lt_prog_compiler_wl_CXX='-Wl,'
14699 lt_prog_compiler_static_CXX='-non_shared'
14700 # CC pic flag -KPIC is the default.
14704 esac
14706 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14707 case $cc_basename in
14708 KCC*)
14709 # KAI C++ Compiler
14710 lt_prog_compiler_wl_CXX='--backend -Wl,'
14711 lt_prog_compiler_pic_CXX='-fPIC'
14713 ecpc* )
14714 # old Intel C++ for x86_64 which still supported -KPIC.
14715 lt_prog_compiler_wl_CXX='-Wl,'
14716 lt_prog_compiler_pic_CXX='-KPIC'
14717 lt_prog_compiler_static_CXX='-static'
14719 icpc* )
14720 # Intel C++, used to be incompatible with GCC.
14721 # ICC 10 doesn't accept -KPIC any more.
14722 lt_prog_compiler_wl_CXX='-Wl,'
14723 lt_prog_compiler_pic_CXX='-fPIC'
14724 lt_prog_compiler_static_CXX='-static'
14726 pgCC* | pgcpp*)
14727 # Portland Group C++ compiler
14728 lt_prog_compiler_wl_CXX='-Wl,'
14729 lt_prog_compiler_pic_CXX='-fpic'
14730 lt_prog_compiler_static_CXX='-Bstatic'
14732 cxx*)
14733 # Compaq C++
14734 # Make sure the PIC flag is empty. It appears that all Alpha
14735 # Linux and Compaq Tru64 Unix objects are PIC.
14736 lt_prog_compiler_pic_CXX=
14737 lt_prog_compiler_static_CXX='-non_shared'
14739 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14740 # IBM XL 8.0, 9.0 on PPC and BlueGene
14741 lt_prog_compiler_wl_CXX='-Wl,'
14742 lt_prog_compiler_pic_CXX='-qpic'
14743 lt_prog_compiler_static_CXX='-qstaticlink'
14746 case `$CC -V 2>&1 | sed 5q` in
14747 *Sun\ C*)
14748 # Sun C++ 5.9
14749 lt_prog_compiler_pic_CXX='-KPIC'
14750 lt_prog_compiler_static_CXX='-Bstatic'
14751 lt_prog_compiler_wl_CXX='-Qoption ld '
14753 esac
14755 esac
14757 lynxos*)
14759 m88k*)
14761 mvs*)
14762 case $cc_basename in
14763 cxx*)
14764 lt_prog_compiler_pic_CXX='-W c,exportall'
14768 esac
14770 netbsd* | netbsdelf*-gnu)
14772 *qnx* | *nto*)
14773 # QNX uses GNU C++, but need to define -shared option too, otherwise
14774 # it will coredump.
14775 lt_prog_compiler_pic_CXX='-fPIC -shared'
14777 osf3* | osf4* | osf5*)
14778 case $cc_basename in
14779 KCC*)
14780 lt_prog_compiler_wl_CXX='--backend -Wl,'
14782 RCC*)
14783 # Rational C++ 2.4.1
14784 lt_prog_compiler_pic_CXX='-pic'
14786 cxx*)
14787 # Digital/Compaq C++
14788 lt_prog_compiler_wl_CXX='-Wl,'
14789 # Make sure the PIC flag is empty. It appears that all Alpha
14790 # Linux and Compaq Tru64 Unix objects are PIC.
14791 lt_prog_compiler_pic_CXX=
14792 lt_prog_compiler_static_CXX='-non_shared'
14796 esac
14798 psos*)
14800 solaris*)
14801 case $cc_basename in
14802 CC* | sunCC*)
14803 # Sun C++ 4.2, 5.x and Centerline C++
14804 lt_prog_compiler_pic_CXX='-KPIC'
14805 lt_prog_compiler_static_CXX='-Bstatic'
14806 lt_prog_compiler_wl_CXX='-Qoption ld '
14808 gcx*)
14809 # Green Hills C++ Compiler
14810 lt_prog_compiler_pic_CXX='-PIC'
14814 esac
14816 sunos4*)
14817 case $cc_basename in
14818 CC*)
14819 # Sun C++ 4.x
14820 lt_prog_compiler_pic_CXX='-pic'
14821 lt_prog_compiler_static_CXX='-Bstatic'
14823 lcc*)
14824 # Lucid
14825 lt_prog_compiler_pic_CXX='-pic'
14829 esac
14831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14832 case $cc_basename in
14833 CC*)
14834 lt_prog_compiler_wl_CXX='-Wl,'
14835 lt_prog_compiler_pic_CXX='-KPIC'
14836 lt_prog_compiler_static_CXX='-Bstatic'
14838 esac
14840 tandem*)
14841 case $cc_basename in
14842 NCC*)
14843 # NonStop-UX NCC 3.20
14844 lt_prog_compiler_pic_CXX='-KPIC'
14848 esac
14850 vxworks*)
14853 lt_prog_compiler_can_build_shared_CXX=no
14855 esac
14858 case $host_os in
14859 # For platforms which do not support PIC, -DPIC is meaningless:
14860 *djgpp*)
14861 lt_prog_compiler_pic_CXX=
14864 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14866 esac
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14869 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14870 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872 else
14873 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14876 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14877 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14880 # Check to make sure the PIC flag actually works.
14882 if test -n "$lt_prog_compiler_pic_CXX"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14884 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14885 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14888 lt_cv_prog_compiler_pic_works_CXX=no
14889 ac_outfile=conftest.$ac_objext
14890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14891 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14892 # Insert the option either (1) after the last *FLAGS variable, or
14893 # (2) before a word containing "conftest.", or (3) at the end.
14894 # Note that $ac_compile itself does not contain backslashes and begins
14895 # with a dollar sign (not a hyphen), so the echo should work correctly.
14896 # The option is referenced via a variable to avoid confusing sed.
14897 lt_compile=`echo "$ac_compile" | $SED \
14898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
14901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14902 (eval "$lt_compile" 2>conftest.err)
14903 ac_status=$?
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 if (exit $ac_status) && test -s "$ac_outfile"; then
14907 # The compiler can only warn and ignore the option if not recognized
14908 # So say no if there are warnings other than the usual output.
14909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14912 lt_cv_prog_compiler_pic_works_CXX=yes
14915 $RM conftest*
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14919 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14921 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14922 case $lt_prog_compiler_pic_CXX in
14923 "" | " "*) ;;
14924 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14925 esac
14926 else
14927 lt_prog_compiler_pic_CXX=
14928 lt_prog_compiler_can_build_shared_CXX=no
14938 # Check to make sure the static flag actually works.
14940 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14942 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14943 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 lt_cv_prog_compiler_static_works_CXX=no
14947 save_LDFLAGS="$LDFLAGS"
14948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14951 # The linker can only warn and ignore the option if not recognized
14952 # So say no if there are warnings
14953 if test -s conftest.err; then
14954 # Append any errors to the config.log.
14955 cat conftest.err 1>&5
14956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14958 if diff conftest.exp conftest.er2 >/dev/null; then
14959 lt_cv_prog_compiler_static_works_CXX=yes
14961 else
14962 lt_cv_prog_compiler_static_works_CXX=yes
14965 $RM -r conftest*
14966 LDFLAGS="$save_LDFLAGS"
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14970 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14972 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14974 else
14975 lt_prog_compiler_static_CXX=
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14983 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 lt_cv_prog_compiler_c_o_CXX=no
14987 $RM -r conftest 2>/dev/null
14988 mkdir conftest
14989 cd conftest
14990 mkdir out
14991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14993 lt_compiler_flag="-o out/conftest2.$ac_objext"
14994 # Insert the option either (1) after the last *FLAGS variable, or
14995 # (2) before a word containing "conftest.", or (3) at the end.
14996 # Note that $ac_compile itself does not contain backslashes and begins
14997 # with a dollar sign (not a hyphen), so the echo should work correctly.
14998 lt_compile=`echo "$ac_compile" | $SED \
14999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15001 -e 's:$: $lt_compiler_flag:'`
15002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15003 (eval "$lt_compile" 2>out/conftest.err)
15004 ac_status=$?
15005 cat out/conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15008 then
15009 # The compiler can only warn and ignore the option if not recognized
15010 # So say no if there are warnings
15011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15014 lt_cv_prog_compiler_c_o_CXX=yes
15017 chmod u+w . 2>&5
15018 $RM conftest*
15019 # SGI C++ compiler will create directory out/ii_files/ for
15020 # template instantiation
15021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15022 $RM out/* && rmdir out
15023 cd ..
15024 $RM -r conftest
15025 $RM conftest*
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15029 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15035 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 lt_cv_prog_compiler_c_o_CXX=no
15039 $RM -r conftest 2>/dev/null
15040 mkdir conftest
15041 cd conftest
15042 mkdir out
15043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15045 lt_compiler_flag="-o out/conftest2.$ac_objext"
15046 # Insert the option either (1) after the last *FLAGS variable, or
15047 # (2) before a word containing "conftest.", or (3) at the end.
15048 # Note that $ac_compile itself does not contain backslashes and begins
15049 # with a dollar sign (not a hyphen), so the echo should work correctly.
15050 lt_compile=`echo "$ac_compile" | $SED \
15051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15053 -e 's:$: $lt_compiler_flag:'`
15054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15055 (eval "$lt_compile" 2>out/conftest.err)
15056 ac_status=$?
15057 cat out/conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15060 then
15061 # The compiler can only warn and ignore the option if not recognized
15062 # So say no if there are warnings
15063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15066 lt_cv_prog_compiler_c_o_CXX=yes
15069 chmod u+w . 2>&5
15070 $RM conftest*
15071 # SGI C++ compiler will create directory out/ii_files/ for
15072 # template instantiation
15073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15074 $RM out/* && rmdir out
15075 cd ..
15076 $RM -r conftest
15077 $RM conftest*
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15081 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15086 hard_links="nottested"
15087 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15088 # do not overwrite the value of need_locks provided by the user
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15090 $as_echo_n "checking if we can lock with hard links... " >&6; }
15091 hard_links=yes
15092 $RM conftest*
15093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15094 touch conftest.a
15095 ln conftest.a conftest.b 2>&5 || hard_links=no
15096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15098 $as_echo "$hard_links" >&6; }
15099 if test "$hard_links" = no; then
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15101 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15102 need_locks=warn
15104 else
15105 need_locks=no
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15111 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15114 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15115 case $host_os in
15116 aix[4-9]*)
15117 # If we're using GNU nm, then we don't want the "-C" option.
15118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15119 # Also, AIX nm treats weak defined symbols like other global defined
15120 # symbols, whereas GNU nm marks them as "W".
15121 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15122 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'
15123 else
15124 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'
15127 pw32*)
15128 export_symbols_cmds_CXX="$ltdll_cmds"
15130 cygwin* | mingw* | cegcc*)
15131 case $cc_basename in
15132 cl*)
15133 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15136 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'
15137 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15139 esac
15141 linux* | k*bsd*-gnu | gnu*)
15142 link_all_deplibs_CXX=no
15145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15147 esac
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15150 $as_echo "$ld_shlibs_CXX" >&6; }
15151 test "$ld_shlibs_CXX" = no && can_build_shared=no
15153 with_gnu_ld_CXX=$with_gnu_ld
15161 # Do we need to explicitly link libc?
15163 case "x$archive_cmds_need_lc_CXX" in
15164 x|xyes)
15165 # Assume -lc should be added
15166 archive_cmds_need_lc_CXX=yes
15168 if test "$enable_shared" = yes && test "$GCC" = yes; then
15169 case $archive_cmds_CXX in
15170 *'~'*)
15171 # FIXME: we may have to deal with multi-command sequences.
15173 '$CC '*)
15174 # Test whether the compiler implicitly links with -lc since on some
15175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15176 # to ld, don't add -lc before -lgcc.
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15178 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15179 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 $RM conftest*
15183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15186 (eval $ac_compile) 2>&5
15187 ac_status=$?
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; } 2>conftest.err; then
15190 soname=conftest
15191 lib=conftest
15192 libobjs=conftest.$ac_objext
15193 deplibs=
15194 wl=$lt_prog_compiler_wl_CXX
15195 pic_flag=$lt_prog_compiler_pic_CXX
15196 compiler_flags=-v
15197 linker_flags=-v
15198 verstring=
15199 output_objdir=.
15200 libname=conftest
15201 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15202 allow_undefined_flag_CXX=
15203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15204 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15205 ac_status=$?
15206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15207 test $ac_status = 0; }
15208 then
15209 lt_cv_archive_cmds_need_lc_CXX=no
15210 else
15211 lt_cv_archive_cmds_need_lc_CXX=yes
15213 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15214 else
15215 cat conftest.err 1>&5
15217 $RM conftest*
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15221 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15222 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15224 esac
15227 esac
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15291 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15293 library_names_spec=
15294 libname_spec='lib$name'
15295 soname_spec=
15296 shrext_cmds=".so"
15297 postinstall_cmds=
15298 postuninstall_cmds=
15299 finish_cmds=
15300 finish_eval=
15301 shlibpath_var=
15302 shlibpath_overrides_runpath=unknown
15303 version_type=none
15304 dynamic_linker="$host_os ld.so"
15305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15306 need_lib_prefix=unknown
15307 hardcode_into_libs=no
15309 # when you set need_version to no, make sure it does not cause -set_version
15310 # flags to be left without arguments
15311 need_version=unknown
15313 case $host_os in
15314 aix3*)
15315 version_type=linux # correct to gnu/linux during the next big refactor
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15317 shlibpath_var=LIBPATH
15319 # AIX 3 has no versioning support, so we append a major version to the name.
15320 soname_spec='${libname}${release}${shared_ext}$major'
15323 aix[4-9]*)
15324 version_type=linux # correct to gnu/linux during the next big refactor
15325 need_lib_prefix=no
15326 need_version=no
15327 hardcode_into_libs=yes
15328 if test "$host_cpu" = ia64; then
15329 # AIX 5 supports IA64
15330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 else
15333 # With GCC up to 2.95.x, collect2 would create an import file
15334 # for dependence libraries. The import file would start with
15335 # the line `#! .'. This would cause the generated library to
15336 # depend on `.', always an invalid library. This was fixed in
15337 # development snapshots of GCC prior to 3.0.
15338 case $host_os in
15339 aix4 | aix4.[01] | aix4.[01].*)
15340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15341 echo ' yes '
15342 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15344 else
15345 can_build_shared=no
15348 esac
15349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15350 # soname into executable. Probably we can add versioning support to
15351 # collect2, so additional links can be useful in future.
15352 if test "$aix_use_runtimelinking" = yes; then
15353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15354 # instead of lib<name>.a to let people know that these are not
15355 # typical AIX shared libraries.
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 else
15358 # We preserve .a as extension for shared libraries through AIX4.2
15359 # and later when we are not doing run time linking.
15360 library_names_spec='${libname}${release}.a $libname.a'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LIBPATH
15367 amigaos*)
15368 case $host_cpu in
15369 powerpc)
15370 # Since July 2007 AmigaOS4 officially supports .so libraries.
15371 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 m68k)
15375 library_names_spec='$libname.ixlibrary $libname.a'
15376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15377 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'
15379 esac
15382 beos*)
15383 library_names_spec='${libname}${shared_ext}'
15384 dynamic_linker="$host_os ld.so"
15385 shlibpath_var=LIBRARY_PATH
15388 bsdi[45]*)
15389 version_type=linux # correct to gnu/linux during the next big refactor
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15397 # the default ld.so.conf also contains /usr/contrib/lib and
15398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15399 # libtool to hard-code these into programs
15402 cygwin* | mingw* | pw32* | cegcc*)
15403 version_type=windows
15404 shrext_cmds=".dll"
15405 need_version=no
15406 need_lib_prefix=no
15408 case $GCC,$cc_basename in
15409 yes,*)
15410 # gcc
15411 library_names_spec='$libname.dll.a'
15412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15413 postinstall_cmds='base_file=`basename \${file}`~
15414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15415 dldir=$destdir/`dirname \$dlpath`~
15416 test -d \$dldir || mkdir -p \$dldir~
15417 $install_prog $dir/$dlname \$dldir/$dlname~
15418 chmod a+x \$dldir/$dlname~
15419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15423 dlpath=$dir/\$dldll~
15424 $RM \$dlpath'
15425 shlibpath_overrides_runpath=yes
15427 case $host_os in
15428 cygwin*)
15429 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15433 mingw* | cegcc*)
15434 # MinGW DLLs use traditional 'lib' prefix
15435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15437 pw32*)
15438 # pw32 DLLs use 'pw' prefix rather than 'lib'
15439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441 esac
15442 dynamic_linker='Win32 ld.exe'
15445 *,cl*)
15446 # Native MSVC
15447 libname_spec='$name'
15448 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15449 library_names_spec='${libname}.dll.lib'
15451 case $build_os in
15452 mingw*)
15453 sys_lib_search_path_spec=
15454 lt_save_ifs=$IFS
15455 IFS=';'
15456 for lt_path in $LIB
15458 IFS=$lt_save_ifs
15459 # Let DOS variable expansion print the short 8.3 style file name.
15460 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15461 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15462 done
15463 IFS=$lt_save_ifs
15464 # Convert to MSYS style.
15465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15467 cygwin*)
15468 # Convert to unix form, then to dos form, then back to unix form
15469 # but this time dos style (no spaces!) so that the unix form looks
15470 # like /cygdrive/c/PROGRA~1:/cygdr...
15471 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15472 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15473 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15476 sys_lib_search_path_spec="$LIB"
15477 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15478 # It is most probably a Windows format PATH.
15479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15480 else
15481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15483 # FIXME: find the short name or the path components, as spaces are
15484 # common. (e.g. "Program Files" -> "PROGRA~1")
15486 esac
15488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15489 postinstall_cmds='base_file=`basename \${file}`~
15490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15491 dldir=$destdir/`dirname \$dlpath`~
15492 test -d \$dldir || mkdir -p \$dldir~
15493 $install_prog $dir/$dlname \$dldir/$dlname'
15494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15495 dlpath=$dir/\$dldll~
15496 $RM \$dlpath'
15497 shlibpath_overrides_runpath=yes
15498 dynamic_linker='Win32 link.exe'
15502 # Assume MSVC wrapper
15503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15504 dynamic_linker='Win32 ld.exe'
15506 esac
15507 # FIXME: first we should search . and the directory the executable is in
15508 shlibpath_var=PATH
15511 darwin* | rhapsody*)
15512 dynamic_linker="$host_os dyld"
15513 version_type=darwin
15514 need_lib_prefix=no
15515 need_version=no
15516 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15517 soname_spec='${libname}${release}${major}$shared_ext'
15518 shlibpath_overrides_runpath=yes
15519 shlibpath_var=DYLD_LIBRARY_PATH
15520 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15525 dgux*)
15526 version_type=linux # correct to gnu/linux during the next big refactor
15527 need_lib_prefix=no
15528 need_version=no
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15534 freebsd* | dragonfly*)
15535 # DragonFly does not have aout. When/if they implement a new
15536 # versioning mechanism, adjust this.
15537 if test -x /usr/bin/objformat; then
15538 objformat=`/usr/bin/objformat`
15539 else
15540 case $host_os in
15541 freebsd[23].*) objformat=aout ;;
15542 *) objformat=elf ;;
15543 esac
15545 version_type=freebsd-$objformat
15546 case $version_type in
15547 freebsd-elf*)
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15549 need_version=no
15550 need_lib_prefix=no
15552 freebsd-*)
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15554 need_version=yes
15556 esac
15557 shlibpath_var=LD_LIBRARY_PATH
15558 case $host_os in
15559 freebsd2.*)
15560 shlibpath_overrides_runpath=yes
15562 freebsd3.[01]* | freebsdelf3.[01]*)
15563 shlibpath_overrides_runpath=yes
15564 hardcode_into_libs=yes
15566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15571 *) # from 4.6 on, and DragonFly
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15575 esac
15578 gnu*)
15579 version_type=linux # correct to gnu/linux during the next big refactor
15580 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
15585 shlibpath_overrides_runpath=no
15586 hardcode_into_libs=yes
15589 haiku*)
15590 version_type=linux # correct to gnu/linux during the next big refactor
15591 need_lib_prefix=no
15592 need_version=no
15593 dynamic_linker="$host_os runtime_loader"
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 shlibpath_var=LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15599 hardcode_into_libs=yes
15602 hpux9* | hpux10* | hpux11*)
15603 # Give a soname corresponding to the major version so that dld.sl refuses to
15604 # link against other versions.
15605 version_type=sunos
15606 need_lib_prefix=no
15607 need_version=no
15608 case $host_cpu in
15609 ia64*)
15610 shrext_cmds='.so'
15611 hardcode_into_libs=yes
15612 dynamic_linker="$host_os dld.so"
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 if test "X$HPUX_IA64_MODE" = X32; then
15618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15619 else
15620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15624 hppa*64*)
15625 shrext_cmds='.sl'
15626 hardcode_into_libs=yes
15627 dynamic_linker="$host_os dld.sl"
15628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15636 shrext_cmds='.sl'
15637 dynamic_linker="$host_os dld.sl"
15638 shlibpath_var=SHLIB_PATH
15639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15643 esac
15644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15645 postinstall_cmds='chmod 555 $lib'
15646 # or fails outright, so override atomically:
15647 install_override_mode=555
15650 interix[3-9]*)
15651 version_type=linux # correct to gnu/linux during the next big refactor
15652 need_lib_prefix=no
15653 need_version=no
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 shlibpath_overrides_runpath=no
15659 hardcode_into_libs=yes
15662 irix5* | irix6* | nonstopux*)
15663 case $host_os in
15664 nonstopux*) version_type=nonstopux ;;
15666 if test "$lt_cv_prog_gnu_ld" = yes; then
15667 version_type=linux # correct to gnu/linux during the next big refactor
15668 else
15669 version_type=irix
15670 fi ;;
15671 esac
15672 need_lib_prefix=no
15673 need_version=no
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15676 case $host_os in
15677 irix5* | nonstopux*)
15678 libsuff= shlibsuff=
15681 case $LD in # libtool.m4 will add one of these switches to LD
15682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15683 libsuff= shlibsuff= libmagic=32-bit;;
15684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15685 libsuff=32 shlibsuff=N32 libmagic=N32;;
15686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15687 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15688 *) libsuff= shlibsuff= libmagic=never-match;;
15689 esac
15691 esac
15692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15693 shlibpath_overrides_runpath=no
15694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15696 hardcode_into_libs=yes
15699 # No shared lib support for Linux oldld, aout, or coff.
15700 linux*oldld* | linux*aout* | linux*coff*)
15701 dynamic_linker=no
15704 # This must be glibc/ELF.
15705 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15706 version_type=linux # correct to gnu/linux during the next big refactor
15707 need_lib_prefix=no
15708 need_version=no
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=no
15715 # Some binutils ld are patched to set DT_RUNPATH
15716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 lt_cv_shlibpath_overrides_runpath=no
15720 save_LDFLAGS=$LDFLAGS
15721 save_libdir=$libdir
15722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15728 main ()
15732 return 0;
15734 _ACEOF
15735 if ac_fn_cxx_try_link "$LINENO"; then :
15736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15737 lt_cv_shlibpath_overrides_runpath=yes
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LDFLAGS=$save_LDFLAGS
15743 libdir=$save_libdir
15747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15749 # This implies no fast_install, which is unacceptable.
15750 # Some rework will be needed to allow for fast_install
15751 # before this can be enabled.
15752 hardcode_into_libs=yes
15754 # Append ld.so.conf contents to the search path
15755 if test -f /etc/ld.so.conf; then
15756 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' ' '`
15757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15760 # We used to test for /lib/ld.so.1 and disable shared libraries on
15761 # powerpc, because MkLinux only supported shared libraries with the
15762 # GNU dynamic linker. Since this was broken with cross compilers,
15763 # most powerpc-linux boxes support dynamic linking these days and
15764 # people can always --disable-shared, the test was removed, and we
15765 # assume the GNU/Linux dynamic linker is in use.
15766 dynamic_linker='GNU/Linux ld.so'
15769 netbsdelf*-gnu)
15770 version_type=linux
15771 need_lib_prefix=no
15772 need_version=no
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=no
15777 hardcode_into_libs=yes
15778 dynamic_linker='NetBSD ld.elf_so'
15781 netbsd*)
15782 version_type=sunos
15783 need_lib_prefix=no
15784 need_version=no
15785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15788 dynamic_linker='NetBSD (a.out) ld.so'
15789 else
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 dynamic_linker='NetBSD ld.elf_so'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes
15796 hardcode_into_libs=yes
15799 newsos6)
15800 version_type=linux # correct to gnu/linux during the next big refactor
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 shlibpath_overrides_runpath=yes
15806 *nto* | *qnx*)
15807 version_type=qnx
15808 need_lib_prefix=no
15809 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
15813 shlibpath_overrides_runpath=no
15814 hardcode_into_libs=yes
15815 dynamic_linker='ldqnx.so'
15818 openbsd*)
15819 version_type=sunos
15820 sys_lib_dlsearch_path_spec="/usr/lib"
15821 need_lib_prefix=no
15822 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15823 case $host_os in
15824 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15825 *) need_version=no ;;
15826 esac
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15831 case $host_os in
15832 openbsd2.[89] | openbsd2.[89].*)
15833 shlibpath_overrides_runpath=no
15836 shlibpath_overrides_runpath=yes
15838 esac
15839 else
15840 shlibpath_overrides_runpath=yes
15844 os2*)
15845 libname_spec='$name'
15846 shrext_cmds=".dll"
15847 need_lib_prefix=no
15848 library_names_spec='$libname${shared_ext} $libname.a'
15849 dynamic_linker='OS/2 ld.exe'
15850 shlibpath_var=LIBPATH
15853 osf3* | osf4* | osf5*)
15854 version_type=osf
15855 need_lib_prefix=no
15856 need_version=no
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15861 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15864 rdos*)
15865 dynamic_linker=no
15868 solaris*)
15869 version_type=linux # correct to gnu/linux during the next big refactor
15870 need_lib_prefix=no
15871 need_version=no
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 shlibpath_var=LD_LIBRARY_PATH
15875 shlibpath_overrides_runpath=yes
15876 hardcode_into_libs=yes
15877 # ldd complains unless libraries are executable
15878 postinstall_cmds='chmod +x $lib'
15881 sunos4*)
15882 version_type=sunos
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15885 shlibpath_var=LD_LIBRARY_PATH
15886 shlibpath_overrides_runpath=yes
15887 if test "$with_gnu_ld" = yes; then
15888 need_lib_prefix=no
15890 need_version=yes
15893 sysv4 | sysv4.3*)
15894 version_type=linux # correct to gnu/linux during the next big refactor
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 case $host_vendor in
15899 sni)
15900 shlibpath_overrides_runpath=no
15901 need_lib_prefix=no
15902 runpath_var=LD_RUN_PATH
15904 siemens)
15905 need_lib_prefix=no
15907 motorola)
15908 need_lib_prefix=no
15909 need_version=no
15910 shlibpath_overrides_runpath=no
15911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15913 esac
15916 sysv4*MP*)
15917 if test -d /usr/nec ;then
15918 version_type=linux # correct to gnu/linux during the next big refactor
15919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15920 soname_spec='$libname${shared_ext}.$major'
15921 shlibpath_var=LD_LIBRARY_PATH
15925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15926 version_type=freebsd-elf
15927 need_lib_prefix=no
15928 need_version=no
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=yes
15933 hardcode_into_libs=yes
15934 if test "$with_gnu_ld" = yes; then
15935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15936 else
15937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15938 case $host_os in
15939 sco3.2v5*)
15940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15942 esac
15944 sys_lib_dlsearch_path_spec='/usr/lib'
15947 tpf*)
15948 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15949 version_type=linux # correct to gnu/linux during the next big refactor
15950 need_lib_prefix=no
15951 need_version=no
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15958 uts4*)
15959 version_type=linux # correct to gnu/linux during the next big refactor
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15966 dynamic_linker=no
15968 esac
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15970 $as_echo "$dynamic_linker" >&6; }
15971 test "$dynamic_linker" = no && can_build_shared=no
15973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15974 if test "$GCC" = yes; then
15975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15979 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15981 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15982 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16023 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16024 hardcode_action_CXX=
16025 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16026 test -n "$runpath_var_CXX" ||
16027 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16029 # We can hardcode non-existent directories.
16030 if test "$hardcode_direct_CXX" != no &&
16031 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16032 # have to relink, otherwise we might link with an installed library
16033 # when we should be linking with a yet-to-be-installed one
16034 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16035 test "$hardcode_minus_L_CXX" != no; then
16036 # Linking always hardcodes the temporary library directory.
16037 hardcode_action_CXX=relink
16038 else
16039 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16040 hardcode_action_CXX=immediate
16042 else
16043 # We cannot hardcode anything, or else we can only hardcode existing
16044 # directories.
16045 hardcode_action_CXX=unsupported
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16048 $as_echo "$hardcode_action_CXX" >&6; }
16050 if test "$hardcode_action_CXX" = relink ||
16051 test "$inherit_rpath_CXX" = yes; then
16052 # Fast installation is not supported
16053 enable_fast_install=no
16054 elif test "$shlibpath_overrides_runpath" = yes ||
16055 test "$enable_shared" = no; then
16056 # Fast installation is not necessary
16057 enable_fast_install=needless
16066 fi # test -n "$compiler"
16068 CC=$lt_save_CC
16069 CFLAGS=$lt_save_CFLAGS
16070 LDCXX=$LD
16071 LD=$lt_save_LD
16072 GCC=$lt_save_GCC
16073 with_gnu_ld=$lt_save_with_gnu_ld
16074 lt_cv_path_LDCXX=$lt_cv_path_LD
16075 lt_cv_path_LD=$lt_save_path_LD
16076 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16077 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16078 fi # test "$_lt_caught_CXX_error" != yes
16080 ac_ext=c
16081 ac_cpp='$CPP $CPPFLAGS'
16082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16087 if test "x$CXX" != "x"; then # CXX is set...
16088 if test -f "$CXX"; then # maybe it's an absolute path passed in env variables...
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX" >&5
16090 $as_echo_n "checking for $CXX... " >&6; }
16091 HAVE_CXX="yes"
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
16093 $as_echo "$HAVE_CXX" >&6; }
16094 else
16095 # Extract the first word of "$CXX", so it can be a program name with args.
16096 set dummy $CXX; ac_word=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16098 $as_echo_n "checking for $ac_word... " >&6; }
16099 if ${ac_cv_prog_HAVE_CXX+:} false; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 if test -n "$HAVE_CXX"; then
16103 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
16104 else
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_prog_HAVE_CXX="yes"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 break 2
16116 done
16117 done
16118 IFS=$as_save_IFS
16120 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
16123 HAVE_CXX=$ac_cv_prog_HAVE_CXX
16124 if test -n "$HAVE_CXX"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
16126 $as_echo "$HAVE_CXX" >&6; }
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16136 $as_echo_n "checking for inline... " >&6; }
16137 if ${ac_cv_c_inline+:} false; then :
16138 $as_echo_n "(cached) " >&6
16139 else
16140 ac_cv_c_inline=no
16141 for ac_kw in inline __inline__ __inline; do
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #ifndef __cplusplus
16145 typedef int foo_t;
16146 static $ac_kw foo_t static_foo () {return 0; }
16147 $ac_kw foo_t foo () {return 0; }
16148 #endif
16150 _ACEOF
16151 if ac_fn_c_try_compile "$LINENO"; then :
16152 ac_cv_c_inline=$ac_kw
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 test "$ac_cv_c_inline" != no && break
16156 done
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16160 $as_echo "$ac_cv_c_inline" >&6; }
16162 case $ac_cv_c_inline in
16163 inline | yes) ;;
16165 case $ac_cv_c_inline in
16166 no) ac_val=;;
16167 *) ac_val=$ac_cv_c_inline;;
16168 esac
16169 cat >>confdefs.h <<_ACEOF
16170 #ifndef __cplusplus
16171 #define inline $ac_val
16172 #endif
16173 _ACEOF
16175 esac
16177 if test "x$GCC" = "xyes" ; then
16179 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"
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
16182 $as_echo_n "checking gcc version... " >&6; }
16183 GCC_VERSION=`$CC -dumpversion`
16184 GCC_MAJOR=`echo $GCC_VERSION | cut -d . -f1`
16185 GCC_MINOR=`echo $GCC_VERSION | cut -d . -f2`
16186 GCC_VERSION_NUM=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null`
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
16189 $as_echo "$GCC_VERSION" >&6; }
16190 if test $GCC_VERSION_NUM -ge 304; then
16191 CFLAGS="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self"
16193 if test $GCC_VERSION_NUM -ge 403; then
16194 CFLAGS="$CFLAGS -Wvariadic-macros"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16199 $as_echo_n "checking for ANSI C header files... " >&6; }
16200 if ${ac_cv_header_stdc+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <stdlib.h>
16206 #include <stdarg.h>
16207 #include <string.h>
16208 #include <float.h>
16211 main ()
16215 return 0;
16217 _ACEOF
16218 if ac_fn_c_try_compile "$LINENO"; then :
16219 ac_cv_header_stdc=yes
16220 else
16221 ac_cv_header_stdc=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 if test $ac_cv_header_stdc = yes; then
16226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 #include <string.h>
16231 _ACEOF
16232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16233 $EGREP "memchr" >/dev/null 2>&1; then :
16235 else
16236 ac_cv_header_stdc=no
16238 rm -f conftest*
16242 if test $ac_cv_header_stdc = yes; then
16243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 #include <stdlib.h>
16248 _ACEOF
16249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16250 $EGREP "free" >/dev/null 2>&1; then :
16252 else
16253 ac_cv_header_stdc=no
16255 rm -f conftest*
16259 if test $ac_cv_header_stdc = yes; then
16260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16261 if test "$cross_compiling" = yes; then :
16263 else
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 #include <ctype.h>
16267 #include <stdlib.h>
16268 #if ((' ' & 0x0FF) == 0x020)
16269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16271 #else
16272 # define ISLOWER(c) \
16273 (('a' <= (c) && (c) <= 'i') \
16274 || ('j' <= (c) && (c) <= 'r') \
16275 || ('s' <= (c) && (c) <= 'z'))
16276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16277 #endif
16279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16281 main ()
16283 int i;
16284 for (i = 0; i < 256; i++)
16285 if (XOR (islower (i), ISLOWER (i))
16286 || toupper (i) != TOUPPER (i))
16287 return 2;
16288 return 0;
16290 _ACEOF
16291 if ac_fn_c_try_run "$LINENO"; then :
16293 else
16294 ac_cv_header_stdc=no
16296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16297 conftest.$ac_objext conftest.beam conftest.$ac_ext
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16303 $as_echo "$ac_cv_header_stdc" >&6; }
16304 if test $ac_cv_header_stdc = yes; then
16306 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16311 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16312 if ${ac_cv_header_time+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16317 #include <sys/types.h>
16318 #include <sys/time.h>
16319 #include <time.h>
16322 main ()
16324 if ((struct tm *) 0)
16325 return 0;
16327 return 0;
16329 _ACEOF
16330 if ac_fn_c_try_compile "$LINENO"; then :
16331 ac_cv_header_time=yes
16332 else
16333 ac_cv_header_time=no
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16338 $as_echo "$ac_cv_header_time" >&6; }
16339 if test $ac_cv_header_time = yes; then
16341 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16346 for ac_header in stdbool.h
16347 do :
16348 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
16349 if test "x$ac_cv_header_stdbool_h" = xyes; then :
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_STDBOOL_H 1
16352 _ACEOF
16356 done
16358 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
16359 do :
16360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16362 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16363 cat >>confdefs.h <<_ACEOF
16364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16365 _ACEOF
16368 done
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16372 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16373 set x ${MAKE-make}
16374 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16375 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377 else
16378 cat >conftest.make <<\_ACEOF
16379 SHELL = /bin/sh
16380 all:
16381 @echo '@@@%%%=$(MAKE)=@@@%%%'
16382 _ACEOF
16383 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16385 *@@@%%%=?*=@@@%%%*)
16386 eval ac_cv_prog_make_${ac_make}_set=yes;;
16388 eval ac_cv_prog_make_${ac_make}_set=no;;
16389 esac
16390 rm -f conftest.make
16392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16394 $as_echo "yes" >&6; }
16395 SET_MAKE=
16396 else
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16399 SET_MAKE="MAKE=${MAKE-make}"
16405 ac_ext=c
16406 ac_cpp='$CPP $CPPFLAGS'
16407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16411 acx_pthread_ok=no
16413 # We used to check for pthread.h first, but this fails if pthread.h
16414 # requires special compiler flags (e.g. on True64 or Sequent).
16415 # It gets checked for in the link test anyway.
16417 # First of all, check if the user has set any of the PTHREAD_LIBS,
16418 # etcetera environment variables, and if threads linking works using
16419 # them:
16420 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16421 save_CFLAGS="$CFLAGS"
16422 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16423 save_LIBS="$LIBS"
16424 LIBS="$PTHREAD_LIBS $LIBS"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16426 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16430 /* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
16433 #ifdef __cplusplus
16434 extern "C"
16435 #endif
16436 char pthread_join ();
16438 main ()
16440 return pthread_join ();
16442 return 0;
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446 acx_pthread_ok=yes
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16451 $as_echo "$acx_pthread_ok" >&6; }
16452 if test x"$acx_pthread_ok" = xno; then
16453 PTHREAD_LIBS=""
16454 PTHREAD_CFLAGS=""
16456 LIBS="$save_LIBS"
16457 CFLAGS="$save_CFLAGS"
16460 # We must check for the threads library under a number of different
16461 # names; the ordering is very important because some systems
16462 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16463 # libraries is broken (non-POSIX).
16465 # Create a list of thread flags to try. Items starting with a "-" are
16466 # C compiler flags, and other items are library names, except for "none"
16467 # which indicates that we try without any flags at all, and "pthread-config"
16468 # which is a program returning the flags for the Pth emulation library.
16470 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16472 # The ordering *is* (sometimes) important. Some notes on the
16473 # individual items follow:
16475 # pthreads: AIX (must check this before -lpthread)
16476 # none: in case threads are in libc; should be tried before -Kthread and
16477 # other compiler flags to prevent continual compiler warnings
16478 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16479 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16480 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16481 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16482 # -pthreads: Solaris/gcc
16483 # -mthreads: Mingw32/gcc, Lynx/gcc
16484 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16485 # doesn't hurt to check since this sometimes defines pthreads too;
16486 # also defines -D_REENTRANT)
16487 # ... -mt is also the pthreads flag for HP/aCC
16488 # pthread: Linux, etcetera
16489 # --thread-safe: KAI C++
16490 # pthread-config: use pthread-config program (for GNU Pth library)
16492 case "${host_cpu}-${host_os}" in
16493 *solaris*)
16495 # On Solaris (at least, for some versions), libc contains stubbed
16496 # (non-functional) versions of the pthreads routines, so link-based
16497 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16498 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16499 # a function called by this macro, so we could check for that, but
16500 # who knows whether they'll stub that too in a future libc.) So,
16501 # we'll just look for -pthreads and -lpthread first:
16503 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16505 esac
16507 if test x"$acx_pthread_ok" = xno; then
16508 for flag in $acx_pthread_flags; do
16510 case $flag in
16511 none)
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16513 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16518 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16519 PTHREAD_CFLAGS="$flag"
16522 pthread-config)
16523 # Extract the first word of "pthread-config", so it can be a program name with args.
16524 set dummy pthread-config; ac_word=$2
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16526 $as_echo_n "checking for $ac_word... " >&6; }
16527 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 if test -n "$acx_pthread_config"; then
16531 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16532 else
16533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16534 for as_dir in $PATH
16536 IFS=$as_save_IFS
16537 test -z "$as_dir" && as_dir=.
16538 for ac_exec_ext in '' $ac_executable_extensions; do
16539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16540 ac_cv_prog_acx_pthread_config="yes"
16541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16542 break 2
16544 done
16545 done
16546 IFS=$as_save_IFS
16548 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16551 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16552 if test -n "$acx_pthread_config"; then
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16554 $as_echo "$acx_pthread_config" >&6; }
16555 else
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16557 $as_echo "no" >&6; }
16561 if test x"$acx_pthread_config" = xno; then continue; fi
16562 PTHREAD_CFLAGS="`pthread-config --cflags`"
16563 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16568 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16569 PTHREAD_LIBS="-l$flag"
16571 esac
16573 save_LIBS="$LIBS"
16574 save_CFLAGS="$CFLAGS"
16575 LIBS="$PTHREAD_LIBS $LIBS"
16576 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16578 # Check for various functions. We must include pthread.h,
16579 # since some functions may be macros. (On the Sequent, we
16580 # need a special flag -Kthread to make this header compile.)
16581 # We check for pthread_join because it is in -lpthread on IRIX
16582 # while pthread_create is in libc. We check for pthread_attr_init
16583 # due to DEC craziness with -lpthreads. We check for
16584 # pthread_cleanup_push because it is one of the few pthread
16585 # functions on Solaris that doesn't have a non-functional libc stub.
16586 # We try pthread_create on general principles.
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589 #include <pthread.h>
16591 main ()
16593 pthread_t th; pthread_join(th, 0);
16594 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16595 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16597 return 0;
16599 _ACEOF
16600 if ac_fn_c_try_link "$LINENO"; then :
16601 acx_pthread_ok=yes
16603 rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16606 LIBS="$save_LIBS"
16607 CFLAGS="$save_CFLAGS"
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16610 $as_echo "$acx_pthread_ok" >&6; }
16611 if test "x$acx_pthread_ok" = xyes; then
16612 break;
16615 PTHREAD_LIBS=""
16616 PTHREAD_CFLAGS=""
16617 done
16620 # Various other checks:
16621 if test "x$acx_pthread_ok" = xyes; then
16622 save_LIBS="$LIBS"
16623 LIBS="$PTHREAD_LIBS $LIBS"
16624 save_CFLAGS="$CFLAGS"
16625 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16627 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16629 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16630 attr_name=unknown
16631 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <pthread.h>
16636 main ()
16638 int attr=$attr; return attr;
16640 return 0;
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"; then :
16644 attr_name=$attr; break
16646 rm -f core conftest.err conftest.$ac_objext \
16647 conftest$ac_exeext conftest.$ac_ext
16648 done
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16650 $as_echo "$attr_name" >&6; }
16651 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16653 cat >>confdefs.h <<_ACEOF
16654 #define PTHREAD_CREATE_JOINABLE $attr_name
16655 _ACEOF
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16660 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16661 flag=no
16662 case "${host_cpu}-${host_os}" in
16663 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16664 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16665 esac
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16667 $as_echo "${flag}" >&6; }
16668 if test "x$flag" != xno; then
16669 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16672 LIBS="$save_LIBS"
16673 CFLAGS="$save_CFLAGS"
16675 # More AIX lossage: must compile with xlc_r or cc_r
16676 if test x"$GCC" != xyes; then
16677 for ac_prog in xlc_r cc_r
16679 # Extract the first word of "$ac_prog", so it can be a program name with args.
16680 set dummy $ac_prog; ac_word=$2
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16682 $as_echo_n "checking for $ac_word... " >&6; }
16683 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16684 $as_echo_n "(cached) " >&6
16685 else
16686 if test -n "$PTHREAD_CC"; then
16687 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16688 else
16689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16692 IFS=$as_save_IFS
16693 test -z "$as_dir" && as_dir=.
16694 for ac_exec_ext in '' $ac_executable_extensions; do
16695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16696 ac_cv_prog_PTHREAD_CC="$ac_prog"
16697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16698 break 2
16700 done
16701 done
16702 IFS=$as_save_IFS
16706 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16707 if test -n "$PTHREAD_CC"; then
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16709 $as_echo "$PTHREAD_CC" >&6; }
16710 else
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712 $as_echo "no" >&6; }
16716 test -n "$PTHREAD_CC" && break
16717 done
16718 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16720 else
16721 PTHREAD_CC=$CC
16723 else
16724 PTHREAD_CC="$CC"
16731 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16732 if test x"$acx_pthread_ok" = xyes; then
16734 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16737 else
16738 acx_pthread_ok=no
16741 ac_ext=c
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16749 if test "x$ac_cv_func_strtold" != "xyes" ; then
16750 CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
16754 $as_echo_n "checking for library containing cos... " >&6; }
16755 if ${ac_cv_search_cos+:} false; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 ac_func_search_save_LIBS=$LIBS
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16765 #ifdef __cplusplus
16766 extern "C"
16767 #endif
16768 char cos ();
16770 main ()
16772 return cos ();
16774 return 0;
16776 _ACEOF
16777 for ac_lib in '' m; do
16778 if test -z "$ac_lib"; then
16779 ac_res="none required"
16780 else
16781 ac_res=-l$ac_lib
16782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16784 if ac_fn_c_try_link "$LINENO"; then :
16785 ac_cv_search_cos=$ac_res
16787 rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext
16789 if ${ac_cv_search_cos+:} false; then :
16790 break
16792 done
16793 if ${ac_cv_search_cos+:} false; then :
16795 else
16796 ac_cv_search_cos=no
16798 rm conftest.$ac_ext
16799 LIBS=$ac_func_search_save_LIBS
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
16802 $as_echo "$ac_cv_search_cos" >&6; }
16803 ac_res=$ac_cv_search_cos
16804 if test "$ac_res" != no; then :
16805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16810 $as_echo_n "checking for library containing socket... " >&6; }
16811 if ${ac_cv_search_socket+:} false; then :
16812 $as_echo_n "(cached) " >&6
16813 else
16814 ac_func_search_save_LIBS=$LIBS
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16818 /* Override any GCC internal prototype to avoid an error.
16819 Use char because int might match the return type of a GCC
16820 builtin and then its argument prototype would still apply. */
16821 #ifdef __cplusplus
16822 extern "C"
16823 #endif
16824 char socket ();
16826 main ()
16828 return socket ();
16830 return 0;
16832 _ACEOF
16833 for ac_lib in '' socket net; do
16834 if test -z "$ac_lib"; then
16835 ac_res="none required"
16836 else
16837 ac_res=-l$ac_lib
16838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16840 if ac_fn_c_try_link "$LINENO"; then :
16841 ac_cv_search_socket=$ac_res
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext
16845 if ${ac_cv_search_socket+:} false; then :
16846 break
16848 done
16849 if ${ac_cv_search_socket+:} false; then :
16851 else
16852 ac_cv_search_socket=no
16854 rm conftest.$ac_ext
16855 LIBS=$ac_func_search_save_LIBS
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16858 $as_echo "$ac_cv_search_socket" >&6; }
16859 ac_res=$ac_cv_search_socket
16860 if test "$ac_res" != no; then :
16861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16866 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16867 if ${ac_cv_search_gethostbyname+:} false; then :
16868 $as_echo_n "(cached) " >&6
16869 else
16870 ac_func_search_save_LIBS=$LIBS
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char gethostbyname ();
16882 main ()
16884 return gethostbyname ();
16886 return 0;
16888 _ACEOF
16889 for ac_lib in '' nsl bind; do
16890 if test -z "$ac_lib"; then
16891 ac_res="none required"
16892 else
16893 ac_res=-l$ac_lib
16894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16896 if ac_fn_c_try_link "$LINENO"; then :
16897 ac_cv_search_gethostbyname=$ac_res
16899 rm -f core conftest.err conftest.$ac_objext \
16900 conftest$ac_exeext
16901 if ${ac_cv_search_gethostbyname+:} false; then :
16902 break
16904 done
16905 if ${ac_cv_search_gethostbyname+:} false; then :
16907 else
16908 ac_cv_search_gethostbyname=no
16910 rm conftest.$ac_ext
16911 LIBS=$ac_func_search_save_LIBS
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16914 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16915 ac_res=$ac_cv_search_gethostbyname
16916 if test "$ac_res" != no; then :
16917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16923 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16924 if test -n "$ac_tool_prefix"; then
16925 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16926 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16928 $as_echo_n "checking for $ac_word... " >&6; }
16929 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16930 $as_echo_n "(cached) " >&6
16931 else
16932 case $PKG_CONFIG in
16933 [\\/]* | ?:[\\/]*)
16934 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938 for as_dir in $PATH
16940 IFS=$as_save_IFS
16941 test -z "$as_dir" && as_dir=.
16942 for ac_exec_ext in '' $ac_executable_extensions; do
16943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16944 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16946 break 2
16948 done
16949 done
16950 IFS=$as_save_IFS
16953 esac
16955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16956 if test -n "$PKG_CONFIG"; then
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16958 $as_echo "$PKG_CONFIG" >&6; }
16959 else
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16961 $as_echo "no" >&6; }
16966 if test -z "$ac_cv_path_PKG_CONFIG"; then
16967 ac_pt_PKG_CONFIG=$PKG_CONFIG
16968 # Extract the first word of "pkg-config", so it can be a program name with args.
16969 set dummy pkg-config; ac_word=$2
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16971 $as_echo_n "checking for $ac_word... " >&6; }
16972 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 case $ac_pt_PKG_CONFIG in
16976 [\\/]* | ?:[\\/]*)
16977 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16981 for as_dir in $PATH
16983 IFS=$as_save_IFS
16984 test -z "$as_dir" && as_dir=.
16985 for ac_exec_ext in '' $ac_executable_extensions; do
16986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16987 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16989 break 2
16991 done
16992 done
16993 IFS=$as_save_IFS
16996 esac
16998 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16999 if test -n "$ac_pt_PKG_CONFIG"; then
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17001 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17002 else
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 $as_echo "no" >&6; }
17007 if test "x$ac_pt_PKG_CONFIG" = x; then
17008 PKG_CONFIG=""
17009 else
17010 case $cross_compiling:$ac_tool_warned in
17011 yes:)
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17014 ac_tool_warned=yes ;;
17015 esac
17016 PKG_CONFIG=$ac_pt_PKG_CONFIG
17018 else
17019 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17023 if test -n "$PKG_CONFIG"; then
17024 _pkg_min_version=0.9.0
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17026 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17027 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17029 $as_echo "yes" >&6; }
17030 else
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17033 PKG_CONFIG=""
17038 pkg_failed=no
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
17040 $as_echo_n "checking for OPENSSL... " >&6; }
17042 if test -n "$PKG_CONFIG"; then
17043 if test -n "$OPENSSL_CFLAGS"; then
17044 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
17045 else
17046 if test -n "$PKG_CONFIG" && \
17047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17048 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17049 ac_status=$?
17050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17051 test $ac_status = 0; }; then
17052 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17053 else
17054 pkg_failed=yes
17057 else
17058 pkg_failed=untried
17060 if test -n "$PKG_CONFIG"; then
17061 if test -n "$OPENSSL_LIBS"; then
17062 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
17063 else
17064 if test -n "$PKG_CONFIG" && \
17065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17066 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17067 ac_status=$?
17068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17069 test $ac_status = 0; }; then
17070 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17071 else
17072 pkg_failed=yes
17075 else
17076 pkg_failed=untried
17081 if test $pkg_failed = yes; then
17083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17084 _pkg_short_errors_supported=yes
17085 else
17086 _pkg_short_errors_supported=no
17088 if test $_pkg_short_errors_supported = yes; then
17089 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17090 else
17091 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17093 # Put the nasty error message in config.log where it belongs
17094 echo "$OPENSSL_PKG_ERRORS" >&5
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17097 $as_echo "no" >&6; }
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17100 $as_echo_n "checking for OpenSSL... " >&6; }
17102 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17103 ssldir="$dir"
17104 if test -f "$dir/include/openssl/ssl.h"; then
17105 found_ssl="yes";
17106 OPENSSL_CFLAGS="-I$ssldir/include";
17107 break;
17109 if test -f "$dir/include/ssl.h"; then
17110 found_ssl="yes";
17111 OPENSSL_CFLAGS="-I$ssldir/include";
17112 break
17114 done
17115 if test x_$found_ssl != x_yes; then
17116 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
17117 else
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17119 $as_echo "$ssldir" >&6; }
17120 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
17123 elif test $pkg_failed = untried; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17126 $as_echo_n "checking for OpenSSL... " >&6; }
17128 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17129 ssldir="$dir"
17130 if test -f "$dir/include/openssl/ssl.h"; then
17131 found_ssl="yes";
17132 OPENSSL_CFLAGS="-I$ssldir/include";
17133 break;
17135 if test -f "$dir/include/ssl.h"; then
17136 found_ssl="yes";
17137 OPENSSL_CFLAGS="-I$ssldir/include";
17138 break
17140 done
17141 if test x_$found_ssl != x_yes; then
17142 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
17143 else
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17145 $as_echo "$ssldir" >&6; }
17146 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
17149 else
17150 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
17151 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17153 $as_echo "yes" >&6; }
17157 pkg_failed=no
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
17159 $as_echo_n "checking for LIBCURL... " >&6; }
17161 if test -n "$PKG_CONFIG"; then
17162 if test -n "$LIBCURL_CFLAGS"; then
17163 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
17164 else
17165 if test -n "$PKG_CONFIG" && \
17166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17167 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17168 ac_status=$?
17169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17170 test $ac_status = 0; }; then
17171 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17172 else
17173 pkg_failed=yes
17176 else
17177 pkg_failed=untried
17179 if test -n "$PKG_CONFIG"; then
17180 if test -n "$LIBCURL_LIBS"; then
17181 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
17182 else
17183 if test -n "$PKG_CONFIG" && \
17184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17185 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17186 ac_status=$?
17187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17188 test $ac_status = 0; }; then
17189 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17190 else
17191 pkg_failed=yes
17194 else
17195 pkg_failed=untried
17200 if test $pkg_failed = yes; then
17202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17203 _pkg_short_errors_supported=yes
17204 else
17205 _pkg_short_errors_supported=no
17207 if test $_pkg_short_errors_supported = yes; then
17208 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17209 else
17210 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17212 # Put the nasty error message in config.log where it belongs
17213 echo "$LIBCURL_PKG_ERRORS" >&5
17215 as_fn_error $? "Package requirements (libcurl >= $CURL_MINIMUM) were not met:
17217 $LIBCURL_PKG_ERRORS
17219 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17220 installed software in a non-standard prefix.
17222 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17223 and LIBCURL_LIBS to avoid the need to call pkg-config.
17224 See the pkg-config man page for more details.
17225 " "$LINENO" 5
17226 elif test $pkg_failed = untried; then
17227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17229 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17230 is in your PATH or set the PKG_CONFIG environment variable to the full
17231 path to pkg-config.
17233 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17234 and LIBCURL_LIBS to avoid the need to call pkg-config.
17235 See the pkg-config man page for more details.
17237 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17238 See \`config.log' for more details" "$LINENO" 5; }
17239 else
17240 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
17241 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17243 $as_echo "yes" >&6; }
17247 pkg_failed=no
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
17249 $as_echo_n "checking for LIBEVENT... " >&6; }
17251 if test -n "$PKG_CONFIG"; then
17252 if test -n "$LIBEVENT_CFLAGS"; then
17253 pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
17254 else
17255 if test -n "$PKG_CONFIG" && \
17256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17257 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17258 ac_status=$?
17259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17260 test $ac_status = 0; }; then
17261 pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17262 else
17263 pkg_failed=yes
17266 else
17267 pkg_failed=untried
17269 if test -n "$PKG_CONFIG"; then
17270 if test -n "$LIBEVENT_LIBS"; then
17271 pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
17272 else
17273 if test -n "$PKG_CONFIG" && \
17274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17275 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17276 ac_status=$?
17277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17278 test $ac_status = 0; }; then
17279 pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17280 else
17281 pkg_failed=yes
17284 else
17285 pkg_failed=untried
17290 if test $pkg_failed = yes; then
17292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17293 _pkg_short_errors_supported=yes
17294 else
17295 _pkg_short_errors_supported=no
17297 if test $_pkg_short_errors_supported = yes; then
17298 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17299 else
17300 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17302 # Put the nasty error message in config.log where it belongs
17303 echo "$LIBEVENT_PKG_ERRORS" >&5
17305 as_fn_error $? "Package requirements (libevent >= $LIBEVENT_MINIMUM) were not met:
17307 $LIBEVENT_PKG_ERRORS
17309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17310 installed software in a non-standard prefix.
17312 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17313 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17314 See the pkg-config man page for more details.
17315 " "$LINENO" 5
17316 elif test $pkg_failed = untried; then
17317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17319 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17320 is in your PATH or set the PKG_CONFIG environment variable to the full
17321 path to pkg-config.
17323 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17324 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17325 See the pkg-config man page for more details.
17327 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17328 See \`config.log' for more details" "$LINENO" 5; }
17329 else
17330 LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
17331 LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17333 $as_echo "yes" >&6; }
17338 # Check whether --with-zlib was given.
17339 if test "${with_zlib+set}" = set; then :
17340 withval=$with_zlib; for dir in `echo "$withval" | tr : ' '`; do
17341 if test -d $dir/include; then
17342 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir/include"
17344 if test -d $dir/lib; then
17345 ZLIB_LDFLAGS="$ZLIB_LDFLAGS -L$dir/lib"
17347 done
17352 # Check whether --with-zlib-includes was given.
17353 if test "${with_zlib_includes+set}" = set; then :
17354 withval=$with_zlib_includes; for dir in `echo "$withval" | tr : ' '`; do
17355 if test -d $dir; then
17356 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir"
17358 done
17362 ac_zlib_saved_CFLAGS="$CFLAGS"
17363 ac_zlib_saved_LDFLAGS="$LDFLAGS"
17364 ac_zlib_saved_LIBS="$LIBS"
17365 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
17366 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
17367 ac_have_zlibh=no
17368 ac_have_zlib=no
17369 touch /tmp/dummy1_zlib.h
17370 for ac_header in /tmp/dummy1_zlib.h
17371 do :
17372 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy1_zlib.h" "ac_cv_header__tmp_dummy1_zlib_h" "#include \"zlib.h\"
17374 if test "x$ac_cv_header__tmp_dummy1_zlib_h" = xyes; then :
17375 cat >>confdefs.h <<_ACEOF
17376 #define HAVE__TMP_DUMMY1_ZLIB_H 1
17377 _ACEOF
17378 ac_have_zlibh=yes
17379 else
17380 ac_have_zlibh=no
17383 done
17385 rm /tmp/dummy1_zlib.h
17386 if test $ac_have_zlibh = yes; then
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17388 $as_echo_n "checking for library containing gzopen... " >&6; }
17389 if ${ac_cv_search_gzopen+:} false; then :
17390 $as_echo_n "(cached) " >&6
17391 else
17392 ac_func_search_save_LIBS=$LIBS
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17399 #ifdef __cplusplus
17400 extern "C"
17401 #endif
17402 char gzopen ();
17404 main ()
17406 return gzopen ();
17408 return 0;
17410 _ACEOF
17411 for ac_lib in '' z; do
17412 if test -z "$ac_lib"; then
17413 ac_res="none required"
17414 else
17415 ac_res=-l$ac_lib
17416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17418 if ac_fn_c_try_link "$LINENO"; then :
17419 ac_cv_search_gzopen=$ac_res
17421 rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext
17423 if ${ac_cv_search_gzopen+:} false; then :
17424 break
17426 done
17427 if ${ac_cv_search_gzopen+:} false; then :
17429 else
17430 ac_cv_search_gzopen=no
17432 rm conftest.$ac_ext
17433 LIBS=$ac_func_search_save_LIBS
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17436 $as_echo "$ac_cv_search_gzopen" >&6; }
17437 ac_res=$ac_cv_search_gzopen
17438 if test "$ac_res" != no; then :
17439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17440 ac_have_zlib=yes
17441 else
17442 ac_have_zlib=no
17446 # List of places to try
17447 testdirs="$HOME/opt/zlib $OBITINSTALL/other"
17448 for dir in $testdirs; do
17449 if test $ac_have_zlib = no; then
17450 if test -f $dir/include/zlib.h; then
17451 ZLIB_CFLAGS="-I$dir/include"
17452 CPPFLAGS="$ac_zlib_saved_CPPFLAGS $ZLIB_CFLAGS"
17453 ZLIB_LDFLAGS="-L$dir/lib"
17454 LDFLAGS="$ac_zlib_saved_LDFLAGS $ZLIB_LDFLAGS"
17455 touch /tmp/dummy3_zlib.h
17456 for ac_header in /tmp/dummy3_zlib.h
17457 do :
17458 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy3_zlib.h" "ac_cv_header__tmp_dummy3_zlib_h" "#include \"zlib.h\"
17460 if test "x$ac_cv_header__tmp_dummy3_zlib_h" = xyes; then :
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE__TMP_DUMMY3_ZLIB_H 1
17463 _ACEOF
17464 ac_have_zlibh=yes
17465 else
17466 ac_have_zlibh=no
17469 done
17471 rm /tmp/dummy3_zlib.h
17472 if test $ac_have_zlibh = yes; then
17473 # Force check
17474 ac_cv_search_gzopen=" "
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17476 $as_echo_n "checking for library containing gzopen... " >&6; }
17477 if ${ac_cv_search_gzopen+:} false; then :
17478 $as_echo_n "(cached) " >&6
17479 else
17480 ac_func_search_save_LIBS=$LIBS
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487 #ifdef __cplusplus
17488 extern "C"
17489 #endif
17490 char gzopen ();
17492 main ()
17494 return gzopen ();
17496 return 0;
17498 _ACEOF
17499 for ac_lib in '' z; do
17500 if test -z "$ac_lib"; then
17501 ac_res="none required"
17502 else
17503 ac_res=-l$ac_lib
17504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 ac_cv_search_gzopen=$ac_res
17509 rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext
17511 if ${ac_cv_search_gzopen+:} false; then :
17512 break
17514 done
17515 if ${ac_cv_search_gzopen+:} false; then :
17517 else
17518 ac_cv_search_gzopen=no
17520 rm conftest.$ac_ext
17521 LIBS=$ac_func_search_save_LIBS
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17524 $as_echo "$ac_cv_search_gzopen" >&6; }
17525 ac_res=$ac_cv_search_gzopen
17526 if test "$ac_res" != no; then :
17527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17528 ac_have_zlib=yes
17529 else
17530 ac_have_zlib=no
17534 if test $ac_have_zlib = yes ; then
17535 if test $ac_have_zlibh = yes ; then
17536 break;
17541 done
17542 if test $ac_have_zlib = no; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB library" >&5
17544 $as_echo "$as_me: WARNING: cannot find ZLIB library" >&2;}
17546 if test $ac_have_zlibh = no; then
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB headers" >&5
17548 $as_echo "$as_me: WARNING: cannot find ZLIB headers" >&2;}
17549 ac_have_zlib=no
17551 if test $ac_have_zlib = yes; then
17553 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17556 ZLIB_LIBS="$LIBS"
17557 CFLAGS="$ac_zlib_saved_CFLAGS"
17558 LDFLAGS="$ac_zlib_saved_LDFLAGS"
17559 LIBS="$ac_zlib_saved_LIBS"
17565 # Check whether --enable-largefile was given.
17566 if test "${enable_largefile+set}" = set; then :
17567 enableval=$enable_largefile;
17570 if test "$enable_largefile" != no; then
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17573 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17574 if ${ac_cv_sys_largefile_CC+:} false; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 ac_cv_sys_largefile_CC=no
17578 if test "$GCC" != yes; then
17579 ac_save_CC=$CC
17580 while :; do
17581 # IRIX 6.2 and later do not support large files by default,
17582 # so use the C compiler's -n32 option if that helps.
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585 #include <sys/types.h>
17586 /* Check that off_t can represent 2**63 - 1 correctly.
17587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17588 since some C++ compilers masquerading as C compilers
17589 incorrectly reject 9223372036854775807. */
17590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17592 && LARGE_OFF_T % 2147483647 == 1)
17593 ? 1 : -1];
17595 main ()
17599 return 0;
17601 _ACEOF
17602 if ac_fn_c_try_compile "$LINENO"; then :
17603 break
17605 rm -f core conftest.err conftest.$ac_objext
17606 CC="$CC -n32"
17607 if ac_fn_c_try_compile "$LINENO"; then :
17608 ac_cv_sys_largefile_CC=' -n32'; break
17610 rm -f core conftest.err conftest.$ac_objext
17611 break
17612 done
17613 CC=$ac_save_CC
17614 rm -f conftest.$ac_ext
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17618 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17619 if test "$ac_cv_sys_largefile_CC" != no; then
17620 CC=$CC$ac_cv_sys_largefile_CC
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17624 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17625 if ${ac_cv_sys_file_offset_bits+:} false; then :
17626 $as_echo_n "(cached) " >&6
17627 else
17628 while :; do
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17631 #include <sys/types.h>
17632 /* Check that off_t can represent 2**63 - 1 correctly.
17633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17634 since some C++ compilers masquerading as C compilers
17635 incorrectly reject 9223372036854775807. */
17636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17638 && LARGE_OFF_T % 2147483647 == 1)
17639 ? 1 : -1];
17641 main ()
17645 return 0;
17647 _ACEOF
17648 if ac_fn_c_try_compile "$LINENO"; then :
17649 ac_cv_sys_file_offset_bits=no; break
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 #define _FILE_OFFSET_BITS 64
17655 #include <sys/types.h>
17656 /* Check that off_t can represent 2**63 - 1 correctly.
17657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17658 since some C++ compilers masquerading as C compilers
17659 incorrectly reject 9223372036854775807. */
17660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17662 && LARGE_OFF_T % 2147483647 == 1)
17663 ? 1 : -1];
17665 main ()
17669 return 0;
17671 _ACEOF
17672 if ac_fn_c_try_compile "$LINENO"; then :
17673 ac_cv_sys_file_offset_bits=64; break
17675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 ac_cv_sys_file_offset_bits=unknown
17677 break
17678 done
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17681 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17682 case $ac_cv_sys_file_offset_bits in #(
17683 no | unknown) ;;
17685 cat >>confdefs.h <<_ACEOF
17686 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17687 _ACEOF
17689 esac
17690 rm -rf conftest*
17691 if test $ac_cv_sys_file_offset_bits = unknown; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17693 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17694 if ${ac_cv_sys_large_files+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 while :; do
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 #include <sys/types.h>
17701 /* Check that off_t can represent 2**63 - 1 correctly.
17702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17703 since some C++ compilers masquerading as C compilers
17704 incorrectly reject 9223372036854775807. */
17705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17707 && LARGE_OFF_T % 2147483647 == 1)
17708 ? 1 : -1];
17710 main ()
17714 return 0;
17716 _ACEOF
17717 if ac_fn_c_try_compile "$LINENO"; then :
17718 ac_cv_sys_large_files=no; break
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723 #define _LARGE_FILES 1
17724 #include <sys/types.h>
17725 /* Check that off_t can represent 2**63 - 1 correctly.
17726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17727 since some C++ compilers masquerading as C compilers
17728 incorrectly reject 9223372036854775807. */
17729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17731 && LARGE_OFF_T % 2147483647 == 1)
17732 ? 1 : -1];
17734 main ()
17738 return 0;
17740 _ACEOF
17741 if ac_fn_c_try_compile "$LINENO"; then :
17742 ac_cv_sys_large_files=1; break
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 ac_cv_sys_large_files=unknown
17746 break
17747 done
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17750 $as_echo "$ac_cv_sys_large_files" >&6; }
17751 case $ac_cv_sys_large_files in #(
17752 no | unknown) ;;
17754 cat >>confdefs.h <<_ACEOF
17755 #define _LARGE_FILES $ac_cv_sys_large_files
17756 _ACEOF
17758 esac
17759 rm -rf conftest*
17765 for ac_func in lseek64
17766 do :
17767 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
17768 if test "x$ac_cv_func_lseek64" = xyes; then :
17769 cat >>confdefs.h <<_ACEOF
17770 #define HAVE_LSEEK64 1
17771 _ACEOF
17774 done
17779 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "
17780 #define _XOPEN_SOURCE 600
17781 #include <fcntl.h>
17783 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
17784 ac_have_decl=1
17785 else
17786 ac_have_decl=0
17789 cat >>confdefs.h <<_ACEOF
17790 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
17791 _ACEOF
17793 for ac_func in posix_fadvise
17794 do :
17795 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17796 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_POSIX_FADVISE 1
17799 _ACEOF
17802 done
17807 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
17808 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
17809 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
17810 if test "x$ac_cv_func_inotify_init" = xyes; then :
17811 have_inotify="yes"
17812 else
17813 have_inotify="no"
17816 else
17817 have_inotify="no"
17822 # Check whether --with-inotify was given.
17823 if test "${with_inotify+set}" = set; then :
17824 withval=$with_inotify; want_inotify=${withval}
17825 else
17826 want_inotify=${have_inotify}
17829 if test "x$want_inotify" = "xyes" ; then
17830 if test "x$have_inotify" = "xyes"; then
17831 $as_echo "#define WITH_INOTIFY 1" >>confdefs.h
17833 else
17834 as_fn_error $? "\"inotify not found!\"" "$LINENO" 5
17838 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
17839 if test "x$ac_cv_header_sys_event_h" = xyes; then :
17840 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
17841 if test "x$ac_cv_func_kqueue" = xyes; then :
17842 have_kqueue="yes"
17843 else
17844 have_kqueue="no"
17847 else
17848 have_kqueue="no"
17853 # Check whether --with-kqueue was given.
17854 if test "${with_kqueue+set}" = set; then :
17855 withval=$with_kqueue; want_kqueue=${withval}
17856 else
17857 want_kqueue=${have_kqueue}
17860 if test "x$want_kqueue" = "xyes" ; then
17861 if test "x$have_kqueue" = "xyes"; then
17862 $as_echo "#define WITH_KQUEUE 1" >>confdefs.h
17864 else
17865 as_fn_error $? "\"kqueue not found!\"" "$LINENO" 5
17869 for ac_header in sys/statvfs.h \
17870 xfs/xfs.h
17871 do :
17872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17875 cat >>confdefs.h <<_ACEOF
17876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17877 _ACEOF
17881 done
17886 DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
17887 DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17894 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17895 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17896 $as_echo_n "(cached) " >&6
17897 else
17898 ac_check_lib_save_LIBS=$LIBS
17899 LIBS="-lrt $LIBS"
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17906 #ifdef __cplusplus
17907 extern "C"
17908 #endif
17909 char clock_gettime ();
17911 main ()
17913 return clock_gettime ();
17915 return 0;
17917 _ACEOF
17918 if ac_fn_c_try_link "$LINENO"; then :
17919 ac_cv_lib_rt_clock_gettime=yes
17920 else
17921 ac_cv_lib_rt_clock_gettime=no
17923 rm -f core conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17928 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17929 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17930 libutp_extra_libs="-lrt"
17931 else
17932 libutp_extra_libs=""
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking µTP" >&5
17937 $as_echo_n "checking µTP... " >&6; }
17938 build_utp="no"
17939 if test "x$HAVE_CXX" = "xyes" ; then
17940 have_utp="yes"
17941 else
17942 have_utp="no"
17944 # Check whether --enable-utp was given.
17945 if test "${enable_utp+set}" = set; then :
17946 enableval=$enable_utp; want_utp=${enableval}
17947 else
17948 want_utp=${have_utp}
17951 if test "x$want_utp" = "xyes" ; then
17952 if test "x$have_utp" = "xyes"; then
17953 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
17954 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
17955 LIBUTP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a"
17956 if test "x$libutp_extra_libs" != "x" ; then
17957 LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
17958 LIBUTP_LIBS_QT="$LIBUTP_LIBS_QT $libutp_extra_libs"
17960 $as_echo "#define WITH_UTP 1" >>confdefs.h
17962 build_utp="yes"
17963 else
17964 as_fn_error $? "\"Unable to build uTP support -- C++ compiler not found\"" "$LINENO" 5
17970 if test "x$build_utp" = "xyes"; then
17971 BUILD_UTP_TRUE=
17972 BUILD_UTP_FALSE='#'
17973 else
17974 BUILD_UTP_TRUE='#'
17975 BUILD_UTP_FALSE=
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_utp" >&5
17979 $as_echo "$build_utp" >&6; }
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking supported miniupnp library" >&5
17984 $as_echo_n "checking supported miniupnp library... " >&6; }
17985 upnp_version="none"
17986 ac_save_LIBS="$LIBS"
17987 LIBS="-lminiupnpc"
17988 # See if the OS has its miniupnp 1.5 installed
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17992 #include <stdlib.h>
17993 #include <miniupnpc/miniupnpc.h>
17994 #include <miniupnpc/upnpcommands.h>
17997 main ()
18000 struct UPNPDev * devlist;
18001 struct UPNPUrls urls;
18002 struct IGDdatas data;
18003 char lanaddr[16];
18004 char portStr[8];
18005 char intPort[8];
18006 char intClient[16];
18007 upnpDiscover( 2000, NULL, NULL, 0 );
18008 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18009 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18010 portStr, "TCP", intClient, intPort );
18013 return 0;
18015 _ACEOF
18016 if ac_fn_c_try_link "$LINENO"; then :
18019 $as_echo "#define HAVE_MINIUPNP_15 1" >>confdefs.h
18021 upnp_version="1.5"
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18026 # See if the OS has its miniupnp 1.6 installed
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18030 #include <stdlib.h>
18031 #include <errno.h>
18032 #include <miniupnpc/miniupnpc.h>
18033 #include <miniupnpc/upnpcommands.h>
18036 main ()
18039 struct UPNPDev * devlist;
18040 struct UPNPUrls urls;
18041 struct IGDdatas data;
18042 char lanaddr[16];
18043 char portStr[8];
18044 char intPort[8];
18045 char intClient[16];
18046 upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
18047 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18048 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18049 portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
18052 return 0;
18054 _ACEOF
18055 if ac_fn_c_try_link "$LINENO"; then :
18058 $as_echo "#define HAVE_MINIUPNP_16 1" >>confdefs.h
18060 upnp_version="1.6"
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18065 # ... and the results of our tests
18066 LIBS="$ac_save_LIBS"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upnp_version" >&5
18068 $as_echo "$upnp_version" >&6; }
18069 if test "x$upnp_version" = "xnone"; then
18070 BUILD_MINIUPNP_TRUE=
18071 BUILD_MINIUPNP_FALSE='#'
18072 else
18073 BUILD_MINIUPNP_TRUE='#'
18074 BUILD_MINIUPNP_FALSE=
18077 if test "x$upnp_version" = "xnone" ; then
18078 LIBUPNP_CFLAGS="-I\$(top_srcdir)/third-party/"
18079 LIBUPNP_LIBS="\$(top_builddir)/third-party/miniupnp/libminiupnp.a"
18080 LIBUPNP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
18082 $as_echo "#define HAVE_MINIUPNP_16 1" >>confdefs.h
18084 else
18085 $as_echo "#define SYSTEM_MINIUPNP 1" >>confdefs.h
18087 LIBUPNP_CFLAGS=""
18088 LIBUPNP_LIBS="-lminiupnpc"
18089 LIBUPNP_LIBS_QT="-lminiupnpc"
18099 LIBNATPMP_CFLAGS="-I\$(top_srcdir)/third-party/libnatpmp/"
18100 LIBNATPMP_LIBS="\$(top_builddir)/third-party/libnatpmp/libnatpmp.a"
18101 LIBNATPMP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a"
18102 build_bundled_natpmp="yes"
18103 # Check whether --enable-external-natpmp was given.
18104 if test "${enable_external_natpmp+set}" = set; then :
18105 enableval=$enable_external_natpmp; want_external_natpmp=${enableval}
18106 else
18107 want_external_natpmp=no
18110 if test "x$want_external_natpmp" != "xno" ; then
18111 LIBNATPMP_CFLAGS=""
18112 LIBNATPMP_LIBS="-lnatpmp"
18113 LIBNATPMP_LIBS_QT="-lnatpmp"
18114 build_bundled_natpmp="no"
18116 if test "x$build_bundled_natpmp" = "xyes"; then
18117 BUILD_NATPMP_TRUE=
18118 BUILD_NATPMP_FALSE='#'
18119 else
18120 BUILD_NATPMP_TRUE='#'
18121 BUILD_NATPMP_FALSE=
18130 # Check whether --enable-nls was given.
18131 if test "${enable_nls+set}" = set; then :
18132 enableval=$enable_nls;
18133 else
18134 enable_nls=yes
18137 if test -n "$PKG_CONFIG" && \
18138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18139 glib-2.0 >= \$GLIB_MINIMUM
18140 gio-2.0 >= \$GIO_MINIMUM,
18141 gmodule-2.0 >= \$GLIB_MINIMUM
18142 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18143 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18144 glib-2.0 >= $GLIB_MINIMUM
18145 gio-2.0 >= $GIO_MINIMUM,
18146 gmodule-2.0 >= $GLIB_MINIMUM
18147 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18148 ac_status=$?
18149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18150 test $ac_status = 0; }; then
18151 have_gtk=yes
18152 else
18153 have_gtk=no
18156 # Check whether --with-gtk was given.
18157 if test "${with_gtk+set}" = set; then :
18158 withval=$with_gtk; with_gtk=$withval
18159 else
18160 with_gtk=$have_gtk
18163 if test "x$with_gtk" = "xyes"; then
18164 BUILD_GTK_TRUE=
18165 BUILD_GTK_FALSE='#'
18166 else
18167 BUILD_GTK_TRUE='#'
18168 BUILD_GTK_FALSE=
18171 use_libappindicator=no
18172 if test "x$with_gtk" = "xyes" ; then
18174 if test "x$enable_nls" = "xno" ; then
18175 as_fn_error $? "\"The gtk client cannot be built without nls support. Try adding either --enable-nls or --without-gtk\" " "$LINENO" 5
18179 pkg_failed=no
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
18181 $as_echo_n "checking for GTK... " >&6; }
18183 if test -n "$PKG_CONFIG"; then
18184 if test -n "$GTK_CFLAGS"; then
18185 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18186 else
18187 if test -n "$PKG_CONFIG" && \
18188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18189 glib-2.0 >= \$GLIB_MINIMUM
18190 gio-2.0 >= \$GIO_MINIMUM,
18191 gmodule-2.0 >= \$GLIB_MINIMUM
18192 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18193 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18194 glib-2.0 >= $GLIB_MINIMUM
18195 gio-2.0 >= $GIO_MINIMUM,
18196 gmodule-2.0 >= $GLIB_MINIMUM
18197 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18198 ac_status=$?
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; }; then
18201 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_MINIMUM
18202 glib-2.0 >= $GLIB_MINIMUM
18203 gio-2.0 >= $GIO_MINIMUM,
18204 gmodule-2.0 >= $GLIB_MINIMUM
18205 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18206 else
18207 pkg_failed=yes
18210 else
18211 pkg_failed=untried
18213 if test -n "$PKG_CONFIG"; then
18214 if test -n "$GTK_LIBS"; then
18215 pkg_cv_GTK_LIBS="$GTK_LIBS"
18216 else
18217 if test -n "$PKG_CONFIG" && \
18218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18219 glib-2.0 >= \$GLIB_MINIMUM
18220 gio-2.0 >= \$GIO_MINIMUM,
18221 gmodule-2.0 >= \$GLIB_MINIMUM
18222 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18223 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18224 glib-2.0 >= $GLIB_MINIMUM
18225 gio-2.0 >= $GIO_MINIMUM,
18226 gmodule-2.0 >= $GLIB_MINIMUM
18227 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18228 ac_status=$?
18229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18230 test $ac_status = 0; }; then
18231 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_MINIMUM
18232 glib-2.0 >= $GLIB_MINIMUM
18233 gio-2.0 >= $GIO_MINIMUM,
18234 gmodule-2.0 >= $GLIB_MINIMUM
18235 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18236 else
18237 pkg_failed=yes
18240 else
18241 pkg_failed=untried
18246 if test $pkg_failed = yes; then
18248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18249 _pkg_short_errors_supported=yes
18250 else
18251 _pkg_short_errors_supported=no
18253 if test $_pkg_short_errors_supported = yes; then
18254 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18255 glib-2.0 >= $GLIB_MINIMUM
18256 gio-2.0 >= $GIO_MINIMUM,
18257 gmodule-2.0 >= $GLIB_MINIMUM
18258 gthread-2.0 >= $GLIB_MINIMUM"`
18259 else
18260 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18261 glib-2.0 >= $GLIB_MINIMUM
18262 gio-2.0 >= $GIO_MINIMUM,
18263 gmodule-2.0 >= $GLIB_MINIMUM
18264 gthread-2.0 >= $GLIB_MINIMUM"`
18266 # Put the nasty error message in config.log where it belongs
18267 echo "$GTK_PKG_ERRORS" >&5
18269 as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK_MINIMUM
18270 glib-2.0 >= $GLIB_MINIMUM
18271 gio-2.0 >= $GIO_MINIMUM,
18272 gmodule-2.0 >= $GLIB_MINIMUM
18273 gthread-2.0 >= $GLIB_MINIMUM) were not met:
18275 $GTK_PKG_ERRORS
18277 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18278 installed software in a non-standard prefix.
18280 Alternatively, you may set the environment variables GTK_CFLAGS
18281 and GTK_LIBS to avoid the need to call pkg-config.
18282 See the pkg-config man page for more details.
18283 " "$LINENO" 5
18284 elif test $pkg_failed = untried; then
18285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18287 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18288 is in your PATH or set the PKG_CONFIG environment variable to the full
18289 path to pkg-config.
18291 Alternatively, you may set the environment variables GTK_CFLAGS
18292 and GTK_LIBS to avoid the need to call pkg-config.
18293 See the pkg-config man page for more details.
18295 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18296 See \`config.log' for more details" "$LINENO" 5; }
18297 else
18298 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18299 GTK_LIBS=$pkg_cv_GTK_LIBS
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18301 $as_echo "yes" >&6; }
18305 pkg_failed=no
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAPPINDICATOR" >&5
18307 $as_echo_n "checking for LIBAPPINDICATOR... " >&6; }
18309 if test -n "$PKG_CONFIG"; then
18310 if test -n "$LIBAPPINDICATOR_CFLAGS"; then
18311 pkg_cv_LIBAPPINDICATOR_CFLAGS="$LIBAPPINDICATOR_CFLAGS"
18312 else
18313 if test -n "$PKG_CONFIG" && \
18314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18315 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18316 ac_status=$?
18317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18318 test $ac_status = 0; }; then
18319 pkg_cv_LIBAPPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18320 else
18321 pkg_failed=yes
18324 else
18325 pkg_failed=untried
18327 if test -n "$PKG_CONFIG"; then
18328 if test -n "$LIBAPPINDICATOR_LIBS"; then
18329 pkg_cv_LIBAPPINDICATOR_LIBS="$LIBAPPINDICATOR_LIBS"
18330 else
18331 if test -n "$PKG_CONFIG" && \
18332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18333 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18334 ac_status=$?
18335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18336 test $ac_status = 0; }; then
18337 pkg_cv_LIBAPPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18338 else
18339 pkg_failed=yes
18342 else
18343 pkg_failed=untried
18348 if test $pkg_failed = yes; then
18350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18351 _pkg_short_errors_supported=yes
18352 else
18353 _pkg_short_errors_supported=no
18355 if test $_pkg_short_errors_supported = yes; then
18356 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18357 else
18358 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18360 # Put the nasty error message in config.log where it belongs
18361 echo "$LIBAPPINDICATOR_PKG_ERRORS" >&5
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364 $as_echo "no" >&6; }
18365 have_libappindicator=no
18366 elif test $pkg_failed = untried; then
18367 have_libappindicator=no
18368 else
18369 LIBAPPINDICATOR_CFLAGS=$pkg_cv_LIBAPPINDICATOR_CFLAGS
18370 LIBAPPINDICATOR_LIBS=$pkg_cv_LIBAPPINDICATOR_LIBS
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18372 $as_echo "yes" >&6; }
18373 have_libappindicator=yes
18375 if test "x$have_libappindicator" = "xyes"; then
18376 use_libappindicator=yes
18377 $as_echo "#define HAVE_LIBAPPINDICATOR 1" >>confdefs.h
18379 else
18380 LIBAPPINDICATOR_CFLAGS=
18381 LIBAPPINDICATOR_LIBS=
18386 use_nls=no
18387 if test "x$enable_nls" = "xyes" ; then
18388 use_nls=yes
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18391 $as_echo_n "checking whether NLS is requested... " >&6; }
18392 # Check whether --enable-nls was given.
18393 if test "${enable_nls+set}" = set; then :
18394 enableval=$enable_nls; USE_NLS=$enableval
18395 else
18396 USE_NLS=yes
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18400 $as_echo "$USE_NLS" >&6; }
18405 case "$am__api_version" in
18406 1.01234)
18407 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18411 esac
18413 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18414 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18415 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18416 if test -n "0.35.0"; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
18418 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18420 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18421 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18422 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
18425 # Extract the first word of "intltool-update", so it can be a program name with args.
18426 set dummy intltool-update; ac_word=$2
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18428 $as_echo_n "checking for $ac_word... " >&6; }
18429 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18430 $as_echo_n "(cached) " >&6
18431 else
18432 case $INTLTOOL_UPDATE in
18433 [\\/]* | ?:[\\/]*)
18434 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438 for as_dir in $PATH
18440 IFS=$as_save_IFS
18441 test -z "$as_dir" && as_dir=.
18442 for ac_exec_ext in '' $ac_executable_extensions; do
18443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18444 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
18445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18446 break 2
18448 done
18449 done
18450 IFS=$as_save_IFS
18453 esac
18455 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
18456 if test -n "$INTLTOOL_UPDATE"; then
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18458 $as_echo "$INTLTOOL_UPDATE" >&6; }
18459 else
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18465 # Extract the first word of "intltool-merge", so it can be a program name with args.
18466 set dummy intltool-merge; ac_word=$2
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18468 $as_echo_n "checking for $ac_word... " >&6; }
18469 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
18470 $as_echo_n "(cached) " >&6
18471 else
18472 case $INTLTOOL_MERGE in
18473 [\\/]* | ?:[\\/]*)
18474 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18480 IFS=$as_save_IFS
18481 test -z "$as_dir" && as_dir=.
18482 for ac_exec_ext in '' $ac_executable_extensions; do
18483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18484 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
18485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18486 break 2
18488 done
18489 done
18490 IFS=$as_save_IFS
18493 esac
18495 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
18496 if test -n "$INTLTOOL_MERGE"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
18498 $as_echo "$INTLTOOL_MERGE" >&6; }
18499 else
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18505 # Extract the first word of "intltool-extract", so it can be a program name with args.
18506 set dummy intltool-extract; ac_word=$2
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18508 $as_echo_n "checking for $ac_word... " >&6; }
18509 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
18510 $as_echo_n "(cached) " >&6
18511 else
18512 case $INTLTOOL_EXTRACT in
18513 [\\/]* | ?:[\\/]*)
18514 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18520 IFS=$as_save_IFS
18521 test -z "$as_dir" && as_dir=.
18522 for ac_exec_ext in '' $ac_executable_extensions; do
18523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18524 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
18525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526 break 2
18528 done
18529 done
18530 IFS=$as_save_IFS
18533 esac
18535 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
18536 if test -n "$INTLTOOL_EXTRACT"; then
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18538 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18539 else
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18545 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18546 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
18549 if test -z "$AM_DEFAULT_VERBOSITY"; then
18550 AM_DEFAULT_VERBOSITY=1
18554 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
18555 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
18556 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
18561 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
18562 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
18563 intltool__v_merge_options_0='-q'
18568 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 $< $@'
18569 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 $< $@'
18570 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 $< $@'
18571 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 $< $@'
18572 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 $< $@'
18573 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 $< $@'
18574 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 $< $@'
18575 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 $< $@'
18576 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 $< $@'
18577 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 $< $@'
18578 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 $< $@'
18579 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
18580 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 $< $@'
18581 else
18582 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'
18584 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 $< $@'
18585 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 $< $@'
18586 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 $< $@'
18587 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 $< $@'
18588 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 $< $@'
18589 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 $< $@'
18590 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 $< $@'
18688 # Check the gettext tools to make sure they are GNU
18689 # Extract the first word of "xgettext", so it can be a program name with args.
18690 set dummy xgettext; ac_word=$2
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18692 $as_echo_n "checking for $ac_word... " >&6; }
18693 if ${ac_cv_path_XGETTEXT+:} false; then :
18694 $as_echo_n "(cached) " >&6
18695 else
18696 case $XGETTEXT in
18697 [\\/]* | ?:[\\/]*)
18698 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18702 for as_dir in $PATH
18704 IFS=$as_save_IFS
18705 test -z "$as_dir" && as_dir=.
18706 for ac_exec_ext in '' $ac_executable_extensions; do
18707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18708 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18710 break 2
18712 done
18713 done
18714 IFS=$as_save_IFS
18717 esac
18719 XGETTEXT=$ac_cv_path_XGETTEXT
18720 if test -n "$XGETTEXT"; then
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18722 $as_echo "$XGETTEXT" >&6; }
18723 else
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18725 $as_echo "no" >&6; }
18729 # Extract the first word of "msgmerge", so it can be a program name with args.
18730 set dummy msgmerge; ac_word=$2
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18732 $as_echo_n "checking for $ac_word... " >&6; }
18733 if ${ac_cv_path_MSGMERGE+:} false; then :
18734 $as_echo_n "(cached) " >&6
18735 else
18736 case $MSGMERGE in
18737 [\\/]* | ?:[\\/]*)
18738 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18742 for as_dir in $PATH
18744 IFS=$as_save_IFS
18745 test -z "$as_dir" && as_dir=.
18746 for ac_exec_ext in '' $ac_executable_extensions; do
18747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18748 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
18749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18750 break 2
18752 done
18753 done
18754 IFS=$as_save_IFS
18757 esac
18759 MSGMERGE=$ac_cv_path_MSGMERGE
18760 if test -n "$MSGMERGE"; then
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18762 $as_echo "$MSGMERGE" >&6; }
18763 else
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
18769 # Extract the first word of "msgfmt", so it can be a program name with args.
18770 set dummy msgfmt; ac_word=$2
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18772 $as_echo_n "checking for $ac_word... " >&6; }
18773 if ${ac_cv_path_MSGFMT+:} false; then :
18774 $as_echo_n "(cached) " >&6
18775 else
18776 case $MSGFMT in
18777 [\\/]* | ?:[\\/]*)
18778 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18782 for as_dir in $PATH
18784 IFS=$as_save_IFS
18785 test -z "$as_dir" && as_dir=.
18786 for ac_exec_ext in '' $ac_executable_extensions; do
18787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18788 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18790 break 2
18792 done
18793 done
18794 IFS=$as_save_IFS
18797 esac
18799 MSGFMT=$ac_cv_path_MSGFMT
18800 if test -n "$MSGFMT"; then
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18802 $as_echo "$MSGFMT" >&6; }
18803 else
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18805 $as_echo "no" >&6; }
18809 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18810 set dummy gmsgfmt; ac_word=$2
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18812 $as_echo_n "checking for $ac_word... " >&6; }
18813 if ${ac_cv_path_GMSGFMT+:} false; then :
18814 $as_echo_n "(cached) " >&6
18815 else
18816 case $GMSGFMT in
18817 [\\/]* | ?:[\\/]*)
18818 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18822 for as_dir in $PATH
18824 IFS=$as_save_IFS
18825 test -z "$as_dir" && as_dir=.
18826 for ac_exec_ext in '' $ac_executable_extensions; do
18827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18828 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18830 break 2
18832 done
18833 done
18834 IFS=$as_save_IFS
18836 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18838 esac
18840 GMSGFMT=$ac_cv_path_GMSGFMT
18841 if test -n "$GMSGFMT"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18843 $as_echo "$GMSGFMT" >&6; }
18844 else
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18850 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
18851 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
18853 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
18854 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
18855 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
18856 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
18857 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
18860 # Extract the first word of "perl", so it can be a program name with args.
18861 set dummy perl; ac_word=$2
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18863 $as_echo_n "checking for $ac_word... " >&6; }
18864 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
18865 $as_echo_n "(cached) " >&6
18866 else
18867 case $INTLTOOL_PERL in
18868 [\\/]* | ?:[\\/]*)
18869 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
18872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873 for as_dir in $PATH
18875 IFS=$as_save_IFS
18876 test -z "$as_dir" && as_dir=.
18877 for ac_exec_ext in '' $ac_executable_extensions; do
18878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18879 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
18880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18881 break 2
18883 done
18884 done
18885 IFS=$as_save_IFS
18888 esac
18890 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
18891 if test -n "$INTLTOOL_PERL"; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
18893 $as_echo "$INTLTOOL_PERL" >&6; }
18894 else
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18896 $as_echo "no" >&6; }
18900 if test -z "$INTLTOOL_PERL"; then
18901 as_fn_error $? "perl not found" "$LINENO" 5
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
18904 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
18905 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
18906 if test $? -ne 0; then
18907 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
18908 else
18909 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
18911 $as_echo "$IT_PERL_VERSION" >&6; }
18913 if test "xno-xml" != "xno-xml"; then
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
18915 $as_echo_n "checking for XML::Parser... " >&6; }
18916 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18918 $as_echo "ok" >&6; }
18919 else
18920 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
18924 # Substitute ALL_LINGUAS so we can use it in po/Makefile
18927 # Set DATADIRNAME correctly if it is not set yet
18928 # (copied from glib-gettext.m4)
18929 if test -z "$DATADIRNAME"; then
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18934 main ()
18936 extern int _nl_msg_cat_cntr;
18937 return _nl_msg_cat_cntr
18939 return 0;
18941 _ACEOF
18942 if ac_fn_c_try_link "$LINENO"; then :
18943 DATADIRNAME=share
18944 else
18945 case $host in
18946 *-*-solaris*)
18947 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18948 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
18949 DATADIRNAME=share
18950 else
18951 DATADIRNAME=lib
18956 DATADIRNAME=lib
18958 esac
18960 rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18968 for ac_header in libintl.h
18969 do :
18970 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18971 if test "x$ac_cv_header_libintl_h" = xyes; then :
18972 cat >>confdefs.h <<_ACEOF
18973 #define HAVE_LIBINTL_H 1
18974 _ACEOF
18978 done
18980 GETTEXT_PACKAGE=transmission-gtk
18983 cat >>confdefs.h <<_ACEOF
18984 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
18985 _ACEOF
18988 for ac_header in locale.h
18989 do :
18990 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_locale_h" = xyes; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_LOCALE_H 1
18994 _ACEOF
18998 done
19000 if test $ac_cv_header_locale_h = yes; then
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19002 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19003 if ${am_cv_val_LC_MESSAGES+:} false; then :
19004 $as_echo_n "(cached) " >&6
19005 else
19006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19008 #include <locale.h>
19010 main ()
19012 return LC_MESSAGES
19014 return 0;
19016 _ACEOF
19017 if ac_fn_c_try_link "$LINENO"; then :
19018 am_cv_val_LC_MESSAGES=yes
19019 else
19020 am_cv_val_LC_MESSAGES=no
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19026 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19027 if test $am_cv_val_LC_MESSAGES = yes; then
19029 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19033 USE_NLS=yes
19036 gt_cv_have_gettext=no
19038 CATOBJEXT=NONE
19039 XGETTEXT=:
19040 INTLLIBS=
19042 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19043 if test "x$ac_cv_header_libintl_h" = xyes; then :
19044 gt_cv_func_dgettext_libintl="no"
19045 libintl_extra_libs=""
19048 # First check in libc
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19051 $as_echo_n "checking for ngettext in libc... " >&6; }
19052 if ${gt_cv_func_ngettext_libc+:} false; then :
19053 $as_echo_n "(cached) " >&6
19054 else
19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056 /* end confdefs.h. */
19058 #include <libintl.h>
19061 main ()
19063 return !ngettext ("","", 1)
19065 return 0;
19067 _ACEOF
19068 if ac_fn_c_try_link "$LINENO"; then :
19069 gt_cv_func_ngettext_libc=yes
19070 else
19071 gt_cv_func_ngettext_libc=no
19073 rm -f core conftest.err conftest.$ac_objext \
19074 conftest$ac_exeext conftest.$ac_ext
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19078 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19080 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19082 $as_echo_n "checking for dgettext in libc... " >&6; }
19083 if ${gt_cv_func_dgettext_libc+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087 /* end confdefs.h. */
19089 #include <libintl.h>
19092 main ()
19094 return !dgettext ("","")
19096 return 0;
19098 _ACEOF
19099 if ac_fn_c_try_link "$LINENO"; then :
19100 gt_cv_func_dgettext_libc=yes
19101 else
19102 gt_cv_func_dgettext_libc=no
19104 rm -f core conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext conftest.$ac_ext
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19109 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19112 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19113 for ac_func in bind_textdomain_codeset
19114 do :
19115 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19116 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19117 cat >>confdefs.h <<_ACEOF
19118 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19119 _ACEOF
19122 done
19127 # If we don't have everything we want, check in libintl
19129 if test "$gt_cv_func_dgettext_libc" != "yes" \
19130 || test "$gt_cv_func_ngettext_libc" != "yes" \
19131 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19134 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19135 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19136 $as_echo_n "(cached) " >&6
19137 else
19138 ac_check_lib_save_LIBS=$LIBS
19139 LIBS="-lintl $LIBS"
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char bindtextdomain ();
19151 main ()
19153 return bindtextdomain ();
19155 return 0;
19157 _ACEOF
19158 if ac_fn_c_try_link "$LINENO"; then :
19159 ac_cv_lib_intl_bindtextdomain=yes
19160 else
19161 ac_cv_lib_intl_bindtextdomain=no
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19168 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19169 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19171 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19172 if ${ac_cv_lib_intl_ngettext+:} false; then :
19173 $as_echo_n "(cached) " >&6
19174 else
19175 ac_check_lib_save_LIBS=$LIBS
19176 LIBS="-lintl $LIBS"
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19180 /* Override any GCC internal prototype to avoid an error.
19181 Use char because int might match the return type of a GCC
19182 builtin and then its argument prototype would still apply. */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char ngettext ();
19188 main ()
19190 return ngettext ();
19192 return 0;
19194 _ACEOF
19195 if ac_fn_c_try_link "$LINENO"; then :
19196 ac_cv_lib_intl_ngettext=yes
19197 else
19198 ac_cv_lib_intl_ngettext=no
19200 rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19205 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19206 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19208 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19209 if ${ac_cv_lib_intl_dgettext+:} false; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 ac_check_lib_save_LIBS=$LIBS
19213 LIBS="-lintl $LIBS"
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19217 /* Override any GCC internal prototype to avoid an error.
19218 Use char because int might match the return type of a GCC
19219 builtin and then its argument prototype would still apply. */
19220 #ifdef __cplusplus
19221 extern "C"
19222 #endif
19223 char dgettext ();
19225 main ()
19227 return dgettext ();
19229 return 0;
19231 _ACEOF
19232 if ac_fn_c_try_link "$LINENO"; then :
19233 ac_cv_lib_intl_dgettext=yes
19234 else
19235 ac_cv_lib_intl_dgettext=no
19237 rm -f core conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19242 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19243 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19244 gt_cv_func_dgettext_libintl=yes
19252 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19254 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19256 $as_echo "" >&6; }
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19258 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19259 if ${ac_cv_lib_intl_ngettext+:} false; then :
19260 $as_echo_n "(cached) " >&6
19261 else
19262 ac_check_lib_save_LIBS=$LIBS
19263 LIBS="-lintl -liconv $LIBS"
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 char ngettext ();
19275 main ()
19277 return ngettext ();
19279 return 0;
19281 _ACEOF
19282 if ac_fn_c_try_link "$LINENO"; then :
19283 ac_cv_lib_intl_ngettext=yes
19284 else
19285 ac_cv_lib_intl_ngettext=no
19287 rm -f core conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19289 LIBS=$ac_check_lib_save_LIBS
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19292 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19293 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19295 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19296 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19297 $as_echo_n "(cached) " >&6
19298 else
19299 ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-lintl -liconv $LIBS"
19301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302 /* end confdefs.h. */
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19307 #ifdef __cplusplus
19308 extern "C"
19309 #endif
19310 char dcgettext ();
19312 main ()
19314 return dcgettext ();
19316 return 0;
19318 _ACEOF
19319 if ac_fn_c_try_link "$LINENO"; then :
19320 ac_cv_lib_intl_dcgettext=yes
19321 else
19322 ac_cv_lib_intl_dcgettext=no
19324 rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19326 LIBS=$ac_check_lib_save_LIBS
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19329 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19330 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19331 gt_cv_func_dgettext_libintl=yes
19332 libintl_extra_libs=-liconv
19333 else
19337 else
19344 # If we found libintl, then check in it for bind_textdomain_codeset();
19345 # we'll prefer libc if neither have bind_textdomain_codeset(),
19346 # and both have dgettext and ngettext
19348 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19349 glib_save_LIBS="$LIBS"
19350 LIBS="$LIBS -lintl $libintl_extra_libs"
19351 unset ac_cv_func_bind_textdomain_codeset
19352 for ac_func in bind_textdomain_codeset
19353 do :
19354 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19355 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19356 cat >>confdefs.h <<_ACEOF
19357 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19358 _ACEOF
19361 done
19363 LIBS="$glib_save_LIBS"
19365 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19366 gt_cv_func_dgettext_libc=no
19367 else
19368 if test "$gt_cv_func_dgettext_libc" = "yes" \
19369 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19370 gt_cv_func_dgettext_libintl=no
19376 if test "$gt_cv_func_dgettext_libc" = "yes" \
19377 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19378 gt_cv_have_gettext=yes
19381 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19382 INTLLIBS="-lintl $libintl_extra_libs"
19385 if test "$gt_cv_have_gettext" = "yes"; then
19387 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19389 # Extract the first word of "msgfmt", so it can be a program name with args.
19390 set dummy msgfmt; ac_word=$2
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19392 $as_echo_n "checking for $ac_word... " >&6; }
19393 if ${ac_cv_path_MSGFMT+:} false; then :
19394 $as_echo_n "(cached) " >&6
19395 else
19396 case "$MSGFMT" in
19398 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19402 for ac_dir in $PATH; do
19403 test -z "$ac_dir" && ac_dir=.
19404 if test -f $ac_dir/$ac_word; then
19405 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19406 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19407 break
19410 done
19411 IFS="$ac_save_ifs"
19412 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19414 esac
19416 MSGFMT="$ac_cv_path_MSGFMT"
19417 if test "$MSGFMT" != "no"; then
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19419 $as_echo "$MSGFMT" >&6; }
19420 else
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422 $as_echo "no" >&6; }
19424 if test "$MSGFMT" != "no"; then
19425 glib_save_LIBS="$LIBS"
19426 LIBS="$LIBS $INTLLIBS"
19427 for ac_func in dcgettext
19428 do :
19429 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19430 if test "x$ac_cv_func_dcgettext" = xyes; then :
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_DCGETTEXT 1
19433 _ACEOF
19436 done
19438 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19439 set dummy gmsgfmt; ac_word=$2
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19441 $as_echo_n "checking for $ac_word... " >&6; }
19442 if ${ac_cv_path_GMSGFMT+:} false; then :
19443 $as_echo_n "(cached) " >&6
19444 else
19445 case $GMSGFMT in
19446 [\\/]* | ?:[\\/]*)
19447 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19451 for as_dir in $PATH
19453 IFS=$as_save_IFS
19454 test -z "$as_dir" && as_dir=.
19455 for ac_exec_ext in '' $ac_executable_extensions; do
19456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19457 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19459 break 2
19461 done
19462 done
19463 IFS=$as_save_IFS
19465 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19467 esac
19469 GMSGFMT=$ac_cv_path_GMSGFMT
19470 if test -n "$GMSGFMT"; then
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19472 $as_echo "$GMSGFMT" >&6; }
19473 else
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475 $as_echo "no" >&6; }
19479 # Extract the first word of "xgettext", so it can be a program name with args.
19480 set dummy xgettext; ac_word=$2
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19482 $as_echo_n "checking for $ac_word... " >&6; }
19483 if ${ac_cv_path_XGETTEXT+:} false; then :
19484 $as_echo_n "(cached) " >&6
19485 else
19486 case "$XGETTEXT" in
19488 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19492 for ac_dir in $PATH; do
19493 test -z "$ac_dir" && ac_dir=.
19494 if test -f $ac_dir/$ac_word; then
19495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19496 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19497 break
19500 done
19501 IFS="$ac_save_ifs"
19502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19504 esac
19506 XGETTEXT="$ac_cv_path_XGETTEXT"
19507 if test "$XGETTEXT" != ":"; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19509 $as_echo "$XGETTEXT" >&6; }
19510 else
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512 $as_echo "no" >&6; }
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19519 main ()
19521 extern int _nl_msg_cat_cntr;
19522 return _nl_msg_cat_cntr
19524 return 0;
19526 _ACEOF
19527 if ac_fn_c_try_link "$LINENO"; then :
19528 CATOBJEXT=.gmo
19529 DATADIRNAME=share
19530 else
19531 case $host in
19532 *-*-solaris*)
19533 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19534 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19535 CATOBJEXT=.gmo
19536 DATADIRNAME=share
19537 else
19538 CATOBJEXT=.mo
19539 DATADIRNAME=lib
19544 CATOBJEXT=.mo
19545 DATADIRNAME=lib
19547 esac
19549 rm -f core conftest.err conftest.$ac_objext \
19550 conftest$ac_exeext conftest.$ac_ext
19551 LIBS="$glib_save_LIBS"
19552 INSTOBJEXT=.mo
19553 else
19554 gt_cv_have_gettext=no
19562 if test "$gt_cv_have_gettext" = "yes" ; then
19564 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19568 if test "$XGETTEXT" != ":"; then
19569 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19571 else
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19573 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19574 XGETTEXT=":"
19578 # We need to process the po/ directory.
19579 POSUB=po
19581 ac_config_commands="$ac_config_commands default-1"
19584 for lang in $ALL_LINGUAS; do
19585 GMOFILES="$GMOFILES $lang.gmo"
19586 POFILES="$POFILES $lang.po"
19587 done
19601 if test "$gt_cv_have_gettext" = "yes"; then
19602 if test "x$ALL_LINGUAS" = "x"; then
19603 LINGUAS=
19604 else
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19606 $as_echo_n "checking for catalogs to be installed... " >&6; }
19607 NEW_LINGUAS=
19608 for presentlang in $ALL_LINGUAS; do
19609 useit=no
19610 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19611 desiredlanguages="$LINGUAS"
19612 else
19613 desiredlanguages="$ALL_LINGUAS"
19615 for desiredlang in $desiredlanguages; do
19616 # Use the presentlang catalog if desiredlang is
19617 # a. equal to presentlang, or
19618 # b. a variant of presentlang (because in this case,
19619 # presentlang can be used as a fallback for messages
19620 # which are not translated in the desiredlang catalog).
19621 case "$desiredlang" in
19622 "$presentlang"*) useit=yes;;
19623 esac
19624 done
19625 if test $useit = yes; then
19626 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19628 done
19629 LINGUAS=$NEW_LINGUAS
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19631 $as_echo "$LINGUAS" >&6; }
19634 if test -n "$LINGUAS"; then
19635 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19639 MKINSTALLDIRS=
19640 if test -n "$ac_aux_dir"; then
19641 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19643 if test -z "$MKINSTALLDIRS"; then
19644 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19648 test -d po || mkdir po
19649 if test "x$srcdir" != "x."; then
19650 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19651 posrcprefix="$srcdir/"
19652 else
19653 posrcprefix="../$srcdir/"
19655 else
19656 posrcprefix="../"
19658 rm -f po/POTFILES
19659 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19660 < $srcdir/po/POTFILES.in > po/POTFILES
19662 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
19670 have_darwin="no"
19671 have_msw="no"
19672 case $host_os in
19674 *mingw32*)
19675 have_msw="yes"
19676 CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
19677 CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
19678 LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
19679 transmissionlocaledir="locale"
19680 if test -z "$host_alias"; then
19681 hostaliaswindres=
19682 else
19683 hostaliaswindres="$host_alias-windres";
19685 if test -n "$ac_tool_prefix"; then
19686 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19687 set dummy ${ac_tool_prefix}windres; ac_word=$2
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19689 $as_echo_n "checking for $ac_word... " >&6; }
19690 if ${ac_cv_prog_WINDRES+:} false; then :
19691 $as_echo_n "(cached) " >&6
19692 else
19693 if test -n "$WINDRES"; then
19694 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19695 else
19696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19697 for as_dir in $PATH
19699 IFS=$as_save_IFS
19700 test -z "$as_dir" && as_dir=.
19701 for ac_exec_ext in '' $ac_executable_extensions; do
19702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19703 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19705 break 2
19707 done
19708 done
19709 IFS=$as_save_IFS
19713 WINDRES=$ac_cv_prog_WINDRES
19714 if test -n "$WINDRES"; then
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19716 $as_echo "$WINDRES" >&6; }
19717 else
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19719 $as_echo "no" >&6; }
19724 if test -z "$ac_cv_prog_WINDRES"; then
19725 ac_ct_WINDRES=$WINDRES
19726 # Extract the first word of "windres", so it can be a program name with args.
19727 set dummy windres; ac_word=$2
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19729 $as_echo_n "checking for $ac_word... " >&6; }
19730 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19731 $as_echo_n "(cached) " >&6
19732 else
19733 if test -n "$ac_ct_WINDRES"; then
19734 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19735 else
19736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737 for as_dir in $PATH
19739 IFS=$as_save_IFS
19740 test -z "$as_dir" && as_dir=.
19741 for ac_exec_ext in '' $ac_executable_extensions; do
19742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19743 ac_cv_prog_ac_ct_WINDRES="windres"
19744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19745 break 2
19747 done
19748 done
19749 IFS=$as_save_IFS
19753 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19754 if test -n "$ac_ct_WINDRES"; then
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19756 $as_echo "$ac_ct_WINDRES" >&6; }
19757 else
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19759 $as_echo "no" >&6; }
19762 if test "x$ac_ct_WINDRES" = x; then
19763 WINDRES=""
19764 else
19765 case $cross_compiling:$ac_tool_warned in
19766 yes:)
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19769 ac_tool_warned=yes ;;
19770 esac
19771 WINDRES=$ac_ct_WINDRES
19773 else
19774 WINDRES="$ac_cv_prog_WINDRES"
19779 *darwin*)
19780 have_darwin="yes"
19781 CFLAGS="-DMACOSX $CFLAGS"
19784 esac
19786 # Check whether --enable-lightweight was given.
19787 if test "${enable_lightweight+set}" = set; then :
19788 enableval=$enable_lightweight; enable_lightweight=${enableval}
19789 else
19790 enable_lightweight="no"
19793 if test "x$enable_lightweight" = "xyes" ; then
19795 $as_echo "#define TR_LIGHTWEIGHT 1" >>confdefs.h
19799 # Check whether --enable-cli was given.
19800 if test "${enable_cli+set}" = set; then :
19801 enableval=$enable_cli; build_cli=${enableval}
19802 else
19803 build_cli="yes"
19806 if test "x$build_cli" = "xyes"; then
19807 BUILD_CLI_TRUE=
19808 BUILD_CLI_FALSE='#'
19809 else
19810 BUILD_CLI_TRUE='#'
19811 BUILD_CLI_FALSE=
19815 # Check whether --enable-mac was given.
19816 if test "${enable_mac+set}" = set; then :
19817 enableval=$enable_mac; build_mac=${enableval}
19818 else
19819 build_mac=${have_darwin}
19822 if test "x$build_mac" = "xyes"; then
19823 BUILD_MAC_TRUE=
19824 BUILD_MAC_FALSE='#'
19825 else
19826 BUILD_MAC_TRUE='#'
19827 BUILD_MAC_FALSE=
19831 # Check whether --enable-daemon was given.
19832 if test "${enable_daemon+set}" = set; then :
19833 enableval=$enable_daemon; build_daemon=${enableval}
19834 else
19835 build_daemon="yes"
19838 if test "x$build_daemon" = "xyes"; then
19839 BUILD_DAEMON_TRUE=
19840 BUILD_DAEMON_FALSE='#'
19841 else
19842 BUILD_DAEMON_TRUE='#'
19843 BUILD_DAEMON_FALSE=
19848 if test "x$build_mac" = "xyes" ; then
19849 # Make sure the proper Mac SDK is installed
19850 if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
19851 cat << EOF
19852 You need to install the Mac OS X 10.5 SDK in order to build Transmission
19853 with --enable-mac:
19854 Get your Xcode CD or package
19855 Restart the install
19856 When it gets to "Installation Type", select "Customize"
19857 Select "Mac OS X 10.5 SDK" under "Cross Development"
19858 Finish the install.
19860 exit 1
19863 if test "x$have_darwin" = "xyes"; then
19864 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
19867 if test "x$have_msw" = "xyes"; then
19868 $as_echo "#define HAVE_MSW 1" >>confdefs.h
19871 if test "x$have_msw" = "xyes"; then
19872 WIN32_TRUE=
19873 WIN32_FALSE='#'
19874 else
19875 WIN32_TRUE='#'
19876 WIN32_FALSE=
19881 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"
19884 cat >confcache <<\_ACEOF
19885 # This file is a shell script that caches the results of configure
19886 # tests run on this system so they can be shared between configure
19887 # scripts and configure runs, see configure's option --config-cache.
19888 # It is not useful on other systems. If it contains results you don't
19889 # want to keep, you may remove or edit it.
19891 # config.status only pays attention to the cache file if you give it
19892 # the --recheck option to rerun configure.
19894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19896 # following values.
19898 _ACEOF
19900 # The following way of writing the cache mishandles newlines in values,
19901 # but we know of no workaround that is simple, portable, and efficient.
19902 # So, we kill variables containing newlines.
19903 # Ultrix sh set writes to stderr and can't be redirected directly,
19904 # and sets the high bit in the cache file unless we assign to the vars.
19906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19907 eval ac_val=\$$ac_var
19908 case $ac_val in #(
19909 *${as_nl}*)
19910 case $ac_var in #(
19911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19913 esac
19914 case $ac_var in #(
19915 _ | IFS | as_nl) ;; #(
19916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19917 *) { eval $ac_var=; unset $ac_var;} ;;
19918 esac ;;
19919 esac
19920 done
19922 (set) 2>&1 |
19923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19924 *${as_nl}ac_space=\ *)
19925 # `set' does not quote correctly, so add quotes: double-quote
19926 # substitution turns \\\\ into \\, and sed turns \\ into \.
19927 sed -n \
19928 "s/'/'\\\\''/g;
19929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19930 ;; #(
19932 # `set' quotes correctly as required by POSIX, so do not add quotes.
19933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19935 esac |
19936 sort
19938 sed '
19939 /^ac_cv_env_/b end
19940 t clear
19941 :clear
19942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19943 t end
19944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19945 :end' >>confcache
19946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19947 if test -w "$cache_file"; then
19948 if test "x$cache_file" != "x/dev/null"; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19950 $as_echo "$as_me: updating cache $cache_file" >&6;}
19951 if test ! -f "$cache_file" || test -h "$cache_file"; then
19952 cat confcache >"$cache_file"
19953 else
19954 case $cache_file in #(
19955 */* | ?:*)
19956 mv -f confcache "$cache_file"$$ &&
19957 mv -f "$cache_file"$$ "$cache_file" ;; #(
19959 mv -f confcache "$cache_file" ;;
19960 esac
19963 else
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19968 rm -f confcache
19970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19971 # Let make expand exec_prefix.
19972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19974 # Transform confdefs.h into DEFS.
19975 # Protect against shell expansion while executing Makefile rules.
19976 # Protect against Makefile macro expansion.
19978 # If the first sed substitution is executed (which looks for macros that
19979 # take arguments), then branch to the quote section. Otherwise,
19980 # look for a macro that doesn't take arguments.
19981 ac_script='
19982 :mline
19983 /\\$/{
19985 s,\\\n,,
19986 b mline
19988 t clear
19989 :clear
19990 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19991 t quote
19992 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19993 t quote
19994 b any
19995 :quote
19996 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19997 s/\[/\\&/g
19998 s/\]/\\&/g
19999 s/\$/$$/g
20001 :any
20004 s/^\n//
20005 s/\n/ /g
20009 DEFS=`sed -n "$ac_script" confdefs.h`
20012 ac_libobjs=
20013 ac_ltlibobjs=
20015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20016 # 1. Remove the extension, and $U if already installed.
20017 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20018 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20020 # will be set to the directory where LIBOBJS objects are built.
20021 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20022 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20023 done
20024 LIBOBJS=$ac_libobjs
20026 LTLIBOBJS=$ac_ltlibobjs
20029 if test -n "$EXEEXT"; then
20030 am__EXEEXT_TRUE=
20031 am__EXEEXT_FALSE='#'
20032 else
20033 am__EXEEXT_TRUE='#'
20034 am__EXEEXT_FALSE=
20037 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20038 as_fn_error $? "conditional \"AMDEP\" was never defined.
20039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20042 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20045 if test -z "${TR_UNSTABLE_TRUE}" && test -z "${TR_UNSTABLE_FALSE}"; then
20046 as_fn_error $? "conditional \"TR_UNSTABLE\" was never defined.
20047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20050 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20053 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20054 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20057 if test -z "${BUILD_UTP_TRUE}" && test -z "${BUILD_UTP_FALSE}"; then
20058 as_fn_error $? "conditional \"BUILD_UTP\" was never defined.
20059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20061 if test -z "${BUILD_MINIUPNP_TRUE}" && test -z "${BUILD_MINIUPNP_FALSE}"; then
20062 as_fn_error $? "conditional \"BUILD_MINIUPNP\" was never defined.
20063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20065 if test -z "${BUILD_NATPMP_TRUE}" && test -z "${BUILD_NATPMP_FALSE}"; then
20066 as_fn_error $? "conditional \"BUILD_NATPMP\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20069 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
20070 as_fn_error $? "conditional \"BUILD_GTK\" was never defined.
20071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20074 ac_config_commands="$ac_config_commands po/stamp-it"
20077 if test -z "${BUILD_CLI_TRUE}" && test -z "${BUILD_CLI_FALSE}"; then
20078 as_fn_error $? "conditional \"BUILD_CLI\" was never defined.
20079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20081 if test -z "${BUILD_MAC_TRUE}" && test -z "${BUILD_MAC_FALSE}"; then
20082 as_fn_error $? "conditional \"BUILD_MAC\" was never defined.
20083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20085 if test -z "${BUILD_DAEMON_TRUE}" && test -z "${BUILD_DAEMON_FALSE}"; then
20086 as_fn_error $? "conditional \"BUILD_DAEMON\" was never defined.
20087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20089 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
20090 as_fn_error $? "conditional \"WIN32\" was never defined.
20091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094 : "${CONFIG_STATUS=./config.status}"
20095 ac_write_fail=0
20096 ac_clean_files_save=$ac_clean_files
20097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20100 as_write_fail=0
20101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20102 #! $SHELL
20103 # Generated by $as_me.
20104 # Run this file to recreate the current configuration.
20105 # Compiler output produced by configure, useful for debugging
20106 # configure, is in config.log if it exists.
20108 debug=false
20109 ac_cs_recheck=false
20110 ac_cs_silent=false
20112 SHELL=\${CONFIG_SHELL-$SHELL}
20113 export SHELL
20114 _ASEOF
20115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20116 ## -------------------- ##
20117 ## M4sh Initialization. ##
20118 ## -------------------- ##
20120 # Be more Bourne compatible
20121 DUALCASE=1; export DUALCASE # for MKS sh
20122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20123 emulate sh
20124 NULLCMD=:
20125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20126 # is contrary to our usage. Disable this feature.
20127 alias -g '${1+"$@"}'='"$@"'
20128 setopt NO_GLOB_SUBST
20129 else
20130 case `(set -o) 2>/dev/null` in #(
20131 *posix*) :
20132 set -o posix ;; #(
20133 *) :
20135 esac
20139 as_nl='
20141 export as_nl
20142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20143 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20146 # Prefer a ksh shell builtin over an external printf program on Solaris,
20147 # but without wasting forks for bash or zsh.
20148 if test -z "$BASH_VERSION$ZSH_VERSION" \
20149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20150 as_echo='print -r --'
20151 as_echo_n='print -rn --'
20152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20153 as_echo='printf %s\n'
20154 as_echo_n='printf %s'
20155 else
20156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20158 as_echo_n='/usr/ucb/echo -n'
20159 else
20160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20161 as_echo_n_body='eval
20162 arg=$1;
20163 case $arg in #(
20164 *"$as_nl"*)
20165 expr "X$arg" : "X\\(.*\\)$as_nl";
20166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20167 esac;
20168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20170 export as_echo_n_body
20171 as_echo_n='sh -c $as_echo_n_body as_echo'
20173 export as_echo_body
20174 as_echo='sh -c $as_echo_body as_echo'
20177 # The user is always right.
20178 if test "${PATH_SEPARATOR+set}" != set; then
20179 PATH_SEPARATOR=:
20180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20182 PATH_SEPARATOR=';'
20187 # IFS
20188 # We need space, tab and new line, in precisely that order. Quoting is
20189 # there to prevent editors from complaining about space-tab.
20190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191 # splitting by setting IFS to empty value.)
20192 IFS=" "" $as_nl"
20194 # Find who we are. Look in the path if we contain no directory separator.
20195 as_myself=
20196 case $0 in #((
20197 *[\\/]* ) as_myself=$0 ;;
20198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20199 for as_dir in $PATH
20201 IFS=$as_save_IFS
20202 test -z "$as_dir" && as_dir=.
20203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20204 done
20205 IFS=$as_save_IFS
20208 esac
20209 # We did not find ourselves, most probably we were run as `sh COMMAND'
20210 # in which case we are not to be found in the path.
20211 if test "x$as_myself" = x; then
20212 as_myself=$0
20214 if test ! -f "$as_myself"; then
20215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20216 exit 1
20219 # Unset variables that we do not need and which cause bugs (e.g. in
20220 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20221 # suppresses any "Segmentation fault" message there. '((' could
20222 # trigger a bug in pdksh 5.2.14.
20223 for as_var in BASH_ENV ENV MAIL MAILPATH
20224 do eval test x\${$as_var+set} = xset \
20225 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20226 done
20227 PS1='$ '
20228 PS2='> '
20229 PS4='+ '
20231 # NLS nuisances.
20232 LC_ALL=C
20233 export LC_ALL
20234 LANGUAGE=C
20235 export LANGUAGE
20237 # CDPATH.
20238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20242 # ----------------------------------------
20243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20245 # script with STATUS, using 1 if that was 0.
20246 as_fn_error ()
20248 as_status=$1; test $as_status -eq 0 && as_status=1
20249 if test "$4"; then
20250 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20253 $as_echo "$as_me: error: $2" >&2
20254 as_fn_exit $as_status
20255 } # as_fn_error
20258 # as_fn_set_status STATUS
20259 # -----------------------
20260 # Set $? to STATUS, without forking.
20261 as_fn_set_status ()
20263 return $1
20264 } # as_fn_set_status
20266 # as_fn_exit STATUS
20267 # -----------------
20268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20269 as_fn_exit ()
20271 set +e
20272 as_fn_set_status $1
20273 exit $1
20274 } # as_fn_exit
20276 # as_fn_unset VAR
20277 # ---------------
20278 # Portably unset VAR.
20279 as_fn_unset ()
20281 { eval $1=; unset $1;}
20283 as_unset=as_fn_unset
20284 # as_fn_append VAR VALUE
20285 # ----------------------
20286 # Append the text in VALUE to the end of the definition contained in VAR. Take
20287 # advantage of any shell optimizations that allow amortized linear growth over
20288 # repeated appends, instead of the typical quadratic growth present in naive
20289 # implementations.
20290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20291 eval 'as_fn_append ()
20293 eval $1+=\$2
20295 else
20296 as_fn_append ()
20298 eval $1=\$$1\$2
20300 fi # as_fn_append
20302 # as_fn_arith ARG...
20303 # ------------------
20304 # Perform arithmetic evaluation on the ARGs, and store the result in the
20305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20306 # must be portable across $(()) and expr.
20307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20308 eval 'as_fn_arith ()
20310 as_val=$(( $* ))
20312 else
20313 as_fn_arith ()
20315 as_val=`expr "$@" || test $? -eq 1`
20317 fi # as_fn_arith
20320 if expr a : '\(a\)' >/dev/null 2>&1 &&
20321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20322 as_expr=expr
20323 else
20324 as_expr=false
20327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20328 as_basename=basename
20329 else
20330 as_basename=false
20333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20334 as_dirname=dirname
20335 else
20336 as_dirname=false
20339 as_me=`$as_basename -- "$0" ||
20340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20341 X"$0" : 'X\(//\)$' \| \
20342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20343 $as_echo X/"$0" |
20344 sed '/^.*\/\([^/][^/]*\)\/*$/{
20345 s//\1/
20348 /^X\/\(\/\/\)$/{
20349 s//\1/
20352 /^X\/\(\/\).*/{
20353 s//\1/
20356 s/.*/./; q'`
20358 # Avoid depending upon Character Ranges.
20359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20362 as_cr_digits='0123456789'
20363 as_cr_alnum=$as_cr_Letters$as_cr_digits
20365 ECHO_C= ECHO_N= ECHO_T=
20366 case `echo -n x` in #(((((
20367 -n*)
20368 case `echo 'xy\c'` in
20369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20370 xy) ECHO_C='\c';;
20371 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20372 ECHO_T=' ';;
20373 esac;;
20375 ECHO_N='-n';;
20376 esac
20378 rm -f conf$$ conf$$.exe conf$$.file
20379 if test -d conf$$.dir; then
20380 rm -f conf$$.dir/conf$$.file
20381 else
20382 rm -f conf$$.dir
20383 mkdir conf$$.dir 2>/dev/null
20385 if (echo >conf$$.file) 2>/dev/null; then
20386 if ln -s conf$$.file conf$$ 2>/dev/null; then
20387 as_ln_s='ln -s'
20388 # ... but there are two gotchas:
20389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20391 # In both cases, we have to default to `cp -pR'.
20392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20393 as_ln_s='cp -pR'
20394 elif ln conf$$.file conf$$ 2>/dev/null; then
20395 as_ln_s=ln
20396 else
20397 as_ln_s='cp -pR'
20399 else
20400 as_ln_s='cp -pR'
20402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20403 rmdir conf$$.dir 2>/dev/null
20406 # as_fn_mkdir_p
20407 # -------------
20408 # Create "$as_dir" as a directory, including parents if necessary.
20409 as_fn_mkdir_p ()
20412 case $as_dir in #(
20413 -*) as_dir=./$as_dir;;
20414 esac
20415 test -d "$as_dir" || eval $as_mkdir_p || {
20416 as_dirs=
20417 while :; do
20418 case $as_dir in #(
20419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20420 *) as_qdir=$as_dir;;
20421 esac
20422 as_dirs="'$as_qdir' $as_dirs"
20423 as_dir=`$as_dirname -- "$as_dir" ||
20424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20425 X"$as_dir" : 'X\(//\)[^/]' \| \
20426 X"$as_dir" : 'X\(//\)$' \| \
20427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20428 $as_echo X"$as_dir" |
20429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20430 s//\1/
20433 /^X\(\/\/\)[^/].*/{
20434 s//\1/
20437 /^X\(\/\/\)$/{
20438 s//\1/
20441 /^X\(\/\).*/{
20442 s//\1/
20445 s/.*/./; q'`
20446 test -d "$as_dir" && break
20447 done
20448 test -z "$as_dirs" || eval "mkdir $as_dirs"
20449 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20452 } # as_fn_mkdir_p
20453 if mkdir -p . 2>/dev/null; then
20454 as_mkdir_p='mkdir -p "$as_dir"'
20455 else
20456 test -d ./-p && rmdir ./-p
20457 as_mkdir_p=false
20461 # as_fn_executable_p FILE
20462 # -----------------------
20463 # Test if FILE is an executable regular file.
20464 as_fn_executable_p ()
20466 test -f "$1" && test -x "$1"
20467 } # as_fn_executable_p
20468 as_test_x='test -x'
20469 as_executable_p=as_fn_executable_p
20471 # Sed expression to map a string onto a valid CPP name.
20472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20474 # Sed expression to map a string onto a valid variable name.
20475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20478 exec 6>&1
20479 ## ----------------------------------- ##
20480 ## Main body of $CONFIG_STATUS script. ##
20481 ## ----------------------------------- ##
20482 _ASEOF
20483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20486 # Save the log message, to keep $0 and so on meaningful, and to
20487 # report actual input values of CONFIG_FILES etc. instead of their
20488 # values after options handling.
20489 ac_log="
20490 This file was extended by transmission $as_me 2.76, which was
20491 generated by GNU Autoconf 2.69. Invocation command line was
20493 CONFIG_FILES = $CONFIG_FILES
20494 CONFIG_HEADERS = $CONFIG_HEADERS
20495 CONFIG_LINKS = $CONFIG_LINKS
20496 CONFIG_COMMANDS = $CONFIG_COMMANDS
20497 $ $0 $@
20499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20502 _ACEOF
20504 case $ac_config_files in *"
20505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20506 esac
20510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20511 # Files that config.status was made for.
20512 config_files="$ac_config_files"
20513 config_commands="$ac_config_commands"
20515 _ACEOF
20517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20518 ac_cs_usage="\
20519 \`$as_me' instantiates files and other configuration actions
20520 from templates according to the current configuration. Unless the files
20521 and actions are specified as TAGs, all are instantiated by default.
20523 Usage: $0 [OPTION]... [TAG]...
20525 -h, --help print this help, then exit
20526 -V, --version print version number and configuration settings, then exit
20527 --config print configuration, then exit
20528 -q, --quiet, --silent
20529 do not print progress messages
20530 -d, --debug don't remove temporary files
20531 --recheck update $as_me by reconfiguring in the same conditions
20532 --file=FILE[:TEMPLATE]
20533 instantiate the configuration file FILE
20535 Configuration files:
20536 $config_files
20538 Configuration commands:
20539 $config_commands
20541 Report bugs to <http://trac.transmissionbt.com/newticket>."
20543 _ACEOF
20544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20546 ac_cs_version="\\
20547 transmission config.status 2.76
20548 configured by $0, generated by GNU Autoconf 2.69,
20549 with options \\"\$ac_cs_config\\"
20551 Copyright (C) 2012 Free Software Foundation, Inc.
20552 This config.status script is free software; the Free Software Foundation
20553 gives unlimited permission to copy, distribute and modify it."
20555 ac_pwd='$ac_pwd'
20556 srcdir='$srcdir'
20557 INSTALL='$INSTALL'
20558 MKDIR_P='$MKDIR_P'
20559 AWK='$AWK'
20560 test -n "\$AWK" || AWK=awk
20561 _ACEOF
20563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20564 # The default lists apply if the user does not specify any file.
20565 ac_need_defaults=:
20566 while test $# != 0
20568 case $1 in
20569 --*=?*)
20570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20572 ac_shift=:
20574 --*=)
20575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20576 ac_optarg=
20577 ac_shift=:
20580 ac_option=$1
20581 ac_optarg=$2
20582 ac_shift=shift
20584 esac
20586 case $ac_option in
20587 # Handling of the options.
20588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20589 ac_cs_recheck=: ;;
20590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20591 $as_echo "$ac_cs_version"; exit ;;
20592 --config | --confi | --conf | --con | --co | --c )
20593 $as_echo "$ac_cs_config"; exit ;;
20594 --debug | --debu | --deb | --de | --d | -d )
20595 debug=: ;;
20596 --file | --fil | --fi | --f )
20597 $ac_shift
20598 case $ac_optarg in
20599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20600 '') as_fn_error $? "missing file argument" ;;
20601 esac
20602 as_fn_append CONFIG_FILES " '$ac_optarg'"
20603 ac_need_defaults=false;;
20604 --he | --h | --help | --hel | -h )
20605 $as_echo "$ac_cs_usage"; exit ;;
20606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20608 ac_cs_silent=: ;;
20610 # This is an error.
20611 -*) as_fn_error $? "unrecognized option: \`$1'
20612 Try \`$0 --help' for more information." ;;
20614 *) as_fn_append ac_config_targets " $1"
20615 ac_need_defaults=false ;;
20617 esac
20618 shift
20619 done
20621 ac_configure_extra_args=
20623 if $ac_cs_silent; then
20624 exec 6>/dev/null
20625 ac_configure_extra_args="$ac_configure_extra_args --silent"
20628 _ACEOF
20629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20630 if \$ac_cs_recheck; then
20631 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20632 shift
20633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20634 CONFIG_SHELL='$SHELL'
20635 export CONFIG_SHELL
20636 exec "\$@"
20639 _ACEOF
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20641 exec 5>>config.log
20643 echo
20644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20645 ## Running $as_me. ##
20646 _ASBOX
20647 $as_echo "$ac_log"
20648 } >&5
20650 _ACEOF
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20653 # INIT-COMMANDS
20655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20658 # The HP-UX ksh and POSIX shell print the target directory to stdout
20659 # if CDPATH is set.
20660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20662 sed_quote_subst='$sed_quote_subst'
20663 double_quote_subst='$double_quote_subst'
20664 delay_variable_subst='$delay_variable_subst'
20665 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20666 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20667 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20668 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20669 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20670 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20671 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20672 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20673 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20674 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20675 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20676 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20677 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20678 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20679 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20680 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20681 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20682 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20683 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20684 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20685 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20686 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20687 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20688 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20689 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20690 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20691 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20692 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20693 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20694 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20695 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20696 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20697 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20698 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20699 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20700 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20701 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20702 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20703 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20704 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20705 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20706 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20707 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20708 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20709 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20710 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20711 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20712 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20713 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20714 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20715 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20716 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20717 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20718 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20719 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20720 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20721 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"`'
20722 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20723 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20724 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20725 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20726 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20727 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20728 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20729 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20730 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20731 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20732 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20733 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20734 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20735 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20736 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20737 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20738 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20739 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20740 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20741 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20742 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20743 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20744 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20745 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20746 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20747 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20748 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20749 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20750 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20751 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20752 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20753 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20754 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20755 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20756 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20757 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20758 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20759 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20760 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20761 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20762 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20763 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20764 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20765 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20766 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20767 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20768 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20769 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20770 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20771 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20772 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20773 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20774 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20775 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20776 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20777 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20778 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20779 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20780 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20781 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20782 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20783 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20784 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20785 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20786 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20787 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20788 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20789 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20790 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20791 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20792 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20793 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20794 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20795 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20796 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20797 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20798 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20799 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20800 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20801 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20802 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20803 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20804 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20805 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20806 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20807 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20808 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20809 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20810 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20811 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20812 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20813 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20814 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20815 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20816 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20817 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20818 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20819 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20820 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20821 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20822 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20823 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20824 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20825 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20826 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20827 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20828 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20829 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20830 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20831 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20832 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20833 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20834 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20835 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20836 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20837 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20838 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20839 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20840 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20841 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20842 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20843 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20844 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20845 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20846 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20847 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20848 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20850 LTCC='$LTCC'
20851 LTCFLAGS='$LTCFLAGS'
20852 compiler='$compiler_DEFAULT'
20854 # A function that is used when there is no print builtin or printf.
20855 func_fallback_echo ()
20857 eval 'cat <<_LTECHO_EOF
20859 _LTECHO_EOF'
20862 # Quote evaled strings.
20863 for var in SHELL \
20864 ECHO \
20865 PATH_SEPARATOR \
20866 SED \
20867 GREP \
20868 EGREP \
20869 FGREP \
20870 LD \
20871 NM \
20872 LN_S \
20873 lt_SP2NL \
20874 lt_NL2SP \
20875 reload_flag \
20876 OBJDUMP \
20877 deplibs_check_method \
20878 file_magic_cmd \
20879 file_magic_glob \
20880 want_nocaseglob \
20881 DLLTOOL \
20882 sharedlib_from_linklib_cmd \
20883 AR \
20884 AR_FLAGS \
20885 archiver_list_spec \
20886 STRIP \
20887 RANLIB \
20888 CC \
20889 CFLAGS \
20890 compiler \
20891 lt_cv_sys_global_symbol_pipe \
20892 lt_cv_sys_global_symbol_to_cdecl \
20893 lt_cv_sys_global_symbol_to_c_name_address \
20894 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20895 nm_file_list_spec \
20896 lt_prog_compiler_no_builtin_flag \
20897 lt_prog_compiler_pic \
20898 lt_prog_compiler_wl \
20899 lt_prog_compiler_static \
20900 lt_cv_prog_compiler_c_o \
20901 need_locks \
20902 MANIFEST_TOOL \
20903 DSYMUTIL \
20904 NMEDIT \
20905 LIPO \
20906 OTOOL \
20907 OTOOL64 \
20908 shrext_cmds \
20909 export_dynamic_flag_spec \
20910 whole_archive_flag_spec \
20911 compiler_needs_object \
20912 with_gnu_ld \
20913 allow_undefined_flag \
20914 no_undefined_flag \
20915 hardcode_libdir_flag_spec \
20916 hardcode_libdir_separator \
20917 exclude_expsyms \
20918 include_expsyms \
20919 file_list_spec \
20920 variables_saved_for_relink \
20921 libname_spec \
20922 library_names_spec \
20923 soname_spec \
20924 install_override_mode \
20925 finish_eval \
20926 old_striplib \
20927 striplib \
20928 compiler_lib_search_dirs \
20929 predep_objects \
20930 postdep_objects \
20931 predeps \
20932 postdeps \
20933 compiler_lib_search_path \
20934 LD_CXX \
20935 reload_flag_CXX \
20936 compiler_CXX \
20937 lt_prog_compiler_no_builtin_flag_CXX \
20938 lt_prog_compiler_pic_CXX \
20939 lt_prog_compiler_wl_CXX \
20940 lt_prog_compiler_static_CXX \
20941 lt_cv_prog_compiler_c_o_CXX \
20942 export_dynamic_flag_spec_CXX \
20943 whole_archive_flag_spec_CXX \
20944 compiler_needs_object_CXX \
20945 with_gnu_ld_CXX \
20946 allow_undefined_flag_CXX \
20947 no_undefined_flag_CXX \
20948 hardcode_libdir_flag_spec_CXX \
20949 hardcode_libdir_separator_CXX \
20950 exclude_expsyms_CXX \
20951 include_expsyms_CXX \
20952 file_list_spec_CXX \
20953 compiler_lib_search_dirs_CXX \
20954 predep_objects_CXX \
20955 postdep_objects_CXX \
20956 predeps_CXX \
20957 postdeps_CXX \
20958 compiler_lib_search_path_CXX; do
20959 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20960 *[\\\\\\\`\\"\\\$]*)
20961 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20964 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20966 esac
20967 done
20969 # Double-quote double-evaled strings.
20970 for var in reload_cmds \
20971 old_postinstall_cmds \
20972 old_postuninstall_cmds \
20973 old_archive_cmds \
20974 extract_expsyms_cmds \
20975 old_archive_from_new_cmds \
20976 old_archive_from_expsyms_cmds \
20977 archive_cmds \
20978 archive_expsym_cmds \
20979 module_cmds \
20980 module_expsym_cmds \
20981 export_symbols_cmds \
20982 prelink_cmds \
20983 postlink_cmds \
20984 postinstall_cmds \
20985 postuninstall_cmds \
20986 finish_cmds \
20987 sys_lib_search_path_spec \
20988 sys_lib_dlsearch_path_spec \
20989 reload_cmds_CXX \
20990 old_archive_cmds_CXX \
20991 old_archive_from_new_cmds_CXX \
20992 old_archive_from_expsyms_cmds_CXX \
20993 archive_cmds_CXX \
20994 archive_expsym_cmds_CXX \
20995 module_cmds_CXX \
20996 module_expsym_cmds_CXX \
20997 export_symbols_cmds_CXX \
20998 prelink_cmds_CXX \
20999 postlink_cmds_CXX; do
21000 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21001 *[\\\\\\\`\\"\\\$]*)
21002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21007 esac
21008 done
21010 ac_aux_dir='$ac_aux_dir'
21011 xsi_shell='$xsi_shell'
21012 lt_shell_append='$lt_shell_append'
21014 # See if we are running on zsh, and set the options which allow our
21015 # commands through without removal of \ escapes INIT.
21016 if test -n "\${ZSH_VERSION+set}" ; then
21017 setopt NO_GLOB_SUBST
21021 PACKAGE='$PACKAGE'
21022 VERSION='$VERSION'
21023 TIMESTAMP='$TIMESTAMP'
21024 RM='$RM'
21025 ofile='$ofile'
21033 _ACEOF
21035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21037 # Handling of arguments.
21038 for ac_config_target in $ac_config_targets
21040 case $ac_config_target in
21041 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21042 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21043 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21044 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21045 "transmission-gtk.spec") CONFIG_FILES="$CONFIG_FILES transmission-gtk.spec" ;;
21046 "cli/Makefile") CONFIG_FILES="$CONFIG_FILES cli/Makefile" ;;
21047 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
21048 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
21049 "libtransmission/Makefile") CONFIG_FILES="$CONFIG_FILES libtransmission/Makefile" ;;
21050 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21051 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
21052 "third-party/dht/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/dht/Makefile" ;;
21053 "third-party/libutp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libutp/Makefile" ;;
21054 "third-party/libnatpmp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libnatpmp/Makefile" ;;
21055 "third-party/miniupnp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/miniupnp/Makefile" ;;
21056 "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;;
21057 "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
21058 "gtk/icons/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/icons/Makefile" ;;
21059 "qt/config.pri") CONFIG_FILES="$CONFIG_FILES qt/config.pri" ;;
21060 "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
21061 "web/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/Makefile" ;;
21062 "web/style/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/Makefile" ;;
21063 "web/style/jqueryui/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/jqueryui/Makefile" ;;
21064 "web/style/jqueryui/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/jqueryui/images/Makefile" ;;
21065 "web/style/transmission/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/Makefile" ;;
21066 "web/style/transmission/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/images/Makefile" ;;
21067 "web/style/transmission/images/buttons/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/images/buttons/Makefile" ;;
21068 "web/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/Makefile" ;;
21069 "web/javascript/jquery/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/jquery/Makefile" ;;
21070 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21071 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
21073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21074 esac
21075 done
21078 # If the user did not use the arguments to specify the items to instantiate,
21079 # then the envvar interface is used. Set only those that are not.
21080 # We use the long form for the default assignment because of an extremely
21081 # bizarre bug on SunOS 4.1.3.
21082 if $ac_need_defaults; then
21083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21087 # Have a temporary directory for convenience. Make it in the build tree
21088 # simply because there is no reason against having it here, and in addition,
21089 # creating and moving files from /tmp can sometimes cause problems.
21090 # Hook for its removal unless debugging.
21091 # Note that there is a small window in which the directory will not be cleaned:
21092 # after its creation but before its name has been assigned to `$tmp'.
21093 $debug ||
21095 tmp= ac_tmp=
21096 trap 'exit_status=$?
21097 : "${ac_tmp:=$tmp}"
21098 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21100 trap 'as_fn_exit 1' 1 2 13 15
21102 # Create a (secure) tmp directory for tmp files.
21105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21106 test -d "$tmp"
21107 } ||
21109 tmp=./conf$$-$RANDOM
21110 (umask 077 && mkdir "$tmp")
21111 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21112 ac_tmp=$tmp
21114 # Set up the scripts for CONFIG_FILES section.
21115 # No need to generate them if there are no CONFIG_FILES.
21116 # This happens for instance with `./config.status config.h'.
21117 if test -n "$CONFIG_FILES"; then
21120 ac_cr=`echo X | tr X '\015'`
21121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21122 # But we know of no other shell where ac_cr would be empty at this
21123 # point, so we can use a bashism as a fallback.
21124 if test "x$ac_cr" = x; then
21125 eval ac_cr=\$\'\\r\'
21127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21129 ac_cs_awk_cr='\\r'
21130 else
21131 ac_cs_awk_cr=$ac_cr
21134 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21135 _ACEOF
21139 echo "cat >conf$$subs.awk <<_ACEOF" &&
21140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21141 echo "_ACEOF"
21142 } >conf$$subs.sh ||
21143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21145 ac_delim='%!_!# '
21146 for ac_last_try in false false false false false :; do
21147 . ./conf$$subs.sh ||
21148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21151 if test $ac_delim_n = $ac_delim_num; then
21152 break
21153 elif $ac_last_try; then
21154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21155 else
21156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21158 done
21159 rm -f conf$$subs.sh
21161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21162 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21163 _ACEOF
21164 sed -n '
21166 s/^/S["/; s/!.*/"]=/
21169 s/^[^!]*!//
21170 :repl
21171 t repl
21172 s/'"$ac_delim"'$//
21173 t delim
21176 s/\(.\{148\}\)..*/\1/
21177 t more1
21178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21181 b repl
21182 :more1
21183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21186 s/.\{148\}//
21187 t nl
21188 :delim
21190 s/\(.\{148\}\)..*/\1/
21191 t more2
21192 s/["\\]/\\&/g; s/^/"/; s/$/"/
21195 :more2
21196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21199 s/.\{148\}//
21200 t delim
21201 ' <conf$$subs.awk | sed '
21202 /^[^""]/{
21204 s/\n//
21206 ' >>$CONFIG_STATUS || ac_write_fail=1
21207 rm -f conf$$subs.awk
21208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21209 _ACAWK
21210 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21211 for (key in S) S_is_set[key] = 1
21212 FS = "\a"
21216 line = $ 0
21217 nfields = split(line, field, "@")
21218 substed = 0
21219 len = length(field[1])
21220 for (i = 2; i < nfields; i++) {
21221 key = field[i]
21222 keylen = length(key)
21223 if (S_is_set[key]) {
21224 value = S[key]
21225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21226 len += length(value) + length(field[++i])
21227 substed = 1
21228 } else
21229 len += 1 + keylen
21232 print line
21235 _ACAWK
21236 _ACEOF
21237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21240 else
21242 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21243 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21244 _ACEOF
21246 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21247 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21248 # trailing colons and then remove the whole line if VPATH becomes empty
21249 # (actually we leave an empty line to preserve line numbers).
21250 if test "x$srcdir" = x.; then
21251 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21253 s///
21254 s/^/:/
21255 s/[ ]*$/:/
21256 s/:\$(srcdir):/:/g
21257 s/:\${srcdir}:/:/g
21258 s/:@srcdir@:/:/g
21259 s/^:*//
21260 s/:*$//
21262 s/\(=[ ]*\).*/\1/
21264 s/\n//
21265 s/^[^=]*=[ ]*$//
21269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21270 fi # test -n "$CONFIG_FILES"
21273 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21274 shift
21275 for ac_tag
21277 case $ac_tag in
21278 :[FHLC]) ac_mode=$ac_tag; continue;;
21279 esac
21280 case $ac_mode$ac_tag in
21281 :[FHL]*:*);;
21282 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21283 :[FH]-) ac_tag=-:-;;
21284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21285 esac
21286 ac_save_IFS=$IFS
21287 IFS=:
21288 set x $ac_tag
21289 IFS=$ac_save_IFS
21290 shift
21291 ac_file=$1
21292 shift
21294 case $ac_mode in
21295 :L) ac_source=$1;;
21296 :[FH])
21297 ac_file_inputs=
21298 for ac_f
21300 case $ac_f in
21301 -) ac_f="$ac_tmp/stdin";;
21302 *) # Look for the file first in the build tree, then in the source tree
21303 # (if the path is not absolute). The absolute path cannot be DOS-style,
21304 # because $ac_f cannot contain `:'.
21305 test -f "$ac_f" ||
21306 case $ac_f in
21307 [\\/$]*) false;;
21308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21309 esac ||
21310 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21311 esac
21312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21313 as_fn_append ac_file_inputs " '$ac_f'"
21314 done
21316 # Let's still pretend it is `configure' which instantiates (i.e., don't
21317 # use $as_me), people would be surprised to read:
21318 # /* config.h. Generated by config.status. */
21319 configure_input='Generated from '`
21320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21321 `' by configure.'
21322 if test x"$ac_file" != x-; then
21323 configure_input="$ac_file. $configure_input"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21325 $as_echo "$as_me: creating $ac_file" >&6;}
21327 # Neutralize special characters interpreted by sed in replacement strings.
21328 case $configure_input in #(
21329 *\&* | *\|* | *\\* )
21330 ac_sed_conf_input=`$as_echo "$configure_input" |
21331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21332 *) ac_sed_conf_input=$configure_input;;
21333 esac
21335 case $ac_tag in
21336 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21338 esac
21340 esac
21342 ac_dir=`$as_dirname -- "$ac_file" ||
21343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21344 X"$ac_file" : 'X\(//\)[^/]' \| \
21345 X"$ac_file" : 'X\(//\)$' \| \
21346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21347 $as_echo X"$ac_file" |
21348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21349 s//\1/
21352 /^X\(\/\/\)[^/].*/{
21353 s//\1/
21356 /^X\(\/\/\)$/{
21357 s//\1/
21360 /^X\(\/\).*/{
21361 s//\1/
21364 s/.*/./; q'`
21365 as_dir="$ac_dir"; as_fn_mkdir_p
21366 ac_builddir=.
21368 case "$ac_dir" in
21369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21372 # A ".." for each directory in $ac_dir_suffix.
21373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21374 case $ac_top_builddir_sub in
21375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21377 esac ;;
21378 esac
21379 ac_abs_top_builddir=$ac_pwd
21380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21381 # for backward compatibility:
21382 ac_top_builddir=$ac_top_build_prefix
21384 case $srcdir in
21385 .) # We are building in place.
21386 ac_srcdir=.
21387 ac_top_srcdir=$ac_top_builddir_sub
21388 ac_abs_top_srcdir=$ac_pwd ;;
21389 [\\/]* | ?:[\\/]* ) # Absolute name.
21390 ac_srcdir=$srcdir$ac_dir_suffix;
21391 ac_top_srcdir=$srcdir
21392 ac_abs_top_srcdir=$srcdir ;;
21393 *) # Relative name.
21394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21395 ac_top_srcdir=$ac_top_build_prefix$srcdir
21396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21397 esac
21398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21401 case $ac_mode in
21404 # CONFIG_FILE
21407 case $INSTALL in
21408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21410 esac
21411 ac_MKDIR_P=$MKDIR_P
21412 case $MKDIR_P in
21413 [\\/$]* | ?:[\\/]* ) ;;
21414 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21415 esac
21416 _ACEOF
21418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21419 # If the template does not know about datarootdir, expand it.
21420 # FIXME: This hack should be removed a few years after 2.60.
21421 ac_datarootdir_hack=; ac_datarootdir_seen=
21422 ac_sed_dataroot='
21423 /datarootdir/ {
21427 /@datadir@/p
21428 /@docdir@/p
21429 /@infodir@/p
21430 /@localedir@/p
21431 /@mandir@/p'
21432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21433 *datarootdir*) ac_datarootdir_seen=yes;;
21434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21437 _ACEOF
21438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21439 ac_datarootdir_hack='
21440 s&@datadir@&$datadir&g
21441 s&@docdir@&$docdir&g
21442 s&@infodir@&$infodir&g
21443 s&@localedir@&$localedir&g
21444 s&@mandir@&$mandir&g
21445 s&\\\${datarootdir}&$datarootdir&g' ;;
21446 esac
21447 _ACEOF
21449 # Neutralize VPATH when `$srcdir' = `.'.
21450 # Shell code in configure.ac might set extrasub.
21451 # FIXME: do we really want to maintain this feature?
21452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21453 ac_sed_extra="$ac_vpsub
21454 $extrasub
21455 _ACEOF
21456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21459 s|@configure_input@|$ac_sed_conf_input|;t t
21460 s&@top_builddir@&$ac_top_builddir_sub&;t t
21461 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21462 s&@srcdir@&$ac_srcdir&;t t
21463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21464 s&@top_srcdir@&$ac_top_srcdir&;t t
21465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21466 s&@builddir@&$ac_builddir&;t t
21467 s&@abs_builddir@&$ac_abs_builddir&;t t
21468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21469 s&@INSTALL@&$ac_INSTALL&;t t
21470 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21471 $ac_datarootdir_hack
21473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21474 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21477 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21479 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21481 which seems to be undefined. Please make sure it is defined" >&5
21482 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21483 which seems to be undefined. Please make sure it is defined" >&2;}
21485 rm -f "$ac_tmp/stdin"
21486 case $ac_file in
21487 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21488 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21489 esac \
21490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21494 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21495 $as_echo "$as_me: executing $ac_file commands" >&6;}
21497 esac
21500 case $ac_file$ac_mode in
21501 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21502 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21503 # are listed without --file. Let's play safe and only enable the eval
21504 # if we detect the quoting.
21505 case $CONFIG_FILES in
21506 *\'*) eval set x "$CONFIG_FILES" ;;
21507 *) set x $CONFIG_FILES ;;
21508 esac
21509 shift
21510 for mf
21512 # Strip MF so we end up with the name of the file.
21513 mf=`echo "$mf" | sed -e 's/:.*$//'`
21514 # Check whether this is an Automake generated Makefile or not.
21515 # We used to match only the files named `Makefile.in', but
21516 # some people rename them; so instead we look at the file content.
21517 # Grep'ing the first line is not enough: some people post-process
21518 # each Makefile.in and add a new line on top of each file to say so.
21519 # Grep'ing the whole file is not good either: AIX grep has a line
21520 # limit of 2048, but all sed's we know have understand at least 4000.
21521 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21522 dirpart=`$as_dirname -- "$mf" ||
21523 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21524 X"$mf" : 'X\(//\)[^/]' \| \
21525 X"$mf" : 'X\(//\)$' \| \
21526 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21527 $as_echo X"$mf" |
21528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21529 s//\1/
21532 /^X\(\/\/\)[^/].*/{
21533 s//\1/
21536 /^X\(\/\/\)$/{
21537 s//\1/
21540 /^X\(\/\).*/{
21541 s//\1/
21544 s/.*/./; q'`
21545 else
21546 continue
21548 # Extract the definition of DEPDIR, am__include, and am__quote
21549 # from the Makefile without running `make'.
21550 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21551 test -z "$DEPDIR" && continue
21552 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21553 test -z "am__include" && continue
21554 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21555 # When using ansi2knr, U may be empty or an underscore; expand it
21556 U=`sed -n 's/^U = //p' < "$mf"`
21557 # Find all dependency output files, they are included files with
21558 # $(DEPDIR) in their names. We invoke sed twice because it is the
21559 # simplest approach to changing $(DEPDIR) to its actual value in the
21560 # expansion.
21561 for file in `sed -n "
21562 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21563 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21564 # Make sure the directory exists.
21565 test -f "$dirpart/$file" && continue
21566 fdir=`$as_dirname -- "$file" ||
21567 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21568 X"$file" : 'X\(//\)[^/]' \| \
21569 X"$file" : 'X\(//\)$' \| \
21570 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21571 $as_echo X"$file" |
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21573 s//\1/
21576 /^X\(\/\/\)[^/].*/{
21577 s//\1/
21580 /^X\(\/\/\)$/{
21581 s//\1/
21584 /^X\(\/\).*/{
21585 s//\1/
21588 s/.*/./; q'`
21589 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21590 # echo "creating $dirpart/$file"
21591 echo '# dummy' > "$dirpart/$file"
21592 done
21593 done
21596 "libtool":C)
21598 # See if we are running on zsh, and set the options which allow our
21599 # commands through without removal of \ escapes.
21600 if test -n "${ZSH_VERSION+set}" ; then
21601 setopt NO_GLOB_SUBST
21604 cfgfile="${ofile}T"
21605 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21606 $RM "$cfgfile"
21608 cat <<_LT_EOF >> "$cfgfile"
21609 #! $SHELL
21611 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21612 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21614 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21616 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21617 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21618 # Foundation, Inc.
21619 # Written by Gordon Matzigkeit, 1996
21621 # This file is part of GNU Libtool.
21623 # GNU Libtool is free software; you can redistribute it and/or
21624 # modify it under the terms of the GNU General Public License as
21625 # published by the Free Software Foundation; either version 2 of
21626 # the License, or (at your option) any later version.
21628 # As a special exception to the GNU General Public License,
21629 # if you distribute this file as part of a program or library that
21630 # is built using GNU Libtool, you may include this file under the
21631 # same distribution terms that you use for the rest of that program.
21633 # GNU Libtool is distributed in the hope that it will be useful,
21634 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21636 # GNU General Public License for more details.
21638 # You should have received a copy of the GNU General Public License
21639 # along with GNU Libtool; see the file COPYING. If not, a copy
21640 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21641 # obtained by writing to the Free Software Foundation, Inc.,
21642 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21645 # The names of the tagged configurations supported by this script.
21646 available_tags="CXX "
21648 # ### BEGIN LIBTOOL CONFIG
21650 # Which release of libtool.m4 was used?
21651 macro_version=$macro_version
21652 macro_revision=$macro_revision
21654 # Whether or not to build shared libraries.
21655 build_libtool_libs=$enable_shared
21657 # Whether or not to build static libraries.
21658 build_old_libs=$enable_static
21660 # What type of objects to build.
21661 pic_mode=$pic_mode
21663 # Whether or not to optimize for fast installation.
21664 fast_install=$enable_fast_install
21666 # Shell to use when invoking shell scripts.
21667 SHELL=$lt_SHELL
21669 # An echo program that protects backslashes.
21670 ECHO=$lt_ECHO
21672 # The PATH separator for the build system.
21673 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21675 # The host system.
21676 host_alias=$host_alias
21677 host=$host
21678 host_os=$host_os
21680 # The build system.
21681 build_alias=$build_alias
21682 build=$build
21683 build_os=$build_os
21685 # A sed program that does not truncate output.
21686 SED=$lt_SED
21688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21689 Xsed="\$SED -e 1s/^X//"
21691 # A grep program that handles long lines.
21692 GREP=$lt_GREP
21694 # An ERE matcher.
21695 EGREP=$lt_EGREP
21697 # A literal string matcher.
21698 FGREP=$lt_FGREP
21700 # A BSD- or MS-compatible name lister.
21701 NM=$lt_NM
21703 # Whether we need soft or hard links.
21704 LN_S=$lt_LN_S
21706 # What is the maximum length of a command?
21707 max_cmd_len=$max_cmd_len
21709 # Object file suffix (normally "o").
21710 objext=$ac_objext
21712 # Executable file suffix (normally "").
21713 exeext=$exeext
21715 # whether the shell understands "unset".
21716 lt_unset=$lt_unset
21718 # turn spaces into newlines.
21719 SP2NL=$lt_lt_SP2NL
21721 # turn newlines into spaces.
21722 NL2SP=$lt_lt_NL2SP
21724 # convert \$build file names to \$host format.
21725 to_host_file_cmd=$lt_cv_to_host_file_cmd
21727 # convert \$build files to toolchain format.
21728 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21730 # An object symbol dumper.
21731 OBJDUMP=$lt_OBJDUMP
21733 # Method to check whether dependent libraries are shared objects.
21734 deplibs_check_method=$lt_deplibs_check_method
21736 # Command to use when deplibs_check_method = "file_magic".
21737 file_magic_cmd=$lt_file_magic_cmd
21739 # How to find potential files when deplibs_check_method = "file_magic".
21740 file_magic_glob=$lt_file_magic_glob
21742 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21743 want_nocaseglob=$lt_want_nocaseglob
21745 # DLL creation program.
21746 DLLTOOL=$lt_DLLTOOL
21748 # Command to associate shared and link libraries.
21749 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21751 # The archiver.
21752 AR=$lt_AR
21754 # Flags to create an archive.
21755 AR_FLAGS=$lt_AR_FLAGS
21757 # How to feed a file listing to the archiver.
21758 archiver_list_spec=$lt_archiver_list_spec
21760 # A symbol stripping program.
21761 STRIP=$lt_STRIP
21763 # Commands used to install an old-style archive.
21764 RANLIB=$lt_RANLIB
21765 old_postinstall_cmds=$lt_old_postinstall_cmds
21766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21768 # Whether to use a lock for old archive extraction.
21769 lock_old_archive_extraction=$lock_old_archive_extraction
21771 # A C compiler.
21772 LTCC=$lt_CC
21774 # LTCC compiler flags.
21775 LTCFLAGS=$lt_CFLAGS
21777 # Take the output of nm and produce a listing of raw symbols and C names.
21778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21780 # Transform the output of nm in a proper C declaration.
21781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21783 # Transform the output of nm in a C name address pair.
21784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21786 # Transform the output of nm in a C name address pair when lib prefix is needed.
21787 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21789 # Specify filename containing input files for \$NM.
21790 nm_file_list_spec=$lt_nm_file_list_spec
21792 # The root where to search for dependent libraries,and in which our libraries should be installed.
21793 lt_sysroot=$lt_sysroot
21795 # The name of the directory that contains temporary libtool files.
21796 objdir=$objdir
21798 # Used to examine libraries when file_magic_cmd begins with "file".
21799 MAGIC_CMD=$MAGIC_CMD
21801 # Must we lock files when doing compilation?
21802 need_locks=$lt_need_locks
21804 # Manifest tool.
21805 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21807 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21808 DSYMUTIL=$lt_DSYMUTIL
21810 # Tool to change global to local symbols on Mac OS X.
21811 NMEDIT=$lt_NMEDIT
21813 # Tool to manipulate fat objects and archives on Mac OS X.
21814 LIPO=$lt_LIPO
21816 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21817 OTOOL=$lt_OTOOL
21819 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21820 OTOOL64=$lt_OTOOL64
21822 # Old archive suffix (normally "a").
21823 libext=$libext
21825 # Shared library suffix (normally ".so").
21826 shrext_cmds=$lt_shrext_cmds
21828 # The commands to extract the exported symbol list from a shared archive.
21829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21831 # Variables whose values should be saved in libtool wrapper scripts and
21832 # restored at link time.
21833 variables_saved_for_relink=$lt_variables_saved_for_relink
21835 # Do we need the "lib" prefix for modules?
21836 need_lib_prefix=$need_lib_prefix
21838 # Do we need a version for libraries?
21839 need_version=$need_version
21841 # Library versioning type.
21842 version_type=$version_type
21844 # Shared library runtime path variable.
21845 runpath_var=$runpath_var
21847 # Shared library path variable.
21848 shlibpath_var=$shlibpath_var
21850 # Is shlibpath searched before the hard-coded library search path?
21851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21853 # Format of library name prefix.
21854 libname_spec=$lt_libname_spec
21856 # List of archive names. First name is the real one, the rest are links.
21857 # The last name is the one that the linker finds with -lNAME
21858 library_names_spec=$lt_library_names_spec
21860 # The coded name of the library, if different from the real name.
21861 soname_spec=$lt_soname_spec
21863 # Permission mode override for installation of shared libraries.
21864 install_override_mode=$lt_install_override_mode
21866 # Command to use after installation of a shared archive.
21867 postinstall_cmds=$lt_postinstall_cmds
21869 # Command to use after uninstallation of a shared archive.
21870 postuninstall_cmds=$lt_postuninstall_cmds
21872 # Commands used to finish a libtool library installation in a directory.
21873 finish_cmds=$lt_finish_cmds
21875 # As "finish_cmds", except a single script fragment to be evaled but
21876 # not shown.
21877 finish_eval=$lt_finish_eval
21879 # Whether we should hardcode library paths into libraries.
21880 hardcode_into_libs=$hardcode_into_libs
21882 # Compile-time system search path for libraries.
21883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21885 # Run-time system search path for libraries.
21886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21888 # Whether dlopen is supported.
21889 dlopen_support=$enable_dlopen
21891 # Whether dlopen of programs is supported.
21892 dlopen_self=$enable_dlopen_self
21894 # Whether dlopen of statically linked programs is supported.
21895 dlopen_self_static=$enable_dlopen_self_static
21897 # Commands to strip libraries.
21898 old_striplib=$lt_old_striplib
21899 striplib=$lt_striplib
21902 # The linker used to build libraries.
21903 LD=$lt_LD
21905 # How to create reloadable object files.
21906 reload_flag=$lt_reload_flag
21907 reload_cmds=$lt_reload_cmds
21909 # Commands used to build an old-style archive.
21910 old_archive_cmds=$lt_old_archive_cmds
21912 # A language specific compiler.
21913 CC=$lt_compiler
21915 # Is the compiler the GNU compiler?
21916 with_gcc=$GCC
21918 # Compiler flag to turn off builtin functions.
21919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21921 # Additional compiler flags for building library objects.
21922 pic_flag=$lt_lt_prog_compiler_pic
21924 # How to pass a linker flag through the compiler.
21925 wl=$lt_lt_prog_compiler_wl
21927 # Compiler flag to prevent dynamic linking.
21928 link_static_flag=$lt_lt_prog_compiler_static
21930 # Does compiler simultaneously support -c and -o options?
21931 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21933 # Whether or not to add -lc for building shared libraries.
21934 build_libtool_need_lc=$archive_cmds_need_lc
21936 # Whether or not to disallow shared libs when runtime libs are static.
21937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21939 # Compiler flag to allow reflexive dlopens.
21940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21942 # Compiler flag to generate shared objects directly from archives.
21943 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21945 # Whether the compiler copes with passing no objects directly.
21946 compiler_needs_object=$lt_compiler_needs_object
21948 # Create an old-style archive from a shared archive.
21949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21951 # Create a temporary old-style archive to link instead of a shared archive.
21952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21954 # Commands used to build a shared archive.
21955 archive_cmds=$lt_archive_cmds
21956 archive_expsym_cmds=$lt_archive_expsym_cmds
21958 # Commands used to build a loadable module if different from building
21959 # a shared archive.
21960 module_cmds=$lt_module_cmds
21961 module_expsym_cmds=$lt_module_expsym_cmds
21963 # Whether we are building with GNU ld or not.
21964 with_gnu_ld=$lt_with_gnu_ld
21966 # Flag that allows shared libraries with undefined symbols to be built.
21967 allow_undefined_flag=$lt_allow_undefined_flag
21969 # Flag that enforces no undefined symbols.
21970 no_undefined_flag=$lt_no_undefined_flag
21972 # Flag to hardcode \$libdir into a binary during linking.
21973 # This must work even if \$libdir does not exist
21974 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21976 # Whether we need a single "-rpath" flag with a separated argument.
21977 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21980 # DIR into the resulting binary.
21981 hardcode_direct=$hardcode_direct
21983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21984 # DIR into the resulting binary and the resulting library dependency is
21985 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21986 # library is relocated.
21987 hardcode_direct_absolute=$hardcode_direct_absolute
21989 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21990 # into the resulting binary.
21991 hardcode_minus_L=$hardcode_minus_L
21993 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21994 # into the resulting binary.
21995 hardcode_shlibpath_var=$hardcode_shlibpath_var
21997 # Set to "yes" if building a shared library automatically hardcodes DIR
21998 # into the library and all subsequent libraries and executables linked
21999 # against it.
22000 hardcode_automatic=$hardcode_automatic
22002 # Set to yes if linker adds runtime paths of dependent libraries
22003 # to runtime path list.
22004 inherit_rpath=$inherit_rpath
22006 # Whether libtool must link a program against all its dependency libraries.
22007 link_all_deplibs=$link_all_deplibs
22009 # Set to "yes" if exported symbols are required.
22010 always_export_symbols=$always_export_symbols
22012 # The commands to list exported symbols.
22013 export_symbols_cmds=$lt_export_symbols_cmds
22015 # Symbols that should not be listed in the preloaded symbols.
22016 exclude_expsyms=$lt_exclude_expsyms
22018 # Symbols that must always be exported.
22019 include_expsyms=$lt_include_expsyms
22021 # Commands necessary for linking programs (against libraries) with templates.
22022 prelink_cmds=$lt_prelink_cmds
22024 # Commands necessary for finishing linking programs.
22025 postlink_cmds=$lt_postlink_cmds
22027 # Specify filename containing input files.
22028 file_list_spec=$lt_file_list_spec
22030 # How to hardcode a shared library path into an executable.
22031 hardcode_action=$hardcode_action
22033 # The directories searched by this compiler when creating a shared library.
22034 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22036 # Dependencies to place before and after the objects being linked to
22037 # create a shared library.
22038 predep_objects=$lt_predep_objects
22039 postdep_objects=$lt_postdep_objects
22040 predeps=$lt_predeps
22041 postdeps=$lt_postdeps
22043 # The library search path used internally by the compiler when linking
22044 # a shared library.
22045 compiler_lib_search_path=$lt_compiler_lib_search_path
22047 # ### END LIBTOOL CONFIG
22049 _LT_EOF
22051 case $host_os in
22052 aix3*)
22053 cat <<\_LT_EOF >> "$cfgfile"
22054 # AIX sometimes has problems with the GCC collect2 program. For some
22055 # reason, if we set the COLLECT_NAMES environment variable, the problems
22056 # vanish in a puff of smoke.
22057 if test "X${COLLECT_NAMES+set}" != Xset; then
22058 COLLECT_NAMES=
22059 export COLLECT_NAMES
22061 _LT_EOF
22063 esac
22066 ltmain="$ac_aux_dir/ltmain.sh"
22069 # We use sed instead of cat because bash on DJGPP gets confused if
22070 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22071 # text mode, it properly converts lines to CR/LF. This bash problem
22072 # is reportedly fixed, but why not run on old versions too?
22073 sed '$q' "$ltmain" >> "$cfgfile" \
22074 || (rm -f "$cfgfile"; exit 1)
22076 if test x"$xsi_shell" = xyes; then
22077 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22078 func_dirname ()\
22080 \ case ${1} in\
22081 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22082 \ * ) func_dirname_result="${3}" ;;\
22083 \ esac\
22084 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22085 && mv -f "$cfgfile.tmp" "$cfgfile" \
22086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22087 test 0 -eq $? || _lt_function_replace_fail=:
22090 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22091 func_basename ()\
22093 \ func_basename_result="${1##*/}"\
22094 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22095 && mv -f "$cfgfile.tmp" "$cfgfile" \
22096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22097 test 0 -eq $? || _lt_function_replace_fail=:
22100 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22101 func_dirname_and_basename ()\
22103 \ case ${1} in\
22104 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22105 \ * ) func_dirname_result="${3}" ;;\
22106 \ esac\
22107 \ func_basename_result="${1##*/}"\
22108 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22109 && mv -f "$cfgfile.tmp" "$cfgfile" \
22110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22111 test 0 -eq $? || _lt_function_replace_fail=:
22114 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22115 func_stripname ()\
22117 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22118 \ # positional parameters, so assign one to ordinary parameter first.\
22119 \ func_stripname_result=${3}\
22120 \ func_stripname_result=${func_stripname_result#"${1}"}\
22121 \ func_stripname_result=${func_stripname_result%"${2}"}\
22122 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22123 && mv -f "$cfgfile.tmp" "$cfgfile" \
22124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22125 test 0 -eq $? || _lt_function_replace_fail=:
22128 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22129 func_split_long_opt ()\
22131 \ func_split_long_opt_name=${1%%=*}\
22132 \ func_split_long_opt_arg=${1#*=}\
22133 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22134 && mv -f "$cfgfile.tmp" "$cfgfile" \
22135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22136 test 0 -eq $? || _lt_function_replace_fail=:
22139 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22140 func_split_short_opt ()\
22142 \ func_split_short_opt_arg=${1#??}\
22143 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22144 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22145 && mv -f "$cfgfile.tmp" "$cfgfile" \
22146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22147 test 0 -eq $? || _lt_function_replace_fail=:
22150 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22151 func_lo2o ()\
22153 \ case ${1} in\
22154 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22155 \ *) func_lo2o_result=${1} ;;\
22156 \ esac\
22157 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22158 && mv -f "$cfgfile.tmp" "$cfgfile" \
22159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22160 test 0 -eq $? || _lt_function_replace_fail=:
22163 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22164 func_xform ()\
22166 func_xform_result=${1%.*}.lo\
22167 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22168 && mv -f "$cfgfile.tmp" "$cfgfile" \
22169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22170 test 0 -eq $? || _lt_function_replace_fail=:
22173 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22174 func_arith ()\
22176 func_arith_result=$(( $* ))\
22177 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22178 && mv -f "$cfgfile.tmp" "$cfgfile" \
22179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22180 test 0 -eq $? || _lt_function_replace_fail=:
22183 sed -e '/^func_len ()$/,/^} # func_len /c\
22184 func_len ()\
22186 func_len_result=${#1}\
22187 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22188 && mv -f "$cfgfile.tmp" "$cfgfile" \
22189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22190 test 0 -eq $? || _lt_function_replace_fail=:
22194 if test x"$lt_shell_append" = xyes; then
22195 sed -e '/^func_append ()$/,/^} # func_append /c\
22196 func_append ()\
22198 eval "${1}+=\\${2}"\
22199 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22200 && mv -f "$cfgfile.tmp" "$cfgfile" \
22201 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22202 test 0 -eq $? || _lt_function_replace_fail=:
22205 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22206 func_append_quoted ()\
22208 \ func_quote_for_eval "${2}"\
22209 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22210 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22211 && mv -f "$cfgfile.tmp" "$cfgfile" \
22212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22213 test 0 -eq $? || _lt_function_replace_fail=:
22216 # Save a `func_append' function call where possible by direct use of '+='
22217 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22218 && mv -f "$cfgfile.tmp" "$cfgfile" \
22219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22220 test 0 -eq $? || _lt_function_replace_fail=:
22221 else
22222 # Save a `func_append' function call even when '+=' is not available
22223 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22224 && mv -f "$cfgfile.tmp" "$cfgfile" \
22225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22226 test 0 -eq $? || _lt_function_replace_fail=:
22229 if test x"$_lt_function_replace_fail" = x":"; then
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22231 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22235 mv -f "$cfgfile" "$ofile" ||
22236 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22237 chmod +x "$ofile"
22240 cat <<_LT_EOF >> "$ofile"
22242 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22244 # The linker used to build libraries.
22245 LD=$lt_LD_CXX
22247 # How to create reloadable object files.
22248 reload_flag=$lt_reload_flag_CXX
22249 reload_cmds=$lt_reload_cmds_CXX
22251 # Commands used to build an old-style archive.
22252 old_archive_cmds=$lt_old_archive_cmds_CXX
22254 # A language specific compiler.
22255 CC=$lt_compiler_CXX
22257 # Is the compiler the GNU compiler?
22258 with_gcc=$GCC_CXX
22260 # Compiler flag to turn off builtin functions.
22261 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22263 # Additional compiler flags for building library objects.
22264 pic_flag=$lt_lt_prog_compiler_pic_CXX
22266 # How to pass a linker flag through the compiler.
22267 wl=$lt_lt_prog_compiler_wl_CXX
22269 # Compiler flag to prevent dynamic linking.
22270 link_static_flag=$lt_lt_prog_compiler_static_CXX
22272 # Does compiler simultaneously support -c and -o options?
22273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22275 # Whether or not to add -lc for building shared libraries.
22276 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22278 # Whether or not to disallow shared libs when runtime libs are static.
22279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22281 # Compiler flag to allow reflexive dlopens.
22282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22284 # Compiler flag to generate shared objects directly from archives.
22285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22287 # Whether the compiler copes with passing no objects directly.
22288 compiler_needs_object=$lt_compiler_needs_object_CXX
22290 # Create an old-style archive from a shared archive.
22291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22293 # Create a temporary old-style archive to link instead of a shared archive.
22294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22296 # Commands used to build a shared archive.
22297 archive_cmds=$lt_archive_cmds_CXX
22298 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22300 # Commands used to build a loadable module if different from building
22301 # a shared archive.
22302 module_cmds=$lt_module_cmds_CXX
22303 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22305 # Whether we are building with GNU ld or not.
22306 with_gnu_ld=$lt_with_gnu_ld_CXX
22308 # Flag that allows shared libraries with undefined symbols to be built.
22309 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22311 # Flag that enforces no undefined symbols.
22312 no_undefined_flag=$lt_no_undefined_flag_CXX
22314 # Flag to hardcode \$libdir into a binary during linking.
22315 # This must work even if \$libdir does not exist
22316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22318 # Whether we need a single "-rpath" flag with a separated argument.
22319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22321 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22322 # DIR into the resulting binary.
22323 hardcode_direct=$hardcode_direct_CXX
22325 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22326 # DIR into the resulting binary and the resulting library dependency is
22327 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22328 # library is relocated.
22329 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22331 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22332 # into the resulting binary.
22333 hardcode_minus_L=$hardcode_minus_L_CXX
22335 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22336 # into the resulting binary.
22337 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22339 # Set to "yes" if building a shared library automatically hardcodes DIR
22340 # into the library and all subsequent libraries and executables linked
22341 # against it.
22342 hardcode_automatic=$hardcode_automatic_CXX
22344 # Set to yes if linker adds runtime paths of dependent libraries
22345 # to runtime path list.
22346 inherit_rpath=$inherit_rpath_CXX
22348 # Whether libtool must link a program against all its dependency libraries.
22349 link_all_deplibs=$link_all_deplibs_CXX
22351 # Set to "yes" if exported symbols are required.
22352 always_export_symbols=$always_export_symbols_CXX
22354 # The commands to list exported symbols.
22355 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22357 # Symbols that should not be listed in the preloaded symbols.
22358 exclude_expsyms=$lt_exclude_expsyms_CXX
22360 # Symbols that must always be exported.
22361 include_expsyms=$lt_include_expsyms_CXX
22363 # Commands necessary for linking programs (against libraries) with templates.
22364 prelink_cmds=$lt_prelink_cmds_CXX
22366 # Commands necessary for finishing linking programs.
22367 postlink_cmds=$lt_postlink_cmds_CXX
22369 # Specify filename containing input files.
22370 file_list_spec=$lt_file_list_spec_CXX
22372 # How to hardcode a shared library path into an executable.
22373 hardcode_action=$hardcode_action_CXX
22375 # The directories searched by this compiler when creating a shared library.
22376 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22378 # Dependencies to place before and after the objects being linked to
22379 # create a shared library.
22380 predep_objects=$lt_predep_objects_CXX
22381 postdep_objects=$lt_postdep_objects_CXX
22382 predeps=$lt_predeps_CXX
22383 postdeps=$lt_postdeps_CXX
22385 # The library search path used internally by the compiler when linking
22386 # a shared library.
22387 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22389 # ### END LIBTOOL TAG CONFIG: CXX
22390 _LT_EOF
22393 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22394 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22395 esac ;;
22396 "po/stamp-it":C)
22397 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
22398 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
22400 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
22401 >"po/stamp-it.tmp"
22402 sed '/^#/d
22403 s/^[[].*] *//
22404 /^[ ]*$/d
22405 '"s|^| $ac_top_srcdir/|" \
22406 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
22408 sed '/^POTFILES =/,/[^\\]$/ {
22409 /^POTFILES =/!d
22410 r po/POTFILES
22412 ' "po/Makefile.in" >"po/Makefile"
22413 rm -f "po/Makefile.tmp"
22414 mv "po/stamp-it.tmp" "po/stamp-it"
22417 esac
22418 done # for ac_tag
22421 as_fn_exit 0
22422 _ACEOF
22423 ac_clean_files=$ac_clean_files_save
22425 test $ac_write_fail = 0 ||
22426 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22429 # configure is writing to config.log, and then calls config.status.
22430 # config.status does its own redirection, appending to config.log.
22431 # Unfortunately, on DOS this fails, as config.log is still kept open
22432 # by configure, so config.status won't be able to write to it; its
22433 # output is simply discarded. So we exec the FD to /dev/null,
22434 # effectively closing config.log, so it can be properly (re)opened and
22435 # appended to by config.status. When coming back to configure, we
22436 # need to make the FD available again.
22437 if test "$no_create" != yes; then
22438 ac_cs_success=:
22439 ac_config_status_args=
22440 test "$silent" = yes &&
22441 ac_config_status_args="$ac_config_status_args --quiet"
22442 exec 5>/dev/null
22443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22444 exec 5>>config.log
22445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22446 # would make configure fail if this is the last instruction.
22447 $ac_cs_success || as_fn_exit 1
22449 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22451 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22455 echo "
22457 Configuration:
22459 Source code location: ${srcdir}
22460 Compiler: ${CXX}
22462 Build libtransmission: yes
22463 * optimized for low-resource systems: ${enable_lightweight}
22464 * µTP enabled: ${build_utp}
22466 Build Command-Line client: ${build_cli}
22468 Build GTK+ client: ${with_gtk}
22469 * libappindicator for an Ubuntu-style tray: ${use_libappindicator}
22471 Build Daemon: ${build_daemon}
22473 Build Mac client: ${build_mac}