Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libideviceactivation 1.1.1.
4 #
5 # Report bugs to <https://github.com/libimobiledevice/libideviceactivation/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
97 do
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
103
104 ;;
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
110 fi
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
114 fi
115
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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
159 fi
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 *) :
175 ;;
176 esac
177 fi
178 "
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; }
184
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 :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
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
201
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
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
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
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
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
235 fi
236 fi
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
246
247
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
268 fi
269
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 [email protected] and
278 $0: https://github.com/libimobiledevice/libideviceactivation/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libideviceactivation'
593 PACKAGE_TARNAME='libideviceactivation'
594 PACKAGE_VERSION='1.1.1'
595 PACKAGE_STRING='libideviceactivation 1.1.1'
596 PACKAGE_BUGREPORT='https://github.com/libimobiledevice/libideviceactivation/issues'
597 PACKAGE_URL='https://libimobiledevice.org'
598
599 ac_unique_file="src/"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 GLOBAL_CFLAGS
641 WIN32_FALSE
642 WIN32_TRUE
643 PTHREAD_CFLAGS
644 PTHREAD_LIBS
645 PTHREAD_CC
646 ax_pthread_config
647 libxml2_LIBS
648 libxml2_CFLAGS
649 libcurl_LIBS
650 libcurl_CFLAGS
651 libplist_LIBS
652 libplist_CFLAGS
653 libimobiledevice_LIBS
654 libimobiledevice_CFLAGS
655 PKG_CONFIG_LIBDIR
656 PKG_CONFIG_PATH
657 PKG_CONFIG
658 CXXCPP
659 CPP
660 LT_SYS_LIBRARY_PATH
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 RANLIB
668 ac_ct_AR
669 AR
670 DLLTOOL
671 OBJDUMP
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 EGREP
679 GREP
680 SED
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 am__fastdepCXX_FALSE
691 am__fastdepCXX_TRUE
692 CXXDEPMODE
693 ac_ct_CXX
694 CXXFLAGS
695 CXX
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 LIBXML2_VERSION
713 LIBCURL_VERSION
714 LIBPLIST_VERSION
715 LIBIMOBILEDEVICE_VERSION
716 LIBIDEVICEACTIVATION_SO_VERSION
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL
782 am__quote'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_dependency_tracking
788 enable_shared
789 enable_static
790 with_pic
791 enable_fast_install
792 with_aix_soname
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 LT_SYS_LIBRARY_PATH
809 CPP
810 CXXCPP
811 PKG_CONFIG
812 PKG_CONFIG_PATH
813 PKG_CONFIG_LIBDIR
814 libimobiledevice_CFLAGS
815 libimobiledevice_LIBS
816 libplist_CFLAGS
817 libplist_LIBS
818 libcurl_CFLAGS
819 libcurl_LIBS
820 libxml2_CFLAGS
821 libxml2_LIBS'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
881 fi
882
883 case $ac_option in
884 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *=) ac_optarg= ;;
886 *) ac_optarg=yes ;;
887 esac
888
889 # Accept the important Cygnus configure options, so we can diagnose typos.
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1117
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1128
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1133
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1138
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1145
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1150
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1153
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1156
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1172
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1188
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1192
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1199
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1206
1207 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information"
1209 ;;
1210
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1220
1221 *)
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 ;;
1228
1229 esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error $? "missing argument to $ac_option"
1235 fi
1236
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1243 fi
1244
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1250 do
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1265
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1279 fi
1280 fi
1281
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285 test "$silent" = yes && exec 6>/dev/null
1286
1287
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error $? "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\).*/{
1319 s//\1/
1320 q
1321 }
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1326 fi
1327 else
1328 ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 \`configure' configures libideviceactivation 1.1.1 to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking ...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1387
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root
1411 [DATAROOTDIR/doc/libideviceactivation]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1417
1418 cat <<\_ACEOF
1419
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of libideviceactivation 1.1.1:";;
1434 esac
1435 cat <<\_ACEOF
1436
1437 Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-silent-rules less verbose build output (undo: "make V=1")
1442 --disable-silent-rules verbose build output (undo: "make V=0")
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --with-aix-soname=aix|svr4|both
1459 shared library versioning (aka "SONAME") variant to
1460 provide on AIX, [default=aix].
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1463 compiler's sysroot if not specified).
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1475 LT_SYS_LIBRARY_PATH
1476 User-defined run-time library search path.
1477 CPP C preprocessor
1478 CXXCPP C++ preprocessor
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 libimobiledevice_CFLAGS
1485 C compiler flags for libimobiledevice, overriding pkg-config
1486 libimobiledevice_LIBS
1487 linker flags for libimobiledevice, overriding pkg-config
1488 libplist_CFLAGS
1489 C compiler flags for libplist, overriding pkg-config
1490 libplist_LIBS
1491 linker flags for libplist, overriding pkg-config
1492 libcurl_CFLAGS
1493 C compiler flags for libcurl, overriding pkg-config
1494 libcurl_LIBS
1495 linker flags for libcurl, overriding pkg-config
1496 libxml2_CFLAGS
1497 C compiler flags for libxml2, overriding pkg-config
1498 libxml2_LIBS
1499 linker flags for libxml2, overriding pkg-config
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <https://github.com/libimobiledevice/libideviceactivation/issues>.
1505 libideviceactivation home page: <https://libimobiledevice.org>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 libideviceactivation configure 1.1.1
1569 generated by GNU Autoconf 2.69
1570
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_cxx_try_compile LINENO
1621 # ----------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_cxx_try_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_cxx_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_cxx_try_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_cpp ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_cpp
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880
1881 # ac_fn_cxx_try_cpp LINENO
1882 # ------------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_cpp ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912 fi
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916 } # ac_fn_cxx_try_cpp
1917
1918 # ac_fn_cxx_try_link LINENO
1919 # -------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_link ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 test -x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_retval=1
1953 fi
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1961
1962 } # ac_fn_cxx_try_link
1963
1964 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1968 # accordingly.
1969 ac_fn_c_check_header_mongrel ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if eval \${$3+:} false; then :
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 else
1982 # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 #include <$2>
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_header_compiler=yes
1992 else
1993 ac_header_compiler=no
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1998
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_cpp "$LINENO"; then :
2007 ac_header_preproc=yes
2008 else
2009 ac_header_preproc=no
2010 fi
2011 rm -f conftest.err conftest.i conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2014
2015 # So? What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 yes:no: )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ;;
2023 no:yes:* )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ( $as_echo "## ------------------------------------------------------------------------------ ##
2035 ## Report this to https://github.com/libimobiledevice/libideviceactivation/issues ##
2036 ## ------------------------------------------------------------------------------ ##"
2037 ) | sed "s/^/$as_me: WARNING: /" >&2
2038 ;;
2039 esac
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=\$ac_header_compiler"
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 fi
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_header_mongrel
2054
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2060 {
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 int
2072 main ()
2073 {
2074 if (sizeof ($2))
2075 return 0;
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $4
2084 int
2085 main ()
2086 {
2087 if (sizeof (($2)))
2088 return 0;
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094
2095 else
2096 eval "$3=yes"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_type
2108
2109 # ac_fn_c_find_uintX_t LINENO BITS VAR
2110 # ------------------------------------
2111 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2112 # accordingly.
2113 ac_fn_c_find_uintX_t ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2117 $as_echo_n "checking for uint$2_t... " >&6; }
2118 if eval \${$3+:} false; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 eval "$3=no"
2122 # Order is important - never check a type that is potentially smaller
2123 # than half of the expected target width.
2124 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2125 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $ac_includes_default
2129 int
2130 main ()
2131 {
2132 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2133 test_array [0] = 0;
2134 return test_array [0];
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 case $ac_type in #(
2142 uint$2_t) :
2143 eval "$3=yes" ;; #(
2144 *) :
2145 eval "$3=\$ac_type" ;;
2146 esac
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 if eval test \"x\$"$3"\" = x"no"; then :
2150
2151 else
2152 break
2153 fi
2154 done
2155 fi
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161 } # ac_fn_c_find_uintX_t
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2165
2166 It was created by libideviceactivation $as_me 1.1.1, which was
2167 generated by GNU Autoconf 2.69. Invocation command line was
2168
2169 $ $0 $@
2170
2171 _ACEOF
2172 exec 5>>config.log
2173 {
2174 cat <<_ASUNAME
2175 ## --------- ##
2176 ## Platform. ##
2177 ## --------- ##
2178
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196 _ASUNAME
2197
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204 done
2205 IFS=$as_save_IFS
2206
2207 } >&5
2208
2209 cat >&5 <<_ACEOF
2210
2211
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2215
2216 _ACEOF
2217
2218
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2229 do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242 2)
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 as_fn_append ac_configure_args " '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2266
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2282 (
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2305 *)
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 ;;
2308 esac |
2309 sort
2310 )
2311 echo
2312
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2316 echo
2317 for ac_var in $ac_subst_vars
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2331 echo
2332 for ac_var in $ac_subst_files
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341 fi
2342
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##"
2347 echo
2348 cat confdefs.h
2349 echo
2350 fi
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2354 } >&5
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 exit $exit_status
2358 ' 0
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 done
2362 ac_signal=0
2363
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2366
2367 $as_echo "/* confdefs.h */" > confdefs.h
2368
2369 # Predefined preprocessor variables.
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2393 _ACEOF
2394
2395
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2398 ac_site_file1=NONE
2399 ac_site_file2=NONE
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2406 esac
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410 else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2413 fi
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 do
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file" \
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2426 fi
2427 done
2428
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2439 fi
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2444 fi
2445
2446 # Check that the precious variables saved in the cache have kept the same
2447 # value.
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2455 set,)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,set)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,);;
2464 *)
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x $ac_old_val`
2468 ac_new_val_w=`echo x $ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472 ac_cache_corrupted=:
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482 fi;;
2483 esac
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2486 case $ac_new_val in
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2489 esac
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493 esac
2494 fi
2495 done
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502 fi
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2506
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514 am__api_version='1.16'
2515
2516 ac_aux_dir=
2517 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2518 if test -f "$ac_dir/install-sh"; then
2519 ac_aux_dir=$ac_dir
2520 ac_install_sh="$ac_aux_dir/install-sh -c"
2521 break
2522 elif test -f "$ac_dir/install.sh"; then
2523 ac_aux_dir=$ac_dir
2524 ac_install_sh="$ac_aux_dir/install.sh -c"
2525 break
2526 elif test -f "$ac_dir/shtool"; then
2527 ac_aux_dir=$ac_dir
2528 ac_install_sh="$ac_aux_dir/shtool install -c"
2529 break
2530 fi
2531 done
2532 if test -z "$ac_aux_dir"; then
2533 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2534 fi
2535
2536 # These three variables are undocumented and unsupported,
2537 # and are intended to be withdrawn in a future Autoconf release.
2538 # They can cause serious problems if a builder's source tree is in a directory
2539 # whose full name contains unusual characters.
2540 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2541 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2542 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2543
2544
2545 # Find a good install program. We prefer a C program (faster),
2546 # so one script is as good as another. But avoid the broken or
2547 # incompatible versions:
2548 # SysV /etc/install, /usr/sbin/install
2549 # SunOS /usr/etc/install
2550 # IRIX /sbin/install
2551 # AIX /bin/install
2552 # AmigaOS /C/install, which installs bootblocks on floppy discs
2553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2556 # OS/2's system install, which has a completely different semantic
2557 # ./install, which can be erroneously created by make from ./install.sh.
2558 # Reject install programs that cannot install multiple files.
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2560 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2561 if test -z "$INSTALL"; then
2562 if ${ac_cv_path_install+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 # Account for people who put trailing slashes in PATH elements.
2571 case $as_dir/ in #((
2572 ./ | .// | /[cC]/* | \
2573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2574 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2575 /usr/ucb/* ) ;;
2576 *)
2577 # OSF1 and SCO ODT 3.0 have their own names for install.
2578 # Don't use installbsd from OSF since it installs stuff as root
2579 # by default.
2580 for ac_prog in ginstall scoinst install; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2583 if test $ac_prog = install &&
2584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2585 # AIX install. It has an incompatible calling convention.
2586 :
2587 elif test $ac_prog = install &&
2588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2589 # program-specific install script used by HP pwplus--don't use.
2590 :
2591 else
2592 rm -rf conftest.one conftest.two conftest.dir
2593 echo one > conftest.one
2594 echo two > conftest.two
2595 mkdir conftest.dir
2596 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2597 test -s conftest.one && test -s conftest.two &&
2598 test -s conftest.dir/conftest.one &&
2599 test -s conftest.dir/conftest.two
2600 then
2601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2602 break 3
2603 fi
2604 fi
2605 fi
2606 done
2607 done
2608 ;;
2609 esac
2610
2611 done
2612 IFS=$as_save_IFS
2613
2614 rm -rf conftest.one conftest.two conftest.dir
2615
2616 fi
2617 if test "${ac_cv_path_install+set}" = set; then
2618 INSTALL=$ac_cv_path_install
2619 else
2620 # As a last resort, use the slow shell script. Don't cache a
2621 # value for INSTALL within a source directory, because that will
2622 # break other packages using the cache if that directory is
2623 # removed, or if the value is a relative name.
2624 INSTALL=$ac_install_sh
2625 fi
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2628 $as_echo "$INSTALL" >&6; }
2629
2630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2631 # It thinks the first close brace ends the variable substitution.
2632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2633
2634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2635
2636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2639 $as_echo_n "checking whether build environment is sane... " >&6; }
2640 # Reject unsafe characters in $srcdir or the absolute working directory
2641 # name. Accept space and tab only in the latter.
2642 am_lf='
2643 '
2644 case `pwd` in
2645 *[\\\"\#\$\&\'\`$am_lf]*)
2646 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2647 esac
2648 case $srcdir in
2649 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2650 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2651 esac
2652
2653 # Do 'set' in a subshell so we don't clobber the current shell's
2654 # arguments. Must try -L first in case configure is actually a
2655 # symlink; some systems play weird games with the mod time of symlinks
2656 # (eg FreeBSD returns the mod time of the symlink's containing
2657 # directory).
2658 if (
2659 am_has_slept=no
2660 for am_try in 1 2; do
2661 echo "timestamp, slept: $am_has_slept" > conftest.file
2662 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2663 if test "$*" = "X"; then
2664 # -L didn't work.
2665 set X `ls -t "$srcdir/configure" conftest.file`
2666 fi
2667 if test "$*" != "X $srcdir/configure conftest.file" \
2668 && test "$*" != "X conftest.file $srcdir/configure"; then
2669
2670 # If neither matched, then we have a broken ls. This can happen
2671 # if, for instance, CONFIG_SHELL is bash and it inherits a
2672 # broken ls alias from the environment. This has actually
2673 # happened. Such a system could not be considered "sane".
2674 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2675 alias in your environment" "$LINENO" 5
2676 fi
2677 if test "$2" = conftest.file || test $am_try -eq 2; then
2678 break
2679 fi
2680 # Just in case.
2681 sleep 1
2682 am_has_slept=yes
2683 done
2684 test "$2" = conftest.file
2685 )
2686 then
2687 # Ok.
2688 :
2689 else
2690 as_fn_error $? "newly created file is older than distributed files!
2691 Check your system clock" "$LINENO" 5
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2694 $as_echo "yes" >&6; }
2695 # If we didn't sleep, we still need to ensure time stamps of config.status and
2696 # generated files are strictly newer.
2697 am_sleep_pid=
2698 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2699 ( sleep 1 ) &
2700 am_sleep_pid=$!
2701 fi
2702
2703 rm -f conftest.file
2704
2705 test "$program_prefix" != NONE &&
2706 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2707 # Use a double $ so make ignores it.
2708 test "$program_suffix" != NONE &&
2709 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2710 # Double any \ or $.
2711 # By default was `s,x,x', remove it if useless.
2712 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2713 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2714
2715 # Expand $ac_aux_dir to an absolute path.
2716 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2717
2718 if test x"${MISSING+set}" != xset; then
2719 case $am_aux_dir in
2720 *\ * | *\ *)
2721 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2722 *)
2723 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2724 esac
2725 fi
2726 # Use eval to expand $SHELL
2727 if eval "$MISSING --is-lightweight"; then
2728 am_missing_run="$MISSING "
2729 else
2730 am_missing_run=
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2732 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2733 fi
2734
2735 if test x"${install_sh+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2739 *)
2740 install_sh="\${SHELL} $am_aux_dir/install-sh"
2741 esac
2742 fi
2743
2744 # Installed binaries are usually stripped using 'strip' when the user
2745 # run "make install-strip". However 'strip' might not be the right
2746 # tool to use in cross-compilation environments, therefore Automake
2747 # will honor the 'STRIP' environment variable to overrule this program.
2748 if test "$cross_compiling" != no; then
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}strip; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_STRIP+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$STRIP"; then
2758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 STRIP=$ac_cv_prog_STRIP
2778 if test -n "$STRIP"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2780 $as_echo "$STRIP" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$ac_cv_prog_STRIP"; then
2789 ac_ct_STRIP=$STRIP
2790 # Extract the first word of "strip", so it can be a program name with args.
2791 set dummy strip; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$ac_ct_STRIP"; then
2798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_STRIP="strip"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2818 if test -n "$ac_ct_STRIP"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2820 $as_echo "$ac_ct_STRIP" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826 if test "x$ac_ct_STRIP" = x; then
2827 STRIP=":"
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 STRIP=$ac_ct_STRIP
2836 fi
2837 else
2838 STRIP="$ac_cv_prog_STRIP"
2839 fi
2840
2841 fi
2842 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2845 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2846 if test -z "$MKDIR_P"; then
2847 if ${ac_cv_path_mkdir+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_prog in mkdir gmkdir; do
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2859 'mkdir (GNU coreutils) '* | \
2860 'mkdir (coreutils) '* | \
2861 'mkdir (fileutils) '4.1*)
2862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2863 break 3;;
2864 esac
2865 done
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871
2872 test -d ./--version && rmdir ./--version
2873 if test "${ac_cv_path_mkdir+set}" = set; then
2874 MKDIR_P="$ac_cv_path_mkdir -p"
2875 else
2876 # As a last resort, use the slow shell script. Don't cache a
2877 # value for MKDIR_P within a source directory, because that will
2878 # break other packages using the cache if that directory is
2879 # removed, or if the value is a relative name.
2880 MKDIR_P="$ac_install_sh -d"
2881 fi
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2884 $as_echo "$MKDIR_P" >&6; }
2885
2886 for ac_prog in gawk mawk nawk awk
2887 do
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_AWK+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$AWK"; then
2896 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_AWK="$ac_prog"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 AWK=$ac_cv_prog_AWK
2916 if test -n "$AWK"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2918 $as_echo "$AWK" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924
2925 test -n "$AWK" && break
2926 done
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2929 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2930 set x ${MAKE-make}
2931 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2932 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 cat >conftest.make <<\_ACEOF
2936 SHELL = /bin/sh
2937 all:
2938 @echo '@@@%%%=$(MAKE)=@@@%%%'
2939 _ACEOF
2940 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2942 *@@@%%%=?*=@@@%%%*)
2943 eval ac_cv_prog_make_${ac_make}_set=yes;;
2944 *)
2945 eval ac_cv_prog_make_${ac_make}_set=no;;
2946 esac
2947 rm -f conftest.make
2948 fi
2949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 SET_MAKE=
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 SET_MAKE="MAKE=${MAKE-make}"
2957 fi
2958
2959 rm -rf .tst 2>/dev/null
2960 mkdir .tst 2>/dev/null
2961 if test -d .tst; then
2962 am__leading_dot=.
2963 else
2964 am__leading_dot=_
2965 fi
2966 rmdir .tst 2>/dev/null
2967
2968 # Check whether --enable-silent-rules was given.
2969 if test "${enable_silent_rules+set}" = set; then :
2970 enableval=$enable_silent_rules;
2971 fi
2972
2973 case $enable_silent_rules in # (((
2974 yes) AM_DEFAULT_VERBOSITY=0;;
2975 no) AM_DEFAULT_VERBOSITY=1;;
2976 *) AM_DEFAULT_VERBOSITY=1;;
2977 esac
2978 am_make=${MAKE-make}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2980 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2981 if ${am_cv_make_support_nested_variables+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if $as_echo 'TRUE=$(BAR$(V))
2985 BAR0=false
2986 BAR1=true
2987 V=1
2988 am__doit:
2989 @$(TRUE)
2990 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2991 am_cv_make_support_nested_variables=yes
2992 else
2993 am_cv_make_support_nested_variables=no
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2997 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2998 if test $am_cv_make_support_nested_variables = yes; then
2999 AM_V='$(V)'
3000 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3001 else
3002 AM_V=$AM_DEFAULT_VERBOSITY
3003 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3004 fi
3005 AM_BACKSLASH='\'
3006
3007 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3008 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3009 # is not polluted with repeated "-I."
3010 am__isrc=' -I$(srcdir)'
3011 # test to see if srcdir already configured
3012 if test -f $srcdir/config.status; then
3013 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3014 fi
3015 fi
3016
3017 # test whether we have cygpath
3018 if test -z "$CYGPATH_W"; then
3019 if (cygpath --version) >/dev/null 2>/dev/null; then
3020 CYGPATH_W='cygpath -w'
3021 else
3022 CYGPATH_W=echo
3023 fi
3024 fi
3025
3026
3027 # Define the identity of the package.
3028 PACKAGE='libideviceactivation'
3029 VERSION='1.1.1'
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE "$PACKAGE"
3034 _ACEOF
3035
3036
3037 cat >>confdefs.h <<_ACEOF
3038 #define VERSION "$VERSION"
3039 _ACEOF
3040
3041 # Some tools Automake needs.
3042
3043 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3044
3045
3046 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3047
3048
3049 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3050
3051
3052 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3053
3054
3055 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056
3057 # For better backward compatibility. To be removed once Automake 1.9.x
3058 # dies out for good. For more background, see:
3059 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3060 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3061 mkdir_p='$(MKDIR_P)'
3062
3063 # We need awk for the "check" target (and possibly the TAP driver). The
3064 # system "awk" is bad on some platforms.
3065 # Always define AMTAR for backward compatibility. Yes, it's still used
3066 # in the wild :-( We should find a proper way to deprecate it ...
3067 AMTAR='$${TAR-tar}'
3068
3069
3070 # We'll loop over all known methods to create a tar archive until one works.
3071 _am_tools='gnutar pax cpio none'
3072
3073 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3074
3075
3076
3077
3078
3079
3080 # POSIX will say in a future version that running "rm -f" with no argument
3081 # is OK; and we want to be able to make that assumption in our Makefile
3082 # recipes. So use an aggressive probe to check that the usage we want is
3083 # actually supported "in the wild" to an acceptable degree.
3084 # See automake bug#10828.
3085 # To make any issue more visible, cause the running configure to be aborted
3086 # by default if the 'rm' program in use doesn't match our expectations; the
3087 # user can still override this though.
3088 if rm -f && rm -fr && rm -rf; then : OK; else
3089 cat >&2 <<'END'
3090 Oops!
3091
3092 Your 'rm' program seems unable to run without file operands specified
3093 on the command line, even when the '-f' option is present. This is contrary
3094 to the behaviour of most rm programs out there, and not conforming with
3095 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3096
3097 Please tell [email protected] about your system, including the value
3098 of your $PATH and any error possibly output before this message. This
3099 can help us improve future automake versions.
3100
3101 END
3102 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3103 echo 'Configuration will proceed anyway, since you have set the' >&2
3104 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3105 echo >&2
3106 else
3107 cat >&2 <<'END'
3108 Aborting the configuration process, to ensure you take notice of the issue.
3109
3110 You can download and install GNU coreutils to get an 'rm' implementation
3111 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3112
3113 If you want to complete the configuration process using your problematic
3114 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3115 to "yes", and re-run configure.
3116
3117 END
3118 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3119 fi
3120 fi
3121
3122 # Check whether --enable-silent-rules was given.
3123 if test "${enable_silent_rules+set}" = set; then :
3124 enableval=$enable_silent_rules;
3125 fi
3126
3127 case $enable_silent_rules in # (((
3128 yes) AM_DEFAULT_VERBOSITY=0;;
3129 no) AM_DEFAULT_VERBOSITY=1;;
3130 *) AM_DEFAULT_VERBOSITY=1;;
3131 esac
3132 am_make=${MAKE-make}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3134 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3135 if ${am_cv_make_support_nested_variables+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if $as_echo 'TRUE=$(BAR$(V))
3139 BAR0=false
3140 BAR1=true
3141 V=1
3142 am__doit:
3143 @$(TRUE)
3144 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3145 am_cv_make_support_nested_variables=yes
3146 else
3147 am_cv_make_support_nested_variables=no
3148 fi
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3151 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3152 if test $am_cv_make_support_nested_variables = yes; then
3153 AM_V='$(V)'
3154 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3155 else
3156 AM_V=$AM_DEFAULT_VERBOSITY
3157 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3158 fi
3159 AM_BACKSLASH='\'
3160
3161
3162 ac_config_headers="$ac_config_headers config.h"
3163
3164
3165
3166 # +1 : 0 : +1 == adds new functions to the interface
3167 # +1 : 0 : 0 == changes or removes functions (changes include both
3168 # changes to the signature and the semantic)
3169 # ? :+1 : ? == just internal changes
3170 # CURRENT : REVISION : AGE
3171 LIBIDEVICEACTIVATION_SO_VERSION=3:0:1
3172
3173 LIBIMOBILEDEVICE_VERSION=1.3.0
3174 LIBPLIST_VERSION=2.2.0
3175 LIBCURL_VERSION=7.20
3176 LIBXML2_VERSION=2.9
3177
3178
3179
3180
3181
3182
3183
3184 # Checks for programs.
3185 ac_ext=c
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190 if test -n "$ac_tool_prefix"; then
3191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_CC+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 if test -n "$CC"; then
3199 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228 fi
3229 if test -z "$ac_cv_prog_CC"; then
3230 ac_ct_CC=$CC
3231 # Extract the first word of "gcc", so it can be a program name with args.
3232 set dummy gcc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$ac_ct_CC"; then
3239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_ac_ct_CC="gcc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259 if test -n "$ac_ct_CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261 $as_echo "$ac_ct_CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267 if test "x$ac_ct_CC" = x; then
3268 CC=""
3269 else
3270 case $cross_compiling:$ac_tool_warned in
3271 yes:)
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3274 ac_tool_warned=yes ;;
3275 esac
3276 CC=$ac_ct_CC
3277 fi
3278 else
3279 CC="$ac_cv_prog_CC"
3280 fi
3281
3282 if test -z "$CC"; then
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}cc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_CC+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_CC="${ac_tool_prefix}cc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 CC=$ac_cv_prog_CC
3312 if test -n "$CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314 $as_echo "$CC" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 fi
3322 fi
3323 if test -z "$CC"; then
3324 # Extract the first word of "cc", so it can be a program name with args.
3325 set dummy cc; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_CC+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if test -n "$CC"; then
3332 ac_cv_prog_CC="$CC" # Let the user override the test.
3333 else
3334 ac_prog_rejected=no
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3343 ac_prog_rejected=yes
3344 continue
3345 fi
3346 ac_cv_prog_CC="cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 if test $ac_prog_rejected = yes; then
3355 # We found a bogon in the path, so make sure we never use it.
3356 set dummy $ac_cv_prog_CC
3357 shift
3358 if test $# != 0; then
3359 # We chose a different compiler from the bogus one.
3360 # However, it has the same basename, so the bogon will be chosen
3361 # first if we set CC to just the basename; use the full file name.
3362 shift
3363 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3364 fi
3365 fi
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378 fi
3379 if test -z "$CC"; then
3380 if test -n "$ac_tool_prefix"; then
3381 for ac_prog in cl.exe
3382 do
3383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420 test -n "$CC" && break
3421 done
3422 fi
3423 if test -z "$CC"; then
3424 ac_ct_CC=$CC
3425 for ac_prog in cl.exe
3426 do
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428 set dummy $ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$ac_ct_CC"; then
3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_ac_ct_CC="$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3455 if test -n "$ac_ct_CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3457 $as_echo "$ac_ct_CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463
3464 test -n "$ac_ct_CC" && break
3465 done
3466
3467 if test "x$ac_ct_CC" = x; then
3468 CC=""
3469 else
3470 case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3475 esac
3476 CC=$ac_ct_CC
3477 fi
3478 fi
3479
3480 fi
3481
3482
3483 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "no acceptable C compiler found in \$PATH
3486 See \`config.log' for more details" "$LINENO" 5; }
3487
3488 # Provide some information about the compiler.
3489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3490 set X $ac_compile
3491 ac_compiler=$2
3492 for ac_option in --version -v -V -qversion; do
3493 { { ac_try="$ac_compiler $ac_option >&5"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3501 ac_status=$?
3502 if test -s conftest.err; then
3503 sed '10a\
3504 ... rest of stderr output deleted ...
3505 10q' conftest.err >conftest.er1
3506 cat conftest.er1 >&5
3507 fi
3508 rm -f conftest.er1 conftest.err
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }
3511 done
3512
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515
3516 int
3517 main ()
3518 {
3519
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 ac_clean_files_save=$ac_clean_files
3525 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3526 # Try to create an executable without -o first, disregard a.out.
3527 # It will help us diagnose broken compilers, and finding out an intuition
3528 # of exeext.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3530 $as_echo_n "checking whether the C compiler works... " >&6; }
3531 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3532
3533 # The possible output files:
3534 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3535
3536 ac_rmfiles=
3537 for ac_file in $ac_files
3538 do
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3541 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3542 esac
3543 done
3544 rm -f $ac_rmfiles
3545
3546 if { { ac_try="$ac_link_default"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_link_default") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3558 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3559 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3560 # so that the user can short-circuit this test for compilers unknown to
3561 # Autoconf.
3562 for ac_file in $ac_files ''
3563 do
3564 test -f "$ac_file" || continue
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3567 ;;
3568 [ab].out )
3569 # We found the default executable, but exeext='' is most
3570 # certainly right.
3571 break;;
3572 *.* )
3573 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3574 then :; else
3575 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576 fi
3577 # We set ac_cv_exeext here because the later test for it is not
3578 # safe: cross compilers may not add the suffix if given an `-o'
3579 # argument, so we may need to know it at that point already.
3580 # Even if this section looks crufty: it has the advantage of
3581 # actually working.
3582 break;;
3583 * )
3584 break;;
3585 esac
3586 done
3587 test "$ac_cv_exeext" = no && ac_cv_exeext=
3588
3589 else
3590 ac_file=''
3591 fi
3592 if test -z "$ac_file"; then :
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error 77 "C compiler cannot create executables
3601 See \`config.log' for more details" "$LINENO" 5; }
3602 else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3604 $as_echo "yes" >&6; }
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3607 $as_echo_n "checking for C compiler default output file name... " >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3609 $as_echo "$ac_file" >&6; }
3610 ac_exeext=$ac_cv_exeext
3611
3612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3615 $as_echo_n "checking for suffix of executables... " >&6; }
3616 if { { ac_try="$ac_link"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_link") 2>&5
3624 ac_status=$?
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3629 # work properly (i.e., refer to `conftest.exe'), while it won't with
3630 # `rm'.
3631 for ac_file in conftest.exe conftest conftest.*; do
3632 test -f "$ac_file" || continue
3633 case $ac_file in
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3636 break;;
3637 * ) break;;
3638 esac
3639 done
3640 else
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 fi
3646 rm -f conftest conftest$ac_cv_exeext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3648 $as_echo "$ac_cv_exeext" >&6; }
3649
3650 rm -f conftest.$ac_ext
3651 EXEEXT=$ac_cv_exeext
3652 ac_exeext=$EXEEXT
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 #include <stdio.h>
3656 int
3657 main ()
3658 {
3659 FILE *f = fopen ("conftest.out", "w");
3660 return ferror (f) || fclose (f) != 0;
3661
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 ac_clean_files="$ac_clean_files conftest.out"
3667 # Check that the compiler produces executables we can run. If not, either
3668 # the compiler is broken, or we cross compile.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3670 $as_echo_n "checking whether we are cross compiling... " >&6; }
3671 if test "$cross_compiling" != yes; then
3672 { { ac_try="$ac_link"
3673 case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679 (eval "$ac_link") 2>&5
3680 ac_status=$?
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683 if { ac_try='./conftest$ac_cv_exeext'
3684 { { case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_try") 2>&5
3691 ac_status=$?
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; }; then
3694 cross_compiling=no
3695 else
3696 if test "$cross_compiling" = maybe; then
3697 cross_compiling=yes
3698 else
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot run C compiled programs.
3702 If you meant to cross compile, use \`--host'.
3703 See \`config.log' for more details" "$LINENO" 5; }
3704 fi
3705 fi
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3708 $as_echo "$cross_compiling" >&6; }
3709
3710 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3711 ac_clean_files=$ac_clean_files_save
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3713 $as_echo_n "checking for suffix of object files... " >&6; }
3714 if ${ac_cv_objext+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.o conftest.obj
3729 if { { ac_try="$ac_compile"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_compile") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 for ac_file in conftest.o conftest.obj conftest.*; do
3741 test -f "$ac_file" || continue;
3742 case $ac_file in
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745 break;;
3746 esac
3747 done
3748 else
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error $? "cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details" "$LINENO" 5; }
3756 fi
3757 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3760 $as_echo "$ac_cv_objext" >&6; }
3761 OBJEXT=$ac_cv_objext
3762 ac_objext=$OBJEXT
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3764 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3765 if ${ac_cv_c_compiler_gnu+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main ()
3773 {
3774 #ifndef __GNUC__
3775 choke me
3776 #endif
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_compiler_gnu=yes
3784 else
3785 ac_compiler_gnu=no
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794 GCC=yes
3795 else
3796 GCC=
3797 fi
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if ${ac_cv_prog_cc_g+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 ac_save_c_werror_flag=$ac_c_werror_flag
3806 ac_c_werror_flag=yes
3807 ac_cv_prog_cc_g=no
3808 CFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_g=yes
3822 else
3823 CFLAGS=""
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main ()
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_c_try_compile "$LINENO"; then :
3836
3837 else
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3839 CFLAGS="-g"
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_prog_cc_g=yes
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_c_werror_flag=$ac_save_c_werror_flag
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3862 $as_echo "$ac_cv_prog_cc_g" >&6; }
3863 if test "$ac_test_CFLAGS" = set; then
3864 CFLAGS=$ac_save_CFLAGS
3865 elif test $ac_cv_prog_cc_g = yes; then
3866 if test "$GCC" = yes; then
3867 CFLAGS="-g -O2"
3868 else
3869 CFLAGS="-g"
3870 fi
3871 else
3872 if test "$GCC" = yes; then
3873 CFLAGS="-O2"
3874 else
3875 CFLAGS=
3876 fi
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3879 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3880 if ${ac_cv_prog_cc_c89+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_cv_prog_cc_c89=no
3884 ac_save_CC=$CC
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <stdarg.h>
3888 #include <stdio.h>
3889 struct stat;
3890 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3891 struct buf { int x; };
3892 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3893 static char *e (p, i)
3894 char **p;
3895 int i;
3896 {
3897 return p[i];
3898 }
3899 static char *f (char * (*g) (char **, int), char **p, ...)
3900 {
3901 char *s;
3902 va_list v;
3903 va_start (v,p);
3904 s = g (p, va_arg (v,int));
3905 va_end (v);
3906 return s;
3907 }
3908
3909 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3910 function prototypes and stuff, but not '\xHH' hex character constants.
3911 These don't provoke an error unfortunately, instead are silently treated
3912 as 'x'. The following induces an error, until -std is added to get
3913 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3914 array size at least. It's necessary to write '\x00'==0 to get something
3915 that's true only with -std. */
3916 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3917
3918 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3919 inside strings and character constants. */
3920 #define FOO(x) 'x'
3921 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3922
3923 int test (int i, double x);
3924 struct s1 {int (*f) (int a);};
3925 struct s2 {int (*f) (double a);};
3926 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3927 int argc;
3928 char **argv;
3929 int
3930 main ()
3931 {
3932 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3938 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3939 do
3940 CC="$ac_save_CC $ac_arg"
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_cv_prog_cc_c89=$ac_arg
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext
3945 test "x$ac_cv_prog_cc_c89" != "xno" && break
3946 done
3947 rm -f conftest.$ac_ext
3948 CC=$ac_save_CC
3949
3950 fi
3951 # AC_CACHE_VAL
3952 case "x$ac_cv_prog_cc_c89" in
3953 x)
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3955 $as_echo "none needed" >&6; } ;;
3956 xno)
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3958 $as_echo "unsupported" >&6; } ;;
3959 *)
3960 CC="$CC $ac_cv_prog_cc_c89"
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3962 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3963 esac
3964 if test "x$ac_cv_prog_cc_c89" != xno; then :
3965
3966 fi
3967
3968 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3980 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3981 if ${am_cv_prog_cc_c_o+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986
3987 int
3988 main ()
3989 {
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 # Make sure it works both with $CC and with simple cc.
3996 # Following AC_PROG_CC_C_O, we do the test twice because some
3997 # compilers refuse to overwrite an existing .o file with -o,
3998 # though they will create one.
3999 am_cv_prog_cc_c_o=yes
4000 for am_i in 1 2; do
4001 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4002 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } \
4006 && test -f conftest2.$ac_objext; then
4007 : OK
4008 else
4009 am_cv_prog_cc_c_o=no
4010 break
4011 fi
4012 done
4013 rm -f core conftest*
4014 unset am_i
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4017 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4018 if test "$am_cv_prog_cc_c_o" != yes; then
4019 # Losing compiler, so override with the script.
4020 # FIXME: It is wrong to rewrite CC.
4021 # But if we don't then we get into trouble of one sort or another.
4022 # A longer-term fix would be to have automake use am__CC in this case,
4023 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4024 CC="$am_aux_dir/compile $CC"
4025 fi
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031
4032 DEPDIR="${am__leading_dot}deps"
4033
4034 ac_config_commands="$ac_config_commands depfiles"
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4037 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4038 cat > confinc.mk << 'END'
4039 am__doit:
4040 @echo this is the am__doit target >confinc.out
4041 .PHONY: am__doit
4042 END
4043 am__include="#"
4044 am__quote=
4045 # BSD make does it like this.
4046 echo '.include "confinc.mk" # ignored' > confmf.BSD
4047 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4048 echo 'include confinc.mk # ignored' > confmf.GNU
4049 _am_result=no
4050 for s in GNU BSD; do
4051 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4052 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }
4056 case $?:`cat confinc.out 2>/dev/null` in #(
4057 '0:this is the am__doit target') :
4058 case $s in #(
4059 BSD) :
4060 am__include='.include' am__quote='"' ;; #(
4061 *) :
4062 am__include='include' am__quote='' ;;
4063 esac ;; #(
4064 *) :
4065 ;;
4066 esac
4067 if test "$am__include" != "#"; then
4068 _am_result="yes ($s style)"
4069 break
4070 fi
4071 done
4072 rm -f confinc.* confmf.*
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4074 $as_echo "${_am_result}" >&6; }
4075
4076 # Check whether --enable-dependency-tracking was given.
4077 if test "${enable_dependency_tracking+set}" = set; then :
4078 enableval=$enable_dependency_tracking;
4079 fi
4080
4081 if test "x$enable_dependency_tracking" != xno; then
4082 am_depcomp="$ac_aux_dir/depcomp"
4083 AMDEPBACKSLASH='\'
4084 am__nodep='_no'
4085 fi
4086 if test "x$enable_dependency_tracking" != xno; then
4087 AMDEP_TRUE=
4088 AMDEP_FALSE='#'
4089 else
4090 AMDEP_TRUE='#'
4091 AMDEP_FALSE=
4092 fi
4093
4094
4095
4096 depcc="$CC" am_compiler_list=
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4099 $as_echo_n "checking dependency style of $depcc... " >&6; }
4100 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named 'D' -- because '-MD' means "put the output
4108 # in D".
4109 rm -rf conftest.dir
4110 mkdir conftest.dir
4111 # Copy depcomp to subdir because otherwise we won't find it if we're
4112 # using a relative directory.
4113 cp "$am_depcomp" conftest.dir
4114 cd conftest.dir
4115 # We will build objects and dependencies in a subdirectory because
4116 # it helps to detect inapplicable dependency modes. For instance
4117 # both Tru64's cc and ICC support -MD to output dependencies as a
4118 # side effect of compilation, but ICC will put the dependencies in
4119 # the current directory while Tru64 will put them in the object
4120 # directory.
4121 mkdir sub
4122
4123 am_cv_CC_dependencies_compiler_type=none
4124 if test "$am_compiler_list" = ""; then
4125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4126 fi
4127 am__universal=false
4128 case " $depcc " in #(
4129 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4130 esac
4131
4132 for depmode in $am_compiler_list; do
4133 # Setup a source with many dependencies, because some compilers
4134 # like to wrap large dependency lists on column 80 (with \), and
4135 # we should not choose a depcomp mode which is confused by this.
4136 #
4137 # We need to recreate these files for each test, as the compiler may
4138 # overwrite some of them when testing with obscure command lines.
4139 # This happens at least with the AIX C compiler.
4140 : > sub/conftest.c
4141 for i in 1 2 3 4 5 6; do
4142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4143 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4144 # Solaris 10 /bin/sh.
4145 echo '/* dummy */' > sub/conftst$i.h
4146 done
4147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4148
4149 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4150 # mode. It turns out that the SunPro C++ compiler does not properly
4151 # handle '-M -o', and we need to detect this. Also, some Intel
4152 # versions had trouble with output in subdirs.
4153 am__obj=sub/conftest.${OBJEXT-o}
4154 am__minus_obj="-o $am__obj"
4155 case $depmode in
4156 gcc)
4157 # This depmode causes a compiler race in universal mode.
4158 test "$am__universal" = false || continue
4159 ;;
4160 nosideeffect)
4161 # After this tag, mechanisms are not by side-effect, so they'll
4162 # only be used when explicitly requested.
4163 if test "x$enable_dependency_tracking" = xyes; then
4164 continue
4165 else
4166 break
4167 fi
4168 ;;
4169 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4170 # This compiler won't grok '-c -o', but also, the minuso test has
4171 # not run yet. These depmodes are late enough in the game, and
4172 # so weak that their functioning should not be impacted.
4173 am__obj=conftest.${OBJEXT-o}
4174 am__minus_obj=
4175 ;;
4176 none) break ;;
4177 esac
4178 if depmode=$depmode \
4179 source=sub/conftest.c object=$am__obj \
4180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4181 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4182 >/dev/null 2>conftest.err &&
4183 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4185 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4187 # icc doesn't choke on unknown options, it will just issue warnings
4188 # or remarks (even with -Werror). So we grep stderr for any message
4189 # that says an option was ignored or not supported.
4190 # When given -MP, icc 7.0 and 7.1 complain thusly:
4191 # icc: Command line warning: ignoring option '-M'; no argument required
4192 # The diagnosis changed in icc 8.0:
4193 # icc: Command line remark: option '-MP' not supported
4194 if (grep 'ignoring option' conftest.err ||
4195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4196 am_cv_CC_dependencies_compiler_type=$depmode
4197 break
4198 fi
4199 fi
4200 done
4201
4202 cd ..
4203 rm -rf conftest.dir
4204 else
4205 am_cv_CC_dependencies_compiler_type=none
4206 fi
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4210 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4211 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4212
4213 if
4214 test "x$enable_dependency_tracking" != xno \
4215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4216 am__fastdepCC_TRUE=
4217 am__fastdepCC_FALSE='#'
4218 else
4219 am__fastdepCC_TRUE='#'
4220 am__fastdepCC_FALSE=
4221 fi
4222
4223
4224 ac_ext=cpp
4225 ac_cpp='$CXXCPP $CPPFLAGS'
4226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4229 if test -z "$CXX"; then
4230 if test -n "$CCC"; then
4231 CXX=$CCC
4232 else
4233 if test -n "$ac_tool_prefix"; then
4234 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4235 do
4236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if ${ac_cv_prog_CXX+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$CXX"; then
4244 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 fi
4262 fi
4263 CXX=$ac_cv_prog_CXX
4264 if test -n "$CXX"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4266 $as_echo "$CXX" >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4270 fi
4271
4272
4273 test -n "$CXX" && break
4274 done
4275 fi
4276 if test -z "$CXX"; then
4277 ac_ct_CXX=$CXX
4278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4279 do
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281 set dummy $ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$ac_ct_CXX"; then
4288 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_prog_ac_ct_CXX="$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 fi
4306 fi
4307 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4308 if test -n "$ac_ct_CXX"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4310 $as_echo "$ac_ct_CXX" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316
4317 test -n "$ac_ct_CXX" && break
4318 done
4319
4320 if test "x$ac_ct_CXX" = x; then
4321 CXX="g++"
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324 yes:)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned=yes ;;
4328 esac
4329 CXX=$ac_ct_CXX
4330 fi
4331 fi
4332
4333 fi
4334 fi
4335 # Provide some information about the compiler.
4336 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4337 set X $ac_compile
4338 ac_compiler=$2
4339 for ac_option in --version -v -V -qversion; do
4340 { { ac_try="$ac_compiler $ac_option >&5"
4341 case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 $as_echo "$ac_try_echo"; } >&5
4347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4348 ac_status=$?
4349 if test -s conftest.err; then
4350 sed '10a\
4351 ... rest of stderr output deleted ...
4352 10q' conftest.err >conftest.er1
4353 cat conftest.er1 >&5
4354 fi
4355 rm -f conftest.er1 conftest.err
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }
4358 done
4359
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4361 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4362 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367
4368 int
4369 main ()
4370 {
4371 #ifndef __GNUC__
4372 choke me
4373 #endif
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_cxx_try_compile "$LINENO"; then :
4380 ac_compiler_gnu=yes
4381 else
4382 ac_compiler_gnu=no
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4386
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4389 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4390 if test $ac_compiler_gnu = yes; then
4391 GXX=yes
4392 else
4393 GXX=
4394 fi
4395 ac_test_CXXFLAGS=${CXXFLAGS+set}
4396 ac_save_CXXFLAGS=$CXXFLAGS
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4398 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4399 if ${ac_cv_prog_cxx_g+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4403 ac_cxx_werror_flag=yes
4404 ac_cv_prog_cxx_g=no
4405 CXXFLAGS="-g"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_cxx_try_compile "$LINENO"; then :
4418 ac_cv_prog_cxx_g=yes
4419 else
4420 CXXFLAGS=""
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423
4424 int
4425 main ()
4426 {
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433
4434 else
4435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4436 CXXFLAGS="-g"
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439
4440 int
4441 main ()
4442 {
4443
4444 ;
4445 return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_cxx_try_compile "$LINENO"; then :
4449 ac_cv_prog_cxx_g=yes
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 fi
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4459 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4460 if test "$ac_test_CXXFLAGS" = set; then
4461 CXXFLAGS=$ac_save_CXXFLAGS
4462 elif test $ac_cv_prog_cxx_g = yes; then
4463 if test "$GXX" = yes; then
4464 CXXFLAGS="-g -O2"
4465 else
4466 CXXFLAGS="-g"
4467 fi
4468 else
4469 if test "$GXX" = yes; then
4470 CXXFLAGS="-O2"
4471 else
4472 CXXFLAGS=
4473 fi
4474 fi
4475 ac_ext=c
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481 depcc="$CXX" am_compiler_list=
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4484 $as_echo_n "checking dependency style of $depcc... " >&6; }
4485 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4489 # We make a subdir and do the tests there. Otherwise we can end up
4490 # making bogus files that we don't know about and never remove. For
4491 # instance it was reported that on HP-UX the gcc test will end up
4492 # making a dummy file named 'D' -- because '-MD' means "put the output
4493 # in D".
4494 rm -rf conftest.dir
4495 mkdir conftest.dir
4496 # Copy depcomp to subdir because otherwise we won't find it if we're
4497 # using a relative directory.
4498 cp "$am_depcomp" conftest.dir
4499 cd conftest.dir
4500 # We will build objects and dependencies in a subdirectory because
4501 # it helps to detect inapplicable dependency modes. For instance
4502 # both Tru64's cc and ICC support -MD to output dependencies as a
4503 # side effect of compilation, but ICC will put the dependencies in
4504 # the current directory while Tru64 will put them in the object
4505 # directory.
4506 mkdir sub
4507
4508 am_cv_CXX_dependencies_compiler_type=none
4509 if test "$am_compiler_list" = ""; then
4510 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4511 fi
4512 am__universal=false
4513 case " $depcc " in #(
4514 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4515 esac
4516
4517 for depmode in $am_compiler_list; do
4518 # Setup a source with many dependencies, because some compilers
4519 # like to wrap large dependency lists on column 80 (with \), and
4520 # we should not choose a depcomp mode which is confused by this.
4521 #
4522 # We need to recreate these files for each test, as the compiler may
4523 # overwrite some of them when testing with obscure command lines.
4524 # This happens at least with the AIX C compiler.
4525 : > sub/conftest.c
4526 for i in 1 2 3 4 5 6; do
4527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4528 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4529 # Solaris 10 /bin/sh.
4530 echo '/* dummy */' > sub/conftst$i.h
4531 done
4532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4533
4534 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4535 # mode. It turns out that the SunPro C++ compiler does not properly
4536 # handle '-M -o', and we need to detect this. Also, some Intel
4537 # versions had trouble with output in subdirs.
4538 am__obj=sub/conftest.${OBJEXT-o}
4539 am__minus_obj="-o $am__obj"
4540 case $depmode in
4541 gcc)
4542 # This depmode causes a compiler race in universal mode.
4543 test "$am__universal" = false || continue
4544 ;;
4545 nosideeffect)
4546 # After this tag, mechanisms are not by side-effect, so they'll
4547 # only be used when explicitly requested.
4548 if test "x$enable_dependency_tracking" = xyes; then
4549 continue
4550 else
4551 break
4552 fi
4553 ;;
4554 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4555 # This compiler won't grok '-c -o', but also, the minuso test has
4556 # not run yet. These depmodes are late enough in the game, and
4557 # so weak that their functioning should not be impacted.
4558 am__obj=conftest.${OBJEXT-o}
4559 am__minus_obj=
4560 ;;
4561 none) break ;;
4562 esac
4563 if depmode=$depmode \
4564 source=sub/conftest.c object=$am__obj \
4565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4566 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4567 >/dev/null 2>conftest.err &&
4568 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4570 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4572 # icc doesn't choke on unknown options, it will just issue warnings
4573 # or remarks (even with -Werror). So we grep stderr for any message
4574 # that says an option was ignored or not supported.
4575 # When given -MP, icc 7.0 and 7.1 complain thusly:
4576 # icc: Command line warning: ignoring option '-M'; no argument required
4577 # The diagnosis changed in icc 8.0:
4578 # icc: Command line remark: option '-MP' not supported
4579 if (grep 'ignoring option' conftest.err ||
4580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4581 am_cv_CXX_dependencies_compiler_type=$depmode
4582 break
4583 fi
4584 fi
4585 done
4586
4587 cd ..
4588 rm -rf conftest.dir
4589 else
4590 am_cv_CXX_dependencies_compiler_type=none
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4595 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4596 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4597
4598 if
4599 test "x$enable_dependency_tracking" != xno \
4600 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4601 am__fastdepCXX_TRUE=
4602 am__fastdepCXX_FALSE='#'
4603 else
4604 am__fastdepCXX_TRUE='#'
4605 am__fastdepCXX_FALSE=
4606 fi
4607
4608
4609
4610 case `pwd` in
4611 *\ * | *\ *)
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4613 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4614 esac
4615
4616
4617
4618 macro_version='2.4.6'
4619 macro_revision='2.4.6'
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633 ltmain=$ac_aux_dir/ltmain.sh
4634
4635 # Make sure we can run config.sub.
4636 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4637 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4640 $as_echo_n "checking build system type... " >&6; }
4641 if ${ac_cv_build+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 ac_build_alias=$build_alias
4645 test "x$ac_build_alias" = x &&
4646 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4647 test "x$ac_build_alias" = x &&
4648 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4649 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4650 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4651
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4654 $as_echo "$ac_cv_build" >&6; }
4655 case $ac_cv_build in
4656 *-*-*) ;;
4657 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4658 esac
4659 build=$ac_cv_build
4660 ac_save_IFS=$IFS; IFS='-'
4661 set x $ac_cv_build
4662 shift
4663 build_cpu=$1
4664 build_vendor=$2
4665 shift; shift
4666 # Remember, the first character of IFS is used to create $*,
4667 # except with old shells:
4668 build_os=$*
4669 IFS=$ac_save_IFS
4670 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4671
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4674 $as_echo_n "checking host system type... " >&6; }
4675 if ${ac_cv_host+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test "x$host_alias" = x; then
4679 ac_cv_host=$ac_cv_build
4680 else
4681 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4683 fi
4684
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4687 $as_echo "$ac_cv_host" >&6; }
4688 case $ac_cv_host in
4689 *-*-*) ;;
4690 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4691 esac
4692 host=$ac_cv_host
4693 ac_save_IFS=$IFS; IFS='-'
4694 set x $ac_cv_host
4695 shift
4696 host_cpu=$1
4697 host_vendor=$2
4698 shift; shift
4699 # Remember, the first character of IFS is used to create $*,
4700 # except with old shells:
4701 host_os=$*
4702 IFS=$ac_save_IFS
4703 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4704
4705
4706 # Backslashify metacharacters that are still active within
4707 # double-quoted strings.
4708 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4709
4710 # Same as above, but do not quote variable references.
4711 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4712
4713 # Sed substitution to delay expansion of an escaped shell variable in a
4714 # double_quote_subst'ed string.
4715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4716
4717 # Sed substitution to delay expansion of an escaped single quote.
4718 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4719
4720 # Sed substitution to avoid accidental globbing in evaled expressions
4721 no_glob_subst='s/\*/\\\*/g'
4722
4723 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4728 $as_echo_n "checking how to print strings... " >&6; }
4729 # Test print first, because it will be a builtin if present.
4730 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4731 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4732 ECHO='print -r --'
4733 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4734 ECHO='printf %s\n'
4735 else
4736 # Use this function as a fallback that always works.
4737 func_fallback_echo ()
4738 {
4739 eval 'cat <<_LTECHO_EOF
4740 $1
4741 _LTECHO_EOF'
4742 }
4743 ECHO='func_fallback_echo'
4744 fi
4745
4746 # func_echo_all arg...
4747 # Invoke $ECHO with all args, space-separated.
4748 func_echo_all ()
4749 {
4750 $ECHO ""
4751 }
4752
4753 case $ECHO in
4754 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4755 $as_echo "printf" >&6; } ;;
4756 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4757 $as_echo "print -r" >&6; } ;;
4758 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4759 $as_echo "cat" >&6; } ;;
4760 esac
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4776 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4777 if ${ac_cv_path_SED+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781 for ac_i in 1 2 3 4 5 6 7; do
4782 ac_script="$ac_script$as_nl$ac_script"
4783 done
4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785 { ac_script=; unset ac_script;}
4786 if test -z "$SED"; then
4787 ac_path_SED_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_prog in sed gsed; do
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4797 as_fn_executable_p "$ac_path_SED" || continue
4798 # Check for GNU ac_path_SED and select it if it is found.
4799 # Check for GNU $ac_path_SED
4800 case `"$ac_path_SED" --version 2>&1` in
4801 *GNU*)
4802 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4803 *)
4804 ac_count=0
4805 $as_echo_n 0123456789 >"conftest.in"
4806 while :
4807 do
4808 cat "conftest.in" "conftest.in" >"conftest.tmp"
4809 mv "conftest.tmp" "conftest.in"
4810 cp "conftest.in" "conftest.nl"
4811 $as_echo '' >> "conftest.nl"
4812 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814 as_fn_arith $ac_count + 1 && ac_count=$as_val
4815 if test $ac_count -gt ${ac_path_SED_max-0}; then
4816 # Best one so far, save it but keep looking for a better one
4817 ac_cv_path_SED="$ac_path_SED"
4818 ac_path_SED_max=$ac_count
4819 fi
4820 # 10*(2^10) chars as input seems more than enough
4821 test $ac_count -gt 10 && break
4822 done
4823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 esac
4825
4826 $ac_path_SED_found && break 3
4827 done
4828 done
4829 done
4830 IFS=$as_save_IFS
4831 if test -z "$ac_cv_path_SED"; then
4832 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4833 fi
4834 else
4835 ac_cv_path_SED=$SED
4836 fi
4837
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4840 $as_echo "$ac_cv_path_SED" >&6; }
4841 SED="$ac_cv_path_SED"
4842 rm -f conftest.sed
4843
4844 test -z "$SED" && SED=sed
4845 Xsed="$SED -e 1s/^X//"
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4859 if ${ac_cv_path_GREP+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -z "$GREP"; then
4863 ac_path_GREP_found=false
4864 # Loop through the user's path and test for each of PROGNAME-LIST
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_prog in grep ggrep; do
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4873 as_fn_executable_p "$ac_path_GREP" || continue
4874 # Check for GNU ac_path_GREP and select it if it is found.
4875 # Check for GNU $ac_path_GREP
4876 case `"$ac_path_GREP" --version 2>&1` in
4877 *GNU*)
4878 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4879 *)
4880 ac_count=0
4881 $as_echo_n 0123456789 >"conftest.in"
4882 while :
4883 do
4884 cat "conftest.in" "conftest.in" >"conftest.tmp"
4885 mv "conftest.tmp" "conftest.in"
4886 cp "conftest.in" "conftest.nl"
4887 $as_echo 'GREP' >> "conftest.nl"
4888 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890 as_fn_arith $ac_count + 1 && ac_count=$as_val
4891 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4892 # Best one so far, save it but keep looking for a better one
4893 ac_cv_path_GREP="$ac_path_GREP"
4894 ac_path_GREP_max=$ac_count
4895 fi
4896 # 10*(2^10) chars as input seems more than enough
4897 test $ac_count -gt 10 && break
4898 done
4899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 esac
4901
4902 $ac_path_GREP_found && break 3
4903 done
4904 done
4905 done
4906 IFS=$as_save_IFS
4907 if test -z "$ac_cv_path_GREP"; then
4908 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909 fi
4910 else
4911 ac_cv_path_GREP=$GREP
4912 fi
4913
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4916 $as_echo "$ac_cv_path_GREP" >&6; }
4917 GREP="$ac_cv_path_GREP"
4918
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4921 $as_echo_n "checking for egrep... " >&6; }
4922 if ${ac_cv_path_EGREP+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4926 then ac_cv_path_EGREP="$GREP -E"
4927 else
4928 if test -z "$EGREP"; then
4929 ac_path_EGREP_found=false
4930 # Loop through the user's path and test for each of PROGNAME-LIST
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_prog in egrep; do
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4939 as_fn_executable_p "$ac_path_EGREP" || continue
4940 # Check for GNU ac_path_EGREP and select it if it is found.
4941 # Check for GNU $ac_path_EGREP
4942 case `"$ac_path_EGREP" --version 2>&1` in
4943 *GNU*)
4944 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4945 *)
4946 ac_count=0
4947 $as_echo_n 0123456789 >"conftest.in"
4948 while :
4949 do
4950 cat "conftest.in" "conftest.in" >"conftest.tmp"
4951 mv "conftest.tmp" "conftest.in"
4952 cp "conftest.in" "conftest.nl"
4953 $as_echo 'EGREP' >> "conftest.nl"
4954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4956 as_fn_arith $ac_count + 1 && ac_count=$as_val
4957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4958 # Best one so far, save it but keep looking for a better one
4959 ac_cv_path_EGREP="$ac_path_EGREP"
4960 ac_path_EGREP_max=$ac_count
4961 fi
4962 # 10*(2^10) chars as input seems more than enough
4963 test $ac_count -gt 10 && break
4964 done
4965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4966 esac
4967
4968 $ac_path_EGREP_found && break 3
4969 done
4970 done
4971 done
4972 IFS=$as_save_IFS
4973 if test -z "$ac_cv_path_EGREP"; then
4974 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4975 fi
4976 else
4977 ac_cv_path_EGREP=$EGREP
4978 fi
4979
4980 fi
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4983 $as_echo "$ac_cv_path_EGREP" >&6; }
4984 EGREP="$ac_cv_path_EGREP"
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4988 $as_echo_n "checking for fgrep... " >&6; }
4989 if ${ac_cv_path_FGREP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4993 then ac_cv_path_FGREP="$GREP -F"
4994 else
4995 if test -z "$FGREP"; then
4996 ac_path_FGREP_found=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_prog in fgrep; do
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5006 as_fn_executable_p "$ac_path_FGREP" || continue
5007 # Check for GNU ac_path_FGREP and select it if it is found.
5008 # Check for GNU $ac_path_FGREP
5009 case `"$ac_path_FGREP" --version 2>&1` in
5010 *GNU*)
5011 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5012 *)
5013 ac_count=0
5014 $as_echo_n 0123456789 >"conftest.in"
5015 while :
5016 do
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'FGREP' >> "conftest.nl"
5021 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023 as_fn_arith $ac_count + 1 && ac_count=$as_val
5024 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_FGREP="$ac_path_FGREP"
5027 ac_path_FGREP_max=$ac_count
5028 fi
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5031 done
5032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5034
5035 $ac_path_FGREP_found && break 3
5036 done
5037 done
5038 done
5039 IFS=$as_save_IFS
5040 if test -z "$ac_cv_path_FGREP"; then
5041 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042 fi
5043 else
5044 ac_cv_path_FGREP=$FGREP
5045 fi
5046
5047 fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5050 $as_echo "$ac_cv_path_FGREP" >&6; }
5051 FGREP="$ac_cv_path_FGREP"
5052
5053
5054 test -z "$GREP" && GREP=grep
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 # Check whether --with-gnu-ld was given.
5075 if test "${with_gnu_ld+set}" = set; then :
5076 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5077 else
5078 with_gnu_ld=no
5079 fi
5080
5081 ac_prog=ld
5082 if test yes = "$GCC"; then
5083 # Check if gcc -print-prog-name=ld gives a path.
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5085 $as_echo_n "checking for ld used by $CC... " >&6; }
5086 case $host in
5087 *-*-mingw*)
5088 # gcc leaves a trailing carriage return, which upsets mingw
5089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5090 *)
5091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5092 esac
5093 case $ac_prog in
5094 # Accept absolute paths.
5095 [\\/]* | ?:[\\/]*)
5096 re_direlt='/[^/][^/]*/\.\./'
5097 # Canonicalize the pathname of ld
5098 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5099 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5100 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5101 done
5102 test -z "$LD" && LD=$ac_prog
5103 ;;
5104 "")
5105 # If it fails, then pretend we aren't using GCC.
5106 ac_prog=ld
5107 ;;
5108 *)
5109 # If it is relative, then search for the first ld in PATH.
5110 with_gnu_ld=unknown
5111 ;;
5112 esac
5113 elif test yes = "$with_gnu_ld"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5115 $as_echo_n "checking for GNU ld... " >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5118 $as_echo_n "checking for non-GNU ld... " >&6; }
5119 fi
5120 if ${lt_cv_path_LD+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -z "$LD"; then
5124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5125 for ac_dir in $PATH; do
5126 IFS=$lt_save_ifs
5127 test -z "$ac_dir" && ac_dir=.
5128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5129 lt_cv_path_LD=$ac_dir/$ac_prog
5130 # Check to see if the program is GNU ld. I'd rather use --version,
5131 # but apparently some variants of GNU ld only accept -v.
5132 # Break only if it was the GNU/non-GNU ld that we prefer.
5133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5134 *GNU* | *'with BFD'*)
5135 test no != "$with_gnu_ld" && break
5136 ;;
5137 *)
5138 test yes != "$with_gnu_ld" && break
5139 ;;
5140 esac
5141 fi
5142 done
5143 IFS=$lt_save_ifs
5144 else
5145 lt_cv_path_LD=$LD # Let the user override the test with a path.
5146 fi
5147 fi
5148
5149 LD=$lt_cv_path_LD
5150 if test -n "$LD"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5152 $as_echo "$LD" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5160 if ${lt_cv_prog_gnu_ld+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164 case `$LD -v 2>&1 </dev/null` in
5165 *GNU* | *'with BFD'*)
5166 lt_cv_prog_gnu_ld=yes
5167 ;;
5168 *)
5169 lt_cv_prog_gnu_ld=no
5170 ;;
5171 esac
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5175 with_gnu_ld=$lt_cv_prog_gnu_ld
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5186 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5187 if ${lt_cv_path_NM+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$NM"; then
5191 # Let the user override the test.
5192 lt_cv_path_NM=$NM
5193 else
5194 lt_nm_to_check=${ac_tool_prefix}nm
5195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5196 lt_nm_to_check="$lt_nm_to_check nm"
5197 fi
5198 for lt_tmp_nm in $lt_nm_to_check; do
5199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5201 IFS=$lt_save_ifs
5202 test -z "$ac_dir" && ac_dir=.
5203 tmp_nm=$ac_dir/$lt_tmp_nm
5204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5205 # Check to see if the nm accepts a BSD-compat flag.
5206 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5207 # nm: unknown option "B" ignored
5208 # Tru64's nm complains that /dev/null is an invalid object file
5209 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5210 case $build_os in
5211 mingw*) lt_bad_file=conftest.nm/nofile ;;
5212 *) lt_bad_file=/dev/null ;;
5213 esac
5214 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5215 *$lt_bad_file* | *'Invalid file or object type'*)
5216 lt_cv_path_NM="$tmp_nm -B"
5217 break 2
5218 ;;
5219 *)
5220 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5221 */dev/null*)
5222 lt_cv_path_NM="$tmp_nm -p"
5223 break 2
5224 ;;
5225 *)
5226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5227 continue # so that we can try to find one that supports BSD flags
5228 ;;
5229 esac
5230 ;;
5231 esac
5232 fi
5233 done
5234 IFS=$lt_save_ifs
5235 done
5236 : ${lt_cv_path_NM=no}
5237 fi
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5240 $as_echo "$lt_cv_path_NM" >&6; }
5241 if test no != "$lt_cv_path_NM"; then
5242 NM=$lt_cv_path_NM
5243 else
5244 # Didn't find any BSD compatible name lister, look for dumpbin.
5245 if test -n "$DUMPBIN"; then :
5246 # Let the user override the test.
5247 else
5248 if test -n "$ac_tool_prefix"; then
5249 for ac_prog in dumpbin "link -dump"
5250 do
5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_DUMPBIN+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$DUMPBIN"; then
5259 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 DUMPBIN=$ac_cv_prog_DUMPBIN
5279 if test -n "$DUMPBIN"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5281 $as_echo "$DUMPBIN" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287
5288 test -n "$DUMPBIN" && break
5289 done
5290 fi
5291 if test -z "$DUMPBIN"; then
5292 ac_ct_DUMPBIN=$DUMPBIN
5293 for ac_prog in dumpbin "link -dump"
5294 do
5295 # Extract the first word of "$ac_prog", so it can be a program name with args.
5296 set dummy $ac_prog; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$ac_ct_DUMPBIN"; then
5303 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316 done
5317 done
5318 IFS=$as_save_IFS
5319
5320 fi
5321 fi
5322 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5323 if test -n "$ac_ct_DUMPBIN"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5325 $as_echo "$ac_ct_DUMPBIN" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330
5331
5332 test -n "$ac_ct_DUMPBIN" && break
5333 done
5334
5335 if test "x$ac_ct_DUMPBIN" = x; then
5336 DUMPBIN=":"
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339 yes:)
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344 DUMPBIN=$ac_ct_DUMPBIN
5345 fi
5346 fi
5347
5348 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5349 *COFF*)
5350 DUMPBIN="$DUMPBIN -symbols -headers"
5351 ;;
5352 *)
5353 DUMPBIN=:
5354 ;;
5355 esac
5356 fi
5357
5358 if test : != "$DUMPBIN"; then
5359 NM=$DUMPBIN
5360 fi
5361 fi
5362 test -z "$NM" && NM=nm
5363
5364
5365
5366
5367
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5370 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5371 if ${lt_cv_nm_interface+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 lt_cv_nm_interface="BSD nm"
5375 echo "int some_variable = 0;" > conftest.$ac_ext
5376 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5377 (eval "$ac_compile" 2>conftest.err)
5378 cat conftest.err >&5
5379 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5380 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5381 cat conftest.err >&5
5382 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5383 cat conftest.out >&5
5384 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5385 lt_cv_nm_interface="MS dumpbin"
5386 fi
5387 rm -f conftest*
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5390 $as_echo "$lt_cv_nm_interface" >&6; }
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5393 $as_echo_n "checking whether ln -s works... " >&6; }
5394 LN_S=$as_ln_s
5395 if test "$LN_S" = "ln -s"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5400 $as_echo "no, using $LN_S" >&6; }
5401 fi
5402
5403 # find the maximum length of command line arguments
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5405 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5406 if ${lt_cv_sys_max_cmd_len+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 i=0
5410 teststring=ABCD
5411
5412 case $build_os in
5413 msdosdjgpp*)
5414 # On DJGPP, this test can blow up pretty badly due to problems in libc
5415 # (any single argument exceeding 2000 bytes causes a buffer overrun
5416 # during glob expansion). Even if it were fixed, the result of this
5417 # check would be larger than it should be.
5418 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5419 ;;
5420
5421 gnu*)
5422 # Under GNU Hurd, this test is not required because there is
5423 # no limit to the length of command line arguments.
5424 # Libtool will interpret -1 as no limit whatsoever
5425 lt_cv_sys_max_cmd_len=-1;
5426 ;;
5427
5428 cygwin* | mingw* | cegcc*)
5429 # On Win9x/ME, this test blows up -- it succeeds, but takes
5430 # about 5 minutes as the teststring grows exponentially.
5431 # Worse, since 9x/ME are not pre-emptively multitasking,
5432 # you end up with a "frozen" computer, even though with patience
5433 # the test eventually succeeds (with a max line length of 256k).
5434 # Instead, let's just punt: use the minimum linelength reported by
5435 # all of the supported platforms: 8192 (on NT/2K/XP).
5436 lt_cv_sys_max_cmd_len=8192;
5437 ;;
5438
5439 mint*)
5440 # On MiNT this can take a long time and run out of memory.
5441 lt_cv_sys_max_cmd_len=8192;
5442 ;;
5443
5444 amigaos*)
5445 # On AmigaOS with pdksh, this test takes hours, literally.
5446 # So we just punt and use a minimum line length of 8192.
5447 lt_cv_sys_max_cmd_len=8192;
5448 ;;
5449
5450 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5451 # This has been around since 386BSD, at least. Likely further.
5452 if test -x /sbin/sysctl; then
5453 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5454 elif test -x /usr/sbin/sysctl; then
5455 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5456 else
5457 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5458 fi
5459 # And add a safety zone
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5462 ;;
5463
5464 interix*)
5465 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5466 lt_cv_sys_max_cmd_len=196608
5467 ;;
5468
5469 os2*)
5470 # The test takes a long time on OS/2.
5471 lt_cv_sys_max_cmd_len=8192
5472 ;;
5473
5474 osf*)
5475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5477 # nice to cause kernel panics so lets avoid the loop below.
5478 # First set a reasonable default.
5479 lt_cv_sys_max_cmd_len=16384
5480 #
5481 if test -x /sbin/sysconfig; then
5482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5483 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5484 esac
5485 fi
5486 ;;
5487 sco3.2v5*)
5488 lt_cv_sys_max_cmd_len=102400
5489 ;;
5490 sysv5* | sco5v6* | sysv4.2uw2*)
5491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5492 if test -n "$kargmax"; then
5493 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5494 else
5495 lt_cv_sys_max_cmd_len=32768
5496 fi
5497 ;;
5498 *)
5499 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5500 if test -n "$lt_cv_sys_max_cmd_len" && \
5501 test undefined != "$lt_cv_sys_max_cmd_len"; then
5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5504 else
5505 # Make teststring a little bigger before we do anything with it.
5506 # a 1K string should be a reasonable start.
5507 for i in 1 2 3 4 5 6 7 8; do
5508 teststring=$teststring$teststring
5509 done
5510 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5511 # If test is not a shell built-in, we'll probably end up computing a
5512 # maximum length that is only half of the actual maximum length, but
5513 # we can't tell.
5514 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5515 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5516 test 17 != "$i" # 1/2 MB should be enough
5517 do
5518 i=`expr $i + 1`
5519 teststring=$teststring$teststring
5520 done
5521 # Only check the string length outside the loop.
5522 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5523 teststring=
5524 # Add a significant safety factor because C++ compilers can tack on
5525 # massive amounts of additional arguments before passing them to the
5526 # linker. It appears as though 1/2 is a usable value.
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5528 fi
5529 ;;
5530 esac
5531
5532 fi
5533
5534 if test -n "$lt_cv_sys_max_cmd_len"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5536 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5539 $as_echo "none" >&6; }
5540 fi
5541 max_cmd_len=$lt_cv_sys_max_cmd_len
5542
5543
5544
5545
5546
5547
5548 : ${CP="cp -f"}
5549 : ${MV="mv -f"}
5550 : ${RM="rm -f"}
5551
5552 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5553 lt_unset=unset
5554 else
5555 lt_unset=false
5556 fi
5557
5558
5559
5560
5561
5562 # test EBCDIC or ASCII
5563 case `echo X|tr X '\101'` in
5564 A) # ASCII based system
5565 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5566 lt_SP2NL='tr \040 \012'
5567 lt_NL2SP='tr \015\012 \040\040'
5568 ;;
5569 *) # EBCDIC based system
5570 lt_SP2NL='tr \100 \n'
5571 lt_NL2SP='tr \r\n \100\100'
5572 ;;
5573 esac
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5584 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5585 if ${lt_cv_to_host_file_cmd+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 case $host in
5589 *-*-mingw* )
5590 case $build in
5591 *-*-mingw* ) # actually msys
5592 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5593 ;;
5594 *-*-cygwin* )
5595 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5596 ;;
5597 * ) # otherwise, assume *nix
5598 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5599 ;;
5600 esac
5601 ;;
5602 *-*-cygwin* )
5603 case $build in
5604 *-*-mingw* ) # actually msys
5605 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5606 ;;
5607 *-*-cygwin* )
5608 lt_cv_to_host_file_cmd=func_convert_file_noop
5609 ;;
5610 * ) # otherwise, assume *nix
5611 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5612 ;;
5613 esac
5614 ;;
5615 * ) # unhandled hosts (and "normal" native builds)
5616 lt_cv_to_host_file_cmd=func_convert_file_noop
5617 ;;
5618 esac
5619
5620 fi
5621
5622 to_host_file_cmd=$lt_cv_to_host_file_cmd
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5624 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5625
5626
5627
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5631 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5632 if ${lt_cv_to_tool_file_cmd+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 #assume ordinary cross tools, or native build.
5636 lt_cv_to_tool_file_cmd=func_convert_file_noop
5637 case $host in
5638 *-*-mingw* )
5639 case $build in
5640 *-*-mingw* ) # actually msys
5641 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5642 ;;
5643 esac
5644 ;;
5645 esac
5646
5647 fi
5648
5649 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5651 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5652
5653
5654
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5658 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5659 if ${lt_cv_ld_reload_flag+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 lt_cv_ld_reload_flag='-r'
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5665 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5666 reload_flag=$lt_cv_ld_reload_flag
5667 case $reload_flag in
5668 "" | " "*) ;;
5669 *) reload_flag=" $reload_flag" ;;
5670 esac
5671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5672 case $host_os in
5673 cygwin* | mingw* | pw32* | cegcc*)
5674 if test yes != "$GCC"; then
5675 reload_cmds=false
5676 fi
5677 ;;
5678 darwin*)
5679 if test yes = "$GCC"; then
5680 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5681 else
5682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5683 fi
5684 ;;
5685 esac
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_OBJDUMP+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$OBJDUMP"; then
5704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 OBJDUMP=$ac_cv_prog_OBJDUMP
5724 if test -n "$OBJDUMP"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5726 $as_echo "$OBJDUMP" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 fi
5734 if test -z "$ac_cv_prog_OBJDUMP"; then
5735 ac_ct_OBJDUMP=$OBJDUMP
5736 # Extract the first word of "objdump", so it can be a program name with args.
5737 set dummy objdump; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$ac_ct_OBJDUMP"; then
5744 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5756 fi
5757 done
5758 done
5759 IFS=$as_save_IFS
5760
5761 fi
5762 fi
5763 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5764 if test -n "$ac_ct_OBJDUMP"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5766 $as_echo "$ac_ct_OBJDUMP" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770 fi
5771
5772 if test "x$ac_ct_OBJDUMP" = x; then
5773 OBJDUMP="false"
5774 else
5775 case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781 OBJDUMP=$ac_ct_OBJDUMP
5782 fi
5783 else
5784 OBJDUMP="$ac_cv_prog_OBJDUMP"
5785 fi
5786
5787 test -z "$OBJDUMP" && OBJDUMP=objdump
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5798 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5799 if ${lt_cv_deplibs_check_method+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 lt_cv_file_magic_cmd='$MAGIC_CMD'
5803 lt_cv_file_magic_test_file=
5804 lt_cv_deplibs_check_method='unknown'
5805 # Need to set the preceding variable on all platforms that support
5806 # interlibrary dependencies.
5807 # 'none' -- dependencies not supported.
5808 # 'unknown' -- same as none, but documents that we really don't know.
5809 # 'pass_all' -- all dependencies passed with no checks.
5810 # 'test_compile' -- check by making test program.
5811 # 'file_magic [[regex]]' -- check by looking for files in library path
5812 # that responds to the $file_magic_cmd with a given extended regex.
5813 # If you have 'file' or equivalent on your system and you're not sure
5814 # whether 'pass_all' will *always* work, you probably want this one.
5815
5816 case $host_os in
5817 aix[4-9]*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820
5821 beos*)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825 bsdi[45]*)
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5827 lt_cv_file_magic_cmd='/usr/bin/file -L'
5828 lt_cv_file_magic_test_file=/shlib/libc.so
5829 ;;
5830
5831 cygwin*)
5832 # func_win32_libid is a shell function defined in ltmain.sh
5833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834 lt_cv_file_magic_cmd='func_win32_libid'
5835 ;;
5836
5837 mingw* | pw32*)
5838 # Base MSYS/MinGW do not provide the 'file' command needed by
5839 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5840 # unless we find 'file', for example because we are cross-compiling.
5841 if ( file / ) >/dev/null 2>&1; then
5842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5843 lt_cv_file_magic_cmd='func_win32_libid'
5844 else
5845 # Keep this pattern in sync with the one in func_win32_libid.
5846 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5847 lt_cv_file_magic_cmd='$OBJDUMP -f'
5848 fi
5849 ;;
5850
5851 cegcc*)
5852 # use the weaker test based on 'objdump'. See mingw*.
5853 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5854 lt_cv_file_magic_cmd='$OBJDUMP -f'
5855 ;;
5856
5857 darwin* | rhapsody*)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860
5861 freebsd* | dragonfly*)
5862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5863 case $host_cpu in
5864 i*86 )
5865 # Not sure whether the presence of OpenBSD here was a mistake.
5866 # Let's accept both of them until this is cleared up.
5867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5868 lt_cv_file_magic_cmd=/usr/bin/file
5869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5870 ;;
5871 esac
5872 else
5873 lt_cv_deplibs_check_method=pass_all
5874 fi
5875 ;;
5876
5877 haiku*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881 hpux10.20* | hpux11*)
5882 lt_cv_file_magic_cmd=/usr/bin/file
5883 case $host_cpu in
5884 ia64*)
5885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5886 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5887 ;;
5888 hppa*64*)
5889 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]'
5890 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5891 ;;
5892 *)
5893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5894 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5895 ;;
5896 esac
5897 ;;
5898
5899 interix[3-9]*)
5900 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5902 ;;
5903
5904 irix5* | irix6* | nonstopux*)
5905 case $LD in
5906 *-32|*"-32 ") libmagic=32-bit;;
5907 *-n32|*"-n32 ") libmagic=N32;;
5908 *-64|*"-64 ") libmagic=64-bit;;
5909 *) libmagic=never-match;;
5910 esac
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
5913
5914 # This must be glibc/ELF.
5915 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
5919 netbsd*)
5920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5922 else
5923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5924 fi
5925 ;;
5926
5927 newos6*)
5928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5929 lt_cv_file_magic_cmd=/usr/bin/file
5930 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5931 ;;
5932
5933 *nto* | *qnx*)
5934 lt_cv_deplibs_check_method=pass_all
5935 ;;
5936
5937 openbsd* | bitrig*)
5938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5940 else
5941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5942 fi
5943 ;;
5944
5945 osf3* | osf4* | osf5*)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948
5949 rdos*)
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952
5953 solaris*)
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956
5957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5958 lt_cv_deplibs_check_method=pass_all
5959 ;;
5960
5961 sysv4 | sysv4.3*)
5962 case $host_vendor in
5963 motorola)
5964 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]'
5965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5966 ;;
5967 ncr)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970 sequent)
5971 lt_cv_file_magic_cmd='/bin/file'
5972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5973 ;;
5974 sni)
5975 lt_cv_file_magic_cmd='/bin/file'
5976 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5977 lt_cv_file_magic_test_file=/lib/libc.so
5978 ;;
5979 siemens)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982 pc)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985 esac
5986 ;;
5987
5988 tpf*)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991 os2*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994 esac
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5999
6000 file_magic_glob=
6001 want_nocaseglob=no
6002 if test "$build" = "$host"; then
6003 case $host_os in
6004 mingw* | pw32*)
6005 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6006 want_nocaseglob=yes
6007 else
6008 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6009 fi
6010 ;;
6011 esac
6012 fi
6013
6014 file_magic_cmd=$lt_cv_file_magic_cmd
6015 deplibs_check_method=$lt_cv_deplibs_check_method
6016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 if test -n "$ac_tool_prefix"; then
6040 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_DLLTOOL+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 if test -n "$DLLTOOL"; then
6048 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 DLLTOOL=$ac_cv_prog_DLLTOOL
6068 if test -n "$DLLTOOL"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6070 $as_echo "$DLLTOOL" >&6; }
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6074 fi
6075
6076
6077 fi
6078 if test -z "$ac_cv_prog_DLLTOOL"; then
6079 ac_ct_DLLTOOL=$DLLTOOL
6080 # Extract the first word of "dlltool", so it can be a program name with args.
6081 set dummy dlltool; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if test -n "$ac_ct_DLLTOOL"; then
6088 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6108 if test -n "$ac_ct_DLLTOOL"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6110 $as_echo "$ac_ct_DLLTOOL" >&6; }
6111 else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116 if test "x$ac_ct_DLLTOOL" = x; then
6117 DLLTOOL="false"
6118 else
6119 case $cross_compiling:$ac_tool_warned in
6120 yes:)
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6123 ac_tool_warned=yes ;;
6124 esac
6125 DLLTOOL=$ac_ct_DLLTOOL
6126 fi
6127 else
6128 DLLTOOL="$ac_cv_prog_DLLTOOL"
6129 fi
6130
6131 test -z "$DLLTOOL" && DLLTOOL=dlltool
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6143 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6144 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 lt_cv_sharedlib_from_linklib_cmd='unknown'
6148
6149 case $host_os in
6150 cygwin* | mingw* | pw32* | cegcc*)
6151 # two different shell functions defined in ltmain.sh;
6152 # decide which one to use based on capabilities of $DLLTOOL
6153 case `$DLLTOOL --help 2>&1` in
6154 *--identify-strict*)
6155 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6156 ;;
6157 *)
6158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6159 ;;
6160 esac
6161 ;;
6162 *)
6163 # fallback: assume linklib IS sharedlib
6164 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6165 ;;
6166 esac
6167
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6170 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6171 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6172 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6173
6174
6175
6176
6177
6178
6179
6180
6181 if test -n "$ac_tool_prefix"; then
6182 for ac_prog in ar
6183 do
6184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_AR+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$AR"; then
6192 ac_cv_prog_AR="$AR" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 AR=$ac_cv_prog_AR
6212 if test -n "$AR"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6214 $as_echo "$AR" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 test -n "$AR" && break
6222 done
6223 fi
6224 if test -z "$AR"; then
6225 ac_ct_AR=$AR
6226 for ac_prog in ar
6227 do
6228 # Extract the first word of "$ac_prog", so it can be a program name with args.
6229 set dummy $ac_prog; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$ac_ct_AR"; then
6236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_AR="$ac_prog"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6256 if test -n "$ac_ct_AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6258 $as_echo "$ac_ct_AR" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264
6265 test -n "$ac_ct_AR" && break
6266 done
6267
6268 if test "x$ac_ct_AR" = x; then
6269 AR="false"
6270 else
6271 case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277 AR=$ac_ct_AR
6278 fi
6279 fi
6280
6281 : ${AR=ar}
6282 : ${AR_FLAGS=cru}
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6295 $as_echo_n "checking for archiver @FILE support... " >&6; }
6296 if ${lt_cv_ar_at_file+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 lt_cv_ar_at_file=no
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302
6303 int
6304 main ()
6305 {
6306
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 echo conftest.$ac_objext > conftest.lst
6313 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6315 (eval $lt_ar_try) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }
6319 if test 0 -eq "$ac_status"; then
6320 # Ensure the archiver fails upon bogus file names.
6321 rm -f conftest.$ac_objext libconftest.a
6322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6323 (eval $lt_ar_try) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }
6327 if test 0 -ne "$ac_status"; then
6328 lt_cv_ar_at_file=@
6329 fi
6330 fi
6331 rm -f conftest.* libconftest.a
6332
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6338 $as_echo "$lt_cv_ar_at_file" >&6; }
6339
6340 if test no = "$lt_cv_ar_at_file"; then
6341 archiver_list_spec=
6342 else
6343 archiver_list_spec=$lt_cv_ar_at_file
6344 fi
6345
6346
6347
6348
6349
6350
6351
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}strip; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_STRIP+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 if test -n "$STRIP"; then
6361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 STRIP=$ac_cv_prog_STRIP
6381 if test -n "$STRIP"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6383 $as_echo "$STRIP" >&6; }
6384 else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_STRIP"; then
6392 ac_ct_STRIP=$STRIP
6393 # Extract the first word of "strip", so it can be a program name with args.
6394 set dummy strip; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$ac_ct_STRIP"; then
6401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_ac_ct_STRIP="strip"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6421 if test -n "$ac_ct_STRIP"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6423 $as_echo "$ac_ct_STRIP" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429 if test "x$ac_ct_STRIP" = x; then
6430 STRIP=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438 STRIP=$ac_ct_STRIP
6439 fi
6440 else
6441 STRIP="$ac_cv_prog_STRIP"
6442 fi
6443
6444 test -z "$STRIP" && STRIP=:
6445
6446
6447
6448
6449
6450
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_RANLIB+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$RANLIB"; then
6460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6482 $as_echo "$RANLIB" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488
6489 fi
6490 if test -z "$ac_cv_prog_RANLIB"; then
6491 ac_ct_RANLIB=$RANLIB
6492 # Extract the first word of "ranlib", so it can be a program name with args.
6493 set dummy ranlib; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$ac_ct_RANLIB"; then
6500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_ac_ct_RANLIB="ranlib"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520 if test -n "$ac_ct_RANLIB"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6522 $as_echo "$ac_ct_RANLIB" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528 if test "x$ac_ct_RANLIB" = x; then
6529 RANLIB=":"
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537 RANLIB=$ac_ct_RANLIB
6538 fi
6539 else
6540 RANLIB="$ac_cv_prog_RANLIB"
6541 fi
6542
6543 test -z "$RANLIB" && RANLIB=:
6544
6545
6546
6547
6548
6549
6550 # Determine commands to create old-style static archives.
6551 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6552 old_postinstall_cmds='chmod 644 $oldlib'
6553 old_postuninstall_cmds=
6554
6555 if test -n "$RANLIB"; then
6556 case $host_os in
6557 bitrig* | openbsd*)
6558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6559 ;;
6560 *)
6561 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6562 ;;
6563 esac
6564 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6565 fi
6566
6567 case $host_os in
6568 darwin*)
6569 lock_old_archive_extraction=yes ;;
6570 *)
6571 lock_old_archive_extraction=no ;;
6572 esac
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612 # If no C compiler was specified, use CC.
6613 LTCC=${LTCC-"$CC"}
6614
6615 # If no C compiler flags were specified, use CFLAGS.
6616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6617
6618 # Allow CC to be a program name with arguments.
6619 compiler=$CC
6620
6621
6622 # Check for command to grab the raw symbol name followed by C symbol from nm.
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6625 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628
6629 # These are sane defaults that work on at least a few old systems.
6630 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6631
6632 # Character class describing NM global symbol codes.
6633 symcode='[BCDEGRST]'
6634
6635 # Regexp to match symbols that can be accessed directly from C.
6636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6637
6638 # Define system-specific variables.
6639 case $host_os in
6640 aix*)
6641 symcode='[BCDT]'
6642 ;;
6643 cygwin* | mingw* | pw32* | cegcc*)
6644 symcode='[ABCDGISTW]'
6645 ;;
6646 hpux*)
6647 if test ia64 = "$host_cpu"; then
6648 symcode='[ABCDEGRST]'
6649 fi
6650 ;;
6651 irix* | nonstopux*)
6652 symcode='[BCDEGRST]'
6653 ;;
6654 osf*)
6655 symcode='[BCDEGQRST]'
6656 ;;
6657 solaris*)
6658 symcode='[BDRT]'
6659 ;;
6660 sco3.2v5*)
6661 symcode='[DT]'
6662 ;;
6663 sysv4.2uw2*)
6664 symcode='[DT]'
6665 ;;
6666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6667 symcode='[ABDT]'
6668 ;;
6669 sysv4)
6670 symcode='[DFNSTU]'
6671 ;;
6672 esac
6673
6674 # If we're using GNU nm, then use its standard symbol codes.
6675 case `$NM -V 2>&1` in
6676 *GNU* | *'with BFD'*)
6677 symcode='[ABCDGIRSTW]' ;;
6678 esac
6679
6680 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6681 # Gets list of data symbols to import.
6682 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6683 # Adjust the below global symbol transforms to fixup imported variables.
6684 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6685 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6686 lt_c_name_lib_hook="\
6687 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6688 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6689 else
6690 # Disable hooks by default.
6691 lt_cv_sys_global_symbol_to_import=
6692 lt_cdecl_hook=
6693 lt_c_name_hook=
6694 lt_c_name_lib_hook=
6695 fi
6696
6697 # Transform an extracted symbol line into a proper C declaration.
6698 # Some systems (esp. on ia64) link data and code symbols differently,
6699 # so use this general approach.
6700 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6701 $lt_cdecl_hook\
6702 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6703 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6704
6705 # Transform an extracted symbol line into symbol name and symbol address
6706 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6707 $lt_c_name_hook\
6708 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6709 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6710
6711 # Transform an extracted symbol line into symbol name with lib prefix and
6712 # symbol address.
6713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6714 $lt_c_name_lib_hook\
6715 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6716 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6717 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6718
6719 # Handle CRLF in mingw tool chain
6720 opt_cr=
6721 case $build_os in
6722 mingw*)
6723 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6724 ;;
6725 esac
6726
6727 # Try without a prefix underscore, then with it.
6728 for ac_symprfx in "" "_"; do
6729
6730 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6731 symxfrm="\\1 $ac_symprfx\\2 \\2"
6732
6733 # Write the raw and C identifiers.
6734 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6735 # Fake it for dumpbin and say T for any non-static function,
6736 # D for any global variable and I for any imported variable.
6737 # Also find C++ and __fastcall symbols from MSVC++,
6738 # which start with @ or ?.
6739 lt_cv_sys_global_symbol_pipe="$AWK '"\
6740 " {last_section=section; section=\$ 3};"\
6741 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6742 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6743 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6744 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6745 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6746 " \$ 0!~/External *\|/{next};"\
6747 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6748 " {if(hide[section]) next};"\
6749 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6750 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6751 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6752 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6753 " ' prfx=^$ac_symprfx"
6754 else
6755 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6756 fi
6757 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6758
6759 # Check to see that the pipe works correctly.
6760 pipe_works=no
6761
6762 rm -f conftest*
6763 cat > conftest.$ac_ext <<_LT_EOF
6764 #ifdef __cplusplus
6765 extern "C" {
6766 #endif
6767 char nm_test_var;
6768 void nm_test_func(void);
6769 void nm_test_func(void){}
6770 #ifdef __cplusplus
6771 }
6772 #endif
6773 int main(){nm_test_var='a';nm_test_func();return(0);}
6774 _LT_EOF
6775
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6778 ac_status=$?
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 # Now try to grab the symbols.
6782 nlist=conftest.nm
6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6784 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6785 ac_status=$?
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; } && test -s "$nlist"; then
6788 # Try sorting and uniquifying the output.
6789 if sort "$nlist" | uniq > "$nlist"T; then
6790 mv -f "$nlist"T "$nlist"
6791 else
6792 rm -f "$nlist"T
6793 fi
6794
6795 # Make sure that we snagged all the symbols we need.
6796 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6797 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6798 cat <<_LT_EOF > conftest.$ac_ext
6799 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6800 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6801 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6802 relocations are performed -- see ld's documentation on pseudo-relocs. */
6803 # define LT_DLSYM_CONST
6804 #elif defined __osf__
6805 /* This system does not cope well with relocations in const data. */
6806 # define LT_DLSYM_CONST
6807 #else
6808 # define LT_DLSYM_CONST const
6809 #endif
6810
6811 #ifdef __cplusplus
6812 extern "C" {
6813 #endif
6814
6815 _LT_EOF
6816 # Now generate the symbol file.
6817 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6818
6819 cat <<_LT_EOF >> conftest.$ac_ext
6820
6821 /* The mapping between symbol names and symbols. */
6822 LT_DLSYM_CONST struct {
6823 const char *name;
6824 void *address;
6825 }
6826 lt__PROGRAM__LTX_preloaded_symbols[] =
6827 {
6828 { "@PROGRAM@", (void *) 0 },
6829 _LT_EOF
6830 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6831 cat <<\_LT_EOF >> conftest.$ac_ext
6832 {0, (void *) 0}
6833 };
6834
6835 /* This works around a problem in FreeBSD linker */
6836 #ifdef FREEBSD_WORKAROUND
6837 static const void *lt_preloaded_setup() {
6838 return lt__PROGRAM__LTX_preloaded_symbols;
6839 }
6840 #endif
6841
6842 #ifdef __cplusplus
6843 }
6844 #endif
6845 _LT_EOF
6846 # Now try linking the two files.
6847 mv conftest.$ac_objext conftstm.$ac_objext
6848 lt_globsym_save_LIBS=$LIBS
6849 lt_globsym_save_CFLAGS=$CFLAGS
6850 LIBS=conftstm.$ac_objext
6851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6853 (eval $ac_link) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6857 pipe_works=yes
6858 fi
6859 LIBS=$lt_globsym_save_LIBS
6860 CFLAGS=$lt_globsym_save_CFLAGS
6861 else
6862 echo "cannot find nm_test_func in $nlist" >&5
6863 fi
6864 else
6865 echo "cannot find nm_test_var in $nlist" >&5
6866 fi
6867 else
6868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869 fi
6870 else
6871 echo "$progname: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 fi
6874 rm -rf conftest* conftst*
6875
6876 # Do not use the global_symbol_pipe unless it works.
6877 if test yes = "$pipe_works"; then
6878 break
6879 else
6880 lt_cv_sys_global_symbol_pipe=
6881 fi
6882 done
6883
6884 fi
6885
6886 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887 lt_cv_sys_global_symbol_to_cdecl=
6888 fi
6889 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6891 $as_echo "failed" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6894 $as_echo "ok" >&6; }
6895 fi
6896
6897 # Response file support.
6898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6899 nm_file_list_spec='@'
6900 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6901 nm_file_list_spec='@'
6902 fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6941 $as_echo_n "checking for sysroot... " >&6; }
6942
6943 # Check whether --with-sysroot was given.
6944 if test "${with_sysroot+set}" = set; then :
6945 withval=$with_sysroot;
6946 else
6947 with_sysroot=no
6948 fi
6949
6950
6951 lt_sysroot=
6952 case $with_sysroot in #(
6953 yes)
6954 if test yes = "$GCC"; then
6955 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6956 fi
6957 ;; #(
6958 /*)
6959 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6960 ;; #(
6961 no|'')
6962 ;; #(
6963 *)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6965 $as_echo "$with_sysroot" >&6; }
6966 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6967 ;;
6968 esac
6969
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6971 $as_echo "${lt_sysroot:-no}" >&6; }
6972
6973
6974
6975
6976
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6978 $as_echo_n "checking for a working dd... " >&6; }
6979 if ${ac_cv_path_lt_DD+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 printf 0123456789abcdef0123456789abcdef >conftest.i
6983 cat conftest.i conftest.i >conftest2.i
6984 : ${lt_DD:=$DD}
6985 if test -z "$lt_DD"; then
6986 ac_path_lt_DD_found=false
6987 # Loop through the user's path and test for each of PROGNAME-LIST
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_prog in dd; do
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6996 as_fn_executable_p "$ac_path_lt_DD" || continue
6997 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6998 cmp -s conftest.i conftest.out \
6999 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7000 fi
7001 $ac_path_lt_DD_found && break 3
7002 done
7003 done
7004 done
7005 IFS=$as_save_IFS
7006 if test -z "$ac_cv_path_lt_DD"; then
7007 :
7008 fi
7009 else
7010 ac_cv_path_lt_DD=$lt_DD
7011 fi
7012
7013 rm -f conftest.i conftest2.i conftest.out
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7016 $as_echo "$ac_cv_path_lt_DD" >&6; }
7017
7018
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7020 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7021 if ${lt_cv_truncate_bin+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 printf 0123456789abcdef0123456789abcdef >conftest.i
7025 cat conftest.i conftest.i >conftest2.i
7026 lt_cv_truncate_bin=
7027 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7028 cmp -s conftest.i conftest.out \
7029 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7030 fi
7031 rm -f conftest.i conftest2.i conftest.out
7032 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7035 $as_echo "$lt_cv_truncate_bin" >&6; }
7036
7037
7038
7039
7040
7041
7042
7043 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7044 func_cc_basename ()
7045 {
7046 for cc_temp in $*""; do
7047 case $cc_temp in
7048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7050 \-*) ;;
7051 *) break;;
7052 esac
7053 done
7054 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7055 }
7056
7057 # Check whether --enable-libtool-lock was given.
7058 if test "${enable_libtool_lock+set}" = set; then :
7059 enableval=$enable_libtool_lock;
7060 fi
7061
7062 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7063
7064 # Some flags need to be propagated to the compiler or linker for good
7065 # libtool support.
7066 case $host in
7067 ia64-*-hpux*)
7068 # Find out what ABI is being produced by ac_compile, and set mode
7069 # options accordingly.
7070 echo 'int i;' > conftest.$ac_ext
7071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7072 (eval $ac_compile) 2>&5
7073 ac_status=$?
7074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7075 test $ac_status = 0; }; then
7076 case `/usr/bin/file conftest.$ac_objext` in
7077 *ELF-32*)
7078 HPUX_IA64_MODE=32
7079 ;;
7080 *ELF-64*)
7081 HPUX_IA64_MODE=64
7082 ;;
7083 esac
7084 fi
7085 rm -rf conftest*
7086 ;;
7087 *-*-irix6*)
7088 # Find out what ABI is being produced by ac_compile, and set linker
7089 # options accordingly.
7090 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092 (eval $ac_compile) 2>&5
7093 ac_status=$?
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; }; then
7096 if test yes = "$lt_cv_prog_gnu_ld"; then
7097 case `/usr/bin/file conftest.$ac_objext` in
7098 *32-bit*)
7099 LD="${LD-ld} -melf32bsmip"
7100 ;;
7101 *N32*)
7102 LD="${LD-ld} -melf32bmipn32"
7103 ;;
7104 *64-bit*)
7105 LD="${LD-ld} -melf64bmip"
7106 ;;
7107 esac
7108 else
7109 case `/usr/bin/file conftest.$ac_objext` in
7110 *32-bit*)
7111 LD="${LD-ld} -32"
7112 ;;
7113 *N32*)
7114 LD="${LD-ld} -n32"
7115 ;;
7116 *64-bit*)
7117 LD="${LD-ld} -64"
7118 ;;
7119 esac
7120 fi
7121 fi
7122 rm -rf conftest*
7123 ;;
7124
7125 mips64*-*linux*)
7126 # Find out what ABI is being produced by ac_compile, and set linker
7127 # options accordingly.
7128 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7130 (eval $ac_compile) 2>&5
7131 ac_status=$?
7132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133 test $ac_status = 0; }; then
7134 emul=elf
7135 case `/usr/bin/file conftest.$ac_objext` in
7136 *32-bit*)
7137 emul="${emul}32"
7138 ;;
7139 *64-bit*)
7140 emul="${emul}64"
7141 ;;
7142 esac
7143 case `/usr/bin/file conftest.$ac_objext` in
7144 *MSB*)
7145 emul="${emul}btsmip"
7146 ;;
7147 *LSB*)
7148 emul="${emul}ltsmip"
7149 ;;
7150 esac
7151 case `/usr/bin/file conftest.$ac_objext` in
7152 *N32*)
7153 emul="${emul}n32"
7154 ;;
7155 esac
7156 LD="${LD-ld} -m $emul"
7157 fi
7158 rm -rf conftest*
7159 ;;
7160
7161 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7162 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7163 # Find out what ABI is being produced by ac_compile, and set linker
7164 # options accordingly. Note that the listed cases only cover the
7165 # situations where additional linker options are needed (such as when
7166 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7167 # vice versa); the common cases where no linker options are needed do
7168 # not appear in the list.
7169 echo 'int i;' > conftest.$ac_ext
7170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7171 (eval $ac_compile) 2>&5
7172 ac_status=$?
7173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174 test $ac_status = 0; }; then
7175 case `/usr/bin/file conftest.o` in
7176 *32-bit*)
7177 case $host in
7178 x86_64-*kfreebsd*-gnu)
7179 LD="${LD-ld} -m elf_i386_fbsd"
7180 ;;
7181 x86_64-*linux*)
7182 case `/usr/bin/file conftest.o` in
7183 *x86-64*)
7184 LD="${LD-ld} -m elf32_x86_64"
7185 ;;
7186 *)
7187 LD="${LD-ld} -m elf_i386"
7188 ;;
7189 esac
7190 ;;
7191 powerpc64le-*linux*)
7192 LD="${LD-ld} -m elf32lppclinux"
7193 ;;
7194 powerpc64-*linux*)
7195 LD="${LD-ld} -m elf32ppclinux"
7196 ;;
7197 s390x-*linux*)
7198 LD="${LD-ld} -m elf_s390"
7199 ;;
7200 sparc64-*linux*)
7201 LD="${LD-ld} -m elf32_sparc"
7202 ;;
7203 esac
7204 ;;
7205 *64-bit*)
7206 case $host in
7207 x86_64-*kfreebsd*-gnu)
7208 LD="${LD-ld} -m elf_x86_64_fbsd"
7209 ;;
7210 x86_64-*linux*)
7211 LD="${LD-ld} -m elf_x86_64"
7212 ;;
7213 powerpcle-*linux*)
7214 LD="${LD-ld} -m elf64lppc"
7215 ;;
7216 powerpc-*linux*)
7217 LD="${LD-ld} -m elf64ppc"
7218 ;;
7219 s390*-*linux*|s390*-*tpf*)
7220 LD="${LD-ld} -m elf64_s390"
7221 ;;
7222 sparc*-*linux*)
7223 LD="${LD-ld} -m elf64_sparc"
7224 ;;
7225 esac
7226 ;;
7227 esac
7228 fi
7229 rm -rf conftest*
7230 ;;
7231
7232 *-*-sco3.2v5*)
7233 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7234 SAVE_CFLAGS=$CFLAGS
7235 CFLAGS="$CFLAGS -belf"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7237 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7238 if ${lt_cv_cc_needs_belf+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 ac_ext=c
7242 ac_cpp='$CPP $CPPFLAGS'
7243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7246
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_link "$LINENO"; then :
7259 lt_cv_cc_needs_belf=yes
7260 else
7261 lt_cv_cc_needs_belf=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 ac_ext=c
7266 ac_cpp='$CPP $CPPFLAGS'
7267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7273 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7274 if test yes != "$lt_cv_cc_needs_belf"; then
7275 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7276 CFLAGS=$SAVE_CFLAGS
7277 fi
7278 ;;
7279 *-*solaris*)
7280 # Find out what ABI is being produced by ac_compile, and set linker
7281 # options accordingly.
7282 echo 'int i;' > conftest.$ac_ext
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284 (eval $ac_compile) 2>&5
7285 ac_status=$?
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; then
7288 case `/usr/bin/file conftest.o` in
7289 *64-bit*)
7290 case $lt_cv_prog_gnu_ld in
7291 yes*)
7292 case $host in
7293 i?86-*-solaris*|x86_64-*-solaris*)
7294 LD="${LD-ld} -m elf_x86_64"
7295 ;;
7296 sparc*-*-solaris*)
7297 LD="${LD-ld} -m elf64_sparc"
7298 ;;
7299 esac
7300 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7301 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7302 LD=${LD-ld}_sol2
7303 fi
7304 ;;
7305 *)
7306 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7307 LD="${LD-ld} -64"
7308 fi
7309 ;;
7310 esac
7311 ;;
7312 esac
7313 fi
7314 rm -rf conftest*
7315 ;;
7316 esac
7317
7318 need_locks=$enable_libtool_lock
7319
7320 if test -n "$ac_tool_prefix"; then
7321 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}mt; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$MANIFEST_TOOL"; then
7329 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7349 if test -n "$MANIFEST_TOOL"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7351 $as_echo "$MANIFEST_TOOL" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357
7358 fi
7359 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7360 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7361 # Extract the first word of "mt", so it can be a program name with args.
7362 set dummy mt; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$ac_ct_MANIFEST_TOOL"; then
7369 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7389 if test -n "$ac_ct_MANIFEST_TOOL"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7391 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7398 MANIFEST_TOOL=":"
7399 else
7400 case $cross_compiling:$ac_tool_warned in
7401 yes:)
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404 ac_tool_warned=yes ;;
7405 esac
7406 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7407 fi
7408 else
7409 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7410 fi
7411
7412 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7414 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7415 if ${lt_cv_path_mainfest_tool+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 lt_cv_path_mainfest_tool=no
7419 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7420 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7421 cat conftest.err >&5
7422 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7423 lt_cv_path_mainfest_tool=yes
7424 fi
7425 rm -f conftest*
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7428 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7429 if test yes != "$lt_cv_path_mainfest_tool"; then
7430 MANIFEST_TOOL=:
7431 fi
7432
7433
7434
7435
7436
7437
7438 case $host_os in
7439 rhapsody* | darwin*)
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$DSYMUTIL"; then
7449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7469 if test -n "$DSYMUTIL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7471 $as_echo "$DSYMUTIL" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477
7478 fi
7479 if test -z "$ac_cv_prog_DSYMUTIL"; then
7480 ac_ct_DSYMUTIL=$DSYMUTIL
7481 # Extract the first word of "dsymutil", so it can be a program name with args.
7482 set dummy dsymutil; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$ac_ct_DSYMUTIL"; then
7489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7509 if test -n "$ac_ct_DSYMUTIL"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517 if test "x$ac_ct_DSYMUTIL" = x; then
7518 DSYMUTIL=":"
7519 else
7520 case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526 DSYMUTIL=$ac_ct_DSYMUTIL
7527 fi
7528 else
7529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7530 fi
7531
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_NMEDIT+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$NMEDIT"; then
7541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 NMEDIT=$ac_cv_prog_NMEDIT
7561 if test -n "$NMEDIT"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7563 $as_echo "$NMEDIT" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569
7570 fi
7571 if test -z "$ac_cv_prog_NMEDIT"; then
7572 ac_ct_NMEDIT=$NMEDIT
7573 # Extract the first word of "nmedit", so it can be a program name with args.
7574 set dummy nmedit; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$ac_ct_NMEDIT"; then
7581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594 done
7595 done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7601 if test -n "$ac_ct_NMEDIT"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7603 $as_echo "$ac_ct_NMEDIT" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609 if test "x$ac_ct_NMEDIT" = x; then
7610 NMEDIT=":"
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618 NMEDIT=$ac_ct_NMEDIT
7619 fi
7620 else
7621 NMEDIT="$ac_cv_prog_NMEDIT"
7622 fi
7623
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_LIPO+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$LIPO"; then
7633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 LIPO=$ac_cv_prog_LIPO
7653 if test -n "$LIPO"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7655 $as_echo "$LIPO" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661
7662 fi
7663 if test -z "$ac_cv_prog_LIPO"; then
7664 ac_ct_LIPO=$LIPO
7665 # Extract the first word of "lipo", so it can be a program name with args.
7666 set dummy lipo; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 if test -n "$ac_ct_LIPO"; then
7673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_ac_ct_LIPO="lipo"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7693 if test -n "$ac_ct_LIPO"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7695 $as_echo "$ac_ct_LIPO" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701 if test "x$ac_ct_LIPO" = x; then
7702 LIPO=":"
7703 else
7704 case $cross_compiling:$ac_tool_warned in
7705 yes:)
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708 ac_tool_warned=yes ;;
7709 esac
7710 LIPO=$ac_ct_LIPO
7711 fi
7712 else
7713 LIPO="$ac_cv_prog_LIPO"
7714 fi
7715
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_OTOOL+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$OTOOL"; then
7725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 OTOOL=$ac_cv_prog_OTOOL
7745 if test -n "$OTOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7747 $as_echo "$OTOOL" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754 fi
7755 if test -z "$ac_cv_prog_OTOOL"; then
7756 ac_ct_OTOOL=$OTOOL
7757 # Extract the first word of "otool", so it can be a program name with args.
7758 set dummy otool; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$ac_ct_OTOOL"; then
7765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_ac_ct_OTOOL="otool"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7785 if test -n "$ac_ct_OTOOL"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7787 $as_echo "$ac_ct_OTOOL" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793 if test "x$ac_ct_OTOOL" = x; then
7794 OTOOL=":"
7795 else
7796 case $cross_compiling:$ac_tool_warned in
7797 yes:)
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800 ac_tool_warned=yes ;;
7801 esac
7802 OTOOL=$ac_ct_OTOOL
7803 fi
7804 else
7805 OTOOL="$ac_cv_prog_OTOOL"
7806 fi
7807
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_OTOOL64+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$OTOOL64"; then
7817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 OTOOL64=$ac_cv_prog_OTOOL64
7837 if test -n "$OTOOL64"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7839 $as_echo "$OTOOL64" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_OTOOL64"; then
7848 ac_ct_OTOOL64=$OTOOL64
7849 # Extract the first word of "otool64", so it can be a program name with args.
7850 set dummy otool64; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$ac_ct_OTOOL64"; then
7857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_ac_ct_OTOOL64="otool64"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7877 if test -n "$ac_ct_OTOOL64"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7879 $as_echo "$ac_ct_OTOOL64" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885 if test "x$ac_ct_OTOOL64" = x; then
7886 OTOOL64=":"
7887 else
7888 case $cross_compiling:$ac_tool_warned in
7889 yes:)
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892 ac_tool_warned=yes ;;
7893 esac
7894 OTOOL64=$ac_ct_OTOOL64
7895 fi
7896 else
7897 OTOOL64="$ac_cv_prog_OTOOL64"
7898 fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7927 $as_echo_n "checking for -single_module linker flag... " >&6; }
7928 if ${lt_cv_apple_cc_single_mod+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 lt_cv_apple_cc_single_mod=no
7932 if test -z "$LT_MULTI_MODULE"; then
7933 # By default we will add the -single_module flag. You can override
7934 # by either setting the environment variable LT_MULTI_MODULE
7935 # non-empty at configure time, or by adding -multi_module to the
7936 # link flags.
7937 rm -rf libconftest.dylib*
7938 echo "int foo(void){return 1;}" > conftest.c
7939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7940 -dynamiclib -Wl,-single_module conftest.c" >&5
7941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7943 _lt_result=$?
7944 # If there is a non-empty error log, and "single_module"
7945 # appears in it, assume the flag caused a linker warning
7946 if test -s conftest.err && $GREP single_module conftest.err; then
7947 cat conftest.err >&5
7948 # Otherwise, if the output was created with a 0 exit code from
7949 # the compiler, it worked.
7950 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7951 lt_cv_apple_cc_single_mod=yes
7952 else
7953 cat conftest.err >&5
7954 fi
7955 rm -rf libconftest.dylib*
7956 rm -f conftest.*
7957 fi
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7960 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7961
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7963 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7964 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 lt_cv_ld_exported_symbols_list=no
7968 save_LDFLAGS=$LDFLAGS
7969 echo "_main" > conftest.sym
7970 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973
7974 int
7975 main ()
7976 {
7977
7978 ;
7979 return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 lt_cv_ld_exported_symbols_list=yes
7984 else
7985 lt_cv_ld_exported_symbols_list=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 LDFLAGS=$save_LDFLAGS
7990
7991 fi
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7993 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7994
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7996 $as_echo_n "checking for -force_load linker flag... " >&6; }
7997 if ${lt_cv_ld_force_load+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 lt_cv_ld_force_load=no
8001 cat > conftest.c << _LT_EOF
8002 int forced_loaded() { return 2;}
8003 _LT_EOF
8004 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8005 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8006 echo "$AR cru libconftest.a conftest.o" >&5
8007 $AR cru libconftest.a conftest.o 2>&5
8008 echo "$RANLIB libconftest.a" >&5
8009 $RANLIB libconftest.a 2>&5
8010 cat > conftest.c << _LT_EOF
8011 int main() { return 0;}
8012 _LT_EOF
8013 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8014 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8015 _lt_result=$?
8016 if test -s conftest.err && $GREP force_load conftest.err; then
8017 cat conftest.err >&5
8018 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8019 lt_cv_ld_force_load=yes
8020 else
8021 cat conftest.err >&5
8022 fi
8023 rm -f conftest.err libconftest.a conftest conftest.c
8024 rm -rf conftest.dSYM
8025
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8028 $as_echo "$lt_cv_ld_force_load" >&6; }
8029 case $host_os in
8030 rhapsody* | darwin1.[012])
8031 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8032 darwin1.*)
8033 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8034 darwin*) # darwin 5.x on
8035 # if running on 10.5 or later, the deployment target defaults
8036 # to the OS version, if on x86, and 10.4, the deployment
8037 # target defaults to 10.4. Don't you love it?
8038 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8039 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8040 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8041 10.[012][,.]*)
8042 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8043 10.*)
8044 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8045 esac
8046 ;;
8047 esac
8048 if test yes = "$lt_cv_apple_cc_single_mod"; then
8049 _lt_dar_single_mod='$single_module'
8050 fi
8051 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8052 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8053 else
8054 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8055 fi
8056 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8057 _lt_dsymutil='~$DSYMUTIL $lib || :'
8058 else
8059 _lt_dsymutil=
8060 fi
8061 ;;
8062 esac
8063
8064 # func_munge_path_list VARIABLE PATH
8065 # -----------------------------------
8066 # VARIABLE is name of variable containing _space_ separated list of
8067 # directories to be munged by the contents of PATH, which is string
8068 # having a format:
8069 # "DIR[:DIR]:"
8070 # string "DIR[ DIR]" will be prepended to VARIABLE
8071 # ":DIR[:DIR]"
8072 # string "DIR[ DIR]" will be appended to VARIABLE
8073 # "DIRP[:DIRP]::[DIRA:]DIRA"
8074 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8075 # "DIRA[ DIRA]" will be appended to VARIABLE
8076 # "DIR[:DIR]"
8077 # VARIABLE will be replaced by "DIR[ DIR]"
8078 func_munge_path_list ()
8079 {
8080 case x$2 in
8081 x)
8082 ;;
8083 *:)
8084 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8085 ;;
8086 x:*)
8087 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8088 ;;
8089 *::*)
8090 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8091 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8092 ;;
8093 *)
8094 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8095 ;;
8096 esac
8097 }
8098
8099 ac_ext=c
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8105 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8106 # On Suns, sometimes $CPP names a directory.
8107 if test -n "$CPP" && test -d "$CPP"; then
8108 CPP=
8109 fi
8110 if test -z "$CPP"; then
8111 if ${ac_cv_prog_CPP+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 # Double quotes because CPP needs to be expanded
8115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8116 do
8117 ac_preproc_ok=false
8118 for ac_c_preproc_warn_flag in '' yes
8119 do
8120 # Use a header file that comes with gcc, so configuring glibc
8121 # with a fresh cross-compiler works.
8122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123 # <limits.h> exists even on freestanding compilers.
8124 # On the NeXT, cc -E runs the code through the compiler's parser,
8125 # not just through cpp. "Syntax error" is here to catch this case.
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #ifdef __STDC__
8129 # include <limits.h>
8130 #else
8131 # include <assert.h>
8132 #endif
8133 Syntax error
8134 _ACEOF
8135 if ac_fn_c_try_cpp "$LINENO"; then :
8136
8137 else
8138 # Broken: fails on valid input.
8139 continue
8140 fi
8141 rm -f conftest.err conftest.i conftest.$ac_ext
8142
8143 # OK, works on sane cases. Now check whether nonexistent headers
8144 # can be detected and how.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <ac_nonexistent.h>
8148 _ACEOF
8149 if ac_fn_c_try_cpp "$LINENO"; then :
8150 # Broken: success on invalid input.
8151 continue
8152 else
8153 # Passes both tests.
8154 ac_preproc_ok=:
8155 break
8156 fi
8157 rm -f conftest.err conftest.i conftest.$ac_ext
8158
8159 done
8160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8161 rm -f conftest.i conftest.err conftest.$ac_ext
8162 if $ac_preproc_ok; then :
8163 break
8164 fi
8165
8166 done
8167 ac_cv_prog_CPP=$CPP
8168
8169 fi
8170 CPP=$ac_cv_prog_CPP
8171 else
8172 ac_cv_prog_CPP=$CPP
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8175 $as_echo "$CPP" >&6; }
8176 ac_preproc_ok=false
8177 for ac_c_preproc_warn_flag in '' yes
8178 do
8179 # Use a header file that comes with gcc, so configuring glibc
8180 # with a fresh cross-compiler works.
8181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8182 # <limits.h> exists even on freestanding compilers.
8183 # On the NeXT, cc -E runs the code through the compiler's parser,
8184 # not just through cpp. "Syntax error" is here to catch this case.
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 #ifdef __STDC__
8188 # include <limits.h>
8189 #else
8190 # include <assert.h>
8191 #endif
8192 Syntax error
8193 _ACEOF
8194 if ac_fn_c_try_cpp "$LINENO"; then :
8195
8196 else
8197 # Broken: fails on valid input.
8198 continue
8199 fi
8200 rm -f conftest.err conftest.i conftest.$ac_ext
8201
8202 # OK, works on sane cases. Now check whether nonexistent headers
8203 # can be detected and how.
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 #include <ac_nonexistent.h>
8207 _ACEOF
8208 if ac_fn_c_try_cpp "$LINENO"; then :
8209 # Broken: success on invalid input.
8210 continue
8211 else
8212 # Passes both tests.
8213 ac_preproc_ok=:
8214 break
8215 fi
8216 rm -f conftest.err conftest.i conftest.$ac_ext
8217
8218 done
8219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8220 rm -f conftest.i conftest.err conftest.$ac_ext
8221 if $ac_preproc_ok; then :
8222
8223 else
8224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8226 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8227 See \`config.log' for more details" "$LINENO" 5; }
8228 fi
8229
8230 ac_ext=c
8231 ac_cpp='$CPP $CPPFLAGS'
8232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8238 $as_echo_n "checking for ANSI C header files... " >&6; }
8239 if ${ac_cv_header_stdc+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #include <stdlib.h>
8245 #include <stdarg.h>
8246 #include <string.h>
8247 #include <float.h>
8248
8249 int
8250 main ()
8251 {
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258 ac_cv_header_stdc=yes
8259 else
8260 ac_cv_header_stdc=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263
8264 if test $ac_cv_header_stdc = yes; then
8265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <string.h>
8269
8270 _ACEOF
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "memchr" >/dev/null 2>&1; then :
8273
8274 else
8275 ac_cv_header_stdc=no
8276 fi
8277 rm -f conftest*
8278
8279 fi
8280
8281 if test $ac_cv_header_stdc = yes; then
8282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <stdlib.h>
8286
8287 _ACEOF
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289 $EGREP "free" >/dev/null 2>&1; then :
8290
8291 else
8292 ac_cv_header_stdc=no
8293 fi
8294 rm -f conftest*
8295
8296 fi
8297
8298 if test $ac_cv_header_stdc = yes; then
8299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8300 if test "$cross_compiling" = yes; then :
8301 :
8302 else
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #include <ctype.h>
8306 #include <stdlib.h>
8307 #if ((' ' & 0x0FF) == 0x020)
8308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8310 #else
8311 # define ISLOWER(c) \
8312 (('a' <= (c) && (c) <= 'i') \
8313 || ('j' <= (c) && (c) <= 'r') \
8314 || ('s' <= (c) && (c) <= 'z'))
8315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8316 #endif
8317
8318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8319 int
8320 main ()
8321 {
8322 int i;
8323 for (i = 0; i < 256; i++)
8324 if (XOR (islower (i), ISLOWER (i))
8325 || toupper (i) != TOUPPER (i))
8326 return 2;
8327 return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_run "$LINENO"; then :
8331
8332 else
8333 ac_cv_header_stdc=no
8334 fi
8335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8336 conftest.$ac_objext conftest.beam conftest.$ac_ext
8337 fi
8338
8339 fi
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8342 $as_echo "$ac_cv_header_stdc" >&6; }
8343 if test $ac_cv_header_stdc = yes; then
8344
8345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8346
8347 fi
8348
8349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8351 inttypes.h stdint.h unistd.h
8352 do :
8353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8355 "
8356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8357 cat >>confdefs.h <<_ACEOF
8358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8359 _ACEOF
8360
8361 fi
8362
8363 done
8364
8365
8366 for ac_header in dlfcn.h
8367 do :
8368 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8369 "
8370 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_DLFCN_H 1
8373 _ACEOF
8374
8375 fi
8376
8377 done
8378
8379
8380
8381
8382 func_stripname_cnf ()
8383 {
8384 case $2 in
8385 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8386 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8387 esac
8388 } # func_stripname_cnf
8389
8390
8391
8392
8393
8394 # Set options
8395
8396
8397
8398 enable_dlopen=no
8399
8400
8401 enable_win32_dll=no
8402
8403
8404 # Check whether --enable-shared was given.
8405 if test "${enable_shared+set}" = set; then :
8406 enableval=$enable_shared; p=${PACKAGE-default}
8407 case $enableval in
8408 yes) enable_shared=yes ;;
8409 no) enable_shared=no ;;
8410 *)
8411 enable_shared=no
8412 # Look at the argument we got. We use all the common list separators.
8413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8414 for pkg in $enableval; do
8415 IFS=$lt_save_ifs
8416 if test "X$pkg" = "X$p"; then
8417 enable_shared=yes
8418 fi
8419 done
8420 IFS=$lt_save_ifs
8421 ;;
8422 esac
8423 else
8424 enable_shared=yes
8425 fi
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 # Check whether --enable-static was given.
8436 if test "${enable_static+set}" = set; then :
8437 enableval=$enable_static; p=${PACKAGE-default}
8438 case $enableval in
8439 yes) enable_static=yes ;;
8440 no) enable_static=no ;;
8441 *)
8442 enable_static=no
8443 # Look at the argument we got. We use all the common list separators.
8444 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8445 for pkg in $enableval; do
8446 IFS=$lt_save_ifs
8447 if test "X$pkg" = "X$p"; then
8448 enable_static=yes
8449 fi
8450 done
8451 IFS=$lt_save_ifs
8452 ;;
8453 esac
8454 else
8455 enable_static=yes
8456 fi
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467 # Check whether --with-pic was given.
8468 if test "${with_pic+set}" = set; then :
8469 withval=$with_pic; lt_p=${PACKAGE-default}
8470 case $withval in
8471 yes|no) pic_mode=$withval ;;
8472 *)
8473 pic_mode=default
8474 # Look at the argument we got. We use all the common list separators.
8475 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8476 for lt_pkg in $withval; do
8477 IFS=$lt_save_ifs
8478 if test "X$lt_pkg" = "X$lt_p"; then
8479 pic_mode=yes
8480 fi
8481 done
8482 IFS=$lt_save_ifs
8483 ;;
8484 esac
8485 else
8486 pic_mode=default
8487 fi
8488
8489
8490
8491
8492
8493
8494
8495
8496 # Check whether --enable-fast-install was given.
8497 if test "${enable_fast_install+set}" = set; then :
8498 enableval=$enable_fast_install; p=${PACKAGE-default}
8499 case $enableval in
8500 yes) enable_fast_install=yes ;;
8501 no) enable_fast_install=no ;;
8502 *)
8503 enable_fast_install=no
8504 # Look at the argument we got. We use all the common list separators.
8505 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8506 for pkg in $enableval; do
8507 IFS=$lt_save_ifs
8508 if test "X$pkg" = "X$p"; then
8509 enable_fast_install=yes
8510 fi
8511 done
8512 IFS=$lt_save_ifs
8513 ;;
8514 esac
8515 else
8516 enable_fast_install=yes
8517 fi
8518
8519
8520
8521
8522
8523
8524
8525
8526 shared_archive_member_spec=
8527 case $host,$enable_shared in
8528 power*-*-aix[5-9]*,yes)
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8530 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8531
8532 # Check whether --with-aix-soname was given.
8533 if test "${with_aix_soname+set}" = set; then :
8534 withval=$with_aix_soname; case $withval in
8535 aix|svr4|both)
8536 ;;
8537 *)
8538 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8539 ;;
8540 esac
8541 lt_cv_with_aix_soname=$with_aix_soname
8542 else
8543 if ${lt_cv_with_aix_soname+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 lt_cv_with_aix_soname=aix
8547 fi
8548
8549 with_aix_soname=$lt_cv_with_aix_soname
8550 fi
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8553 $as_echo "$with_aix_soname" >&6; }
8554 if test aix != "$with_aix_soname"; then
8555 # For the AIX way of multilib, we name the shared archive member
8556 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8557 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8558 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8559 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8560 if test 64 = "${OBJECT_MODE-32}"; then
8561 shared_archive_member_spec=shr_64
8562 else
8563 shared_archive_member_spec=shr
8564 fi
8565 fi
8566 ;;
8567 *)
8568 with_aix_soname=aix
8569 ;;
8570 esac
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 # This can be used to rebuild libtool when needed
8582 LIBTOOL_DEPS=$ltmain
8583
8584 # Always use our own libtool.
8585 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 test -z "$LN_S" && LN_S="ln -s"
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 if test -n "${ZSH_VERSION+set}"; then
8632 setopt NO_GLOB_SUBST
8633 fi
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8636 $as_echo_n "checking for objdir... " >&6; }
8637 if ${lt_cv_objdir+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 rm -f .libs 2>/dev/null
8641 mkdir .libs 2>/dev/null
8642 if test -d .libs; then
8643 lt_cv_objdir=.libs
8644 else
8645 # MS-DOS does not allow filenames that begin with a dot.
8646 lt_cv_objdir=_libs
8647 fi
8648 rmdir .libs 2>/dev/null
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8651 $as_echo "$lt_cv_objdir" >&6; }
8652 objdir=$lt_cv_objdir
8653
8654
8655
8656
8657
8658 cat >>confdefs.h <<_ACEOF
8659 #define LT_OBJDIR "$lt_cv_objdir/"
8660 _ACEOF
8661
8662
8663
8664
8665 case $host_os in
8666 aix3*)
8667 # AIX sometimes has problems with the GCC collect2 program. For some
8668 # reason, if we set the COLLECT_NAMES environment variable, the problems
8669 # vanish in a puff of smoke.
8670 if test set != "${COLLECT_NAMES+set}"; then
8671 COLLECT_NAMES=
8672 export COLLECT_NAMES
8673 fi
8674 ;;
8675 esac
8676
8677 # Global variables:
8678 ofile=libtool
8679 can_build_shared=yes
8680
8681 # All known linkers require a '.a' archive for static linking (except MSVC,
8682 # which needs '.lib').
8683 libext=a
8684
8685 with_gnu_ld=$lt_cv_prog_gnu_ld
8686
8687 old_CC=$CC
8688 old_CFLAGS=$CFLAGS
8689
8690 # Set sane defaults for various variables
8691 test -z "$CC" && CC=cc
8692 test -z "$LTCC" && LTCC=$CC
8693 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8694 test -z "$LD" && LD=ld
8695 test -z "$ac_objext" && ac_objext=o
8696
8697 func_cc_basename $compiler
8698 cc_basename=$func_cc_basename_result
8699
8700
8701 # Only perform the check for file, if the check method requires it
8702 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8703 case $deplibs_check_method in
8704 file_magic*)
8705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8707 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8708 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 case $MAGIC_CMD in
8712 [\\/*] | ?:[\\/]*)
8713 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8714 ;;
8715 *)
8716 lt_save_MAGIC_CMD=$MAGIC_CMD
8717 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8719 for ac_dir in $ac_dummy; do
8720 IFS=$lt_save_ifs
8721 test -z "$ac_dir" && ac_dir=.
8722 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8723 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8724 if test -n "$file_magic_test_file"; then
8725 case $deplibs_check_method in
8726 "file_magic "*)
8727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8728 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8730 $EGREP "$file_magic_regex" > /dev/null; then
8731 :
8732 else
8733 cat <<_LT_EOF 1>&2
8734
8735 *** Warning: the command libtool uses to detect shared libraries,
8736 *** $file_magic_cmd, produces output that libtool cannot recognize.
8737 *** The result is that libtool may fail to recognize shared libraries
8738 *** as such. This will affect the creation of libtool libraries that
8739 *** depend on shared libraries, but programs linked with such libtool
8740 *** libraries will work regardless of this problem. Nevertheless, you
8741 *** may want to report the problem to your system manager and/or to
8742 *** [email protected]
8743
8744 _LT_EOF
8745 fi ;;
8746 esac
8747 fi
8748 break
8749 fi
8750 done
8751 IFS=$lt_save_ifs
8752 MAGIC_CMD=$lt_save_MAGIC_CMD
8753 ;;
8754 esac
8755 fi
8756
8757 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8758 if test -n "$MAGIC_CMD"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8760 $as_echo "$MAGIC_CMD" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767
8768
8769
8770 if test -z "$lt_cv_path_MAGIC_CMD"; then
8771 if test -n "$ac_tool_prefix"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8773 $as_echo_n "checking for file... " >&6; }
8774 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 case $MAGIC_CMD in
8778 [\\/*] | ?:[\\/]*)
8779 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8780 ;;
8781 *)
8782 lt_save_MAGIC_CMD=$MAGIC_CMD
8783 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8785 for ac_dir in $ac_dummy; do
8786 IFS=$lt_save_ifs
8787 test -z "$ac_dir" && ac_dir=.
8788 if test -f "$ac_dir/file"; then
8789 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8790 if test -n "$file_magic_test_file"; then
8791 case $deplibs_check_method in
8792 "file_magic "*)
8793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8794 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8796 $EGREP "$file_magic_regex" > /dev/null; then
8797 :
8798 else
8799 cat <<_LT_EOF 1>&2
8800
8801 *** Warning: the command libtool uses to detect shared libraries,
8802 *** $file_magic_cmd, produces output that libtool cannot recognize.
8803 *** The result is that libtool may fail to recognize shared libraries
8804 *** as such. This will affect the creation of libtool libraries that
8805 *** depend on shared libraries, but programs linked with such libtool
8806 *** libraries will work regardless of this problem. Nevertheless, you
8807 *** may want to report the problem to your system manager and/or to
8808 *** [email protected]
8809
8810 _LT_EOF
8811 fi ;;
8812 esac
8813 fi
8814 break
8815 fi
8816 done
8817 IFS=$lt_save_ifs
8818 MAGIC_CMD=$lt_save_MAGIC_CMD
8819 ;;
8820 esac
8821 fi
8822
8823 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8824 if test -n "$MAGIC_CMD"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8826 $as_echo "$MAGIC_CMD" >&6; }
8827 else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8830 fi
8831
8832
8833 else
8834 MAGIC_CMD=:
8835 fi
8836 fi
8837
8838 fi
8839 ;;
8840 esac
8841
8842 # Use C for the default configuration in the libtool script
8843
8844 lt_save_CC=$CC
8845 ac_ext=c
8846 ac_cpp='$CPP $CPPFLAGS'
8847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8850
8851
8852 # Source file extension for C test sources.
8853 ac_ext=c
8854
8855 # Object file extension for compiled C test sources.
8856 objext=o
8857 objext=$objext
8858
8859 # Code to be used in simple compile tests
8860 lt_simple_compile_test_code="int some_variable = 0;"
8861
8862 # Code to be used in simple link tests
8863 lt_simple_link_test_code='int main(){return(0);}'
8864
8865
8866
8867
8868
8869
8870
8871 # If no C compiler was specified, use CC.
8872 LTCC=${LTCC-"$CC"}
8873
8874 # If no C compiler flags were specified, use CFLAGS.
8875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8876
8877 # Allow CC to be a program name with arguments.
8878 compiler=$CC
8879
8880 # Save the default compiler, since it gets overwritten when the other
8881 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8882 compiler_DEFAULT=$CC
8883
8884 # save warnings/boilerplate of simple test code
8885 ac_outfile=conftest.$ac_objext
8886 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8887 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8888 _lt_compiler_boilerplate=`cat conftest.err`
8889 $RM conftest*
8890
8891 ac_outfile=conftest.$ac_objext
8892 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8893 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8894 _lt_linker_boilerplate=`cat conftest.err`
8895 $RM -r conftest*
8896
8897
8898 ## CAVEAT EMPTOR:
8899 ## There is no encapsulation within the following macros, do not change
8900 ## the running order or otherwise move them around unless you know exactly
8901 ## what you are doing...
8902 if test -n "$compiler"; then
8903
8904 lt_prog_compiler_no_builtin_flag=
8905
8906 if test yes = "$GCC"; then
8907 case $cc_basename in
8908 nvcc*)
8909 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8910 *)
8911 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8912 esac
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8915 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8916 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 lt_cv_prog_compiler_rtti_exceptions=no
8920 ac_outfile=conftest.$ac_objext
8921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8922 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8923 # Insert the option either (1) after the last *FLAGS variable, or
8924 # (2) before a word containing "conftest.", or (3) at the end.
8925 # Note that $ac_compile itself does not contain backslashes and begins
8926 # with a dollar sign (not a hyphen), so the echo should work correctly.
8927 # The option is referenced via a variable to avoid confusing sed.
8928 lt_compile=`echo "$ac_compile" | $SED \
8929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8931 -e 's:$: $lt_compiler_flag:'`
8932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8933 (eval "$lt_compile" 2>conftest.err)
8934 ac_status=$?
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 if (exit $ac_status) && test -s "$ac_outfile"; then
8938 # The compiler can only warn and ignore the option if not recognized
8939 # So say no if there are warnings other than the usual output.
8940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8943 lt_cv_prog_compiler_rtti_exceptions=yes
8944 fi
8945 fi
8946 $RM conftest*
8947
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8950 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8951
8952 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8953 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8954 else
8955 :
8956 fi
8957
8958 fi
8959
8960
8961
8962
8963
8964
8965 lt_prog_compiler_wl=
8966 lt_prog_compiler_pic=
8967 lt_prog_compiler_static=
8968
8969
8970 if test yes = "$GCC"; then
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_static='-static'
8973
8974 case $host_os in
8975 aix*)
8976 # All AIX code is PIC.
8977 if test ia64 = "$host_cpu"; then
8978 # AIX 5 now supports IA64 processor
8979 lt_prog_compiler_static='-Bstatic'
8980 fi
8981 lt_prog_compiler_pic='-fPIC'
8982 ;;
8983
8984 amigaos*)
8985 case $host_cpu in
8986 powerpc)
8987 # see comment about AmigaOS4 .so support
8988 lt_prog_compiler_pic='-fPIC'
8989 ;;
8990 m68k)
8991 # FIXME: we need at least 68020 code to build shared libraries, but
8992 # adding the '-m68020' flag to GCC prevents building anything better,
8993 # like '-m68040'.
8994 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8995 ;;
8996 esac
8997 ;;
8998
8999 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9000 # PIC is the default for these OSes.
9001 ;;
9002
9003 mingw* | cygwin* | pw32* | os2* | cegcc*)
9004 # This hack is so that the source file can tell whether it is being
9005 # built for inclusion in a dll (and should export symbols for example).
9006 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9007 # (--disable-auto-import) libraries
9008 lt_prog_compiler_pic='-DDLL_EXPORT'
9009 case $host_os in
9010 os2*)
9011 lt_prog_compiler_static='$wl-static'
9012 ;;
9013 esac
9014 ;;
9015
9016 darwin* | rhapsody*)
9017 # PIC is the default on this platform
9018 # Common symbols not allowed in MH_DYLIB files
9019 lt_prog_compiler_pic='-fno-common'
9020 ;;
9021
9022 haiku*)
9023 # PIC is the default for Haiku.
9024 # The "-static" flag exists, but is broken.
9025 lt_prog_compiler_static=
9026 ;;
9027
9028 hpux*)
9029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9031 # sets the default TLS model and affects inlining.
9032 case $host_cpu in
9033 hppa*64*)
9034 # +Z the default
9035 ;;
9036 *)
9037 lt_prog_compiler_pic='-fPIC'
9038 ;;
9039 esac
9040 ;;
9041
9042 interix[3-9]*)
9043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9044 # Instead, we relocate shared libraries at runtime.
9045 ;;
9046
9047 msdosdjgpp*)
9048 # Just because we use GCC doesn't mean we suddenly get shared libraries
9049 # on systems that don't support them.
9050 lt_prog_compiler_can_build_shared=no
9051 enable_shared=no
9052 ;;
9053
9054 *nto* | *qnx*)
9055 # QNX uses GNU C++, but need to define -shared option too, otherwise
9056 # it will coredump.
9057 lt_prog_compiler_pic='-fPIC -shared'
9058 ;;
9059
9060 sysv4*MP*)
9061 if test -d /usr/nec; then
9062 lt_prog_compiler_pic=-Kconform_pic
9063 fi
9064 ;;
9065
9066 *)
9067 lt_prog_compiler_pic='-fPIC'
9068 ;;
9069 esac
9070
9071 case $cc_basename in
9072 nvcc*) # Cuda Compiler Driver 2.2
9073 lt_prog_compiler_wl='-Xlinker '
9074 if test -n "$lt_prog_compiler_pic"; then
9075 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9076 fi
9077 ;;
9078 esac
9079 else
9080 # PORTME Check for flag to pass linker flags through the system compiler.
9081 case $host_os in
9082 aix*)
9083 lt_prog_compiler_wl='-Wl,'
9084 if test ia64 = "$host_cpu"; then
9085 # AIX 5 now supports IA64 processor
9086 lt_prog_compiler_static='-Bstatic'
9087 else
9088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9089 fi
9090 ;;
9091
9092 darwin* | rhapsody*)
9093 # PIC is the default on this platform
9094 # Common symbols not allowed in MH_DYLIB files
9095 lt_prog_compiler_pic='-fno-common'
9096 case $cc_basename in
9097 nagfor*)
9098 # NAG Fortran compiler
9099 lt_prog_compiler_wl='-Wl,-Wl,,'
9100 lt_prog_compiler_pic='-PIC'
9101 lt_prog_compiler_static='-Bstatic'
9102 ;;
9103 esac
9104 ;;
9105
9106 mingw* | cygwin* | pw32* | os2* | cegcc*)
9107 # This hack is so that the source file can tell whether it is being
9108 # built for inclusion in a dll (and should export symbols for example).
9109 lt_prog_compiler_pic='-DDLL_EXPORT'
9110 case $host_os in
9111 os2*)
9112 lt_prog_compiler_static='$wl-static'
9113 ;;
9114 esac
9115 ;;
9116
9117 hpux9* | hpux10* | hpux11*)
9118 lt_prog_compiler_wl='-Wl,'
9119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9120 # not for PA HP-UX.
9121 case $host_cpu in
9122 hppa*64*|ia64*)
9123 # +Z the default
9124 ;;
9125 *)
9126 lt_prog_compiler_pic='+Z'
9127 ;;
9128 esac
9129 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9130 lt_prog_compiler_static='$wl-a ${wl}archive'
9131 ;;
9132
9133 irix5* | irix6* | nonstopux*)
9134 lt_prog_compiler_wl='-Wl,'
9135 # PIC (with -KPIC) is the default.
9136 lt_prog_compiler_static='-non_shared'
9137 ;;
9138
9139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9140 case $cc_basename in
9141 # old Intel for x86_64, which still supported -KPIC.
9142 ecc*)
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_pic='-KPIC'
9145 lt_prog_compiler_static='-static'
9146 ;;
9147 # icc used to be incompatible with GCC.
9148 # ICC 10 doesn't accept -KPIC any more.
9149 icc* | ifort*)
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-fPIC'
9152 lt_prog_compiler_static='-static'
9153 ;;
9154 # Lahey Fortran 8.1.
9155 lf95*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='--shared'
9158 lt_prog_compiler_static='--static'
9159 ;;
9160 nagfor*)
9161 # NAG Fortran compiler
9162 lt_prog_compiler_wl='-Wl,-Wl,,'
9163 lt_prog_compiler_pic='-PIC'
9164 lt_prog_compiler_static='-Bstatic'
9165 ;;
9166 tcc*)
9167 # Fabrice Bellard et al's Tiny C Compiler
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-fPIC'
9170 lt_prog_compiler_static='-static'
9171 ;;
9172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9173 # Portland Group compilers (*not* the Pentium gcc compiler,
9174 # which looks to be a dead project)
9175 lt_prog_compiler_wl='-Wl,'
9176 lt_prog_compiler_pic='-fpic'
9177 lt_prog_compiler_static='-Bstatic'
9178 ;;
9179 ccc*)
9180 lt_prog_compiler_wl='-Wl,'
9181 # All Alpha code is PIC.
9182 lt_prog_compiler_static='-non_shared'
9183 ;;
9184 xl* | bgxl* | bgf* | mpixl*)
9185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9186 lt_prog_compiler_wl='-Wl,'
9187 lt_prog_compiler_pic='-qpic'
9188 lt_prog_compiler_static='-qstaticlink'
9189 ;;
9190 *)
9191 case `$CC -V 2>&1 | sed 5q` in
9192 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9194 lt_prog_compiler_pic='-KPIC'
9195 lt_prog_compiler_static='-Bstatic'
9196 lt_prog_compiler_wl=''
9197 ;;
9198 *Sun\ F* | *Sun*Fortran*)
9199 lt_prog_compiler_pic='-KPIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 lt_prog_compiler_wl='-Qoption ld '
9202 ;;
9203 *Sun\ C*)
9204 # Sun C 5.9
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_wl='-Wl,'
9208 ;;
9209 *Intel*\ [CF]*Compiler*)
9210 lt_prog_compiler_wl='-Wl,'
9211 lt_prog_compiler_pic='-fPIC'
9212 lt_prog_compiler_static='-static'
9213 ;;
9214 *Portland\ Group*)
9215 lt_prog_compiler_wl='-Wl,'
9216 lt_prog_compiler_pic='-fpic'
9217 lt_prog_compiler_static='-Bstatic'
9218 ;;
9219 esac
9220 ;;
9221 esac
9222 ;;
9223
9224 newsos6)
9225 lt_prog_compiler_pic='-KPIC'
9226 lt_prog_compiler_static='-Bstatic'
9227 ;;
9228
9229 *nto* | *qnx*)
9230 # QNX uses GNU C++, but need to define -shared option too, otherwise
9231 # it will coredump.
9232 lt_prog_compiler_pic='-fPIC -shared'
9233 ;;
9234
9235 osf3* | osf4* | osf5*)
9236 lt_prog_compiler_wl='-Wl,'
9237 # All OSF/1 code is PIC.
9238 lt_prog_compiler_static='-non_shared'
9239 ;;
9240
9241 rdos*)
9242 lt_prog_compiler_static='-non_shared'
9243 ;;
9244
9245 solaris*)
9246 lt_prog_compiler_pic='-KPIC'
9247 lt_prog_compiler_static='-Bstatic'
9248 case $cc_basename in
9249 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9250 lt_prog_compiler_wl='-Qoption ld ';;
9251 *)
9252 lt_prog_compiler_wl='-Wl,';;
9253 esac
9254 ;;
9255
9256 sunos4*)
9257 lt_prog_compiler_wl='-Qoption ld '
9258 lt_prog_compiler_pic='-PIC'
9259 lt_prog_compiler_static='-Bstatic'
9260 ;;
9261
9262 sysv4 | sysv4.2uw2* | sysv4.3*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267
9268 sysv4*MP*)
9269 if test -d /usr/nec; then
9270 lt_prog_compiler_pic='-Kconform_pic'
9271 lt_prog_compiler_static='-Bstatic'
9272 fi
9273 ;;
9274
9275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 ;;
9280
9281 unicos*)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_can_build_shared=no
9284 ;;
9285
9286 uts4*)
9287 lt_prog_compiler_pic='-pic'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290
9291 *)
9292 lt_prog_compiler_can_build_shared=no
9293 ;;
9294 esac
9295 fi
9296
9297 case $host_os in
9298 # For platforms that do not support PIC, -DPIC is meaningless:
9299 *djgpp*)
9300 lt_prog_compiler_pic=
9301 ;;
9302 *)
9303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9304 ;;
9305 esac
9306
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9308 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9309 if ${lt_cv_prog_compiler_pic+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9315 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9316 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9317
9318 #
9319 # Check to make sure the PIC flag actually works.
9320 #
9321 if test -n "$lt_prog_compiler_pic"; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9323 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9324 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 lt_cv_prog_compiler_pic_works=no
9328 ac_outfile=conftest.$ac_objext
9329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9331 # Insert the option either (1) after the last *FLAGS variable, or
9332 # (2) before a word containing "conftest.", or (3) at the end.
9333 # Note that $ac_compile itself does not contain backslashes and begins
9334 # with a dollar sign (not a hyphen), so the echo should work correctly.
9335 # The option is referenced via a variable to avoid confusing sed.
9336 lt_compile=`echo "$ac_compile" | $SED \
9337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9339 -e 's:$: $lt_compiler_flag:'`
9340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9341 (eval "$lt_compile" 2>conftest.err)
9342 ac_status=$?
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 if (exit $ac_status) && test -s "$ac_outfile"; then
9346 # The compiler can only warn and ignore the option if not recognized
9347 # So say no if there are warnings other than the usual output.
9348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9351 lt_cv_prog_compiler_pic_works=yes
9352 fi
9353 fi
9354 $RM conftest*
9355
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9358 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9359
9360 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9361 case $lt_prog_compiler_pic in
9362 "" | " "*) ;;
9363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9364 esac
9365 else
9366 lt_prog_compiler_pic=
9367 lt_prog_compiler_can_build_shared=no
9368 fi
9369
9370 fi
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 #
9383 # Check to make sure the static flag actually works.
9384 #
9385 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9387 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9388 if ${lt_cv_prog_compiler_static_works+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 lt_cv_prog_compiler_static_works=no
9392 save_LDFLAGS=$LDFLAGS
9393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9396 # The linker can only warn and ignore the option if not recognized
9397 # So say no if there are warnings
9398 if test -s conftest.err; then
9399 # Append any errors to the config.log.
9400 cat conftest.err 1>&5
9401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9403 if diff conftest.exp conftest.er2 >/dev/null; then
9404 lt_cv_prog_compiler_static_works=yes
9405 fi
9406 else
9407 lt_cv_prog_compiler_static_works=yes
9408 fi
9409 fi
9410 $RM -r conftest*
9411 LDFLAGS=$save_LDFLAGS
9412
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9415 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9416
9417 if test yes = "$lt_cv_prog_compiler_static_works"; then
9418 :
9419 else
9420 lt_prog_compiler_static=
9421 fi
9422
9423
9424
9425
9426
9427
9428
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9431 if ${lt_cv_prog_compiler_c_o+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 lt_cv_prog_compiler_c_o=no
9435 $RM -r conftest 2>/dev/null
9436 mkdir conftest
9437 cd conftest
9438 mkdir out
9439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9440
9441 lt_compiler_flag="-o out/conftest2.$ac_objext"
9442 # Insert the option either (1) after the last *FLAGS variable, or
9443 # (2) before a word containing "conftest.", or (3) at the end.
9444 # Note that $ac_compile itself does not contain backslashes and begins
9445 # with a dollar sign (not a hyphen), so the echo should work correctly.
9446 lt_compile=`echo "$ac_compile" | $SED \
9447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9449 -e 's:$: $lt_compiler_flag:'`
9450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9451 (eval "$lt_compile" 2>out/conftest.err)
9452 ac_status=$?
9453 cat out/conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9456 then
9457 # The compiler can only warn and ignore the option if not recognized
9458 # So say no if there are warnings
9459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9462 lt_cv_prog_compiler_c_o=yes
9463 fi
9464 fi
9465 chmod u+w . 2>&5
9466 $RM conftest*
9467 # SGI C++ compiler will create directory out/ii_files/ for
9468 # template instantiation
9469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9470 $RM out/* && rmdir out
9471 cd ..
9472 $RM -r conftest
9473 $RM conftest*
9474
9475 fi
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9477 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9478
9479
9480
9481
9482
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9485 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9486 if ${lt_cv_prog_compiler_c_o+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 lt_cv_prog_compiler_c_o=no
9490 $RM -r conftest 2>/dev/null
9491 mkdir conftest
9492 cd conftest
9493 mkdir out
9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495
9496 lt_compiler_flag="-o out/conftest2.$ac_objext"
9497 # Insert the option either (1) after the last *FLAGS variable, or
9498 # (2) before a word containing "conftest.", or (3) at the end.
9499 # Note that $ac_compile itself does not contain backslashes and begins
9500 # with a dollar sign (not a hyphen), so the echo should work correctly.
9501 lt_compile=`echo "$ac_compile" | $SED \
9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504 -e 's:$: $lt_compiler_flag:'`
9505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9506 (eval "$lt_compile" 2>out/conftest.err)
9507 ac_status=$?
9508 cat out/conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9511 then
9512 # The compiler can only warn and ignore the option if not recognized
9513 # So say no if there are warnings
9514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_c_o=yes
9518 fi
9519 fi
9520 chmod u+w . 2>&5
9521 $RM conftest*
9522 # SGI C++ compiler will create directory out/ii_files/ for
9523 # template instantiation
9524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9525 $RM out/* && rmdir out
9526 cd ..
9527 $RM -r conftest
9528 $RM conftest*
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9532 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9533
9534
9535
9536
9537 hard_links=nottested
9538 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9539 # do not overwrite the value of need_locks provided by the user
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9541 $as_echo_n "checking if we can lock with hard links... " >&6; }
9542 hard_links=yes
9543 $RM conftest*
9544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9545 touch conftest.a
9546 ln conftest.a conftest.b 2>&5 || hard_links=no
9547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9549 $as_echo "$hard_links" >&6; }
9550 if test no = "$hard_links"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9552 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9553 need_locks=warn
9554 fi
9555 else
9556 need_locks=no
9557 fi
9558
9559
9560
9561
9562
9563
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9565 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9566
9567 runpath_var=
9568 allow_undefined_flag=
9569 always_export_symbols=no
9570 archive_cmds=
9571 archive_expsym_cmds=
9572 compiler_needs_object=no
9573 enable_shared_with_static_runtimes=no
9574 export_dynamic_flag_spec=
9575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9576 hardcode_automatic=no
9577 hardcode_direct=no
9578 hardcode_direct_absolute=no
9579 hardcode_libdir_flag_spec=
9580 hardcode_libdir_separator=
9581 hardcode_minus_L=no
9582 hardcode_shlibpath_var=unsupported
9583 inherit_rpath=no
9584 link_all_deplibs=unknown
9585 module_cmds=
9586 module_expsym_cmds=
9587 old_archive_from_new_cmds=
9588 old_archive_from_expsyms_cmds=
9589 thread_safe_flag_spec=
9590 whole_archive_flag_spec=
9591 # include_expsyms should be a list of space-separated symbols to be *always*
9592 # included in the symbol list
9593 include_expsyms=
9594 # exclude_expsyms can be an extended regexp of symbols to exclude
9595 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9596 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9597 # as well as any symbol that contains 'd'.
9598 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9600 # platforms (ab)use it in PIC code, but their linkers get confused if
9601 # the symbol is explicitly referenced. Since portable code cannot
9602 # rely on this symbol name, it's probably fine to never include it in
9603 # preloaded symbol tables.
9604 # Exclude shared library initialization/finalization symbols.
9605 extract_expsyms_cmds=
9606
9607 case $host_os in
9608 cygwin* | mingw* | pw32* | cegcc*)
9609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9610 # When not using gcc, we currently assume that we are using
9611 # Microsoft Visual C++.
9612 if test yes != "$GCC"; then
9613 with_gnu_ld=no
9614 fi
9615 ;;
9616 interix*)
9617 # we just hope/assume this is gcc and not c89 (= MSVC++)
9618 with_gnu_ld=yes
9619 ;;
9620 openbsd* | bitrig*)
9621 with_gnu_ld=no
9622 ;;
9623 esac
9624
9625 ld_shlibs=yes
9626
9627 # On some targets, GNU ld is compatible enough with the native linker
9628 # that we're better off using the native interface for both.
9629 lt_use_gnu_ld_interface=no
9630 if test yes = "$with_gnu_ld"; then
9631 case $host_os in
9632 aix*)
9633 # The AIX port of GNU ld has always aspired to compatibility
9634 # with the native linker. However, as the warning in the GNU ld
9635 # block says, versions before 2.19.5* couldn't really create working
9636 # shared libraries, regardless of the interface used.
9637 case `$LD -v 2>&1` in
9638 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9639 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9640 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9641 *)
9642 lt_use_gnu_ld_interface=yes
9643 ;;
9644 esac
9645 ;;
9646 *)
9647 lt_use_gnu_ld_interface=yes
9648 ;;
9649 esac
9650 fi
9651
9652 if test yes = "$lt_use_gnu_ld_interface"; then
9653 # If archive_cmds runs LD, not CC, wlarc should be empty
9654 wlarc='$wl'
9655
9656 # Set some defaults for GNU ld with shared library support. These
9657 # are reset later if shared libraries are not supported. Putting them
9658 # here allows them to be overridden if necessary.
9659 runpath_var=LD_RUN_PATH
9660 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9661 export_dynamic_flag_spec='$wl--export-dynamic'
9662 # ancient GNU ld didn't support --whole-archive et. al.
9663 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9664 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9665 else
9666 whole_archive_flag_spec=
9667 fi
9668 supports_anon_versioning=no
9669 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9670 *GNU\ gold*) supports_anon_versioning=yes ;;
9671 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9674 *\ 2.11.*) ;; # other 2.11 versions
9675 *) supports_anon_versioning=yes ;;
9676 esac
9677
9678 # See if GNU ld supports shared libraries.
9679 case $host_os in
9680 aix[3-9]*)
9681 # On AIX/PPC, the GNU linker is very broken
9682 if test ia64 != "$host_cpu"; then
9683 ld_shlibs=no
9684 cat <<_LT_EOF 1>&2
9685
9686 *** Warning: the GNU linker, at least up to release 2.19, is reported
9687 *** to be unable to reliably create shared libraries on AIX.
9688 *** Therefore, libtool is disabling shared libraries support. If you
9689 *** really care for shared libraries, you may want to install binutils
9690 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9691 *** You will then need to restart the configuration process.
9692
9693 _LT_EOF
9694 fi
9695 ;;
9696
9697 amigaos*)
9698 case $host_cpu in
9699 powerpc)
9700 # see comment about AmigaOS4 .so support
9701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9702 archive_expsym_cmds=''
9703 ;;
9704 m68k)
9705 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)'
9706 hardcode_libdir_flag_spec='-L$libdir'
9707 hardcode_minus_L=yes
9708 ;;
9709 esac
9710 ;;
9711
9712 beos*)
9713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9714 allow_undefined_flag=unsupported
9715 # Joseph Beckenbach <[email protected]> says some releases of gcc
9716 # support --undefined. This deserves some investigation. FIXME
9717 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9718 else
9719 ld_shlibs=no
9720 fi
9721 ;;
9722
9723 cygwin* | mingw* | pw32* | cegcc*)
9724 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9725 # as there is no search path for DLLs.
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 export_dynamic_flag_spec='$wl--export-all-symbols'
9728 allow_undefined_flag=unsupported
9729 always_export_symbols=no
9730 enable_shared_with_static_runtimes=yes
9731 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'
9732 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9733
9734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9736 # If the export-symbols file already is a .def file, use it as
9737 # is; otherwise, prepend EXPORTS...
9738 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9739 cp $export_symbols $output_objdir/$soname.def;
9740 else
9741 echo EXPORTS > $output_objdir/$soname.def;
9742 cat $export_symbols >> $output_objdir/$soname.def;
9743 fi~
9744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9745 else
9746 ld_shlibs=no
9747 fi
9748 ;;
9749
9750 haiku*)
9751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9752 link_all_deplibs=yes
9753 ;;
9754
9755 os2*)
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 hardcode_minus_L=yes
9758 allow_undefined_flag=unsupported
9759 shrext_cmds=.dll
9760 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9763 $ECHO EXPORTS >> $output_objdir/$libname.def~
9764 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9766 emximp -o $lib $output_objdir/$libname.def'
9767 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9768 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9769 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9770 $ECHO EXPORTS >> $output_objdir/$libname.def~
9771 prefix_cmds="$SED"~
9772 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9773 prefix_cmds="$prefix_cmds -e 1d";
9774 fi~
9775 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9776 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9777 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9778 emximp -o $lib $output_objdir/$libname.def'
9779 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9780 enable_shared_with_static_runtimes=yes
9781 ;;
9782
9783 interix[3-9]*)
9784 hardcode_direct=no
9785 hardcode_shlibpath_var=no
9786 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9787 export_dynamic_flag_spec='$wl-E'
9788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9789 # Instead, shared libraries are loaded at an image base (0x10000000 by
9790 # default) and relocated if they conflict, which is a slow very memory
9791 # consuming and fragmenting process. To avoid this, we pick a random,
9792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9795 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'
9796 ;;
9797
9798 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9799 tmp_diet=no
9800 if test linux-dietlibc = "$host_os"; then
9801 case $cc_basename in
9802 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9803 esac
9804 fi
9805 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9806 && test no = "$tmp_diet"
9807 then
9808 tmp_addflag=' $pic_flag'
9809 tmp_sharedflag='-shared'
9810 case $cc_basename,$host_cpu in
9811 pgcc*) # Portland Group C compiler
9812 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'
9813 tmp_addflag=' $pic_flag'
9814 ;;
9815 pgf77* | pgf90* | pgf95* | pgfortran*)
9816 # Portland Group f77 and f90 compilers
9817 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'
9818 tmp_addflag=' $pic_flag -Mnomain' ;;
9819 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9820 tmp_addflag=' -i_dynamic' ;;
9821 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9822 tmp_addflag=' -i_dynamic -nofor_main' ;;
9823 ifc* | ifort*) # Intel Fortran compiler
9824 tmp_addflag=' -nofor_main' ;;
9825 lf95*) # Lahey Fortran 8.1
9826 whole_archive_flag_spec=
9827 tmp_sharedflag='--shared' ;;
9828 nagfor*) # NAGFOR 5.3
9829 tmp_sharedflag='-Wl,-shared' ;;
9830 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9831 tmp_sharedflag='-qmkshrobj'
9832 tmp_addflag= ;;
9833 nvcc*) # Cuda Compiler Driver 2.2
9834 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'
9835 compiler_needs_object=yes
9836 ;;
9837 esac
9838 case `$CC -V 2>&1 | sed 5q` in
9839 *Sun\ C*) # Sun C 5.9
9840 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'
9841 compiler_needs_object=yes
9842 tmp_sharedflag='-G' ;;
9843 *Sun\ F*) # Sun Fortran 8.3
9844 tmp_sharedflag='-G' ;;
9845 esac
9846 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9847
9848 if test yes = "$supports_anon_versioning"; then
9849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9851 echo "local: *; };" >> $output_objdir/$libname.ver~
9852 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9853 fi
9854
9855 case $cc_basename in
9856 tcc*)
9857 export_dynamic_flag_spec='-rdynamic'
9858 ;;
9859 xlf* | bgf* | bgxlf* | mpixlf*)
9860 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9861 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9862 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9863 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9864 if test yes = "$supports_anon_versioning"; then
9865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9867 echo "local: *; };" >> $output_objdir/$libname.ver~
9868 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9869 fi
9870 ;;
9871 esac
9872 else
9873 ld_shlibs=no
9874 fi
9875 ;;
9876
9877 netbsd*)
9878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9879 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9880 wlarc=
9881 else
9882 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9884 fi
9885 ;;
9886
9887 solaris*)
9888 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
9891
9892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9893 *** create shared libraries on Solaris systems. Therefore, libtool
9894 *** is disabling shared libraries support. We urge you to upgrade GNU
9895 *** binutils to release 2.9.1 or newer. Another option is to modify
9896 *** your PATH or compiler configuration so that the native linker is
9897 *** used, and then restart.
9898
9899 _LT_EOF
9900 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9903 else
9904 ld_shlibs=no
9905 fi
9906 ;;
9907
9908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9909 case `$LD -v 2>&1` in
9910 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9911 ld_shlibs=no
9912 cat <<_LT_EOF 1>&2
9913
9914 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9915 *** reliably create shared libraries on SCO systems. Therefore, libtool
9916 *** is disabling shared libraries support. We urge you to upgrade GNU
9917 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9918 *** your PATH or compiler configuration so that the native linker is
9919 *** used, and then restart.
9920
9921 _LT_EOF
9922 ;;
9923 *)
9924 # For security reasons, it is highly recommended that you always
9925 # use absolute paths for naming shared libraries, and exclude the
9926 # DT_RUNPATH tag from executables and libraries. But doing so
9927 # requires that you compile everything twice, which is a pain.
9928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9929 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936 esac
9937 ;;
9938
9939 sunos4*)
9940 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9941 wlarc=
9942 hardcode_direct=yes
9943 hardcode_shlibpath_var=no
9944 ;;
9945
9946 *)
9947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9949 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9950 else
9951 ld_shlibs=no
9952 fi
9953 ;;
9954 esac
9955
9956 if test no = "$ld_shlibs"; then
9957 runpath_var=
9958 hardcode_libdir_flag_spec=
9959 export_dynamic_flag_spec=
9960 whole_archive_flag_spec=
9961 fi
9962 else
9963 # PORTME fill in a description of your system's linker (not GNU ld)
9964 case $host_os in
9965 aix3*)
9966 allow_undefined_flag=unsupported
9967 always_export_symbols=yes
9968 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'
9969 # Note: this linker hardcodes the directories in LIBPATH if there
9970 # are no directories specified by -L.
9971 hardcode_minus_L=yes
9972 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9973 # Neither direct hardcoding nor static linking is supported with a
9974 # broken collect2.
9975 hardcode_direct=unsupported
9976 fi
9977 ;;
9978
9979 aix[4-9]*)
9980 if test ia64 = "$host_cpu"; then
9981 # On IA64, the linker does run time linking by default, so we don't
9982 # have to do anything special.
9983 aix_use_runtimelinking=no
9984 exp_sym_flag='-Bexport'
9985 no_entry_flag=
9986 else
9987 # If we're using GNU nm, then we don't want the "-C" option.
9988 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9989 # Without the "-l" option, or with the "-B" option, AIX nm treats
9990 # weak defined symbols like other global defined symbols, whereas
9991 # GNU nm marks them as "W".
9992 # While the 'weak' keyword is ignored in the Export File, we need
9993 # it in the Import File for the 'aix-soname' feature, so we have
9994 # to replace the "-B" option with "-P" for AIX nm.
9995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9996 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9997 else
9998 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9999 fi
10000 aix_use_runtimelinking=no
10001
10002 # Test if we are trying to use run time linking or normal
10003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10004 # have runtime linking enabled, and use it for executables.
10005 # For shared libraries, we enable/disable runtime linking
10006 # depending on the kind of the shared library created -
10007 # when "with_aix_soname,aix_use_runtimelinking" is:
10008 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10009 # "aix,yes" lib.so shared, rtl:yes, for executables
10010 # lib.a static archive
10011 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10012 # lib.a(lib.so.V) shared, rtl:no, for executables
10013 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10014 # lib.a(lib.so.V) shared, rtl:no
10015 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10016 # lib.a static archive
10017 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10018 for ld_flag in $LDFLAGS; do
10019 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10020 aix_use_runtimelinking=yes
10021 break
10022 fi
10023 done
10024 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10025 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10026 # so we don't have lib.a shared libs to link our executables.
10027 # We have to force runtime linking in this case.
10028 aix_use_runtimelinking=yes
10029 LDFLAGS="$LDFLAGS -Wl,-brtl"
10030 fi
10031 ;;
10032 esac
10033
10034 exp_sym_flag='-bexport'
10035 no_entry_flag='-bnoentry'
10036 fi
10037
10038 # When large executables or shared objects are built, AIX ld can
10039 # have problems creating the table of contents. If linking a library
10040 # or program results in "error TOC overflow" add -mminimal-toc to
10041 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10042 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10043
10044 archive_cmds=''
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 hardcode_libdir_separator=':'
10048 link_all_deplibs=yes
10049 file_list_spec='$wl-f,'
10050 case $with_aix_soname,$aix_use_runtimelinking in
10051 aix,*) ;; # traditional, no import file
10052 svr4,* | *,yes) # use import file
10053 # The Import File defines what to hardcode.
10054 hardcode_direct=no
10055 hardcode_direct_absolute=no
10056 ;;
10057 esac
10058
10059 if test yes = "$GCC"; then
10060 case $host_os in aix4.[012]|aix4.[012].*)
10061 # We only want to do this on AIX 4.2 and lower, the check
10062 # below for broken collect2 doesn't work under 4.3+
10063 collect2name=`$CC -print-prog-name=collect2`
10064 if test -f "$collect2name" &&
10065 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10066 then
10067 # We have reworked collect2
10068 :
10069 else
10070 # We have old collect2
10071 hardcode_direct=unsupported
10072 # It fails to find uninstalled libraries when the uninstalled
10073 # path is not listed in the libpath. Setting hardcode_minus_L
10074 # to unsupported forces relinking
10075 hardcode_minus_L=yes
10076 hardcode_libdir_flag_spec='-L$libdir'
10077 hardcode_libdir_separator=
10078 fi
10079 ;;
10080 esac
10081 shared_flag='-shared'
10082 if test yes = "$aix_use_runtimelinking"; then
10083 shared_flag="$shared_flag "'$wl-G'
10084 fi
10085 # Need to ensure runtime linking is disabled for the traditional
10086 # shared library, or the linker may eventually find shared libraries
10087 # /with/ Import File - we do not want to mix them.
10088 shared_flag_aix='-shared'
10089 shared_flag_svr4='-shared $wl-G'
10090 else
10091 # not using gcc
10092 if test ia64 = "$host_cpu"; then
10093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10094 # chokes on -Wl,-G. The following line is correct:
10095 shared_flag='-G'
10096 else
10097 if test yes = "$aix_use_runtimelinking"; then
10098 shared_flag='$wl-G'
10099 else
10100 shared_flag='$wl-bM:SRE'
10101 fi
10102 shared_flag_aix='$wl-bM:SRE'
10103 shared_flag_svr4='$wl-G'
10104 fi
10105 fi
10106
10107 export_dynamic_flag_spec='$wl-bexpall'
10108 # It seems that -bexpall does not export symbols beginning with
10109 # underscore (_), so it is better to generate a list of symbols to export.
10110 always_export_symbols=yes
10111 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10112 # Warning - without using the other runtime loading flags (-brtl),
10113 # -berok will link without error, but may produce a broken library.
10114 allow_undefined_flag='-berok'
10115 # Determine the default libpath from the value encoded in an
10116 # empty executable.
10117 if test set = "${lt_cv_aix_libpath+set}"; then
10118 aix_libpath=$lt_cv_aix_libpath
10119 else
10120 if ${lt_cv_aix_libpath_+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125
10126 int
10127 main ()
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135
10136 lt_aix_libpath_sed='
10137 /Import File Strings/,/^$/ {
10138 /^0/ {
10139 s/^0 *\([^ ]*\) *$/\1/
10140 p
10141 }
10142 }'
10143 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10144 # Check for a 64-bit object if we didn't find anything.
10145 if test -z "$lt_cv_aix_libpath_"; then
10146 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10147 fi
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 if test -z "$lt_cv_aix_libpath_"; then
10152 lt_cv_aix_libpath_=/usr/lib:/lib
10153 fi
10154
10155 fi
10156
10157 aix_libpath=$lt_cv_aix_libpath_
10158 fi
10159
10160 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10161 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10162 else
10163 if test ia64 = "$host_cpu"; then
10164 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10165 allow_undefined_flag="-z nodefs"
10166 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"
10167 else
10168 # Determine the default libpath from the value encoded in an
10169 # empty executable.
10170 if test set = "${lt_cv_aix_libpath+set}"; then
10171 aix_libpath=$lt_cv_aix_libpath
10172 else
10173 if ${lt_cv_aix_libpath_+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178
10179 int
10180 main ()
10181 {
10182
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 if ac_fn_c_try_link "$LINENO"; then :
10188
10189 lt_aix_libpath_sed='
10190 /Import File Strings/,/^$/ {
10191 /^0/ {
10192 s/^0 *\([^ ]*\) *$/\1/
10193 p
10194 }
10195 }'
10196 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10197 # Check for a 64-bit object if we didn't find anything.
10198 if test -z "$lt_cv_aix_libpath_"; then
10199 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10200 fi
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 if test -z "$lt_cv_aix_libpath_"; then
10205 lt_cv_aix_libpath_=/usr/lib:/lib
10206 fi
10207
10208 fi
10209
10210 aix_libpath=$lt_cv_aix_libpath_
10211 fi
10212
10213 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10214 # Warning - without using the other run time loading flags,
10215 # -berok will link without error, but may produce a broken library.
10216 no_undefined_flag=' $wl-bernotok'
10217 allow_undefined_flag=' $wl-berok'
10218 if test yes = "$with_gnu_ld"; then
10219 # We only use this code for GNU lds that support --whole-archive.
10220 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10221 else
10222 # Exported symbols can be pulled into shared objects from archives
10223 whole_archive_flag_spec='$convenience'
10224 fi
10225 archive_cmds_need_lc=yes
10226 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10227 # -brtl affects multiple linker settings, -berok does not and is overridden later
10228 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10229 if test svr4 != "$with_aix_soname"; then
10230 # This is similar to how AIX traditionally builds its shared libraries.
10231 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10232 fi
10233 if test aix != "$with_aix_soname"; then
10234 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10235 else
10236 # used by -dlpreopen to get the symbols
10237 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10238 fi
10239 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10240 fi
10241 fi
10242 ;;
10243
10244 amigaos*)
10245 case $host_cpu in
10246 powerpc)
10247 # see comment about AmigaOS4 .so support
10248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10249 archive_expsym_cmds=''
10250 ;;
10251 m68k)
10252 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)'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_minus_L=yes
10255 ;;
10256 esac
10257 ;;
10258
10259 bsdi[45]*)
10260 export_dynamic_flag_spec=-rdynamic
10261 ;;
10262
10263 cygwin* | mingw* | pw32* | cegcc*)
10264 # When not using gcc, we currently assume that we are using
10265 # Microsoft Visual C++.
10266 # hardcode_libdir_flag_spec is actually meaningless, as there is
10267 # no search path for DLLs.
10268 case $cc_basename in
10269 cl*)
10270 # Native MSVC
10271 hardcode_libdir_flag_spec=' '
10272 allow_undefined_flag=unsupported
10273 always_export_symbols=yes
10274 file_list_spec='@'
10275 # Tell ltmain to make .lib files, not .a files.
10276 libext=lib
10277 # Tell ltmain to make .dll files, not .so files.
10278 shrext_cmds=.dll
10279 # FIXME: Setting linknames here is a bad hack.
10280 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10281 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10282 cp "$export_symbols" "$output_objdir/$soname.def";
10283 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10284 else
10285 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10286 fi~
10287 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10288 linknames='
10289 # The linker will not automatically build a static lib if we build a DLL.
10290 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10291 enable_shared_with_static_runtimes=yes
10292 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10294 # Don't use ranlib
10295 old_postinstall_cmds='chmod 644 $oldlib'
10296 postlink_cmds='lt_outputfile="@OUTPUT@"~
10297 lt_tool_outputfile="@TOOL_OUTPUT@"~
10298 case $lt_outputfile in
10299 *.exe|*.EXE) ;;
10300 *)
10301 lt_outputfile=$lt_outputfile.exe
10302 lt_tool_outputfile=$lt_tool_outputfile.exe
10303 ;;
10304 esac~
10305 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10306 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10307 $RM "$lt_outputfile.manifest";
10308 fi'
10309 ;;
10310 *)
10311 # Assume MSVC wrapper
10312 hardcode_libdir_flag_spec=' '
10313 allow_undefined_flag=unsupported
10314 # Tell ltmain to make .lib files, not .a files.
10315 libext=lib
10316 # Tell ltmain to make .dll files, not .so files.
10317 shrext_cmds=.dll
10318 # FIXME: Setting linknames here is a bad hack.
10319 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10320 # The linker will automatically build a .lib file if we build a DLL.
10321 old_archive_from_new_cmds='true'
10322 # FIXME: Should let the user specify the lib program.
10323 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10324 enable_shared_with_static_runtimes=yes
10325 ;;
10326 esac
10327 ;;
10328
10329 darwin* | rhapsody*)
10330
10331
10332 archive_cmds_need_lc=no
10333 hardcode_direct=no
10334 hardcode_automatic=yes
10335 hardcode_shlibpath_var=unsupported
10336 if test yes = "$lt_cv_ld_force_load"; then
10337 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\"`'
10338
10339 else
10340 whole_archive_flag_spec=''
10341 fi
10342 link_all_deplibs=yes
10343 allow_undefined_flag=$_lt_dar_allow_undefined
10344 case $cc_basename in
10345 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10346 *) _lt_dar_can_shared=$GCC ;;
10347 esac
10348 if test yes = "$_lt_dar_can_shared"; then
10349 output_verbose_link_cmd=func_echo_all
10350 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10351 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10352 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"
10353 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"
10354
10355 else
10356 ld_shlibs=no
10357 fi
10358
10359 ;;
10360
10361 dgux*)
10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 hardcode_shlibpath_var=no
10365 ;;
10366
10367 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10368 # support. Future versions do this automatically, but an explicit c++rt0.o
10369 # does not break anything, and helps significantly (at the cost of a little
10370 # extra space).
10371 freebsd2.2*)
10372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10373 hardcode_libdir_flag_spec='-R$libdir'
10374 hardcode_direct=yes
10375 hardcode_shlibpath_var=no
10376 ;;
10377
10378 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10379 freebsd2.*)
10380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_direct=yes
10382 hardcode_minus_L=yes
10383 hardcode_shlibpath_var=no
10384 ;;
10385
10386 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10387 freebsd* | dragonfly*)
10388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10389 hardcode_libdir_flag_spec='-R$libdir'
10390 hardcode_direct=yes
10391 hardcode_shlibpath_var=no
10392 ;;
10393
10394 hpux9*)
10395 if test yes = "$GCC"; then
10396 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10397 else
10398 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10399 fi
10400 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10401 hardcode_libdir_separator=:
10402 hardcode_direct=yes
10403
10404 # hardcode_minus_L: Not really in the search PATH,
10405 # but as the default location of the library.
10406 hardcode_minus_L=yes
10407 export_dynamic_flag_spec='$wl-E'
10408 ;;
10409
10410 hpux10*)
10411 if test yes,no = "$GCC,$with_gnu_ld"; then
10412 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10413 else
10414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10415 fi
10416 if test no = "$with_gnu_ld"; then
10417 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10418 hardcode_libdir_separator=:
10419 hardcode_direct=yes
10420 hardcode_direct_absolute=yes
10421 export_dynamic_flag_spec='$wl-E'
10422 # hardcode_minus_L: Not really in the search PATH,
10423 # but as the default location of the library.
10424 hardcode_minus_L=yes
10425 fi
10426 ;;
10427
10428 hpux11*)
10429 if test yes,no = "$GCC,$with_gnu_ld"; then
10430 case $host_cpu in
10431 hppa*64*)
10432 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 ;;
10434 ia64*)
10435 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 *)
10438 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10439 ;;
10440 esac
10441 else
10442 case $host_cpu in
10443 hppa*64*)
10444 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 ;;
10446 ia64*)
10447 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10448 ;;
10449 *)
10450
10451 # Older versions of the 11.00 compiler do not understand -b yet
10452 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10454 $as_echo_n "checking if $CC understands -b... " >&6; }
10455 if ${lt_cv_prog_compiler__b+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 lt_cv_prog_compiler__b=no
10459 save_LDFLAGS=$LDFLAGS
10460 LDFLAGS="$LDFLAGS -b"
10461 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10463 # The linker can only warn and ignore the option if not recognized
10464 # So say no if there are warnings
10465 if test -s conftest.err; then
10466 # Append any errors to the config.log.
10467 cat conftest.err 1>&5
10468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10470 if diff conftest.exp conftest.er2 >/dev/null; then
10471 lt_cv_prog_compiler__b=yes
10472 fi
10473 else
10474 lt_cv_prog_compiler__b=yes
10475 fi
10476 fi
10477 $RM -r conftest*
10478 LDFLAGS=$save_LDFLAGS
10479
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10482 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10483
10484 if test yes = "$lt_cv_prog_compiler__b"; then
10485 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10486 else
10487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10488 fi
10489
10490 ;;
10491 esac
10492 fi
10493 if test no = "$with_gnu_ld"; then
10494 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10495 hardcode_libdir_separator=:
10496
10497 case $host_cpu in
10498 hppa*64*|ia64*)
10499 hardcode_direct=no
10500 hardcode_shlibpath_var=no
10501 ;;
10502 *)
10503 hardcode_direct=yes
10504 hardcode_direct_absolute=yes
10505 export_dynamic_flag_spec='$wl-E'
10506
10507 # hardcode_minus_L: Not really in the search PATH,
10508 # but as the default location of the library.
10509 hardcode_minus_L=yes
10510 ;;
10511 esac
10512 fi
10513 ;;
10514
10515 irix5* | irix6* | nonstopux*)
10516 if test yes = "$GCC"; then
10517 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'
10518 # Try to use the -exported_symbol ld option, if it does not
10519 # work, assume that -exports_file does not work either and
10520 # implicitly export all symbols.
10521 # This should be the same for all languages, so no per-tag cache variable.
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10523 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10524 if ${lt_cv_irix_exported_symbol+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 save_LDFLAGS=$LDFLAGS
10528 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 int foo (void) { return 0; }
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 lt_cv_irix_exported_symbol=yes
10535 else
10536 lt_cv_irix_exported_symbol=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LDFLAGS=$save_LDFLAGS
10541 fi
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10543 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10544 if test yes = "$lt_cv_irix_exported_symbol"; then
10545 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'
10546 fi
10547 else
10548 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'
10549 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'
10550 fi
10551 archive_cmds_need_lc='no'
10552 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10553 hardcode_libdir_separator=:
10554 inherit_rpath=yes
10555 link_all_deplibs=yes
10556 ;;
10557
10558 linux*)
10559 case $cc_basename in
10560 tcc*)
10561 # Fabrice Bellard et al's Tiny C Compiler
10562 ld_shlibs=yes
10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10564 ;;
10565 esac
10566 ;;
10567
10568 netbsd*)
10569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10571 else
10572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10573 fi
10574 hardcode_libdir_flag_spec='-R$libdir'
10575 hardcode_direct=yes
10576 hardcode_shlibpath_var=no
10577 ;;
10578
10579 newsos6)
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=yes
10582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10583 hardcode_libdir_separator=:
10584 hardcode_shlibpath_var=no
10585 ;;
10586
10587 *nto* | *qnx*)
10588 ;;
10589
10590 openbsd* | bitrig*)
10591 if test -f /usr/libexec/ld.so; then
10592 hardcode_direct=yes
10593 hardcode_shlibpath_var=no
10594 hardcode_direct_absolute=yes
10595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10598 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10599 export_dynamic_flag_spec='$wl-E'
10600 else
10601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10602 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10603 fi
10604 else
10605 ld_shlibs=no
10606 fi
10607 ;;
10608
10609 os2*)
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_minus_L=yes
10612 allow_undefined_flag=unsupported
10613 shrext_cmds=.dll
10614 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10617 $ECHO EXPORTS >> $output_objdir/$libname.def~
10618 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10620 emximp -o $lib $output_objdir/$libname.def'
10621 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10622 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10623 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10624 $ECHO EXPORTS >> $output_objdir/$libname.def~
10625 prefix_cmds="$SED"~
10626 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10627 prefix_cmds="$prefix_cmds -e 1d";
10628 fi~
10629 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10630 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10632 emximp -o $lib $output_objdir/$libname.def'
10633 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10634 enable_shared_with_static_runtimes=yes
10635 ;;
10636
10637 osf3*)
10638 if test yes = "$GCC"; then
10639 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10640 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'
10641 else
10642 allow_undefined_flag=' -expect_unresolved \*'
10643 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'
10644 fi
10645 archive_cmds_need_lc='no'
10646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647 hardcode_libdir_separator=:
10648 ;;
10649
10650 osf4* | osf5*) # as osf3* with the addition of -msym flag
10651 if test yes = "$GCC"; then
10652 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10653 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'
10654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10655 else
10656 allow_undefined_flag=' -expect_unresolved \*'
10657 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'
10658 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~
10659 $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'
10660
10661 # Both c and cxx compiler support -rpath directly
10662 hardcode_libdir_flag_spec='-rpath $libdir'
10663 fi
10664 archive_cmds_need_lc='no'
10665 hardcode_libdir_separator=:
10666 ;;
10667
10668 solaris*)
10669 no_undefined_flag=' -z defs'
10670 if test yes = "$GCC"; then
10671 wlarc='$wl'
10672 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10674 $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'
10675 else
10676 case `$CC -V 2>&1` in
10677 *"Compilers 5.0"*)
10678 wlarc=''
10679 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10681 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10682 ;;
10683 *)
10684 wlarc='$wl'
10685 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10688 ;;
10689 esac
10690 fi
10691 hardcode_libdir_flag_spec='-R$libdir'
10692 hardcode_shlibpath_var=no
10693 case $host_os in
10694 solaris2.[0-5] | solaris2.[0-5].*) ;;
10695 *)
10696 # The compiler driver will combine and reorder linker options,
10697 # but understands '-z linker_flag'. GCC discards it without '$wl',
10698 # but is careful enough not to reorder.
10699 # Supported since Solaris 2.6 (maybe 2.5.1?)
10700 if test yes = "$GCC"; then
10701 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10702 else
10703 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10704 fi
10705 ;;
10706 esac
10707 link_all_deplibs=yes
10708 ;;
10709
10710 sunos4*)
10711 if test sequent = "$host_vendor"; then
10712 # Use $CC to link under sequent, because it throws in some extra .o
10713 # files that make .init and .fini sections work.
10714 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10715 else
10716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10717 fi
10718 hardcode_libdir_flag_spec='-L$libdir'
10719 hardcode_direct=yes
10720 hardcode_minus_L=yes
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 sysv4)
10725 case $host_vendor in
10726 sni)
10727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728 hardcode_direct=yes # is this really true???
10729 ;;
10730 siemens)
10731 ## LD is ld it makes a PLAMLIB
10732 ## CC just makes a GrossModule.
10733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10734 reload_cmds='$CC -r -o $output$reload_objs'
10735 hardcode_direct=no
10736 ;;
10737 motorola)
10738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10740 ;;
10741 esac
10742 runpath_var='LD_RUN_PATH'
10743 hardcode_shlibpath_var=no
10744 ;;
10745
10746 sysv4.3*)
10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748 hardcode_shlibpath_var=no
10749 export_dynamic_flag_spec='-Bexport'
10750 ;;
10751
10752 sysv4*MP*)
10753 if test -d /usr/nec; then
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_shlibpath_var=no
10756 runpath_var=LD_RUN_PATH
10757 hardcode_runpath_var=yes
10758 ld_shlibs=yes
10759 fi
10760 ;;
10761
10762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10763 no_undefined_flag='$wl-z,text'
10764 archive_cmds_need_lc=no
10765 hardcode_shlibpath_var=no
10766 runpath_var='LD_RUN_PATH'
10767
10768 if test yes = "$GCC"; then
10769 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 else
10772 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 fi
10775 ;;
10776
10777 sysv5* | sco3.2v5* | sco5v6*)
10778 # Note: We CANNOT use -z defs as we might desire, because we do not
10779 # link with -lc, and that would cause any symbols used from libc to
10780 # always be unresolved, which means just about no library would
10781 # ever link correctly. If we're not using GNU ld we use -z text
10782 # though, which does catch some bad symbols but isn't as heavy-handed
10783 # as -z defs.
10784 no_undefined_flag='$wl-z,text'
10785 allow_undefined_flag='$wl-z,nodefs'
10786 archive_cmds_need_lc=no
10787 hardcode_shlibpath_var=no
10788 hardcode_libdir_flag_spec='$wl-R,$libdir'
10789 hardcode_libdir_separator=':'
10790 link_all_deplibs=yes
10791 export_dynamic_flag_spec='$wl-Bexport'
10792 runpath_var='LD_RUN_PATH'
10793
10794 if test yes = "$GCC"; then
10795 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797 else
10798 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800 fi
10801 ;;
10802
10803 uts4*)
10804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805 hardcode_libdir_flag_spec='-L$libdir'
10806 hardcode_shlibpath_var=no
10807 ;;
10808
10809 *)
10810 ld_shlibs=no
10811 ;;
10812 esac
10813
10814 if test sni = "$host_vendor"; then
10815 case $host in
10816 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10817 export_dynamic_flag_spec='$wl-Blargedynsym'
10818 ;;
10819 esac
10820 fi
10821 fi
10822
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10824 $as_echo "$ld_shlibs" >&6; }
10825 test no = "$ld_shlibs" && can_build_shared=no
10826
10827 with_gnu_ld=$with_gnu_ld
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843 #
10844 # Do we need to explicitly link libc?
10845 #
10846 case "x$archive_cmds_need_lc" in
10847 x|xyes)
10848 # Assume -lc should be added
10849 archive_cmds_need_lc=yes
10850
10851 if test yes,yes = "$GCC,$enable_shared"; then
10852 case $archive_cmds in
10853 *'~'*)
10854 # FIXME: we may have to deal with multi-command sequences.
10855 ;;
10856 '$CC '*)
10857 # Test whether the compiler implicitly links with -lc since on some
10858 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10859 # to ld, don't add -lc before -lgcc.
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10862 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 $RM conftest*
10866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10867
10868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10869 (eval $ac_compile) 2>&5
10870 ac_status=$?
10871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10872 test $ac_status = 0; } 2>conftest.err; then
10873 soname=conftest
10874 lib=conftest
10875 libobjs=conftest.$ac_objext
10876 deplibs=
10877 wl=$lt_prog_compiler_wl
10878 pic_flag=$lt_prog_compiler_pic
10879 compiler_flags=-v
10880 linker_flags=-v
10881 verstring=
10882 output_objdir=.
10883 libname=conftest
10884 lt_save_allow_undefined_flag=$allow_undefined_flag
10885 allow_undefined_flag=
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10887 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; }
10891 then
10892 lt_cv_archive_cmds_need_lc=no
10893 else
10894 lt_cv_archive_cmds_need_lc=yes
10895 fi
10896 allow_undefined_flag=$lt_save_allow_undefined_flag
10897 else
10898 cat conftest.err 1>&5
10899 fi
10900 $RM conftest*
10901
10902 fi
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10904 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10905 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10906 ;;
10907 esac
10908 fi
10909 ;;
10910 esac
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11064 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11065
11066 if test yes = "$GCC"; then
11067 case $host_os in
11068 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11069 *) lt_awk_arg='/^libraries:/' ;;
11070 esac
11071 case $host_os in
11072 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11073 *) lt_sed_strip_eq='s|=/|/|g' ;;
11074 esac
11075 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11076 case $lt_search_path_spec in
11077 *\;*)
11078 # if the path contains ";" then we assume it to be the separator
11079 # otherwise default to the standard path separator (i.e. ":") - it is
11080 # assumed that no part of a normal pathname contains ";" but that should
11081 # okay in the real world where ";" in dirpaths is itself problematic.
11082 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11083 ;;
11084 *)
11085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11086 ;;
11087 esac
11088 # Ok, now we have the path, separated by spaces, we can step through it
11089 # and add multilib dir if necessary...
11090 lt_tmp_lt_search_path_spec=
11091 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11092 # ...but if some path component already ends with the multilib dir we assume
11093 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11094 case "$lt_multi_os_dir; $lt_search_path_spec " in
11095 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11096 lt_multi_os_dir=
11097 ;;
11098 esac
11099 for lt_sys_path in $lt_search_path_spec; do
11100 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11102 elif test -n "$lt_multi_os_dir"; then
11103 test -d "$lt_sys_path" && \
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11105 fi
11106 done
11107 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11108 BEGIN {RS = " "; FS = "/|\n";} {
11109 lt_foo = "";
11110 lt_count = 0;
11111 for (lt_i = NF; lt_i > 0; lt_i--) {
11112 if ($lt_i != "" && $lt_i != ".") {
11113 if ($lt_i == "..") {
11114 lt_count++;
11115 } else {
11116 if (lt_count == 0) {
11117 lt_foo = "/" $lt_i lt_foo;
11118 } else {
11119 lt_count--;
11120 }
11121 }
11122 }
11123 }
11124 if (lt_foo != "") { lt_freq[lt_foo]++; }
11125 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11126 }'`
11127 # AWK program above erroneously prepends '/' to C:/dos/paths
11128 # for these hosts.
11129 case $host_os in
11130 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11131 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11132 esac
11133 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11134 else
11135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11136 fi
11137 library_names_spec=
11138 libname_spec='lib$name'
11139 soname_spec=
11140 shrext_cmds=.so
11141 postinstall_cmds=
11142 postuninstall_cmds=
11143 finish_cmds=
11144 finish_eval=
11145 shlibpath_var=
11146 shlibpath_overrides_runpath=unknown
11147 version_type=none
11148 dynamic_linker="$host_os ld.so"
11149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11150 need_lib_prefix=unknown
11151 hardcode_into_libs=no
11152
11153 # when you set need_version to no, make sure it does not cause -set_version
11154 # flags to be left without arguments
11155 need_version=unknown
11156
11157
11158
11159 case $host_os in
11160 aix3*)
11161 version_type=linux # correct to gnu/linux during the next big refactor
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11163 shlibpath_var=LIBPATH
11164
11165 # AIX 3 has no versioning support, so we append a major version to the name.
11166 soname_spec='$libname$release$shared_ext$major'
11167 ;;
11168
11169 aix[4-9]*)
11170 version_type=linux # correct to gnu/linux during the next big refactor
11171 need_lib_prefix=no
11172 need_version=no
11173 hardcode_into_libs=yes
11174 if test ia64 = "$host_cpu"; then
11175 # AIX 5 supports IA64
11176 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 else
11179 # With GCC up to 2.95.x, collect2 would create an import file
11180 # for dependence libraries. The import file would start with
11181 # the line '#! .'. This would cause the generated library to
11182 # depend on '.', always an invalid library. This was fixed in
11183 # development snapshots of GCC prior to 3.0.
11184 case $host_os in
11185 aix4 | aix4.[01] | aix4.[01].*)
11186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11187 echo ' yes '
11188 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11189 :
11190 else
11191 can_build_shared=no
11192 fi
11193 ;;
11194 esac
11195 # Using Import Files as archive members, it is possible to support
11196 # filename-based versioning of shared library archives on AIX. While
11197 # this would work for both with and without runtime linking, it will
11198 # prevent static linking of such archives. So we do filename-based
11199 # shared library versioning with .so extension only, which is used
11200 # when both runtime linking and shared linking is enabled.
11201 # Unfortunately, runtime linking may impact performance, so we do
11202 # not want this to be the default eventually. Also, we use the
11203 # versioned .so libs for executables only if there is the -brtl
11204 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11205 # To allow for filename-based versioning support, we need to create
11206 # libNAME.so.V as an archive file, containing:
11207 # *) an Import File, referring to the versioned filename of the
11208 # archive as well as the shared archive member, telling the
11209 # bitwidth (32 or 64) of that shared object, and providing the
11210 # list of exported symbols of that shared object, eventually
11211 # decorated with the 'weak' keyword
11212 # *) the shared object with the F_LOADONLY flag set, to really avoid
11213 # it being seen by the linker.
11214 # At run time we better use the real file rather than another symlink,
11215 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11216
11217 case $with_aix_soname,$aix_use_runtimelinking in
11218 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11219 # soname into executable. Probably we can add versioning support to
11220 # collect2, so additional links can be useful in future.
11221 aix,yes) # traditional libtool
11222 dynamic_linker='AIX unversionable lib.so'
11223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11224 # instead of lib<name>.a to let people know that these are not
11225 # typical AIX shared libraries.
11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227 ;;
11228 aix,no) # traditional AIX only
11229 dynamic_linker='AIX lib.a(lib.so.V)'
11230 # We preserve .a as extension for shared libraries through AIX4.2
11231 # and later when we are not doing run time linking.
11232 library_names_spec='$libname$release.a $libname.a'
11233 soname_spec='$libname$release$shared_ext$major'
11234 ;;
11235 svr4,*) # full svr4 only
11236 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11237 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11238 # We do not specify a path in Import Files, so LIBPATH fires.
11239 shlibpath_overrides_runpath=yes
11240 ;;
11241 *,yes) # both, prefer svr4
11242 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11243 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11244 # unpreferred sharedlib libNAME.a needs extra handling
11245 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11246 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11247 # We do not specify a path in Import Files, so LIBPATH fires.
11248 shlibpath_overrides_runpath=yes
11249 ;;
11250 *,no) # both, prefer aix
11251 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11252 library_names_spec='$libname$release.a $libname.a'
11253 soname_spec='$libname$release$shared_ext$major'
11254 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11255 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11256 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11257 ;;
11258 esac
11259 shlibpath_var=LIBPATH
11260 fi
11261 ;;
11262
11263 amigaos*)
11264 case $host_cpu in
11265 powerpc)
11266 # Since July 2007 AmigaOS4 officially supports .so libraries.
11267 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11269 ;;
11270 m68k)
11271 library_names_spec='$libname.ixlibrary $libname.a'
11272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11273 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11274 ;;
11275 esac
11276 ;;
11277
11278 beos*)
11279 library_names_spec='$libname$shared_ext'
11280 dynamic_linker="$host_os ld.so"
11281 shlibpath_var=LIBRARY_PATH
11282 ;;
11283
11284 bsdi[45]*)
11285 version_type=linux # correct to gnu/linux during the next big refactor
11286 need_version=no
11287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11288 soname_spec='$libname$release$shared_ext$major'
11289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11293 # the default ld.so.conf also contains /usr/contrib/lib and
11294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11295 # libtool to hard-code these into programs
11296 ;;
11297
11298 cygwin* | mingw* | pw32* | cegcc*)
11299 version_type=windows
11300 shrext_cmds=.dll
11301 need_version=no
11302 need_lib_prefix=no
11303
11304 case $GCC,$cc_basename in
11305 yes,*)
11306 # gcc
11307 library_names_spec='$libname.dll.a'
11308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309 postinstall_cmds='base_file=`basename \$file`~
11310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11311 dldir=$destdir/`dirname \$dlpath`~
11312 test -d \$dldir || mkdir -p \$dldir~
11313 $install_prog $dir/$dlname \$dldir/$dlname~
11314 chmod a+x \$dldir/$dlname~
11315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11317 fi'
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11320 $RM \$dlpath'
11321 shlibpath_overrides_runpath=yes
11322
11323 case $host_os in
11324 cygwin*)
11325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11326 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11327
11328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11329 ;;
11330 mingw* | cegcc*)
11331 # MinGW DLLs use traditional 'lib' prefix
11332 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11333 ;;
11334 pw32*)
11335 # pw32 DLLs use 'pw' prefix rather than 'lib'
11336 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11337 ;;
11338 esac
11339 dynamic_linker='Win32 ld.exe'
11340 ;;
11341
11342 *,cl*)
11343 # Native MSVC
11344 libname_spec='$name'
11345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11346 library_names_spec='$libname.dll.lib'
11347
11348 case $build_os in
11349 mingw*)
11350 sys_lib_search_path_spec=
11351 lt_save_ifs=$IFS
11352 IFS=';'
11353 for lt_path in $LIB
11354 do
11355 IFS=$lt_save_ifs
11356 # Let DOS variable expansion print the short 8.3 style file name.
11357 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11358 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11359 done
11360 IFS=$lt_save_ifs
11361 # Convert to MSYS style.
11362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11363 ;;
11364 cygwin*)
11365 # Convert to unix form, then to dos form, then back to unix form
11366 # but this time dos style (no spaces!) so that the unix form looks
11367 # like /cygdrive/c/PROGRA~1:/cygdr...
11368 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11369 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11370 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11371 ;;
11372 *)
11373 sys_lib_search_path_spec=$LIB
11374 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11375 # It is most probably a Windows format PATH.
11376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11377 else
11378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11379 fi
11380 # FIXME: find the short name or the path components, as spaces are
11381 # common. (e.g. "Program Files" -> "PROGRA~1")
11382 ;;
11383 esac
11384
11385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11386 postinstall_cmds='base_file=`basename \$file`~
11387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11388 dldir=$destdir/`dirname \$dlpath`~
11389 test -d \$dldir || mkdir -p \$dldir~
11390 $install_prog $dir/$dlname \$dldir/$dlname'
11391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392 dlpath=$dir/\$dldll~
11393 $RM \$dlpath'
11394 shlibpath_overrides_runpath=yes
11395 dynamic_linker='Win32 link.exe'
11396 ;;
11397
11398 *)
11399 # Assume MSVC wrapper
11400 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11401 dynamic_linker='Win32 ld.exe'
11402 ;;
11403 esac
11404 # FIXME: first we should search . and the directory the executable is in
11405 shlibpath_var=PATH
11406 ;;
11407
11408 darwin* | rhapsody*)
11409 dynamic_linker="$host_os dyld"
11410 version_type=darwin
11411 need_lib_prefix=no
11412 need_version=no
11413 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11414 soname_spec='$libname$release$major$shared_ext'
11415 shlibpath_overrides_runpath=yes
11416 shlibpath_var=DYLD_LIBRARY_PATH
11417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11418
11419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11421 ;;
11422
11423 dgux*)
11424 version_type=linux # correct to gnu/linux during the next big refactor
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428 soname_spec='$libname$release$shared_ext$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 ;;
11431
11432 freebsd* | dragonfly*)
11433 # DragonFly does not have aout. When/if they implement a new
11434 # versioning mechanism, adjust this.
11435 if test -x /usr/bin/objformat; then
11436 objformat=`/usr/bin/objformat`
11437 else
11438 case $host_os in
11439 freebsd[23].*) objformat=aout ;;
11440 *) objformat=elf ;;
11441 esac
11442 fi
11443 version_type=freebsd-$objformat
11444 case $version_type in
11445 freebsd-elf*)
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 soname_spec='$libname$release$shared_ext$major'
11448 need_version=no
11449 need_lib_prefix=no
11450 ;;
11451 freebsd-*)
11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11453 need_version=yes
11454 ;;
11455 esac
11456 shlibpath_var=LD_LIBRARY_PATH
11457 case $host_os in
11458 freebsd2.*)
11459 shlibpath_overrides_runpath=yes
11460 ;;
11461 freebsd3.[01]* | freebsdelf3.[01]*)
11462 shlibpath_overrides_runpath=yes
11463 hardcode_into_libs=yes
11464 ;;
11465 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11466 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11467 shlibpath_overrides_runpath=no
11468 hardcode_into_libs=yes
11469 ;;
11470 *) # from 4.6 on, and DragonFly
11471 shlibpath_overrides_runpath=yes
11472 hardcode_into_libs=yes
11473 ;;
11474 esac
11475 ;;
11476
11477 haiku*)
11478 version_type=linux # correct to gnu/linux during the next big refactor
11479 need_lib_prefix=no
11480 need_version=no
11481 dynamic_linker="$host_os runtime_loader"
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 shlibpath_var=LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11487 hardcode_into_libs=yes
11488 ;;
11489
11490 hpux9* | hpux10* | hpux11*)
11491 # Give a soname corresponding to the major version so that dld.sl refuses to
11492 # link against other versions.
11493 version_type=sunos
11494 need_lib_prefix=no
11495 need_version=no
11496 case $host_cpu in
11497 ia64*)
11498 shrext_cmds='.so'
11499 hardcode_into_libs=yes
11500 dynamic_linker="$host_os dld.so"
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504 soname_spec='$libname$release$shared_ext$major'
11505 if test 32 = "$HPUX_IA64_MODE"; then
11506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11507 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11508 else
11509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11510 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11511 fi
11512 ;;
11513 hppa*64*)
11514 shrext_cmds='.sl'
11515 hardcode_into_libs=yes
11516 dynamic_linker="$host_os dld.sl"
11517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11520 soname_spec='$libname$release$shared_ext$major'
11521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11523 ;;
11524 *)
11525 shrext_cmds='.sl'
11526 dynamic_linker="$host_os dld.sl"
11527 shlibpath_var=SHLIB_PATH
11528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 soname_spec='$libname$release$shared_ext$major'
11531 ;;
11532 esac
11533 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11534 postinstall_cmds='chmod 555 $lib'
11535 # or fails outright, so override atomically:
11536 install_override_mode=555
11537 ;;
11538
11539 interix[3-9]*)
11540 version_type=linux # correct to gnu/linux during the next big refactor
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 soname_spec='$libname$release$shared_ext$major'
11545 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=no
11548 hardcode_into_libs=yes
11549 ;;
11550
11551 irix5* | irix6* | nonstopux*)
11552 case $host_os in
11553 nonstopux*) version_type=nonstopux ;;
11554 *)
11555 if test yes = "$lt_cv_prog_gnu_ld"; then
11556 version_type=linux # correct to gnu/linux during the next big refactor
11557 else
11558 version_type=irix
11559 fi ;;
11560 esac
11561 need_lib_prefix=no
11562 need_version=no
11563 soname_spec='$libname$release$shared_ext$major'
11564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11565 case $host_os in
11566 irix5* | nonstopux*)
11567 libsuff= shlibsuff=
11568 ;;
11569 *)
11570 case $LD in # libtool.m4 will add one of these switches to LD
11571 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11572 libsuff= shlibsuff= libmagic=32-bit;;
11573 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11574 libsuff=32 shlibsuff=N32 libmagic=N32;;
11575 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11576 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11577 *) libsuff= shlibsuff= libmagic=never-match;;
11578 esac
11579 ;;
11580 esac
11581 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11582 shlibpath_overrides_runpath=no
11583 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11584 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11585 hardcode_into_libs=yes
11586 ;;
11587
11588 # No shared lib support for Linux oldld, aout, or coff.
11589 linux*oldld* | linux*aout* | linux*coff*)
11590 dynamic_linker=no
11591 ;;
11592
11593 linux*android*)
11594 version_type=none # Android doesn't support versioned libraries.
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='$libname$release$shared_ext'
11598 soname_spec='$libname$release$shared_ext'
11599 finish_cmds=
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11602
11603 # This implies no fast_install, which is unacceptable.
11604 # Some rework will be needed to allow for fast_install
11605 # before this can be enabled.
11606 hardcode_into_libs=yes
11607
11608 dynamic_linker='Android linker'
11609 # Don't embed -rpath directories since the linker doesn't support them.
11610 hardcode_libdir_flag_spec='-L$libdir'
11611 ;;
11612
11613 # This must be glibc/ELF.
11614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11615 version_type=linux # correct to gnu/linux during the next big refactor
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619 soname_spec='$libname$release$shared_ext$major'
11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=no
11623
11624 # Some binutils ld are patched to set DT_RUNPATH
11625 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 lt_cv_shlibpath_overrides_runpath=no
11629 save_LDFLAGS=$LDFLAGS
11630 save_libdir=$libdir
11631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635
11636 int
11637 main ()
11638 {
11639
11640 ;
11641 return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11646 lt_cv_shlibpath_overrides_runpath=yes
11647 fi
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LDFLAGS=$save_LDFLAGS
11652 libdir=$save_libdir
11653
11654 fi
11655
11656 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11657
11658 # This implies no fast_install, which is unacceptable.
11659 # Some rework will be needed to allow for fast_install
11660 # before this can be enabled.
11661 hardcode_into_libs=yes
11662
11663 # Ideally, we could use ldconfig to report *all* directores which are
11664 # searched for libraries, however this is still not possible. Aside from not
11665 # being certain /sbin/ldconfig is available, command
11666 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11667 # even though it is searched at run-time. Try to do the best guess by
11668 # appending ld.so.conf contents (and includes) to the search path.
11669 if test -f /etc/ld.so.conf; then
11670 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' ' '`
11671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11672 fi
11673
11674 # We used to test for /lib/ld.so.1 and disable shared libraries on
11675 # powerpc, because MkLinux only supported shared libraries with the
11676 # GNU dynamic linker. Since this was broken with cross compilers,
11677 # most powerpc-linux boxes support dynamic linking these days and
11678 # people can always --disable-shared, the test was removed, and we
11679 # assume the GNU/Linux dynamic linker is in use.
11680 dynamic_linker='GNU/Linux ld.so'
11681 ;;
11682
11683 netbsd*)
11684 version_type=sunos
11685 need_lib_prefix=no
11686 need_version=no
11687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11690 dynamic_linker='NetBSD (a.out) ld.so'
11691 else
11692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693 soname_spec='$libname$release$shared_ext$major'
11694 dynamic_linker='NetBSD ld.elf_so'
11695 fi
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11698 hardcode_into_libs=yes
11699 ;;
11700
11701 newsos6)
11702 version_type=linux # correct to gnu/linux during the next big refactor
11703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=yes
11706 ;;
11707
11708 *nto* | *qnx*)
11709 version_type=qnx
11710 need_lib_prefix=no
11711 need_version=no
11712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11713 soname_spec='$libname$release$shared_ext$major'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=no
11716 hardcode_into_libs=yes
11717 dynamic_linker='ldqnx.so'
11718 ;;
11719
11720 openbsd* | bitrig*)
11721 version_type=sunos
11722 sys_lib_dlsearch_path_spec=/usr/lib
11723 need_lib_prefix=no
11724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11725 need_version=no
11726 else
11727 need_version=yes
11728 fi
11729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 shlibpath_overrides_runpath=yes
11733 ;;
11734
11735 os2*)
11736 libname_spec='$name'
11737 version_type=windows
11738 shrext_cmds=.dll
11739 need_version=no
11740 need_lib_prefix=no
11741 # OS/2 can only load a DLL with a base name of 8 characters or less.
11742 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11743 v=$($ECHO $release$versuffix | tr -d .-);
11744 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11745 $ECHO $n$v`$shared_ext'
11746 library_names_spec='${libname}_dll.$libext'
11747 dynamic_linker='OS/2 ld.exe'
11748 shlibpath_var=BEGINLIBPATH
11749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11751 postinstall_cmds='base_file=`basename \$file`~
11752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11753 dldir=$destdir/`dirname \$dlpath`~
11754 test -d \$dldir || mkdir -p \$dldir~
11755 $install_prog $dir/$dlname \$dldir/$dlname~
11756 chmod a+x \$dldir/$dlname~
11757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11759 fi'
11760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11761 dlpath=$dir/\$dldll~
11762 $RM \$dlpath'
11763 ;;
11764
11765 osf3* | osf4* | osf5*)
11766 version_type=osf
11767 need_lib_prefix=no
11768 need_version=no
11769 soname_spec='$libname$release$shared_ext$major'
11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11774 ;;
11775
11776 rdos*)
11777 dynamic_linker=no
11778 ;;
11779
11780 solaris*)
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11785 soname_spec='$libname$release$shared_ext$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11788 hardcode_into_libs=yes
11789 # ldd complains unless libraries are executable
11790 postinstall_cmds='chmod +x $lib'
11791 ;;
11792
11793 sunos4*)
11794 version_type=sunos
11795 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 if test yes = "$with_gnu_ld"; then
11800 need_lib_prefix=no
11801 fi
11802 need_version=yes
11803 ;;
11804
11805 sysv4 | sysv4.3*)
11806 version_type=linux # correct to gnu/linux during the next big refactor
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11808 soname_spec='$libname$release$shared_ext$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 case $host_vendor in
11811 sni)
11812 shlibpath_overrides_runpath=no
11813 need_lib_prefix=no
11814 runpath_var=LD_RUN_PATH
11815 ;;
11816 siemens)
11817 need_lib_prefix=no
11818 ;;
11819 motorola)
11820 need_lib_prefix=no
11821 need_version=no
11822 shlibpath_overrides_runpath=no
11823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11824 ;;
11825 esac
11826 ;;
11827
11828 sysv4*MP*)
11829 if test -d /usr/nec; then
11830 version_type=linux # correct to gnu/linux during the next big refactor
11831 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11832 soname_spec='$libname$shared_ext.$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 fi
11835 ;;
11836
11837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11838 version_type=sco
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11842 soname_spec='$libname$release$shared_ext$major'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=yes
11845 hardcode_into_libs=yes
11846 if test yes = "$with_gnu_ld"; then
11847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11848 else
11849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11850 case $host_os in
11851 sco3.2v5*)
11852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11853 ;;
11854 esac
11855 fi
11856 sys_lib_dlsearch_path_spec='/usr/lib'
11857 ;;
11858
11859 tpf*)
11860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11861 version_type=linux # correct to gnu/linux during the next big refactor
11862 need_lib_prefix=no
11863 need_version=no
11864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=no
11867 hardcode_into_libs=yes
11868 ;;
11869
11870 uts4*)
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11873 soname_spec='$libname$release$shared_ext$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 ;;
11876
11877 *)
11878 dynamic_linker=no
11879 ;;
11880 esac
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11882 $as_echo "$dynamic_linker" >&6; }
11883 test no = "$dynamic_linker" && can_build_shared=no
11884
11885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11886 if test yes = "$GCC"; then
11887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11888 fi
11889
11890 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11891 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11892 fi
11893
11894 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11895 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11896 fi
11897
11898 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11899 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11900
11901 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11902 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11903
11904 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11905 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12005 hardcode_action=
12006 if test -n "$hardcode_libdir_flag_spec" ||
12007 test -n "$runpath_var" ||
12008 test yes = "$hardcode_automatic"; then
12009
12010 # We can hardcode non-existent directories.
12011 if test no != "$hardcode_direct" &&
12012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12013 # have to relink, otherwise we might link with an installed library
12014 # when we should be linking with a yet-to-be-installed one
12015 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12016 test no != "$hardcode_minus_L"; then
12017 # Linking always hardcodes the temporary library directory.
12018 hardcode_action=relink
12019 else
12020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12021 hardcode_action=immediate
12022 fi
12023 else
12024 # We cannot hardcode anything, or else we can only hardcode existing
12025 # directories.
12026 hardcode_action=unsupported
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12029 $as_echo "$hardcode_action" >&6; }
12030
12031 if test relink = "$hardcode_action" ||
12032 test yes = "$inherit_rpath"; then
12033 # Fast installation is not supported
12034 enable_fast_install=no
12035 elif test yes = "$shlibpath_overrides_runpath" ||
12036 test no = "$enable_shared"; then
12037 # Fast installation is not necessary
12038 enable_fast_install=needless
12039 fi
12040
12041
12042
12043
12044
12045
12046 if test yes != "$enable_dlopen"; then
12047 enable_dlopen=unknown
12048 enable_dlopen_self=unknown
12049 enable_dlopen_self_static=unknown
12050 else
12051 lt_cv_dlopen=no
12052 lt_cv_dlopen_libs=
12053
12054 case $host_os in
12055 beos*)
12056 lt_cv_dlopen=load_add_on
12057 lt_cv_dlopen_libs=
12058 lt_cv_dlopen_self=yes
12059 ;;
12060
12061 mingw* | pw32* | cegcc*)
12062 lt_cv_dlopen=LoadLibrary
12063 lt_cv_dlopen_libs=
12064 ;;
12065
12066 cygwin*)
12067 lt_cv_dlopen=dlopen
12068 lt_cv_dlopen_libs=
12069 ;;
12070
12071 darwin*)
12072 # if libdl is installed we need to link against it
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12075 if ${ac_cv_lib_dl_dlopen+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-ldl $LIBS"
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char dlopen ();
12090 int
12091 main ()
12092 {
12093 return dlopen ();
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099 ac_cv_lib_dl_dlopen=yes
12100 else
12101 ac_cv_lib_dl_dlopen=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12108 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12109 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12110 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12111 else
12112
12113 lt_cv_dlopen=dyld
12114 lt_cv_dlopen_libs=
12115 lt_cv_dlopen_self=yes
12116
12117 fi
12118
12119 ;;
12120
12121 tpf*)
12122 # Don't try to run any link tests for TPF. We know it's impossible
12123 # because TPF is a cross-compiler, and we know how we open DSOs.
12124 lt_cv_dlopen=dlopen
12125 lt_cv_dlopen_libs=
12126 lt_cv_dlopen_self=no
12127 ;;
12128
12129 *)
12130 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12131 if test "x$ac_cv_func_shl_load" = xyes; then :
12132 lt_cv_dlopen=shl_load
12133 else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12135 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12136 if ${ac_cv_lib_dld_shl_load+:} false; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-ldld $LIBS"
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 char shl_load ();
12151 int
12152 main ()
12153 {
12154 return shl_load ();
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_lib_dld_shl_load=yes
12161 else
12162 ac_cv_lib_dld_shl_load=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12169 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12170 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12171 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12172 else
12173 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12174 if test "x$ac_cv_func_dlopen" = xyes; then :
12175 lt_cv_dlopen=dlopen
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12179 if ${ac_cv_lib_dl_dlopen+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-ldl $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char dlopen ();
12194 int
12195 main ()
12196 {
12197 return dlopen ();
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_dl_dlopen=yes
12204 else
12205 ac_cv_lib_dl_dlopen=no
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12213 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12214 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12217 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12218 if ${ac_cv_lib_svld_dlopen+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 ac_check_lib_save_LIBS=$LIBS
12222 LIBS="-lsvld $LIBS"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char dlopen ();
12233 int
12234 main ()
12235 {
12236 return dlopen ();
12237 ;
12238 return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_lib_svld_dlopen=yes
12243 else
12244 ac_cv_lib_svld_dlopen=no
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12251 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12252 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12253 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12256 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12257 if ${ac_cv_lib_dld_dld_link+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-ldld $LIBS"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 char dld_link ();
12272 int
12273 main ()
12274 {
12275 return dld_link ();
12276 ;
12277 return 0;
12278 }
12279 _ACEOF
12280 if ac_fn_c_try_link "$LINENO"; then :
12281 ac_cv_lib_dld_dld_link=yes
12282 else
12283 ac_cv_lib_dld_dld_link=no
12284 fi
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12290 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12291 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12292 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12293 fi
12294
12295
12296 fi
12297
12298
12299 fi
12300
12301
12302 fi
12303
12304
12305 fi
12306
12307
12308 fi
12309
12310 ;;
12311 esac
12312
12313 if test no = "$lt_cv_dlopen"; then
12314 enable_dlopen=no
12315 else
12316 enable_dlopen=yes
12317 fi
12318
12319 case $lt_cv_dlopen in
12320 dlopen)
12321 save_CPPFLAGS=$CPPFLAGS
12322 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12323
12324 save_LDFLAGS=$LDFLAGS
12325 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12326
12327 save_LIBS=$LIBS
12328 LIBS="$lt_cv_dlopen_libs $LIBS"
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12331 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12332 if ${lt_cv_dlopen_self+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 if test yes = "$cross_compiling"; then :
12336 lt_cv_dlopen_self=cross
12337 else
12338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12339 lt_status=$lt_dlunknown
12340 cat > conftest.$ac_ext <<_LT_EOF
12341 #line $LINENO "configure"
12342 #include "confdefs.h"
12343
12344 #if HAVE_DLFCN_H
12345 #include <dlfcn.h>
12346 #endif
12347
12348 #include <stdio.h>
12349
12350 #ifdef RTLD_GLOBAL
12351 # define LT_DLGLOBAL RTLD_GLOBAL
12352 #else
12353 # ifdef DL_GLOBAL
12354 # define LT_DLGLOBAL DL_GLOBAL
12355 # else
12356 # define LT_DLGLOBAL 0
12357 # endif
12358 #endif
12359
12360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12361 find out it does not work in some platform. */
12362 #ifndef LT_DLLAZY_OR_NOW
12363 # ifdef RTLD_LAZY
12364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12365 # else
12366 # ifdef DL_LAZY
12367 # define LT_DLLAZY_OR_NOW DL_LAZY
12368 # else
12369 # ifdef RTLD_NOW
12370 # define LT_DLLAZY_OR_NOW RTLD_NOW
12371 # else
12372 # ifdef DL_NOW
12373 # define LT_DLLAZY_OR_NOW DL_NOW
12374 # else
12375 # define LT_DLLAZY_OR_NOW 0
12376 # endif
12377 # endif
12378 # endif
12379 # endif
12380 #endif
12381
12382 /* When -fvisibility=hidden is used, assume the code has been annotated
12383 correspondingly for the symbols needed. */
12384 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12385 int fnord () __attribute__((visibility("default")));
12386 #endif
12387
12388 int fnord () { return 42; }
12389 int main ()
12390 {
12391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12392 int status = $lt_dlunknown;
12393
12394 if (self)
12395 {
12396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12397 else
12398 {
12399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400 else puts (dlerror ());
12401 }
12402 /* dlclose (self); */
12403 }
12404 else
12405 puts (dlerror ());
12406
12407 return status;
12408 }
12409 _LT_EOF
12410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12411 (eval $ac_link) 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12415 (./conftest; exit; ) >&5 2>/dev/null
12416 lt_status=$?
12417 case x$lt_status in
12418 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12419 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12420 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12421 esac
12422 else :
12423 # compilation failed
12424 lt_cv_dlopen_self=no
12425 fi
12426 fi
12427 rm -fr conftest*
12428
12429
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12432 $as_echo "$lt_cv_dlopen_self" >&6; }
12433
12434 if test yes = "$lt_cv_dlopen_self"; then
12435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12437 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12438 if ${lt_cv_dlopen_self_static+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test yes = "$cross_compiling"; then :
12442 lt_cv_dlopen_self_static=cross
12443 else
12444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12445 lt_status=$lt_dlunknown
12446 cat > conftest.$ac_ext <<_LT_EOF
12447 #line $LINENO "configure"
12448 #include "confdefs.h"
12449
12450 #if HAVE_DLFCN_H
12451 #include <dlfcn.h>
12452 #endif
12453
12454 #include <stdio.h>
12455
12456 #ifdef RTLD_GLOBAL
12457 # define LT_DLGLOBAL RTLD_GLOBAL
12458 #else
12459 # ifdef DL_GLOBAL
12460 # define LT_DLGLOBAL DL_GLOBAL
12461 # else
12462 # define LT_DLGLOBAL 0
12463 # endif
12464 #endif
12465
12466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12467 find out it does not work in some platform. */
12468 #ifndef LT_DLLAZY_OR_NOW
12469 # ifdef RTLD_LAZY
12470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12471 # else
12472 # ifdef DL_LAZY
12473 # define LT_DLLAZY_OR_NOW DL_LAZY
12474 # else
12475 # ifdef RTLD_NOW
12476 # define LT_DLLAZY_OR_NOW RTLD_NOW
12477 # else
12478 # ifdef DL_NOW
12479 # define LT_DLLAZY_OR_NOW DL_NOW
12480 # else
12481 # define LT_DLLAZY_OR_NOW 0
12482 # endif
12483 # endif
12484 # endif
12485 # endif
12486 #endif
12487
12488 /* When -fvisibility=hidden is used, assume the code has been annotated
12489 correspondingly for the symbols needed. */
12490 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12491 int fnord () __attribute__((visibility("default")));
12492 #endif
12493
12494 int fnord () { return 42; }
12495 int main ()
12496 {
12497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498 int status = $lt_dlunknown;
12499
12500 if (self)
12501 {
12502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12503 else
12504 {
12505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12506 else puts (dlerror ());
12507 }
12508 /* dlclose (self); */
12509 }
12510 else
12511 puts (dlerror ());
12512
12513 return status;
12514 }
12515 _LT_EOF
12516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12517 (eval $ac_link) 2>&5
12518 ac_status=$?
12519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12521 (./conftest; exit; ) >&5 2>/dev/null
12522 lt_status=$?
12523 case x$lt_status in
12524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12526 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12527 esac
12528 else :
12529 # compilation failed
12530 lt_cv_dlopen_self_static=no
12531 fi
12532 fi
12533 rm -fr conftest*
12534
12535
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12538 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12539 fi
12540
12541 CPPFLAGS=$save_CPPFLAGS
12542 LDFLAGS=$save_LDFLAGS
12543 LIBS=$save_LIBS
12544 ;;
12545 esac
12546
12547 case $lt_cv_dlopen_self in
12548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12549 *) enable_dlopen_self=unknown ;;
12550 esac
12551
12552 case $lt_cv_dlopen_self_static in
12553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12554 *) enable_dlopen_self_static=unknown ;;
12555 esac
12556 fi
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574 striplib=
12575 old_striplib=
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12577 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12578 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582 $as_echo "yes" >&6; }
12583 else
12584 # FIXME - insert some real tests, host_os isn't really good enough
12585 case $host_os in
12586 darwin*)
12587 if test -n "$STRIP"; then
12588 striplib="$STRIP -x"
12589 old_striplib="$STRIP -S"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595 fi
12596 ;;
12597 *)
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12600 ;;
12601 esac
12602 fi
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 # Report what library types will actually be built
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12617 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12619 $as_echo "$can_build_shared" >&6; }
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12622 $as_echo_n "checking whether to build shared libraries... " >&6; }
12623 test no = "$can_build_shared" && enable_shared=no
12624
12625 # On AIX, shared libraries and static libraries use the same namespace, and
12626 # are all built from PIC.
12627 case $host_os in
12628 aix3*)
12629 test yes = "$enable_shared" && enable_static=no
12630 if test -n "$RANLIB"; then
12631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12632 postinstall_cmds='$RANLIB $lib'
12633 fi
12634 ;;
12635
12636 aix[4-9]*)
12637 if test ia64 != "$host_cpu"; then
12638 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12639 yes,aix,yes) ;; # shared object as lib.so file only
12640 yes,svr4,*) ;; # shared object as lib.so archive member only
12641 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12642 esac
12643 fi
12644 ;;
12645 esac
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12647 $as_echo "$enable_shared" >&6; }
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12650 $as_echo_n "checking whether to build static libraries... " >&6; }
12651 # Make sure either enable_shared or enable_static is yes.
12652 test yes = "$enable_shared" || enable_static=yes
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12654 $as_echo "$enable_static" >&6; }
12655
12656
12657
12658
12659 fi
12660 ac_ext=c
12661 ac_cpp='$CPP $CPPFLAGS'
12662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665
12666 CC=$lt_save_CC
12667
12668 if test -n "$CXX" && ( test no != "$CXX" &&
12669 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12670 (test g++ != "$CXX"))); then
12671 ac_ext=cpp
12672 ac_cpp='$CXXCPP $CPPFLAGS'
12673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12677 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12678 if test -z "$CXXCPP"; then
12679 if ${ac_cv_prog_CXXCPP+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 # Double quotes because CXXCPP needs to be expanded
12683 for CXXCPP in "$CXX -E" "/lib/cpp"
12684 do
12685 ac_preproc_ok=false
12686 for ac_cxx_preproc_warn_flag in '' yes
12687 do
12688 # Use a header file that comes with gcc, so configuring glibc
12689 # with a fresh cross-compiler works.
12690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12691 # <limits.h> exists even on freestanding compilers.
12692 # On the NeXT, cc -E runs the code through the compiler's parser,
12693 # not just through cpp. "Syntax error" is here to catch this case.
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696 #ifdef __STDC__
12697 # include <limits.h>
12698 #else
12699 # include <assert.h>
12700 #endif
12701 Syntax error
12702 _ACEOF
12703 if ac_fn_cxx_try_cpp "$LINENO"; then :
12704
12705 else
12706 # Broken: fails on valid input.
12707 continue
12708 fi
12709 rm -f conftest.err conftest.i conftest.$ac_ext
12710
12711 # OK, works on sane cases. Now check whether nonexistent headers
12712 # can be detected and how.
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 #include <ac_nonexistent.h>
12716 _ACEOF
12717 if ac_fn_cxx_try_cpp "$LINENO"; then :
12718 # Broken: success on invalid input.
12719 continue
12720 else
12721 # Passes both tests.
12722 ac_preproc_ok=:
12723 break
12724 fi
12725 rm -f conftest.err conftest.i conftest.$ac_ext
12726
12727 done
12728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12729 rm -f conftest.i conftest.err conftest.$ac_ext
12730 if $ac_preproc_ok; then :
12731 break
12732 fi
12733
12734 done
12735 ac_cv_prog_CXXCPP=$CXXCPP
12736
12737 fi
12738 CXXCPP=$ac_cv_prog_CXXCPP
12739 else
12740 ac_cv_prog_CXXCPP=$CXXCPP
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12743 $as_echo "$CXXCPP" >&6; }
12744 ac_preproc_ok=false
12745 for ac_cxx_preproc_warn_flag in '' yes
12746 do
12747 # Use a header file that comes with gcc, so configuring glibc
12748 # with a fresh cross-compiler works.
12749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12750 # <limits.h> exists even on freestanding compilers.
12751 # On the NeXT, cc -E runs the code through the compiler's parser,
12752 # not just through cpp. "Syntax error" is here to catch this case.
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #ifdef __STDC__
12756 # include <limits.h>
12757 #else
12758 # include <assert.h>
12759 #endif
12760 Syntax error
12761 _ACEOF
12762 if ac_fn_cxx_try_cpp "$LINENO"; then :
12763
12764 else
12765 # Broken: fails on valid input.
12766 continue
12767 fi
12768 rm -f conftest.err conftest.i conftest.$ac_ext
12769
12770 # OK, works on sane cases. Now check whether nonexistent headers
12771 # can be detected and how.
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 #include <ac_nonexistent.h>
12775 _ACEOF
12776 if ac_fn_cxx_try_cpp "$LINENO"; then :
12777 # Broken: success on invalid input.
12778 continue
12779 else
12780 # Passes both tests.
12781 ac_preproc_ok=:
12782 break
12783 fi
12784 rm -f conftest.err conftest.i conftest.$ac_ext
12785
12786 done
12787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12788 rm -f conftest.i conftest.err conftest.$ac_ext
12789 if $ac_preproc_ok; then :
12790
12791 else
12792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12794 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12795 See \`config.log' for more details" "$LINENO" 5; }
12796 fi
12797
12798 ac_ext=c
12799 ac_cpp='$CPP $CPPFLAGS'
12800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12803
12804 else
12805 _lt_caught_CXX_error=yes
12806 fi
12807
12808 ac_ext=cpp
12809 ac_cpp='$CXXCPP $CPPFLAGS'
12810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12813
12814 archive_cmds_need_lc_CXX=no
12815 allow_undefined_flag_CXX=
12816 always_export_symbols_CXX=no
12817 archive_expsym_cmds_CXX=
12818 compiler_needs_object_CXX=no
12819 export_dynamic_flag_spec_CXX=
12820 hardcode_direct_CXX=no
12821 hardcode_direct_absolute_CXX=no
12822 hardcode_libdir_flag_spec_CXX=
12823 hardcode_libdir_separator_CXX=
12824 hardcode_minus_L_CXX=no
12825 hardcode_shlibpath_var_CXX=unsupported
12826 hardcode_automatic_CXX=no
12827 inherit_rpath_CXX=no
12828 module_cmds_CXX=
12829 module_expsym_cmds_CXX=
12830 link_all_deplibs_CXX=unknown
12831 old_archive_cmds_CXX=$old_archive_cmds
12832 reload_flag_CXX=$reload_flag
12833 reload_cmds_CXX=$reload_cmds
12834 no_undefined_flag_CXX=
12835 whole_archive_flag_spec_CXX=
12836 enable_shared_with_static_runtimes_CXX=no
12837
12838 # Source file extension for C++ test sources.
12839 ac_ext=cpp
12840
12841 # Object file extension for compiled C++ test sources.
12842 objext=o
12843 objext_CXX=$objext
12844
12845 # No sense in running all these tests if we already determined that
12846 # the CXX compiler isn't working. Some variables (like enable_shared)
12847 # are currently assumed to apply to all compilers on this platform,
12848 # and will be corrupted by setting them based on a non-working compiler.
12849 if test yes != "$_lt_caught_CXX_error"; then
12850 # Code to be used in simple compile tests
12851 lt_simple_compile_test_code="int some_variable = 0;"
12852
12853 # Code to be used in simple link tests
12854 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12855
12856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12857
12858
12859
12860
12861
12862
12863 # If no C compiler was specified, use CC.
12864 LTCC=${LTCC-"$CC"}
12865
12866 # If no C compiler flags were specified, use CFLAGS.
12867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12868
12869 # Allow CC to be a program name with arguments.
12870 compiler=$CC
12871
12872
12873 # save warnings/boilerplate of simple test code
12874 ac_outfile=conftest.$ac_objext
12875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12877 _lt_compiler_boilerplate=`cat conftest.err`
12878 $RM conftest*
12879
12880 ac_outfile=conftest.$ac_objext
12881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12883 _lt_linker_boilerplate=`cat conftest.err`
12884 $RM -r conftest*
12885
12886
12887 # Allow CC to be a program name with arguments.
12888 lt_save_CC=$CC
12889 lt_save_CFLAGS=$CFLAGS
12890 lt_save_LD=$LD
12891 lt_save_GCC=$GCC
12892 GCC=$GXX
12893 lt_save_with_gnu_ld=$with_gnu_ld
12894 lt_save_path_LD=$lt_cv_path_LD
12895 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12896 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12897 else
12898 $as_unset lt_cv_prog_gnu_ld
12899 fi
12900 if test -n "${lt_cv_path_LDCXX+set}"; then
12901 lt_cv_path_LD=$lt_cv_path_LDCXX
12902 else
12903 $as_unset lt_cv_path_LD
12904 fi
12905 test -z "${LDCXX+set}" || LD=$LDCXX
12906 CC=${CXX-"c++"}
12907 CFLAGS=$CXXFLAGS
12908 compiler=$CC
12909 compiler_CXX=$CC
12910 func_cc_basename $compiler
12911 cc_basename=$func_cc_basename_result
12912
12913
12914 if test -n "$compiler"; then
12915 # We don't want -fno-exception when compiling C++ code, so set the
12916 # no_builtin_flag separately
12917 if test yes = "$GXX"; then
12918 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12919 else
12920 lt_prog_compiler_no_builtin_flag_CXX=
12921 fi
12922
12923 if test yes = "$GXX"; then
12924 # Set up default GNU C++ configuration
12925
12926
12927
12928 # Check whether --with-gnu-ld was given.
12929 if test "${with_gnu_ld+set}" = set; then :
12930 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12931 else
12932 with_gnu_ld=no
12933 fi
12934
12935 ac_prog=ld
12936 if test yes = "$GCC"; then
12937 # Check if gcc -print-prog-name=ld gives a path.
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12939 $as_echo_n "checking for ld used by $CC... " >&6; }
12940 case $host in
12941 *-*-mingw*)
12942 # gcc leaves a trailing carriage return, which upsets mingw
12943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12944 *)
12945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12946 esac
12947 case $ac_prog in
12948 # Accept absolute paths.
12949 [\\/]* | ?:[\\/]*)
12950 re_direlt='/[^/][^/]*/\.\./'
12951 # Canonicalize the pathname of ld
12952 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12953 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12954 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12955 done
12956 test -z "$LD" && LD=$ac_prog
12957 ;;
12958 "")
12959 # If it fails, then pretend we aren't using GCC.
12960 ac_prog=ld
12961 ;;
12962 *)
12963 # If it is relative, then search for the first ld in PATH.
12964 with_gnu_ld=unknown
12965 ;;
12966 esac
12967 elif test yes = "$with_gnu_ld"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12969 $as_echo_n "checking for GNU ld... " >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12972 $as_echo_n "checking for non-GNU ld... " >&6; }
12973 fi
12974 if ${lt_cv_path_LD+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 if test -z "$LD"; then
12978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12979 for ac_dir in $PATH; do
12980 IFS=$lt_save_ifs
12981 test -z "$ac_dir" && ac_dir=.
12982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12983 lt_cv_path_LD=$ac_dir/$ac_prog
12984 # Check to see if the program is GNU ld. I'd rather use --version,
12985 # but apparently some variants of GNU ld only accept -v.
12986 # Break only if it was the GNU/non-GNU ld that we prefer.
12987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12988 *GNU* | *'with BFD'*)
12989 test no != "$with_gnu_ld" && break
12990 ;;
12991 *)
12992 test yes != "$with_gnu_ld" && break
12993 ;;
12994 esac
12995 fi
12996 done
12997 IFS=$lt_save_ifs
12998 else
12999 lt_cv_path_LD=$LD # Let the user override the test with a path.
13000 fi
13001 fi
13002
13003 LD=$lt_cv_path_LD
13004 if test -n "$LD"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13006 $as_echo "$LD" >&6; }
13007 else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13010 fi
13011 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13013 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13014 if ${lt_cv_prog_gnu_ld+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13018 case `$LD -v 2>&1 </dev/null` in
13019 *GNU* | *'with BFD'*)
13020 lt_cv_prog_gnu_ld=yes
13021 ;;
13022 *)
13023 lt_cv_prog_gnu_ld=no
13024 ;;
13025 esac
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13028 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13029 with_gnu_ld=$lt_cv_prog_gnu_ld
13030
13031
13032
13033
13034
13035
13036
13037 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13038 # archiving commands below assume that GNU ld is being used.
13039 if test yes = "$with_gnu_ld"; then
13040 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13041 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'
13042
13043 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13044 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13045
13046 # If archive_cmds runs LD, not CC, wlarc should be empty
13047 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13048 # investigate it a little bit more. (MM)
13049 wlarc='$wl'
13050
13051 # ancient GNU ld didn't support --whole-archive et. al.
13052 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13053 $GREP 'no-whole-archive' > /dev/null; then
13054 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13055 else
13056 whole_archive_flag_spec_CXX=
13057 fi
13058 else
13059 with_gnu_ld=no
13060 wlarc=
13061
13062 # A generic and very simple default shared library creation
13063 # command for GNU C++ for the case where it uses the native
13064 # linker, instead of GNU ld. If possible, this setting should
13065 # overridden to take advantage of the native linker features on
13066 # the platform it is being used on.
13067 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13068 fi
13069
13070 # Commands to make compiler produce verbose output that lists
13071 # what "hidden" libraries, object files and flags are used when
13072 # linking a shared library.
13073 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13074
13075 else
13076 GXX=no
13077 with_gnu_ld=no
13078 wlarc=
13079 fi
13080
13081 # PORTME: fill in a description of your system's C++ link characteristics
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13083 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13084 ld_shlibs_CXX=yes
13085 case $host_os in
13086 aix3*)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 aix[4-9]*)
13091 if test ia64 = "$host_cpu"; then
13092 # On IA64, the linker does run time linking by default, so we don't
13093 # have to do anything special.
13094 aix_use_runtimelinking=no
13095 exp_sym_flag='-Bexport'
13096 no_entry_flag=
13097 else
13098 aix_use_runtimelinking=no
13099
13100 # Test if we are trying to use run time linking or normal
13101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13102 # have runtime linking enabled, and use it for executables.
13103 # For shared libraries, we enable/disable runtime linking
13104 # depending on the kind of the shared library created -
13105 # when "with_aix_soname,aix_use_runtimelinking" is:
13106 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13107 # "aix,yes" lib.so shared, rtl:yes, for executables
13108 # lib.a static archive
13109 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13110 # lib.a(lib.so.V) shared, rtl:no, for executables
13111 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13112 # lib.a(lib.so.V) shared, rtl:no
13113 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13114 # lib.a static archive
13115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13116 for ld_flag in $LDFLAGS; do
13117 case $ld_flag in
13118 *-brtl*)
13119 aix_use_runtimelinking=yes
13120 break
13121 ;;
13122 esac
13123 done
13124 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13125 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13126 # so we don't have lib.a shared libs to link our executables.
13127 # We have to force runtime linking in this case.
13128 aix_use_runtimelinking=yes
13129 LDFLAGS="$LDFLAGS -Wl,-brtl"
13130 fi
13131 ;;
13132 esac
13133
13134 exp_sym_flag='-bexport'
13135 no_entry_flag='-bnoentry'
13136 fi
13137
13138 # When large executables or shared objects are built, AIX ld can
13139 # have problems creating the table of contents. If linking a library
13140 # or program results in "error TOC overflow" add -mminimal-toc to
13141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13143
13144 archive_cmds_CXX=''
13145 hardcode_direct_CXX=yes
13146 hardcode_direct_absolute_CXX=yes
13147 hardcode_libdir_separator_CXX=':'
13148 link_all_deplibs_CXX=yes
13149 file_list_spec_CXX='$wl-f,'
13150 case $with_aix_soname,$aix_use_runtimelinking in
13151 aix,*) ;; # no import file
13152 svr4,* | *,yes) # use import file
13153 # The Import File defines what to hardcode.
13154 hardcode_direct_CXX=no
13155 hardcode_direct_absolute_CXX=no
13156 ;;
13157 esac
13158
13159 if test yes = "$GXX"; then
13160 case $host_os in aix4.[012]|aix4.[012].*)
13161 # We only want to do this on AIX 4.2 and lower, the check
13162 # below for broken collect2 doesn't work under 4.3+
13163 collect2name=`$CC -print-prog-name=collect2`
13164 if test -f "$collect2name" &&
13165 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13166 then
13167 # We have reworked collect2
13168 :
13169 else
13170 # We have old collect2
13171 hardcode_direct_CXX=unsupported
13172 # It fails to find uninstalled libraries when the uninstalled
13173 # path is not listed in the libpath. Setting hardcode_minus_L
13174 # to unsupported forces relinking
13175 hardcode_minus_L_CXX=yes
13176 hardcode_libdir_flag_spec_CXX='-L$libdir'
13177 hardcode_libdir_separator_CXX=
13178 fi
13179 esac
13180 shared_flag='-shared'
13181 if test yes = "$aix_use_runtimelinking"; then
13182 shared_flag=$shared_flag' $wl-G'
13183 fi
13184 # Need to ensure runtime linking is disabled for the traditional
13185 # shared library, or the linker may eventually find shared libraries
13186 # /with/ Import File - we do not want to mix them.
13187 shared_flag_aix='-shared'
13188 shared_flag_svr4='-shared $wl-G'
13189 else
13190 # not using gcc
13191 if test ia64 = "$host_cpu"; then
13192 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13193 # chokes on -Wl,-G. The following line is correct:
13194 shared_flag='-G'
13195 else
13196 if test yes = "$aix_use_runtimelinking"; then
13197 shared_flag='$wl-G'
13198 else
13199 shared_flag='$wl-bM:SRE'
13200 fi
13201 shared_flag_aix='$wl-bM:SRE'
13202 shared_flag_svr4='$wl-G'
13203 fi
13204 fi
13205
13206 export_dynamic_flag_spec_CXX='$wl-bexpall'
13207 # It seems that -bexpall does not export symbols beginning with
13208 # underscore (_), so it is better to generate a list of symbols to
13209 # export.
13210 always_export_symbols_CXX=yes
13211 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13212 # Warning - without using the other runtime loading flags (-brtl),
13213 # -berok will link without error, but may produce a broken library.
13214 # The "-G" linker flag allows undefined symbols.
13215 no_undefined_flag_CXX='-bernotok'
13216 # Determine the default libpath from the value encoded in an empty
13217 # executable.
13218 if test set = "${lt_cv_aix_libpath+set}"; then
13219 aix_libpath=$lt_cv_aix_libpath
13220 else
13221 if ${lt_cv_aix_libpath__CXX+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226
13227 int
13228 main ()
13229 {
13230
13231 ;
13232 return 0;
13233 }
13234 _ACEOF
13235 if ac_fn_cxx_try_link "$LINENO"; then :
13236
13237 lt_aix_libpath_sed='
13238 /Import File Strings/,/^$/ {
13239 /^0/ {
13240 s/^0 *\([^ ]*\) *$/\1/
13241 p
13242 }
13243 }'
13244 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13245 # Check for a 64-bit object if we didn't find anything.
13246 if test -z "$lt_cv_aix_libpath__CXX"; then
13247 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13248 fi
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext \
13251 conftest$ac_exeext conftest.$ac_ext
13252 if test -z "$lt_cv_aix_libpath__CXX"; then
13253 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13254 fi
13255
13256 fi
13257
13258 aix_libpath=$lt_cv_aix_libpath__CXX
13259 fi
13260
13261 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13262
13263 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13264 else
13265 if test ia64 = "$host_cpu"; then
13266 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13267 allow_undefined_flag_CXX="-z nodefs"
13268 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"
13269 else
13270 # Determine the default libpath from the value encoded in an
13271 # empty executable.
13272 if test set = "${lt_cv_aix_libpath+set}"; then
13273 aix_libpath=$lt_cv_aix_libpath
13274 else
13275 if ${lt_cv_aix_libpath__CXX+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280
13281 int
13282 main ()
13283 {
13284
13285 ;
13286 return 0;
13287 }
13288 _ACEOF
13289 if ac_fn_cxx_try_link "$LINENO"; then :
13290
13291 lt_aix_libpath_sed='
13292 /Import File Strings/,/^$/ {
13293 /^0/ {
13294 s/^0 *\([^ ]*\) *$/\1/
13295 p
13296 }
13297 }'
13298 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13299 # Check for a 64-bit object if we didn't find anything.
13300 if test -z "$lt_cv_aix_libpath__CXX"; then
13301 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13302 fi
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 if test -z "$lt_cv_aix_libpath__CXX"; then
13307 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13308 fi
13309
13310 fi
13311
13312 aix_libpath=$lt_cv_aix_libpath__CXX
13313 fi
13314
13315 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13316 # Warning - without using the other run time loading flags,
13317 # -berok will link without error, but may produce a broken library.
13318 no_undefined_flag_CXX=' $wl-bernotok'
13319 allow_undefined_flag_CXX=' $wl-berok'
13320 if test yes = "$with_gnu_ld"; then
13321 # We only use this code for GNU lds that support --whole-archive.
13322 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13323 else
13324 # Exported symbols can be pulled into shared objects from archives
13325 whole_archive_flag_spec_CXX='$convenience'
13326 fi
13327 archive_cmds_need_lc_CXX=yes
13328 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13329 # -brtl affects multiple linker settings, -berok does not and is overridden later
13330 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13331 if test svr4 != "$with_aix_soname"; then
13332 # This is similar to how AIX traditionally builds its shared
13333 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13334 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13335 fi
13336 if test aix != "$with_aix_soname"; then
13337 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13338 else
13339 # used by -dlpreopen to get the symbols
13340 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13341 fi
13342 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13343 fi
13344 fi
13345 ;;
13346
13347 beos*)
13348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13349 allow_undefined_flag_CXX=unsupported
13350 # Joseph Beckenbach <[email protected]> says some releases of gcc
13351 # support --undefined. This deserves some investigation. FIXME
13352 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13353 else
13354 ld_shlibs_CXX=no
13355 fi
13356 ;;
13357
13358 chorus*)
13359 case $cc_basename in
13360 *)
13361 # FIXME: insert proper C++ library support
13362 ld_shlibs_CXX=no
13363 ;;
13364 esac
13365 ;;
13366
13367 cygwin* | mingw* | pw32* | cegcc*)
13368 case $GXX,$cc_basename in
13369 ,cl* | no,cl*)
13370 # Native MSVC
13371 # hardcode_libdir_flag_spec is actually meaningless, as there is
13372 # no search path for DLLs.
13373 hardcode_libdir_flag_spec_CXX=' '
13374 allow_undefined_flag_CXX=unsupported
13375 always_export_symbols_CXX=yes
13376 file_list_spec_CXX='@'
13377 # Tell ltmain to make .lib files, not .a files.
13378 libext=lib
13379 # Tell ltmain to make .dll files, not .so files.
13380 shrext_cmds=.dll
13381 # FIXME: Setting linknames here is a bad hack.
13382 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13383 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13384 cp "$export_symbols" "$output_objdir/$soname.def";
13385 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13386 else
13387 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13388 fi~
13389 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13390 linknames='
13391 # The linker will not automatically build a static lib if we build a DLL.
13392 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13393 enable_shared_with_static_runtimes_CXX=yes
13394 # Don't use ranlib
13395 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13396 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13397 lt_tool_outputfile="@TOOL_OUTPUT@"~
13398 case $lt_outputfile in
13399 *.exe|*.EXE) ;;
13400 *)
13401 lt_outputfile=$lt_outputfile.exe
13402 lt_tool_outputfile=$lt_tool_outputfile.exe
13403 ;;
13404 esac~
13405 func_to_tool_file "$lt_outputfile"~
13406 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13407 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13408 $RM "$lt_outputfile.manifest";
13409 fi'
13410 ;;
13411 *)
13412 # g++
13413 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13414 # as there is no search path for DLLs.
13415 hardcode_libdir_flag_spec_CXX='-L$libdir'
13416 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13417 allow_undefined_flag_CXX=unsupported
13418 always_export_symbols_CXX=no
13419 enable_shared_with_static_runtimes_CXX=yes
13420
13421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13422 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'
13423 # If the export-symbols file already is a .def file, use it as
13424 # is; otherwise, prepend EXPORTS...
13425 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13426 cp $export_symbols $output_objdir/$soname.def;
13427 else
13428 echo EXPORTS > $output_objdir/$soname.def;
13429 cat $export_symbols >> $output_objdir/$soname.def;
13430 fi~
13431 $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'
13432 else
13433 ld_shlibs_CXX=no
13434 fi
13435 ;;
13436 esac
13437 ;;
13438 darwin* | rhapsody*)
13439
13440
13441 archive_cmds_need_lc_CXX=no
13442 hardcode_direct_CXX=no
13443 hardcode_automatic_CXX=yes
13444 hardcode_shlibpath_var_CXX=unsupported
13445 if test yes = "$lt_cv_ld_force_load"; then
13446 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\"`'
13447
13448 else
13449 whole_archive_flag_spec_CXX=''
13450 fi
13451 link_all_deplibs_CXX=yes
13452 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13453 case $cc_basename in
13454 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13455 *) _lt_dar_can_shared=$GCC ;;
13456 esac
13457 if test yes = "$_lt_dar_can_shared"; then
13458 output_verbose_link_cmd=func_echo_all
13459 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"
13460 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13461 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"
13462 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"
13463 if test yes != "$lt_cv_apple_cc_single_mod"; then
13464 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"
13465 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"
13466 fi
13467
13468 else
13469 ld_shlibs_CXX=no
13470 fi
13471
13472 ;;
13473
13474 os2*)
13475 hardcode_libdir_flag_spec_CXX='-L$libdir'
13476 hardcode_minus_L_CXX=yes
13477 allow_undefined_flag_CXX=unsupported
13478 shrext_cmds=.dll
13479 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13480 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13481 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13482 $ECHO EXPORTS >> $output_objdir/$libname.def~
13483 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13484 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13485 emximp -o $lib $output_objdir/$libname.def'
13486 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13487 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13488 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13489 $ECHO EXPORTS >> $output_objdir/$libname.def~
13490 prefix_cmds="$SED"~
13491 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13492 prefix_cmds="$prefix_cmds -e 1d";
13493 fi~
13494 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13495 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13496 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13497 emximp -o $lib $output_objdir/$libname.def'
13498 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13499 enable_shared_with_static_runtimes_CXX=yes
13500 ;;
13501
13502 dgux*)
13503 case $cc_basename in
13504 ec++*)
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13507 ;;
13508 ghcx*)
13509 # Green Hills C++ Compiler
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 ;;
13513 *)
13514 # FIXME: insert proper C++ library support
13515 ld_shlibs_CXX=no
13516 ;;
13517 esac
13518 ;;
13519
13520 freebsd2.*)
13521 # C++ shared libraries reported to be fairly broken before
13522 # switch to ELF
13523 ld_shlibs_CXX=no
13524 ;;
13525
13526 freebsd-elf*)
13527 archive_cmds_need_lc_CXX=no
13528 ;;
13529
13530 freebsd* | dragonfly*)
13531 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13532 # conventions
13533 ld_shlibs_CXX=yes
13534 ;;
13535
13536 haiku*)
13537 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13538 link_all_deplibs_CXX=yes
13539 ;;
13540
13541 hpux9*)
13542 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13543 hardcode_libdir_separator_CXX=:
13544 export_dynamic_flag_spec_CXX='$wl-E'
13545 hardcode_direct_CXX=yes
13546 hardcode_minus_L_CXX=yes # Not in the search PATH,
13547 # but as the default
13548 # location of the library.
13549
13550 case $cc_basename in
13551 CC*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555 aCC*)
13556 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13557 # Commands to make compiler produce verbose output that lists
13558 # what "hidden" libraries, object files and flags are used when
13559 # linking a shared library.
13560 #
13561 # There doesn't appear to be a way to prevent this compiler from
13562 # explicitly linking system object files so we need to strip them
13563 # from the output so that they don't get included in the library
13564 # dependencies.
13565 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"'
13566 ;;
13567 *)
13568 if test yes = "$GXX"; then
13569 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13570 else
13571 # FIXME: insert proper C++ library support
13572 ld_shlibs_CXX=no
13573 fi
13574 ;;
13575 esac
13576 ;;
13577
13578 hpux10*|hpux11*)
13579 if test no = "$with_gnu_ld"; then
13580 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13581 hardcode_libdir_separator_CXX=:
13582
13583 case $host_cpu in
13584 hppa*64*|ia64*)
13585 ;;
13586 *)
13587 export_dynamic_flag_spec_CXX='$wl-E'
13588 ;;
13589 esac
13590 fi
13591 case $host_cpu in
13592 hppa*64*|ia64*)
13593 hardcode_direct_CXX=no
13594 hardcode_shlibpath_var_CXX=no
13595 ;;
13596 *)
13597 hardcode_direct_CXX=yes
13598 hardcode_direct_absolute_CXX=yes
13599 hardcode_minus_L_CXX=yes # Not in the search PATH,
13600 # but as the default
13601 # location of the library.
13602 ;;
13603 esac
13604
13605 case $cc_basename in
13606 CC*)
13607 # FIXME: insert proper C++ library support
13608 ld_shlibs_CXX=no
13609 ;;
13610 aCC*)
13611 case $host_cpu in
13612 hppa*64*)
13613 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13614 ;;
13615 ia64*)
13616 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13617 ;;
13618 *)
13619 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13620 ;;
13621 esac
13622 # Commands to make compiler produce verbose output that lists
13623 # what "hidden" libraries, object files and flags are used when
13624 # linking a shared library.
13625 #
13626 # There doesn't appear to be a way to prevent this compiler from
13627 # explicitly linking system object files so we need to strip them
13628 # from the output so that they don't get included in the library
13629 # dependencies.
13630 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"'
13631 ;;
13632 *)
13633 if test yes = "$GXX"; then
13634 if test no = "$with_gnu_ld"; then
13635 case $host_cpu in
13636 hppa*64*)
13637 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13638 ;;
13639 ia64*)
13640 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13641 ;;
13642 *)
13643 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'
13644 ;;
13645 esac
13646 fi
13647 else
13648 # FIXME: insert proper C++ library support
13649 ld_shlibs_CXX=no
13650 fi
13651 ;;
13652 esac
13653 ;;
13654
13655 interix[3-9]*)
13656 hardcode_direct_CXX=no
13657 hardcode_shlibpath_var_CXX=no
13658 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13659 export_dynamic_flag_spec_CXX='$wl-E'
13660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13661 # Instead, shared libraries are loaded at an image base (0x10000000 by
13662 # default) and relocated if they conflict, which is a slow very memory
13663 # consuming and fragmenting process. To avoid this, we pick a random,
13664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13666 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'
13667 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'
13668 ;;
13669 irix5* | irix6*)
13670 case $cc_basename in
13671 CC*)
13672 # SGI C++
13673 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'
13674
13675 # Archives containing C++ object files must be created using
13676 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13677 # necessary to make sure instantiated templates are included
13678 # in the archive.
13679 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13680 ;;
13681 *)
13682 if test yes = "$GXX"; then
13683 if test no = "$with_gnu_ld"; then
13684 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'
13685 else
13686 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'
13687 fi
13688 fi
13689 link_all_deplibs_CXX=yes
13690 ;;
13691 esac
13692 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13693 hardcode_libdir_separator_CXX=:
13694 inherit_rpath_CXX=yes
13695 ;;
13696
13697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13698 case $cc_basename in
13699 KCC*)
13700 # Kuck and Associates, Inc. (KAI) C++ Compiler
13701
13702 # KCC will only create a shared library if the output file
13703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13704 # to its proper name (with version) after linking.
13705 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'
13706 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'
13707 # Commands to make compiler produce verbose output that lists
13708 # what "hidden" libraries, object files and flags are used when
13709 # linking a shared library.
13710 #
13711 # There doesn't appear to be a way to prevent this compiler from
13712 # explicitly linking system object files so we need to strip them
13713 # from the output so that they don't get included in the library
13714 # dependencies.
13715 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"'
13716
13717 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13718 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13719
13720 # Archives containing C++ object files must be created using
13721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13723 ;;
13724 icpc* | ecpc* )
13725 # Intel C++
13726 with_gnu_ld=yes
13727 # version 8.0 and above of icpc choke on multiply defined symbols
13728 # if we add $predep_objects and $postdep_objects, however 7.1 and
13729 # earlier do not add the objects themselves.
13730 case `$CC -V 2>&1` in
13731 *"Version 7."*)
13732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13733 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'
13734 ;;
13735 *) # Version 8.0 or newer
13736 tmp_idyn=
13737 case $host_cpu in
13738 ia64*) tmp_idyn=' -i_dynamic';;
13739 esac
13740 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13741 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'
13742 ;;
13743 esac
13744 archive_cmds_need_lc_CXX=no
13745 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13747 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13748 ;;
13749 pgCC* | pgcpp*)
13750 # Portland Group C++ compiler
13751 case `$CC -V` in
13752 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13753 prelink_cmds_CXX='tpldir=Template.dir~
13754 rm -rf $tpldir~
13755 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13756 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13757 old_archive_cmds_CXX='tpldir=Template.dir~
13758 rm -rf $tpldir~
13759 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13760 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13761 $RANLIB $oldlib'
13762 archive_cmds_CXX='tpldir=Template.dir~
13763 rm -rf $tpldir~
13764 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13765 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13766 archive_expsym_cmds_CXX='tpldir=Template.dir~
13767 rm -rf $tpldir~
13768 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13769 $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'
13770 ;;
13771 *) # Version 6 and above use weak symbols
13772 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13773 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'
13774 ;;
13775 esac
13776
13777 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13778 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13779 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'
13780 ;;
13781 cxx*)
13782 # Compaq C++
13783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13784 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'
13785
13786 runpath_var=LD_RUN_PATH
13787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13788 hardcode_libdir_separator_CXX=:
13789
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 #
13794 # There doesn't appear to be a way to prevent this compiler from
13795 # explicitly linking system object files so we need to strip them
13796 # from the output so that they don't get included in the library
13797 # dependencies.
13798 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'
13799 ;;
13800 xl* | mpixl* | bgxl*)
13801 # IBM XL 8.0 on PPC, with GNU ld
13802 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13803 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13804 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13805 if test yes = "$supports_anon_versioning"; then
13806 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13808 echo "local: *; };" >> $output_objdir/$libname.ver~
13809 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13810 fi
13811 ;;
13812 *)
13813 case `$CC -V 2>&1 | sed 5q` in
13814 *Sun\ C*)
13815 # Sun C++ 5.9
13816 no_undefined_flag_CXX=' -zdefs'
13817 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13818 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'
13819 hardcode_libdir_flag_spec_CXX='-R$libdir'
13820 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'
13821 compiler_needs_object_CXX=yes
13822
13823 # Not sure whether something based on
13824 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13825 # would be better.
13826 output_verbose_link_cmd='func_echo_all'
13827
13828 # Archives containing C++ object files must be created using
13829 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13830 # necessary to make sure instantiated templates are included
13831 # in the archive.
13832 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13833 ;;
13834 esac
13835 ;;
13836 esac
13837 ;;
13838
13839 lynxos*)
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13842 ;;
13843
13844 m88k*)
13845 # FIXME: insert proper C++ library support
13846 ld_shlibs_CXX=no
13847 ;;
13848
13849 mvs*)
13850 case $cc_basename in
13851 cxx*)
13852 # FIXME: insert proper C++ library support
13853 ld_shlibs_CXX=no
13854 ;;
13855 *)
13856 # FIXME: insert proper C++ library support
13857 ld_shlibs_CXX=no
13858 ;;
13859 esac
13860 ;;
13861
13862 netbsd*)
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13865 wlarc=
13866 hardcode_libdir_flag_spec_CXX='-R$libdir'
13867 hardcode_direct_CXX=yes
13868 hardcode_shlibpath_var_CXX=no
13869 fi
13870 # Workaround some broken pre-1.5 toolchains
13871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13872 ;;
13873
13874 *nto* | *qnx*)
13875 ld_shlibs_CXX=yes
13876 ;;
13877
13878 openbsd* | bitrig*)
13879 if test -f /usr/libexec/ld.so; then
13880 hardcode_direct_CXX=yes
13881 hardcode_shlibpath_var_CXX=no
13882 hardcode_direct_absolute_CXX=yes
13883 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13884 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13886 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13887 export_dynamic_flag_spec_CXX='$wl-E'
13888 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13889 fi
13890 output_verbose_link_cmd=func_echo_all
13891 else
13892 ld_shlibs_CXX=no
13893 fi
13894 ;;
13895
13896 osf3* | osf4* | osf5*)
13897 case $cc_basename in
13898 KCC*)
13899 # Kuck and Associates, Inc. (KAI) C++ Compiler
13900
13901 # KCC will only create a shared library if the output file
13902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13903 # to its proper name (with version) after linking.
13904 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'
13905
13906 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13907 hardcode_libdir_separator_CXX=:
13908
13909 # Archives containing C++ object files must be created using
13910 # the KAI C++ compiler.
13911 case $host in
13912 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13913 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13914 esac
13915 ;;
13916 RCC*)
13917 # Rational C++ 2.4.1
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13920 ;;
13921 cxx*)
13922 case $host in
13923 osf3*)
13924 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13925 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'
13926 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13927 ;;
13928 *)
13929 allow_undefined_flag_CXX=' -expect_unresolved \*'
13930 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'
13931 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13932 echo "-hidden">> $lib.exp~
13933 $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~
13934 $RM $lib.exp'
13935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13936 ;;
13937 esac
13938
13939 hardcode_libdir_separator_CXX=:
13940
13941 # Commands to make compiler produce verbose output that lists
13942 # what "hidden" libraries, object files and flags are used when
13943 # linking a shared library.
13944 #
13945 # There doesn't appear to be a way to prevent this compiler from
13946 # explicitly linking system object files so we need to strip them
13947 # from the output so that they don't get included in the library
13948 # dependencies.
13949 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"'
13950 ;;
13951 *)
13952 if test yes,no = "$GXX,$with_gnu_ld"; then
13953 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13954 case $host in
13955 osf3*)
13956 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'
13957 ;;
13958 *)
13959 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'
13960 ;;
13961 esac
13962
13963 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13964 hardcode_libdir_separator_CXX=:
13965
13966 # Commands to make compiler produce verbose output that lists
13967 # what "hidden" libraries, object files and flags are used when
13968 # linking a shared library.
13969 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13970
13971 else
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 fi
13975 ;;
13976 esac
13977 ;;
13978
13979 psos*)
13980 # FIXME: insert proper C++ library support
13981 ld_shlibs_CXX=no
13982 ;;
13983
13984 sunos4*)
13985 case $cc_basename in
13986 CC*)
13987 # Sun C++ 4.x
13988 # FIXME: insert proper C++ library support
13989 ld_shlibs_CXX=no
13990 ;;
13991 lcc*)
13992 # Lucid
13993 # FIXME: insert proper C++ library support
13994 ld_shlibs_CXX=no
13995 ;;
13996 *)
13997 # FIXME: insert proper C++ library support
13998 ld_shlibs_CXX=no
13999 ;;
14000 esac
14001 ;;
14002
14003 solaris*)
14004 case $cc_basename in
14005 CC* | sunCC*)
14006 # Sun C++ 4.2, 5.x and Centerline C++
14007 archive_cmds_need_lc_CXX=yes
14008 no_undefined_flag_CXX=' -zdefs'
14009 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14010 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14011 $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'
14012
14013 hardcode_libdir_flag_spec_CXX='-R$libdir'
14014 hardcode_shlibpath_var_CXX=no
14015 case $host_os in
14016 solaris2.[0-5] | solaris2.[0-5].*) ;;
14017 *)
14018 # The compiler driver will combine and reorder linker options,
14019 # but understands '-z linker_flag'.
14020 # Supported since Solaris 2.6 (maybe 2.5.1?)
14021 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14022 ;;
14023 esac
14024 link_all_deplibs_CXX=yes
14025
14026 output_verbose_link_cmd='func_echo_all'
14027
14028 # Archives containing C++ object files must be created using
14029 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14030 # necessary to make sure instantiated templates are included
14031 # in the archive.
14032 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14033 ;;
14034 gcx*)
14035 # Green Hills C++ Compiler
14036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14037
14038 # The C++ compiler must be used to create the archive.
14039 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14040 ;;
14041 *)
14042 # GNU C++ compiler with Solaris linker
14043 if test yes,no = "$GXX,$with_gnu_ld"; then
14044 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14045 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14046 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14048 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14049
14050 # Commands to make compiler produce verbose output that lists
14051 # what "hidden" libraries, object files and flags are used when
14052 # linking a shared library.
14053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14054 else
14055 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14056 # platform.
14057 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14058 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14059 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14060
14061 # Commands to make compiler produce verbose output that lists
14062 # what "hidden" libraries, object files and flags are used when
14063 # linking a shared library.
14064 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14065 fi
14066
14067 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14068 case $host_os in
14069 solaris2.[0-5] | solaris2.[0-5].*) ;;
14070 *)
14071 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14072 ;;
14073 esac
14074 fi
14075 ;;
14076 esac
14077 ;;
14078
14079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14080 no_undefined_flag_CXX='$wl-z,text'
14081 archive_cmds_need_lc_CXX=no
14082 hardcode_shlibpath_var_CXX=no
14083 runpath_var='LD_RUN_PATH'
14084
14085 case $cc_basename in
14086 CC*)
14087 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 *)
14091 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14092 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14093 ;;
14094 esac
14095 ;;
14096
14097 sysv5* | sco3.2v5* | sco5v6*)
14098 # Note: We CANNOT use -z defs as we might desire, because we do not
14099 # link with -lc, and that would cause any symbols used from libc to
14100 # always be unresolved, which means just about no library would
14101 # ever link correctly. If we're not using GNU ld we use -z text
14102 # though, which does catch some bad symbols but isn't as heavy-handed
14103 # as -z defs.
14104 no_undefined_flag_CXX='$wl-z,text'
14105 allow_undefined_flag_CXX='$wl-z,nodefs'
14106 archive_cmds_need_lc_CXX=no
14107 hardcode_shlibpath_var_CXX=no
14108 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14109 hardcode_libdir_separator_CXX=':'
14110 link_all_deplibs_CXX=yes
14111 export_dynamic_flag_spec_CXX='$wl-Bexport'
14112 runpath_var='LD_RUN_PATH'
14113
14114 case $cc_basename in
14115 CC*)
14116 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14117 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14119 '"$old_archive_cmds_CXX"
14120 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14121 '"$reload_cmds_CXX"
14122 ;;
14123 *)
14124 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14126 ;;
14127 esac
14128 ;;
14129
14130 tandem*)
14131 case $cc_basename in
14132 NCC*)
14133 # NonStop-UX NCC 3.20
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14136 ;;
14137 *)
14138 # FIXME: insert proper C++ library support
14139 ld_shlibs_CXX=no
14140 ;;
14141 esac
14142 ;;
14143
14144 vxworks*)
14145 # FIXME: insert proper C++ library support
14146 ld_shlibs_CXX=no
14147 ;;
14148
14149 *)
14150 # FIXME: insert proper C++ library support
14151 ld_shlibs_CXX=no
14152 ;;
14153 esac
14154
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14156 $as_echo "$ld_shlibs_CXX" >&6; }
14157 test no = "$ld_shlibs_CXX" && can_build_shared=no
14158
14159 GCC_CXX=$GXX
14160 LD_CXX=$LD
14161
14162 ## CAVEAT EMPTOR:
14163 ## There is no encapsulation within the following macros, do not change
14164 ## the running order or otherwise move them around unless you know exactly
14165 ## what you are doing...
14166 # Dependencies to place before and after the object being linked:
14167 predep_objects_CXX=
14168 postdep_objects_CXX=
14169 predeps_CXX=
14170 postdeps_CXX=
14171 compiler_lib_search_path_CXX=
14172
14173 cat > conftest.$ac_ext <<_LT_EOF
14174 class Foo
14175 {
14176 public:
14177 Foo (void) { a = 0; }
14178 private:
14179 int a;
14180 };
14181 _LT_EOF
14182
14183
14184 _lt_libdeps_save_CFLAGS=$CFLAGS
14185 case "$CC $CFLAGS " in #(
14186 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14187 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14188 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14189 esac
14190
14191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14192 (eval $ac_compile) 2>&5
14193 ac_status=$?
14194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195 test $ac_status = 0; }; then
14196 # Parse the compiler output and extract the necessary
14197 # objects, libraries and library flags.
14198
14199 # Sentinel used to keep track of whether or not we are before
14200 # the conftest object file.
14201 pre_test_object_deps_done=no
14202
14203 for p in `eval "$output_verbose_link_cmd"`; do
14204 case $prev$p in
14205
14206 -L* | -R* | -l*)
14207 # Some compilers place space between "-{L,R}" and the path.
14208 # Remove the space.
14209 if test x-L = "$p" ||
14210 test x-R = "$p"; then
14211 prev=$p
14212 continue
14213 fi
14214
14215 # Expand the sysroot to ease extracting the directories later.
14216 if test -z "$prev"; then
14217 case $p in
14218 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14219 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14220 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14221 esac
14222 fi
14223 case $p in
14224 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14225 esac
14226 if test no = "$pre_test_object_deps_done"; then
14227 case $prev in
14228 -L | -R)
14229 # Internal compiler library paths should come after those
14230 # provided the user. The postdeps already come after the
14231 # user supplied libs so there is no need to process them.
14232 if test -z "$compiler_lib_search_path_CXX"; then
14233 compiler_lib_search_path_CXX=$prev$p
14234 else
14235 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14236 fi
14237 ;;
14238 # The "-l" case would never come before the object being
14239 # linked, so don't bother handling this case.
14240 esac
14241 else
14242 if test -z "$postdeps_CXX"; then
14243 postdeps_CXX=$prev$p
14244 else
14245 postdeps_CXX="${postdeps_CXX} $prev$p"
14246 fi
14247 fi
14248 prev=
14249 ;;
14250
14251 *.lto.$objext) ;; # Ignore GCC LTO objects
14252 *.$objext)
14253 # This assumes that the test object file only shows up
14254 # once in the compiler output.
14255 if test "$p" = "conftest.$objext"; then
14256 pre_test_object_deps_done=yes
14257 continue
14258 fi
14259
14260 if test no = "$pre_test_object_deps_done"; then
14261 if test -z "$predep_objects_CXX"; then
14262 predep_objects_CXX=$p
14263 else
14264 predep_objects_CXX="$predep_objects_CXX $p"
14265 fi
14266 else
14267 if test -z "$postdep_objects_CXX"; then
14268 postdep_objects_CXX=$p
14269 else
14270 postdep_objects_CXX="$postdep_objects_CXX $p"
14271 fi
14272 fi
14273 ;;
14274
14275 *) ;; # Ignore the rest.
14276
14277 esac
14278 done
14279
14280 # Clean up.
14281 rm -f a.out a.exe
14282 else
14283 echo "libtool.m4: error: problem compiling CXX test program"
14284 fi
14285
14286 $RM -f confest.$objext
14287 CFLAGS=$_lt_libdeps_save_CFLAGS
14288
14289 # PORTME: override above test on systems where it is broken
14290 case $host_os in
14291 interix[3-9]*)
14292 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14293 # hack all around it, let's just trust "g++" to DTRT.
14294 predep_objects_CXX=
14295 postdep_objects_CXX=
14296 postdeps_CXX=
14297 ;;
14298 esac
14299
14300
14301 case " $postdeps_CXX " in
14302 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14303 esac
14304 compiler_lib_search_dirs_CXX=
14305 if test -n "${compiler_lib_search_path_CXX}"; then
14306 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14307 fi
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339 lt_prog_compiler_wl_CXX=
14340 lt_prog_compiler_pic_CXX=
14341 lt_prog_compiler_static_CXX=
14342
14343
14344 # C++ specific cases for pic, static, wl, etc.
14345 if test yes = "$GXX"; then
14346 lt_prog_compiler_wl_CXX='-Wl,'
14347 lt_prog_compiler_static_CXX='-static'
14348
14349 case $host_os in
14350 aix*)
14351 # All AIX code is PIC.
14352 if test ia64 = "$host_cpu"; then
14353 # AIX 5 now supports IA64 processor
14354 lt_prog_compiler_static_CXX='-Bstatic'
14355 fi
14356 lt_prog_compiler_pic_CXX='-fPIC'
14357 ;;
14358
14359 amigaos*)
14360 case $host_cpu in
14361 powerpc)
14362 # see comment about AmigaOS4 .so support
14363 lt_prog_compiler_pic_CXX='-fPIC'
14364 ;;
14365 m68k)
14366 # FIXME: we need at least 68020 code to build shared libraries, but
14367 # adding the '-m68020' flag to GCC prevents building anything better,
14368 # like '-m68040'.
14369 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14370 ;;
14371 esac
14372 ;;
14373
14374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14375 # PIC is the default for these OSes.
14376 ;;
14377 mingw* | cygwin* | os2* | pw32* | cegcc*)
14378 # This hack is so that the source file can tell whether it is being
14379 # built for inclusion in a dll (and should export symbols for example).
14380 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14381 # (--disable-auto-import) libraries
14382 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14383 case $host_os in
14384 os2*)
14385 lt_prog_compiler_static_CXX='$wl-static'
14386 ;;
14387 esac
14388 ;;
14389 darwin* | rhapsody*)
14390 # PIC is the default on this platform
14391 # Common symbols not allowed in MH_DYLIB files
14392 lt_prog_compiler_pic_CXX='-fno-common'
14393 ;;
14394 *djgpp*)
14395 # DJGPP does not support shared libraries at all
14396 lt_prog_compiler_pic_CXX=
14397 ;;
14398 haiku*)
14399 # PIC is the default for Haiku.
14400 # The "-static" flag exists, but is broken.
14401 lt_prog_compiler_static_CXX=
14402 ;;
14403 interix[3-9]*)
14404 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14405 # Instead, we relocate shared libraries at runtime.
14406 ;;
14407 sysv4*MP*)
14408 if test -d /usr/nec; then
14409 lt_prog_compiler_pic_CXX=-Kconform_pic
14410 fi
14411 ;;
14412 hpux*)
14413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14415 # sets the default TLS model and affects inlining.
14416 case $host_cpu in
14417 hppa*64*)
14418 ;;
14419 *)
14420 lt_prog_compiler_pic_CXX='-fPIC'
14421 ;;
14422 esac
14423 ;;
14424 *qnx* | *nto*)
14425 # QNX uses GNU C++, but need to define -shared option too, otherwise
14426 # it will coredump.
14427 lt_prog_compiler_pic_CXX='-fPIC -shared'
14428 ;;
14429 *)
14430 lt_prog_compiler_pic_CXX='-fPIC'
14431 ;;
14432 esac
14433 else
14434 case $host_os in
14435 aix[4-9]*)
14436 # All AIX code is PIC.
14437 if test ia64 = "$host_cpu"; then
14438 # AIX 5 now supports IA64 processor
14439 lt_prog_compiler_static_CXX='-Bstatic'
14440 else
14441 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14442 fi
14443 ;;
14444 chorus*)
14445 case $cc_basename in
14446 cxch68*)
14447 # Green Hills C++ Compiler
14448 # _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"
14449 ;;
14450 esac
14451 ;;
14452 mingw* | cygwin* | os2* | pw32* | cegcc*)
14453 # This hack is so that the source file can tell whether it is being
14454 # built for inclusion in a dll (and should export symbols for example).
14455 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14456 ;;
14457 dgux*)
14458 case $cc_basename in
14459 ec++*)
14460 lt_prog_compiler_pic_CXX='-KPIC'
14461 ;;
14462 ghcx*)
14463 # Green Hills C++ Compiler
14464 lt_prog_compiler_pic_CXX='-pic'
14465 ;;
14466 *)
14467 ;;
14468 esac
14469 ;;
14470 freebsd* | dragonfly*)
14471 # FreeBSD uses GNU C++
14472 ;;
14473 hpux9* | hpux10* | hpux11*)
14474 case $cc_basename in
14475 CC*)
14476 lt_prog_compiler_wl_CXX='-Wl,'
14477 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14478 if test ia64 != "$host_cpu"; then
14479 lt_prog_compiler_pic_CXX='+Z'
14480 fi
14481 ;;
14482 aCC*)
14483 lt_prog_compiler_wl_CXX='-Wl,'
14484 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14485 case $host_cpu in
14486 hppa*64*|ia64*)
14487 # +Z the default
14488 ;;
14489 *)
14490 lt_prog_compiler_pic_CXX='+Z'
14491 ;;
14492 esac
14493 ;;
14494 *)
14495 ;;
14496 esac
14497 ;;
14498 interix*)
14499 # This is c89, which is MS Visual C++ (no shared libs)
14500 # Anyone wants to do a port?
14501 ;;
14502 irix5* | irix6* | nonstopux*)
14503 case $cc_basename in
14504 CC*)
14505 lt_prog_compiler_wl_CXX='-Wl,'
14506 lt_prog_compiler_static_CXX='-non_shared'
14507 # CC pic flag -KPIC is the default.
14508 ;;
14509 *)
14510 ;;
14511 esac
14512 ;;
14513 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14514 case $cc_basename in
14515 KCC*)
14516 # KAI C++ Compiler
14517 lt_prog_compiler_wl_CXX='--backend -Wl,'
14518 lt_prog_compiler_pic_CXX='-fPIC'
14519 ;;
14520 ecpc* )
14521 # old Intel C++ for x86_64, which still supported -KPIC.
14522 lt_prog_compiler_wl_CXX='-Wl,'
14523 lt_prog_compiler_pic_CXX='-KPIC'
14524 lt_prog_compiler_static_CXX='-static'
14525 ;;
14526 icpc* )
14527 # Intel C++, used to be incompatible with GCC.
14528 # ICC 10 doesn't accept -KPIC any more.
14529 lt_prog_compiler_wl_CXX='-Wl,'
14530 lt_prog_compiler_pic_CXX='-fPIC'
14531 lt_prog_compiler_static_CXX='-static'
14532 ;;
14533 pgCC* | pgcpp*)
14534 # Portland Group C++ compiler
14535 lt_prog_compiler_wl_CXX='-Wl,'
14536 lt_prog_compiler_pic_CXX='-fpic'
14537 lt_prog_compiler_static_CXX='-Bstatic'
14538 ;;
14539 cxx*)
14540 # Compaq C++
14541 # Make sure the PIC flag is empty. It appears that all Alpha
14542 # Linux and Compaq Tru64 Unix objects are PIC.
14543 lt_prog_compiler_pic_CXX=
14544 lt_prog_compiler_static_CXX='-non_shared'
14545 ;;
14546 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14547 # IBM XL 8.0, 9.0 on PPC and BlueGene
14548 lt_prog_compiler_wl_CXX='-Wl,'
14549 lt_prog_compiler_pic_CXX='-qpic'
14550 lt_prog_compiler_static_CXX='-qstaticlink'
14551 ;;
14552 *)
14553 case `$CC -V 2>&1 | sed 5q` in
14554 *Sun\ C*)
14555 # Sun C++ 5.9
14556 lt_prog_compiler_pic_CXX='-KPIC'
14557 lt_prog_compiler_static_CXX='-Bstatic'
14558 lt_prog_compiler_wl_CXX='-Qoption ld '
14559 ;;
14560 esac
14561 ;;
14562 esac
14563 ;;
14564 lynxos*)
14565 ;;
14566 m88k*)
14567 ;;
14568 mvs*)
14569 case $cc_basename in
14570 cxx*)
14571 lt_prog_compiler_pic_CXX='-W c,exportall'
14572 ;;
14573 *)
14574 ;;
14575 esac
14576 ;;
14577 netbsd*)
14578 ;;
14579 *qnx* | *nto*)
14580 # QNX uses GNU C++, but need to define -shared option too, otherwise
14581 # it will coredump.
14582 lt_prog_compiler_pic_CXX='-fPIC -shared'
14583 ;;
14584 osf3* | osf4* | osf5*)
14585 case $cc_basename in
14586 KCC*)
14587 lt_prog_compiler_wl_CXX='--backend -Wl,'
14588 ;;
14589 RCC*)
14590 # Rational C++ 2.4.1
14591 lt_prog_compiler_pic_CXX='-pic'
14592 ;;
14593 cxx*)
14594 # Digital/Compaq C++
14595 lt_prog_compiler_wl_CXX='-Wl,'
14596 # Make sure the PIC flag is empty. It appears that all Alpha
14597 # Linux and Compaq Tru64 Unix objects are PIC.
14598 lt_prog_compiler_pic_CXX=
14599 lt_prog_compiler_static_CXX='-non_shared'
14600 ;;
14601 *)
14602 ;;
14603 esac
14604 ;;
14605 psos*)
14606 ;;
14607 solaris*)
14608 case $cc_basename in
14609 CC* | sunCC*)
14610 # Sun C++ 4.2, 5.x and Centerline C++
14611 lt_prog_compiler_pic_CXX='-KPIC'
14612 lt_prog_compiler_static_CXX='-Bstatic'
14613 lt_prog_compiler_wl_CXX='-Qoption ld '
14614 ;;
14615 gcx*)
14616 # Green Hills C++ Compiler
14617 lt_prog_compiler_pic_CXX='-PIC'
14618 ;;
14619 *)
14620 ;;
14621 esac
14622 ;;
14623 sunos4*)
14624 case $cc_basename in
14625 CC*)
14626 # Sun C++ 4.x
14627 lt_prog_compiler_pic_CXX='-pic'
14628 lt_prog_compiler_static_CXX='-Bstatic'
14629 ;;
14630 lcc*)
14631 # Lucid
14632 lt_prog_compiler_pic_CXX='-pic'
14633 ;;
14634 *)
14635 ;;
14636 esac
14637 ;;
14638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14639 case $cc_basename in
14640 CC*)
14641 lt_prog_compiler_wl_CXX='-Wl,'
14642 lt_prog_compiler_pic_CXX='-KPIC'
14643 lt_prog_compiler_static_CXX='-Bstatic'
14644 ;;
14645 esac
14646 ;;
14647 tandem*)
14648 case $cc_basename in
14649 NCC*)
14650 # NonStop-UX NCC 3.20
14651 lt_prog_compiler_pic_CXX='-KPIC'
14652 ;;
14653 *)
14654 ;;
14655 esac
14656 ;;
14657 vxworks*)
14658 ;;
14659 *)
14660 lt_prog_compiler_can_build_shared_CXX=no
14661 ;;
14662 esac
14663 fi
14664
14665 case $host_os in
14666 # For platforms that do not support PIC, -DPIC is meaningless:
14667 *djgpp*)
14668 lt_prog_compiler_pic_CXX=
14669 ;;
14670 *)
14671 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14672 ;;
14673 esac
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14677 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14681 fi
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14683 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14684 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14685
14686 #
14687 # Check to make sure the PIC flag actually works.
14688 #
14689 if test -n "$lt_prog_compiler_pic_CXX"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14692 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14695 lt_cv_prog_compiler_pic_works_CXX=no
14696 ac_outfile=conftest.$ac_objext
14697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14699 # Insert the option either (1) after the last *FLAGS variable, or
14700 # (2) before a word containing "conftest.", or (3) at the end.
14701 # Note that $ac_compile itself does not contain backslashes and begins
14702 # with a dollar sign (not a hyphen), so the echo should work correctly.
14703 # The option is referenced via a variable to avoid confusing sed.
14704 lt_compile=`echo "$ac_compile" | $SED \
14705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707 -e 's:$: $lt_compiler_flag:'`
14708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14709 (eval "$lt_compile" 2>conftest.err)
14710 ac_status=$?
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 if (exit $ac_status) && test -s "$ac_outfile"; then
14714 # The compiler can only warn and ignore the option if not recognized
14715 # So say no if there are warnings other than the usual output.
14716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14719 lt_cv_prog_compiler_pic_works_CXX=yes
14720 fi
14721 fi
14722 $RM conftest*
14723
14724 fi
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14726 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14727
14728 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14729 case $lt_prog_compiler_pic_CXX in
14730 "" | " "*) ;;
14731 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14732 esac
14733 else
14734 lt_prog_compiler_pic_CXX=
14735 lt_prog_compiler_can_build_shared_CXX=no
14736 fi
14737
14738 fi
14739
14740
14741
14742
14743
14744 #
14745 # Check to make sure the static flag actually works.
14746 #
14747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14750 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 lt_cv_prog_compiler_static_works_CXX=no
14754 save_LDFLAGS=$LDFLAGS
14755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14758 # The linker can only warn and ignore the option if not recognized
14759 # So say no if there are warnings
14760 if test -s conftest.err; then
14761 # Append any errors to the config.log.
14762 cat conftest.err 1>&5
14763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_cv_prog_compiler_static_works_CXX=yes
14767 fi
14768 else
14769 lt_cv_prog_compiler_static_works_CXX=yes
14770 fi
14771 fi
14772 $RM -r conftest*
14773 LDFLAGS=$save_LDFLAGS
14774
14775 fi
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14777 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14778
14779 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14780 :
14781 else
14782 lt_prog_compiler_static_CXX=
14783 fi
14784
14785
14786
14787
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14790 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 lt_cv_prog_compiler_c_o_CXX=no
14794 $RM -r conftest 2>/dev/null
14795 mkdir conftest
14796 cd conftest
14797 mkdir out
14798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14799
14800 lt_compiler_flag="-o out/conftest2.$ac_objext"
14801 # Insert the option either (1) after the last *FLAGS variable, or
14802 # (2) before a word containing "conftest.", or (3) at the end.
14803 # Note that $ac_compile itself does not contain backslashes and begins
14804 # with a dollar sign (not a hyphen), so the echo should work correctly.
14805 lt_compile=`echo "$ac_compile" | $SED \
14806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14808 -e 's:$: $lt_compiler_flag:'`
14809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14810 (eval "$lt_compile" 2>out/conftest.err)
14811 ac_status=$?
14812 cat out/conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14815 then
14816 # The compiler can only warn and ignore the option if not recognized
14817 # So say no if there are warnings
14818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14821 lt_cv_prog_compiler_c_o_CXX=yes
14822 fi
14823 fi
14824 chmod u+w . 2>&5
14825 $RM conftest*
14826 # SGI C++ compiler will create directory out/ii_files/ for
14827 # template instantiation
14828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14829 $RM out/* && rmdir out
14830 cd ..
14831 $RM -r conftest
14832 $RM conftest*
14833
14834 fi
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14836 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14837
14838
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14842 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14843 $as_echo_n "(cached) " >&6
14844 else
14845 lt_cv_prog_compiler_c_o_CXX=no
14846 $RM -r conftest 2>/dev/null
14847 mkdir conftest
14848 cd conftest
14849 mkdir out
14850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14851
14852 lt_compiler_flag="-o out/conftest2.$ac_objext"
14853 # Insert the option either (1) after the last *FLAGS variable, or
14854 # (2) before a word containing "conftest.", or (3) at the end.
14855 # Note that $ac_compile itself does not contain backslashes and begins
14856 # with a dollar sign (not a hyphen), so the echo should work correctly.
14857 lt_compile=`echo "$ac_compile" | $SED \
14858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14860 -e 's:$: $lt_compiler_flag:'`
14861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14862 (eval "$lt_compile" 2>out/conftest.err)
14863 ac_status=$?
14864 cat out/conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14867 then
14868 # The compiler can only warn and ignore the option if not recognized
14869 # So say no if there are warnings
14870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14873 lt_cv_prog_compiler_c_o_CXX=yes
14874 fi
14875 fi
14876 chmod u+w . 2>&5
14877 $RM conftest*
14878 # SGI C++ compiler will create directory out/ii_files/ for
14879 # template instantiation
14880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14881 $RM out/* && rmdir out
14882 cd ..
14883 $RM -r conftest
14884 $RM conftest*
14885
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14889
14890
14891
14892
14893 hard_links=nottested
14894 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14895 # do not overwrite the value of need_locks provided by the user
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14897 $as_echo_n "checking if we can lock with hard links... " >&6; }
14898 hard_links=yes
14899 $RM conftest*
14900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14901 touch conftest.a
14902 ln conftest.a conftest.b 2>&5 || hard_links=no
14903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14905 $as_echo "$hard_links" >&6; }
14906 if test no = "$hard_links"; then
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14908 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14909 need_locks=warn
14910 fi
14911 else
14912 need_locks=no
14913 fi
14914
14915
14916
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14919
14920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14921 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14922 case $host_os in
14923 aix[4-9]*)
14924 # If we're using GNU nm, then we don't want the "-C" option.
14925 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14926 # Without the "-l" option, or with the "-B" option, AIX nm treats
14927 # weak defined symbols like other global defined symbols, whereas
14928 # GNU nm marks them as "W".
14929 # While the 'weak' keyword is ignored in the Export File, we need
14930 # it in the Import File for the 'aix-soname' feature, so we have
14931 # to replace the "-B" option with "-P" for AIX nm.
14932 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14933 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14934 else
14935 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14936 fi
14937 ;;
14938 pw32*)
14939 export_symbols_cmds_CXX=$ltdll_cmds
14940 ;;
14941 cygwin* | mingw* | cegcc*)
14942 case $cc_basename in
14943 cl*)
14944 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14945 ;;
14946 *)
14947 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'
14948 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14949 ;;
14950 esac
14951 ;;
14952 *)
14953 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954 ;;
14955 esac
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14958 $as_echo "$ld_shlibs_CXX" >&6; }
14959 test no = "$ld_shlibs_CXX" && can_build_shared=no
14960
14961 with_gnu_ld_CXX=$with_gnu_ld
14962
14963
14964
14965
14966
14967
14968 #
14969 # Do we need to explicitly link libc?
14970 #
14971 case "x$archive_cmds_need_lc_CXX" in
14972 x|xyes)
14973 # Assume -lc should be added
14974 archive_cmds_need_lc_CXX=yes
14975
14976 if test yes,yes = "$GCC,$enable_shared"; then
14977 case $archive_cmds_CXX in
14978 *'~'*)
14979 # FIXME: we may have to deal with multi-command sequences.
14980 ;;
14981 '$CC '*)
14982 # Test whether the compiler implicitly links with -lc since on some
14983 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14984 # to ld, don't add -lc before -lgcc.
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14986 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14987 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14988 $as_echo_n "(cached) " >&6
14989 else
14990 $RM conftest*
14991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14992
14993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14994 (eval $ac_compile) 2>&5
14995 ac_status=$?
14996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997 test $ac_status = 0; } 2>conftest.err; then
14998 soname=conftest
14999 lib=conftest
15000 libobjs=conftest.$ac_objext
15001 deplibs=
15002 wl=$lt_prog_compiler_wl_CXX
15003 pic_flag=$lt_prog_compiler_pic_CXX
15004 compiler_flags=-v
15005 linker_flags=-v
15006 verstring=
15007 output_objdir=.
15008 libname=conftest
15009 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15010 allow_undefined_flag_CXX=
15011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15012 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15013 ac_status=$?
15014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015 test $ac_status = 0; }
15016 then
15017 lt_cv_archive_cmds_need_lc_CXX=no
15018 else
15019 lt_cv_archive_cmds_need_lc_CXX=yes
15020 fi
15021 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15022 else
15023 cat conftest.err 1>&5
15024 fi
15025 $RM conftest*
15026
15027 fi
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15029 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15030 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15031 ;;
15032 esac
15033 fi
15034 ;;
15035 esac
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15099 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15100
15101 library_names_spec=
15102 libname_spec='lib$name'
15103 soname_spec=
15104 shrext_cmds=.so
15105 postinstall_cmds=
15106 postuninstall_cmds=
15107 finish_cmds=
15108 finish_eval=
15109 shlibpath_var=
15110 shlibpath_overrides_runpath=unknown
15111 version_type=none
15112 dynamic_linker="$host_os ld.so"
15113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15114 need_lib_prefix=unknown
15115 hardcode_into_libs=no
15116
15117 # when you set need_version to no, make sure it does not cause -set_version
15118 # flags to be left without arguments
15119 need_version=unknown
15120
15121
15122
15123 case $host_os in
15124 aix3*)
15125 version_type=linux # correct to gnu/linux during the next big refactor
15126 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15127 shlibpath_var=LIBPATH
15128
15129 # AIX 3 has no versioning support, so we append a major version to the name.
15130 soname_spec='$libname$release$shared_ext$major'
15131 ;;
15132
15133 aix[4-9]*)
15134 version_type=linux # correct to gnu/linux during the next big refactor
15135 need_lib_prefix=no
15136 need_version=no
15137 hardcode_into_libs=yes
15138 if test ia64 = "$host_cpu"; then
15139 # AIX 5 supports IA64
15140 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 else
15143 # With GCC up to 2.95.x, collect2 would create an import file
15144 # for dependence libraries. The import file would start with
15145 # the line '#! .'. This would cause the generated library to
15146 # depend on '.', always an invalid library. This was fixed in
15147 # development snapshots of GCC prior to 3.0.
15148 case $host_os in
15149 aix4 | aix4.[01] | aix4.[01].*)
15150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15151 echo ' yes '
15152 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15153 :
15154 else
15155 can_build_shared=no
15156 fi
15157 ;;
15158 esac
15159 # Using Import Files as archive members, it is possible to support
15160 # filename-based versioning of shared library archives on AIX. While
15161 # this would work for both with and without runtime linking, it will
15162 # prevent static linking of such archives. So we do filename-based
15163 # shared library versioning with .so extension only, which is used
15164 # when both runtime linking and shared linking is enabled.
15165 # Unfortunately, runtime linking may impact performance, so we do
15166 # not want this to be the default eventually. Also, we use the
15167 # versioned .so libs for executables only if there is the -brtl
15168 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15169 # To allow for filename-based versioning support, we need to create
15170 # libNAME.so.V as an archive file, containing:
15171 # *) an Import File, referring to the versioned filename of the
15172 # archive as well as the shared archive member, telling the
15173 # bitwidth (32 or 64) of that shared object, and providing the
15174 # list of exported symbols of that shared object, eventually
15175 # decorated with the 'weak' keyword
15176 # *) the shared object with the F_LOADONLY flag set, to really avoid
15177 # it being seen by the linker.
15178 # At run time we better use the real file rather than another symlink,
15179 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15180
15181 case $with_aix_soname,$aix_use_runtimelinking in
15182 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15183 # soname into executable. Probably we can add versioning support to
15184 # collect2, so additional links can be useful in future.
15185 aix,yes) # traditional libtool
15186 dynamic_linker='AIX unversionable lib.so'
15187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15188 # instead of lib<name>.a to let people know that these are not
15189 # typical AIX shared libraries.
15190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15191 ;;
15192 aix,no) # traditional AIX only
15193 dynamic_linker='AIX lib.a(lib.so.V)'
15194 # We preserve .a as extension for shared libraries through AIX4.2
15195 # and later when we are not doing run time linking.
15196 library_names_spec='$libname$release.a $libname.a'
15197 soname_spec='$libname$release$shared_ext$major'
15198 ;;
15199 svr4,*) # full svr4 only
15200 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15201 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15202 # We do not specify a path in Import Files, so LIBPATH fires.
15203 shlibpath_overrides_runpath=yes
15204 ;;
15205 *,yes) # both, prefer svr4
15206 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15207 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15208 # unpreferred sharedlib libNAME.a needs extra handling
15209 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15210 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15211 # We do not specify a path in Import Files, so LIBPATH fires.
15212 shlibpath_overrides_runpath=yes
15213 ;;
15214 *,no) # both, prefer aix
15215 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15216 library_names_spec='$libname$release.a $libname.a'
15217 soname_spec='$libname$release$shared_ext$major'
15218 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15219 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15220 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15221 ;;
15222 esac
15223 shlibpath_var=LIBPATH
15224 fi
15225 ;;
15226
15227 amigaos*)
15228 case $host_cpu in
15229 powerpc)
15230 # Since July 2007 AmigaOS4 officially supports .so libraries.
15231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15233 ;;
15234 m68k)
15235 library_names_spec='$libname.ixlibrary $libname.a'
15236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15237 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15238 ;;
15239 esac
15240 ;;
15241
15242 beos*)
15243 library_names_spec='$libname$shared_ext'
15244 dynamic_linker="$host_os ld.so"
15245 shlibpath_var=LIBRARY_PATH
15246 ;;
15247
15248 bsdi[45]*)
15249 version_type=linux # correct to gnu/linux during the next big refactor
15250 need_version=no
15251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15252 soname_spec='$libname$release$shared_ext$major'
15253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15257 # the default ld.so.conf also contains /usr/contrib/lib and
15258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15259 # libtool to hard-code these into programs
15260 ;;
15261
15262 cygwin* | mingw* | pw32* | cegcc*)
15263 version_type=windows
15264 shrext_cmds=.dll
15265 need_version=no
15266 need_lib_prefix=no
15267
15268 case $GCC,$cc_basename in
15269 yes,*)
15270 # gcc
15271 library_names_spec='$libname.dll.a'
15272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15273 postinstall_cmds='base_file=`basename \$file`~
15274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15275 dldir=$destdir/`dirname \$dlpath`~
15276 test -d \$dldir || mkdir -p \$dldir~
15277 $install_prog $dir/$dlname \$dldir/$dlname~
15278 chmod a+x \$dldir/$dlname~
15279 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15280 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15281 fi'
15282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15283 dlpath=$dir/\$dldll~
15284 $RM \$dlpath'
15285 shlibpath_overrides_runpath=yes
15286
15287 case $host_os in
15288 cygwin*)
15289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15290 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15291
15292 ;;
15293 mingw* | cegcc*)
15294 # MinGW DLLs use traditional 'lib' prefix
15295 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15296 ;;
15297 pw32*)
15298 # pw32 DLLs use 'pw' prefix rather than 'lib'
15299 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15300 ;;
15301 esac
15302 dynamic_linker='Win32 ld.exe'
15303 ;;
15304
15305 *,cl*)
15306 # Native MSVC
15307 libname_spec='$name'
15308 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15309 library_names_spec='$libname.dll.lib'
15310
15311 case $build_os in
15312 mingw*)
15313 sys_lib_search_path_spec=
15314 lt_save_ifs=$IFS
15315 IFS=';'
15316 for lt_path in $LIB
15317 do
15318 IFS=$lt_save_ifs
15319 # Let DOS variable expansion print the short 8.3 style file name.
15320 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15321 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15322 done
15323 IFS=$lt_save_ifs
15324 # Convert to MSYS style.
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15326 ;;
15327 cygwin*)
15328 # Convert to unix form, then to dos form, then back to unix form
15329 # but this time dos style (no spaces!) so that the unix form looks
15330 # like /cygdrive/c/PROGRA~1:/cygdr...
15331 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15332 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15333 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15334 ;;
15335 *)
15336 sys_lib_search_path_spec=$LIB
15337 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15338 # It is most probably a Windows format PATH.
15339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15340 else
15341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15342 fi
15343 # FIXME: find the short name or the path components, as spaces are
15344 # common. (e.g. "Program Files" -> "PROGRA~1")
15345 ;;
15346 esac
15347
15348 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15349 postinstall_cmds='base_file=`basename \$file`~
15350 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15351 dldir=$destdir/`dirname \$dlpath`~
15352 test -d \$dldir || mkdir -p \$dldir~
15353 $install_prog $dir/$dlname \$dldir/$dlname'
15354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15355 dlpath=$dir/\$dldll~
15356 $RM \$dlpath'
15357 shlibpath_overrides_runpath=yes
15358 dynamic_linker='Win32 link.exe'
15359 ;;
15360
15361 *)
15362 # Assume MSVC wrapper
15363 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15364 dynamic_linker='Win32 ld.exe'
15365 ;;
15366 esac
15367 # FIXME: first we should search . and the directory the executable is in
15368 shlibpath_var=PATH
15369 ;;
15370
15371 darwin* | rhapsody*)
15372 dynamic_linker="$host_os dyld"
15373 version_type=darwin
15374 need_lib_prefix=no
15375 need_version=no
15376 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15377 soname_spec='$libname$release$major$shared_ext'
15378 shlibpath_overrides_runpath=yes
15379 shlibpath_var=DYLD_LIBRARY_PATH
15380 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15381
15382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15383 ;;
15384
15385 dgux*)
15386 version_type=linux # correct to gnu/linux during the next big refactor
15387 need_lib_prefix=no
15388 need_version=no
15389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15390 soname_spec='$libname$release$shared_ext$major'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 ;;
15393
15394 freebsd* | dragonfly*)
15395 # DragonFly does not have aout. When/if they implement a new
15396 # versioning mechanism, adjust this.
15397 if test -x /usr/bin/objformat; then
15398 objformat=`/usr/bin/objformat`
15399 else
15400 case $host_os in
15401 freebsd[23].*) objformat=aout ;;
15402 *) objformat=elf ;;
15403 esac
15404 fi
15405 version_type=freebsd-$objformat
15406 case $version_type in
15407 freebsd-elf*)
15408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15409 soname_spec='$libname$release$shared_ext$major'
15410 need_version=no
15411 need_lib_prefix=no
15412 ;;
15413 freebsd-*)
15414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15415 need_version=yes
15416 ;;
15417 esac
15418 shlibpath_var=LD_LIBRARY_PATH
15419 case $host_os in
15420 freebsd2.*)
15421 shlibpath_overrides_runpath=yes
15422 ;;
15423 freebsd3.[01]* | freebsdelf3.[01]*)
15424 shlibpath_overrides_runpath=yes
15425 hardcode_into_libs=yes
15426 ;;
15427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15429 shlibpath_overrides_runpath=no
15430 hardcode_into_libs=yes
15431 ;;
15432 *) # from 4.6 on, and DragonFly
15433 shlibpath_overrides_runpath=yes
15434 hardcode_into_libs=yes
15435 ;;
15436 esac
15437 ;;
15438
15439 haiku*)
15440 version_type=linux # correct to gnu/linux during the next big refactor
15441 need_lib_prefix=no
15442 need_version=no
15443 dynamic_linker="$host_os runtime_loader"
15444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15445 soname_spec='$libname$release$shared_ext$major'
15446 shlibpath_var=LIBRARY_PATH
15447 shlibpath_overrides_runpath=no
15448 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15449 hardcode_into_libs=yes
15450 ;;
15451
15452 hpux9* | hpux10* | hpux11*)
15453 # Give a soname corresponding to the major version so that dld.sl refuses to
15454 # link against other versions.
15455 version_type=sunos
15456 need_lib_prefix=no
15457 need_version=no
15458 case $host_cpu in
15459 ia64*)
15460 shrext_cmds='.so'
15461 hardcode_into_libs=yes
15462 dynamic_linker="$host_os dld.so"
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15466 soname_spec='$libname$release$shared_ext$major'
15467 if test 32 = "$HPUX_IA64_MODE"; then
15468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15469 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15470 else
15471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15472 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15473 fi
15474 ;;
15475 hppa*64*)
15476 shrext_cmds='.sl'
15477 hardcode_into_libs=yes
15478 dynamic_linker="$host_os dld.sl"
15479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15482 soname_spec='$libname$release$shared_ext$major'
15483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485 ;;
15486 *)
15487 shrext_cmds='.sl'
15488 dynamic_linker="$host_os dld.sl"
15489 shlibpath_var=SHLIB_PATH
15490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15492 soname_spec='$libname$release$shared_ext$major'
15493 ;;
15494 esac
15495 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15496 postinstall_cmds='chmod 555 $lib'
15497 # or fails outright, so override atomically:
15498 install_override_mode=555
15499 ;;
15500
15501 interix[3-9]*)
15502 version_type=linux # correct to gnu/linux during the next big refactor
15503 need_lib_prefix=no
15504 need_version=no
15505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15506 soname_spec='$libname$release$shared_ext$major'
15507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=no
15510 hardcode_into_libs=yes
15511 ;;
15512
15513 irix5* | irix6* | nonstopux*)
15514 case $host_os in
15515 nonstopux*) version_type=nonstopux ;;
15516 *)
15517 if test yes = "$lt_cv_prog_gnu_ld"; then
15518 version_type=linux # correct to gnu/linux during the next big refactor
15519 else
15520 version_type=irix
15521 fi ;;
15522 esac
15523 need_lib_prefix=no
15524 need_version=no
15525 soname_spec='$libname$release$shared_ext$major'
15526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15527 case $host_os in
15528 irix5* | nonstopux*)
15529 libsuff= shlibsuff=
15530 ;;
15531 *)
15532 case $LD in # libtool.m4 will add one of these switches to LD
15533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15534 libsuff= shlibsuff= libmagic=32-bit;;
15535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15536 libsuff=32 shlibsuff=N32 libmagic=N32;;
15537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15539 *) libsuff= shlibsuff= libmagic=never-match;;
15540 esac
15541 ;;
15542 esac
15543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15544 shlibpath_overrides_runpath=no
15545 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15546 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15547 hardcode_into_libs=yes
15548 ;;
15549
15550 # No shared lib support for Linux oldld, aout, or coff.
15551 linux*oldld* | linux*aout* | linux*coff*)
15552 dynamic_linker=no
15553 ;;
15554
15555 linux*android*)
15556 version_type=none # Android doesn't support versioned libraries.
15557 need_lib_prefix=no
15558 need_version=no
15559 library_names_spec='$libname$release$shared_ext'
15560 soname_spec='$libname$release$shared_ext'
15561 finish_cmds=
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=yes
15564
15565 # This implies no fast_install, which is unacceptable.
15566 # Some rework will be needed to allow for fast_install
15567 # before this can be enabled.
15568 hardcode_into_libs=yes
15569
15570 dynamic_linker='Android linker'
15571 # Don't embed -rpath directories since the linker doesn't support them.
15572 hardcode_libdir_flag_spec_CXX='-L$libdir'
15573 ;;
15574
15575 # This must be glibc/ELF.
15576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15577 version_type=linux # correct to gnu/linux during the next big refactor
15578 need_lib_prefix=no
15579 need_version=no
15580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15581 soname_spec='$libname$release$shared_ext$major'
15582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=no
15585
15586 # Some binutils ld are patched to set DT_RUNPATH
15587 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 lt_cv_shlibpath_overrides_runpath=no
15591 save_LDFLAGS=$LDFLAGS
15592 save_libdir=$libdir
15593 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15594 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597
15598 int
15599 main ()
15600 {
15601
15602 ;
15603 return 0;
15604 }
15605 _ACEOF
15606 if ac_fn_cxx_try_link "$LINENO"; then :
15607 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15608 lt_cv_shlibpath_overrides_runpath=yes
15609 fi
15610 fi
15611 rm -f core conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LDFLAGS=$save_LDFLAGS
15614 libdir=$save_libdir
15615
15616 fi
15617
15618 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15619
15620 # This implies no fast_install, which is unacceptable.
15621 # Some rework will be needed to allow for fast_install
15622 # before this can be enabled.
15623 hardcode_into_libs=yes
15624
15625 # Ideally, we could use ldconfig to report *all* directores which are
15626 # searched for libraries, however this is still not possible. Aside from not
15627 # being certain /sbin/ldconfig is available, command
15628 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15629 # even though it is searched at run-time. Try to do the best guess by
15630 # appending ld.so.conf contents (and includes) to the search path.
15631 if test -f /etc/ld.so.conf; then
15632 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' ' '`
15633 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15634 fi
15635
15636 # We used to test for /lib/ld.so.1 and disable shared libraries on
15637 # powerpc, because MkLinux only supported shared libraries with the
15638 # GNU dynamic linker. Since this was broken with cross compilers,
15639 # most powerpc-linux boxes support dynamic linking these days and
15640 # people can always --disable-shared, the test was removed, and we
15641 # assume the GNU/Linux dynamic linker is in use.
15642 dynamic_linker='GNU/Linux ld.so'
15643 ;;
15644
15645 netbsd*)
15646 version_type=sunos
15647 need_lib_prefix=no
15648 need_version=no
15649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15650 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15652 dynamic_linker='NetBSD (a.out) ld.so'
15653 else
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='NetBSD ld.elf_so'
15657 fi
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=yes
15660 hardcode_into_libs=yes
15661 ;;
15662
15663 newsos6)
15664 version_type=linux # correct to gnu/linux during the next big refactor
15665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath=yes
15668 ;;
15669
15670 *nto* | *qnx*)
15671 version_type=qnx
15672 need_lib_prefix=no
15673 need_version=no
15674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15675 soname_spec='$libname$release$shared_ext$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 shlibpath_overrides_runpath=no
15678 hardcode_into_libs=yes
15679 dynamic_linker='ldqnx.so'
15680 ;;
15681
15682 openbsd* | bitrig*)
15683 version_type=sunos
15684 sys_lib_dlsearch_path_spec=/usr/lib
15685 need_lib_prefix=no
15686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15687 need_version=no
15688 else
15689 need_version=yes
15690 fi
15691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15695 ;;
15696
15697 os2*)
15698 libname_spec='$name'
15699 version_type=windows
15700 shrext_cmds=.dll
15701 need_version=no
15702 need_lib_prefix=no
15703 # OS/2 can only load a DLL with a base name of 8 characters or less.
15704 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15705 v=$($ECHO $release$versuffix | tr -d .-);
15706 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15707 $ECHO $n$v`$shared_ext'
15708 library_names_spec='${libname}_dll.$libext'
15709 dynamic_linker='OS/2 ld.exe'
15710 shlibpath_var=BEGINLIBPATH
15711 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15713 postinstall_cmds='base_file=`basename \$file`~
15714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15715 dldir=$destdir/`dirname \$dlpath`~
15716 test -d \$dldir || mkdir -p \$dldir~
15717 $install_prog $dir/$dlname \$dldir/$dlname~
15718 chmod a+x \$dldir/$dlname~
15719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15720 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15721 fi'
15722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15723 dlpath=$dir/\$dldll~
15724 $RM \$dlpath'
15725 ;;
15726
15727 osf3* | osf4* | osf5*)
15728 version_type=osf
15729 need_lib_prefix=no
15730 need_version=no
15731 soname_spec='$libname$release$shared_ext$major'
15732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15736 ;;
15737
15738 rdos*)
15739 dynamic_linker=no
15740 ;;
15741
15742 solaris*)
15743 version_type=linux # correct to gnu/linux during the next big refactor
15744 need_lib_prefix=no
15745 need_version=no
15746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15747 soname_spec='$libname$release$shared_ext$major'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 shlibpath_overrides_runpath=yes
15750 hardcode_into_libs=yes
15751 # ldd complains unless libraries are executable
15752 postinstall_cmds='chmod +x $lib'
15753 ;;
15754
15755 sunos4*)
15756 version_type=sunos
15757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15758 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=yes
15761 if test yes = "$with_gnu_ld"; then
15762 need_lib_prefix=no
15763 fi
15764 need_version=yes
15765 ;;
15766
15767 sysv4 | sysv4.3*)
15768 version_type=linux # correct to gnu/linux during the next big refactor
15769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15770 soname_spec='$libname$release$shared_ext$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 case $host_vendor in
15773 sni)
15774 shlibpath_overrides_runpath=no
15775 need_lib_prefix=no
15776 runpath_var=LD_RUN_PATH
15777 ;;
15778 siemens)
15779 need_lib_prefix=no
15780 ;;
15781 motorola)
15782 need_lib_prefix=no
15783 need_version=no
15784 shlibpath_overrides_runpath=no
15785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15786 ;;
15787 esac
15788 ;;
15789
15790 sysv4*MP*)
15791 if test -d /usr/nec; then
15792 version_type=linux # correct to gnu/linux during the next big refactor
15793 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15794 soname_spec='$libname$shared_ext.$major'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 fi
15797 ;;
15798
15799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15800 version_type=sco
15801 need_lib_prefix=no
15802 need_version=no
15803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15804 soname_spec='$libname$release$shared_ext$major'
15805 shlibpath_var=LD_LIBRARY_PATH
15806 shlibpath_overrides_runpath=yes
15807 hardcode_into_libs=yes
15808 if test yes = "$with_gnu_ld"; then
15809 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15810 else
15811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15812 case $host_os in
15813 sco3.2v5*)
15814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15815 ;;
15816 esac
15817 fi
15818 sys_lib_dlsearch_path_spec='/usr/lib'
15819 ;;
15820
15821 tpf*)
15822 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15823 version_type=linux # correct to gnu/linux during the next big refactor
15824 need_lib_prefix=no
15825 need_version=no
15826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=no
15829 hardcode_into_libs=yes
15830 ;;
15831
15832 uts4*)
15833 version_type=linux # correct to gnu/linux during the next big refactor
15834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15835 soname_spec='$libname$release$shared_ext$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 ;;
15838
15839 *)
15840 dynamic_linker=no
15841 ;;
15842 esac
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15844 $as_echo "$dynamic_linker" >&6; }
15845 test no = "$dynamic_linker" && can_build_shared=no
15846
15847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15848 if test yes = "$GCC"; then
15849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15850 fi
15851
15852 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15853 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15854 fi
15855
15856 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15857 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15858 fi
15859
15860 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15861 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15862
15863 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15864 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15865
15866 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15867 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15909 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15910 hardcode_action_CXX=
15911 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15912 test -n "$runpath_var_CXX" ||
15913 test yes = "$hardcode_automatic_CXX"; then
15914
15915 # We can hardcode non-existent directories.
15916 if test no != "$hardcode_direct_CXX" &&
15917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15918 # have to relink, otherwise we might link with an installed library
15919 # when we should be linking with a yet-to-be-installed one
15920 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15921 test no != "$hardcode_minus_L_CXX"; then
15922 # Linking always hardcodes the temporary library directory.
15923 hardcode_action_CXX=relink
15924 else
15925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15926 hardcode_action_CXX=immediate
15927 fi
15928 else
15929 # We cannot hardcode anything, or else we can only hardcode existing
15930 # directories.
15931 hardcode_action_CXX=unsupported
15932 fi
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15934 $as_echo "$hardcode_action_CXX" >&6; }
15935
15936 if test relink = "$hardcode_action_CXX" ||
15937 test yes = "$inherit_rpath_CXX"; then
15938 # Fast installation is not supported
15939 enable_fast_install=no
15940 elif test yes = "$shlibpath_overrides_runpath" ||
15941 test no = "$enable_shared"; then
15942 # Fast installation is not necessary
15943 enable_fast_install=needless
15944 fi
15945
15946
15947
15948
15949
15950
15951
15952 fi # test -n "$compiler"
15953
15954 CC=$lt_save_CC
15955 CFLAGS=$lt_save_CFLAGS
15956 LDCXX=$LD
15957 LD=$lt_save_LD
15958 GCC=$lt_save_GCC
15959 with_gnu_ld=$lt_save_with_gnu_ld
15960 lt_cv_path_LDCXX=$lt_cv_path_LD
15961 lt_cv_path_LD=$lt_save_path_LD
15962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15964 fi # test yes != "$_lt_caught_CXX_error"
15965
15966 ac_ext=c
15967 ac_cpp='$CPP $CPPFLAGS'
15968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986 ac_config_commands="$ac_config_commands libtool"
15987
15988
15989
15990
15991 # Only expand once:
15992
15993
15994
15995 # Checks for libraries.
15996
15997
15998
15999
16000
16001
16002
16003 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16004 if test -n "$ac_tool_prefix"; then
16005 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16006 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008 $as_echo_n "checking for $ac_word... " >&6; }
16009 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012 case $PKG_CONFIG in
16013 [\\/]* | ?:[\\/]*)
16014 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16015 ;;
16016 *)
16017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018 for as_dir in $PATH
16019 do
16020 IFS=$as_save_IFS
16021 test -z "$as_dir" && as_dir=.
16022 for ac_exec_ext in '' $ac_executable_extensions; do
16023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16024 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16026 break 2
16027 fi
16028 done
16029 done
16030 IFS=$as_save_IFS
16031
16032 ;;
16033 esac
16034 fi
16035 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16036 if test -n "$PKG_CONFIG"; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16038 $as_echo "$PKG_CONFIG" >&6; }
16039 else
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041 $as_echo "no" >&6; }
16042 fi
16043
16044
16045 fi
16046 if test -z "$ac_cv_path_PKG_CONFIG"; then
16047 ac_pt_PKG_CONFIG=$PKG_CONFIG
16048 # Extract the first word of "pkg-config", so it can be a program name with args.
16049 set dummy pkg-config; ac_word=$2
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16051 $as_echo_n "checking for $ac_word... " >&6; }
16052 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 case $ac_pt_PKG_CONFIG in
16056 [\\/]* | ?:[\\/]*)
16057 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16058 ;;
16059 *)
16060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16061 for as_dir in $PATH
16062 do
16063 IFS=$as_save_IFS
16064 test -z "$as_dir" && as_dir=.
16065 for ac_exec_ext in '' $ac_executable_extensions; do
16066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16067 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16069 break 2
16070 fi
16071 done
16072 done
16073 IFS=$as_save_IFS
16074
16075 ;;
16076 esac
16077 fi
16078 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16079 if test -n "$ac_pt_PKG_CONFIG"; then
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16081 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16082 else
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084 $as_echo "no" >&6; }
16085 fi
16086
16087 if test "x$ac_pt_PKG_CONFIG" = x; then
16088 PKG_CONFIG=""
16089 else
16090 case $cross_compiling:$ac_tool_warned in
16091 yes:)
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16094 ac_tool_warned=yes ;;
16095 esac
16096 PKG_CONFIG=$ac_pt_PKG_CONFIG
16097 fi
16098 else
16099 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16100 fi
16101
16102 fi
16103 if test -n "$PKG_CONFIG"; then
16104 _pkg_min_version=0.9.0
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16106 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16107 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16109 $as_echo "yes" >&6; }
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16113 PKG_CONFIG=""
16114 fi
16115 fi
16116
16117 pkg_failed=no
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libimobiledevice" >&5
16119 $as_echo_n "checking for libimobiledevice... " >&6; }
16120
16121 if test -n "$libimobiledevice_CFLAGS"; then
16122 pkg_cv_libimobiledevice_CFLAGS="$libimobiledevice_CFLAGS"
16123 elif test -n "$PKG_CONFIG"; then
16124 if test -n "$PKG_CONFIG" && \
16125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= \$LIBIMOBILEDEVICE_VERSION\""; } >&5
16126 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION") 2>&5
16127 ac_status=$?
16128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16129 test $ac_status = 0; }; then
16130 pkg_cv_libimobiledevice_CFLAGS=`$PKG_CONFIG --cflags "libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION" 2>/dev/null`
16131 test "x$?" != "x0" && pkg_failed=yes
16132 else
16133 pkg_failed=yes
16134 fi
16135 else
16136 pkg_failed=untried
16137 fi
16138 if test -n "$libimobiledevice_LIBS"; then
16139 pkg_cv_libimobiledevice_LIBS="$libimobiledevice_LIBS"
16140 elif test -n "$PKG_CONFIG"; then
16141 if test -n "$PKG_CONFIG" && \
16142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= \$LIBIMOBILEDEVICE_VERSION\""; } >&5
16143 ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION") 2>&5
16144 ac_status=$?
16145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16146 test $ac_status = 0; }; then
16147 pkg_cv_libimobiledevice_LIBS=`$PKG_CONFIG --libs "libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION" 2>/dev/null`
16148 test "x$?" != "x0" && pkg_failed=yes
16149 else
16150 pkg_failed=yes
16151 fi
16152 else
16153 pkg_failed=untried
16154 fi
16155
16156
16157
16158 if test $pkg_failed = yes; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16161
16162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16163 _pkg_short_errors_supported=yes
16164 else
16165 _pkg_short_errors_supported=no
16166 fi
16167 if test $_pkg_short_errors_supported = yes; then
16168 libimobiledevice_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION" 2>&1`
16169 else
16170 libimobiledevice_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION" 2>&1`
16171 fi
16172 # Put the nasty error message in config.log where it belongs
16173 echo "$libimobiledevice_PKG_ERRORS" >&5
16174
16175 as_fn_error $? "Package requirements (libimobiledevice-1.0 >= $LIBIMOBILEDEVICE_VERSION) were not met:
16176
16177 $libimobiledevice_PKG_ERRORS
16178
16179 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16180 installed software in a non-standard prefix.
16181
16182 Alternatively, you may set the environment variables libimobiledevice_CFLAGS
16183 and libimobiledevice_LIBS to avoid the need to call pkg-config.
16184 See the pkg-config man page for more details." "$LINENO" 5
16185 elif test $pkg_failed = untried; then
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16187 $as_echo "no" >&6; }
16188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16190 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16191 is in your PATH or set the PKG_CONFIG environment variable to the full
16192 path to pkg-config.
16193
16194 Alternatively, you may set the environment variables libimobiledevice_CFLAGS
16195 and libimobiledevice_LIBS to avoid the need to call pkg-config.
16196 See the pkg-config man page for more details.
16197
16198 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16199 See \`config.log' for more details" "$LINENO" 5; }
16200 else
16201 libimobiledevice_CFLAGS=$pkg_cv_libimobiledevice_CFLAGS
16202 libimobiledevice_LIBS=$pkg_cv_libimobiledevice_LIBS
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16204 $as_echo "yes" >&6; }
16205
16206 fi
16207
16208 pkg_failed=no
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libplist" >&5
16210 $as_echo_n "checking for libplist... " >&6; }
16211
16212 if test -n "$libplist_CFLAGS"; then
16213 pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
16214 elif test -n "$PKG_CONFIG"; then
16215 if test -n "$PKG_CONFIG" && \
16216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= \$LIBPLIST_VERSION\""; } >&5
16217 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= $LIBPLIST_VERSION") 2>&5
16218 ac_status=$?
16219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220 test $ac_status = 0; }; then
16221 pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist-2.0 >= $LIBPLIST_VERSION" 2>/dev/null`
16222 test "x$?" != "x0" && pkg_failed=yes
16223 else
16224 pkg_failed=yes
16225 fi
16226 else
16227 pkg_failed=untried
16228 fi
16229 if test -n "$libplist_LIBS"; then
16230 pkg_cv_libplist_LIBS="$libplist_LIBS"
16231 elif test -n "$PKG_CONFIG"; then
16232 if test -n "$PKG_CONFIG" && \
16233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist-2.0 >= \$LIBPLIST_VERSION\""; } >&5
16234 ($PKG_CONFIG --exists --print-errors "libplist-2.0 >= $LIBPLIST_VERSION") 2>&5
16235 ac_status=$?
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; }; then
16238 pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>/dev/null`
16239 test "x$?" != "x0" && pkg_failed=yes
16240 else
16241 pkg_failed=yes
16242 fi
16243 else
16244 pkg_failed=untried
16245 fi
16246
16247
16248
16249 if test $pkg_failed = yes; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16252
16253 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16254 _pkg_short_errors_supported=yes
16255 else
16256 _pkg_short_errors_supported=no
16257 fi
16258 if test $_pkg_short_errors_supported = yes; then
16259 libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>&1`
16260 else
16261 libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist-2.0 >= $LIBPLIST_VERSION" 2>&1`
16262 fi
16263 # Put the nasty error message in config.log where it belongs
16264 echo "$libplist_PKG_ERRORS" >&5
16265
16266 as_fn_error $? "Package requirements (libplist-2.0 >= $LIBPLIST_VERSION) were not met:
16267
16268 $libplist_PKG_ERRORS
16269
16270 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16271 installed software in a non-standard prefix.
16272
16273 Alternatively, you may set the environment variables libplist_CFLAGS
16274 and libplist_LIBS to avoid the need to call pkg-config.
16275 See the pkg-config man page for more details." "$LINENO" 5
16276 elif test $pkg_failed = untried; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278 $as_echo "no" >&6; }
16279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16281 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16282 is in your PATH or set the PKG_CONFIG environment variable to the full
16283 path to pkg-config.
16284
16285 Alternatively, you may set the environment variables libplist_CFLAGS
16286 and libplist_LIBS to avoid the need to call pkg-config.
16287 See the pkg-config man page for more details.
16288
16289 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16290 See \`config.log' for more details" "$LINENO" 5; }
16291 else
16292 libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
16293 libplist_LIBS=$pkg_cv_libplist_LIBS
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16295 $as_echo "yes" >&6; }
16296
16297 fi
16298
16299 pkg_failed=no
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
16301 $as_echo_n "checking for libcurl... " >&6; }
16302
16303 if test -n "$libcurl_CFLAGS"; then
16304 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
16305 elif test -n "$PKG_CONFIG"; then
16306 if test -n "$PKG_CONFIG" && \
16307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$LIBCURL_VERSION\""; } >&5
16308 ($PKG_CONFIG --exists --print-errors "libcurl >= $LIBCURL_VERSION") 2>&5
16309 ac_status=$?
16310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16311 test $ac_status = 0; }; then
16312 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= $LIBCURL_VERSION" 2>/dev/null`
16313 test "x$?" != "x0" && pkg_failed=yes
16314 else
16315 pkg_failed=yes
16316 fi
16317 else
16318 pkg_failed=untried
16319 fi
16320 if test -n "$libcurl_LIBS"; then
16321 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
16322 elif test -n "$PKG_CONFIG"; then
16323 if test -n "$PKG_CONFIG" && \
16324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$LIBCURL_VERSION\""; } >&5
16325 ($PKG_CONFIG --exists --print-errors "libcurl >= $LIBCURL_VERSION") 2>&5
16326 ac_status=$?
16327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16328 test $ac_status = 0; }; then
16329 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= $LIBCURL_VERSION" 2>/dev/null`
16330 test "x$?" != "x0" && pkg_failed=yes
16331 else
16332 pkg_failed=yes
16333 fi
16334 else
16335 pkg_failed=untried
16336 fi
16337
16338
16339
16340 if test $pkg_failed = yes; then
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16343
16344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16345 _pkg_short_errors_supported=yes
16346 else
16347 _pkg_short_errors_supported=no
16348 fi
16349 if test $_pkg_short_errors_supported = yes; then
16350 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= $LIBCURL_VERSION" 2>&1`
16351 else
16352 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= $LIBCURL_VERSION" 2>&1`
16353 fi
16354 # Put the nasty error message in config.log where it belongs
16355 echo "$libcurl_PKG_ERRORS" >&5
16356
16357 as_fn_error $? "Package requirements (libcurl >= $LIBCURL_VERSION) were not met:
16358
16359 $libcurl_PKG_ERRORS
16360
16361 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16362 installed software in a non-standard prefix.
16363
16364 Alternatively, you may set the environment variables libcurl_CFLAGS
16365 and libcurl_LIBS to avoid the need to call pkg-config.
16366 See the pkg-config man page for more details." "$LINENO" 5
16367 elif test $pkg_failed = untried; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16369 $as_echo "no" >&6; }
16370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16372 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16373 is in your PATH or set the PKG_CONFIG environment variable to the full
16374 path to pkg-config.
16375
16376 Alternatively, you may set the environment variables libcurl_CFLAGS
16377 and libcurl_LIBS to avoid the need to call pkg-config.
16378 See the pkg-config man page for more details.
16379
16380 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16381 See \`config.log' for more details" "$LINENO" 5; }
16382 else
16383 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
16384 libcurl_LIBS=$pkg_cv_libcurl_LIBS
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16386 $as_echo "yes" >&6; }
16387
16388 fi
16389
16390 pkg_failed=no
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
16392 $as_echo_n "checking for libxml2... " >&6; }
16393
16394 if test -n "$libxml2_CFLAGS"; then
16395 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
16396 elif test -n "$PKG_CONFIG"; then
16397 if test -n "$PKG_CONFIG" && \
16398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_VERSION\""; } >&5
16399 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_VERSION") 2>&5
16400 ac_status=$?
16401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16402 test $ac_status = 0; }; then
16403 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML2_VERSION" 2>/dev/null`
16404 test "x$?" != "x0" && pkg_failed=yes
16405 else
16406 pkg_failed=yes
16407 fi
16408 else
16409 pkg_failed=untried
16410 fi
16411 if test -n "$libxml2_LIBS"; then
16412 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
16413 elif test -n "$PKG_CONFIG"; then
16414 if test -n "$PKG_CONFIG" && \
16415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_VERSION\""; } >&5
16416 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_VERSION") 2>&5
16417 ac_status=$?
16418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16419 test $ac_status = 0; }; then
16420 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML2_VERSION" 2>/dev/null`
16421 test "x$?" != "x0" && pkg_failed=yes
16422 else
16423 pkg_failed=yes
16424 fi
16425 else
16426 pkg_failed=untried
16427 fi
16428
16429
16430
16431 if test $pkg_failed = yes; then
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16433 $as_echo "no" >&6; }
16434
16435 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16436 _pkg_short_errors_supported=yes
16437 else
16438 _pkg_short_errors_supported=no
16439 fi
16440 if test $_pkg_short_errors_supported = yes; then
16441 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML2_VERSION" 2>&1`
16442 else
16443 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML2_VERSION" 2>&1`
16444 fi
16445 # Put the nasty error message in config.log where it belongs
16446 echo "$libxml2_PKG_ERRORS" >&5
16447
16448 as_fn_error $? "Package requirements (libxml-2.0 >= $LIBXML2_VERSION) were not met:
16449
16450 $libxml2_PKG_ERRORS
16451
16452 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16453 installed software in a non-standard prefix.
16454
16455 Alternatively, you may set the environment variables libxml2_CFLAGS
16456 and libxml2_LIBS to avoid the need to call pkg-config.
16457 See the pkg-config man page for more details." "$LINENO" 5
16458 elif test $pkg_failed = untried; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16463 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16464 is in your PATH or set the PKG_CONFIG environment variable to the full
16465 path to pkg-config.
16466
16467 Alternatively, you may set the environment variables libxml2_CFLAGS
16468 and libxml2_LIBS to avoid the need to call pkg-config.
16469 See the pkg-config man page for more details.
16470
16471 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16472 See \`config.log' for more details" "$LINENO" 5; }
16473 else
16474 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
16475 libxml2_LIBS=$pkg_cv_libxml2_LIBS
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16477 $as_echo "yes" >&6; }
16478
16479 fi
16480
16481 # Checks for header files.
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16483 $as_echo_n "checking for ANSI C header files... " >&6; }
16484 if ${ac_cv_header_stdc+:} false; then :
16485 $as_echo_n "(cached) " >&6
16486 else
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16489 #include <stdlib.h>
16490 #include <stdarg.h>
16491 #include <string.h>
16492 #include <float.h>
16493
16494 int
16495 main ()
16496 {
16497
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_compile "$LINENO"; then :
16503 ac_cv_header_stdc=yes
16504 else
16505 ac_cv_header_stdc=no
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508
16509 if test $ac_cv_header_stdc = yes; then
16510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <string.h>
16514
16515 _ACEOF
16516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517 $EGREP "memchr" >/dev/null 2>&1; then :
16518
16519 else
16520 ac_cv_header_stdc=no
16521 fi
16522 rm -f conftest*
16523
16524 fi
16525
16526 if test $ac_cv_header_stdc = yes; then
16527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <stdlib.h>
16531
16532 _ACEOF
16533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534 $EGREP "free" >/dev/null 2>&1; then :
16535
16536 else
16537 ac_cv_header_stdc=no
16538 fi
16539 rm -f conftest*
16540
16541 fi
16542
16543 if test $ac_cv_header_stdc = yes; then
16544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16545 if test "$cross_compiling" = yes; then :
16546 :
16547 else
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16550 #include <ctype.h>
16551 #include <stdlib.h>
16552 #if ((' ' & 0x0FF) == 0x020)
16553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16555 #else
16556 # define ISLOWER(c) \
16557 (('a' <= (c) && (c) <= 'i') \
16558 || ('j' <= (c) && (c) <= 'r') \
16559 || ('s' <= (c) && (c) <= 'z'))
16560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16561 #endif
16562
16563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16564 int
16565 main ()
16566 {
16567 int i;
16568 for (i = 0; i < 256; i++)
16569 if (XOR (islower (i), ISLOWER (i))
16570 || toupper (i) != TOUPPER (i))
16571 return 2;
16572 return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_run "$LINENO"; then :
16576
16577 else
16578 ac_cv_header_stdc=no
16579 fi
16580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16581 conftest.$ac_objext conftest.beam conftest.$ac_ext
16582 fi
16583
16584 fi
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16587 $as_echo "$ac_cv_header_stdc" >&6; }
16588 if test $ac_cv_header_stdc = yes; then
16589
16590 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16591
16592 fi
16593
16594 for ac_header in stdint.h stdlib.h string.h sys/socket.h
16595 do :
16596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16597 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16598 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16599 cat >>confdefs.h <<_ACEOF
16600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16601 _ACEOF
16602
16603 fi
16604
16605 done
16606
16607
16608 # Checks for typedefs, structures, and compiler characteristics.
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16610 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16611 if ${ac_cv_c_const+:} false; then :
16612 $as_echo_n "(cached) " >&6
16613 else
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616
16617 int
16618 main ()
16619 {
16620
16621 #ifndef __cplusplus
16622 /* Ultrix mips cc rejects this sort of thing. */
16623 typedef int charset[2];
16624 const charset cs = { 0, 0 };
16625 /* SunOS 4.1.1 cc rejects this. */
16626 char const *const *pcpcc;
16627 char **ppc;
16628 /* NEC SVR4.0.2 mips cc rejects this. */
16629 struct point {int x, y;};
16630 static struct point const zero = {0,0};
16631 /* AIX XL C 1.02.0.0 rejects this.
16632 It does not let you subtract one const X* pointer from another in
16633 an arm of an if-expression whose if-part is not a constant
16634 expression */
16635 const char *g = "string";
16636 pcpcc = &g + (g ? g-g : 0);
16637 /* HPUX 7.0 cc rejects these. */
16638 ++pcpcc;
16639 ppc = (char**) pcpcc;
16640 pcpcc = (char const *const *) ppc;
16641 { /* SCO 3.2v4 cc rejects this sort of thing. */
16642 char tx;
16643 char *t = &tx;
16644 char const *s = 0 ? (char *) 0 : (char const *) 0;
16645
16646 *t++ = 0;
16647 if (s) return 0;
16648 }
16649 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16650 int x[] = {25, 17};
16651 const int *foo = &x[0];
16652 ++foo;
16653 }
16654 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16655 typedef const int *iptr;
16656 iptr p = 0;
16657 ++p;
16658 }
16659 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16660 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16661 struct s { int j; const int *ap[3]; } bx;
16662 struct s *b = &bx; b->j = 5;
16663 }
16664 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16665 const int foo = 10;
16666 if (!foo) return 0;
16667 }
16668 return !cs[0] && !zero.x;
16669 #endif
16670
16671 ;
16672 return 0;
16673 }
16674 _ACEOF
16675 if ac_fn_c_try_compile "$LINENO"; then :
16676 ac_cv_c_const=yes
16677 else
16678 ac_cv_c_const=no
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 fi
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16683 $as_echo "$ac_cv_c_const" >&6; }
16684 if test $ac_cv_c_const = no; then
16685
16686 $as_echo "#define const /**/" >>confdefs.h
16687
16688 fi
16689
16690 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16691 if test "x$ac_cv_type_size_t" = xyes; then :
16692
16693 else
16694
16695 cat >>confdefs.h <<_ACEOF
16696 #define size_t unsigned int
16697 _ACEOF
16698
16699 fi
16700
16701 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16702 if test "x$ac_cv_type_ssize_t" = xyes; then :
16703
16704 else
16705
16706 cat >>confdefs.h <<_ACEOF
16707 #define ssize_t int
16708 _ACEOF
16709
16710 fi
16711
16712 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16713 case $ac_cv_c_uint16_t in #(
16714 no|yes) ;; #(
16715 *)
16716
16717
16718 cat >>confdefs.h <<_ACEOF
16719 #define uint16_t $ac_cv_c_uint16_t
16720 _ACEOF
16721 ;;
16722 esac
16723
16724 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16725 case $ac_cv_c_uint32_t in #(
16726 no|yes) ;; #(
16727 *)
16728
16729 $as_echo "#define _UINT32_T 1" >>confdefs.h
16730
16731
16732 cat >>confdefs.h <<_ACEOF
16733 #define uint32_t $ac_cv_c_uint32_t
16734 _ACEOF
16735 ;;
16736 esac
16737
16738 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16739 case $ac_cv_c_uint8_t in #(
16740 no|yes) ;; #(
16741 *)
16742
16743 $as_echo "#define _UINT8_T 1" >>confdefs.h
16744
16745
16746 cat >>confdefs.h <<_ACEOF
16747 #define uint8_t $ac_cv_c_uint8_t
16748 _ACEOF
16749 ;;
16750 esac
16751
16752
16753 # Checks for library functions.
16754 for ac_func in strcasecmp strdup strerror strndup
16755 do :
16756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16759 cat >>confdefs.h <<_ACEOF
16760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16761 _ACEOF
16762
16763 fi
16764 done
16765
16766
16767 # Check for operating system
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wether we need platform-specific build settings for ${host_os}" >&5
16769 $as_echo_n "checking wether we need platform-specific build settings for ${host_os}... " >&6; }
16770 case ${host_os} in
16771 *mingw32*|*cygwin*)
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16773 $as_echo "yes" >&6; }
16774 win32=true
16775 ;;
16776 darwin*|*android*)
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778 $as_echo "no" >&6; }
16779 ;;
16780 *)
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782 $as_echo "yes" >&6; }
16783
16784
16785
16786
16787 ac_ext=c
16788 ac_cpp='$CPP $CPPFLAGS'
16789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16792
16793 ax_pthread_ok=no
16794
16795 # We used to check for pthread.h first, but this fails if pthread.h
16796 # requires special compiler flags (e.g. on Tru64 or Sequent).
16797 # It gets checked for in the link test anyway.
16798
16799 # First of all, check if the user has set any of the PTHREAD_LIBS,
16800 # etcetera environment variables, and if threads linking works using
16801 # them:
16802 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
16803 ax_pthread_save_CC="$CC"
16804 ax_pthread_save_CFLAGS="$CFLAGS"
16805 ax_pthread_save_LIBS="$LIBS"
16806 if test "x$PTHREAD_CC" != "x"; then :
16807 CC="$PTHREAD_CC"
16808 fi
16809 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16810 LIBS="$PTHREAD_LIBS $LIBS"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
16812 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815
16816 /* Override any GCC internal prototype to avoid an error.
16817 Use char because int might match the return type of a GCC
16818 builtin and then its argument prototype would still apply. */
16819 #ifdef __cplusplus
16820 extern "C"
16821 #endif
16822 char pthread_join ();
16823 int
16824 main ()
16825 {
16826 return pthread_join ();
16827 ;
16828 return 0;
16829 }
16830 _ACEOF
16831 if ac_fn_c_try_link "$LINENO"; then :
16832 ax_pthread_ok=yes
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext \
16835 conftest$ac_exeext conftest.$ac_ext
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16837 $as_echo "$ax_pthread_ok" >&6; }
16838 if test "x$ax_pthread_ok" = "xno"; then
16839 PTHREAD_LIBS=""
16840 PTHREAD_CFLAGS=""
16841 fi
16842 CC="$ax_pthread_save_CC"
16843 CFLAGS="$ax_pthread_save_CFLAGS"
16844 LIBS="$ax_pthread_save_LIBS"
16845 fi
16846
16847 # We must check for the threads library under a number of different
16848 # names; the ordering is very important because some systems
16849 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16850 # libraries is broken (non-POSIX).
16851
16852 # Create a list of thread flags to try. Items starting with a "-" are
16853 # C compiler flags, and other items are library names, except for "none"
16854 # which indicates that we try without any flags at all, and "pthread-config"
16855 # which is a program returning the flags for the Pth emulation library.
16856
16857 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16858
16859 # The ordering *is* (sometimes) important. Some notes on the
16860 # individual items follow:
16861
16862 # pthreads: AIX (must check this before -lpthread)
16863 # none: in case threads are in libc; should be tried before -Kthread and
16864 # other compiler flags to prevent continual compiler warnings
16865 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16866 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
16867 # (Note: HP C rejects this with "bad form for `-t' option")
16868 # -pthreads: Solaris/gcc (Note: HP C also rejects)
16869 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16870 # doesn't hurt to check since this sometimes defines pthreads and
16871 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
16872 # is present but should not be used directly; and before -mthreads,
16873 # because the compiler interprets this as "-mt" + "-hreads")
16874 # -mthreads: Mingw32/gcc, Lynx/gcc
16875 # pthread: Linux, etcetera
16876 # --thread-safe: KAI C++
16877 # pthread-config: use pthread-config program (for GNU Pth library)
16878
16879 case $host_os in
16880
16881 freebsd*)
16882
16883 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16884 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16885
16886 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
16887 ;;
16888
16889 hpux*)
16890
16891 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
16892 # multi-threading and also sets -lpthread."
16893
16894 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
16895 ;;
16896
16897 openedition*)
16898
16899 # IBM z/OS requires a feature-test macro to be defined in order to
16900 # enable POSIX threads at all, so give the user a hint if this is
16901 # not set. (We don't define these ourselves, as they can affect
16902 # other portions of the system API in unpredictable ways.)
16903
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h. */
16906
16907 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
16908 AX_PTHREAD_ZOS_MISSING
16909 # endif
16910
16911 _ACEOF
16912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16913 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
16915 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
16916 fi
16917 rm -f conftest*
16918
16919 ;;
16920
16921 solaris*)
16922
16923 # On Solaris (at least, for some versions), libc contains stubbed
16924 # (non-functional) versions of the pthreads routines, so link-based
16925 # tests will erroneously succeed. (N.B.: The stubs are missing
16926 # pthread_cleanup_push, or rather a function called by this macro,
16927 # so we could check for that, but who knows whether they'll stub
16928 # that too in a future libc.) So we'll check first for the
16929 # standard Solaris way of linking pthreads (-mt -lpthread).
16930
16931 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
16932 ;;
16933 esac
16934
16935 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
16936
16937 if test "x$GCC" = "xyes"; then :
16938 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
16939 fi
16940
16941 # The presence of a feature test macro requesting re-entrant function
16942 # definitions is, on some systems, a strong hint that pthreads support is
16943 # correctly enabled
16944
16945 case $host_os in
16946 darwin* | hpux* | linux* | osf* | solaris*)
16947 ax_pthread_check_macro="_REENTRANT"
16948 ;;
16949
16950 aix*)
16951 ax_pthread_check_macro="_THREAD_SAFE"
16952 ;;
16953
16954 *)
16955 ax_pthread_check_macro="--"
16956 ;;
16957 esac
16958 if test "x$ax_pthread_check_macro" = "x--"; then :
16959 ax_pthread_check_cond=0
16960 else
16961 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
16962 fi
16963
16964 # Are we compiling with Clang?
16965
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
16967 $as_echo_n "checking whether $CC is Clang... " >&6; }
16968 if ${ax_cv_PTHREAD_CLANG+:} false; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 ax_cv_PTHREAD_CLANG=no
16972 # Note that Autoconf sets GCC=yes for Clang as well as GCC
16973 if test "x$GCC" = "xyes"; then
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
16977 # if defined(__clang__) && defined(__llvm__)
16978 AX_PTHREAD_CC_IS_CLANG
16979 # endif
16980
16981 _ACEOF
16982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16983 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
16984 ax_cv_PTHREAD_CLANG=yes
16985 fi
16986 rm -f conftest*
16987
16988 fi
16989
16990 fi
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
16992 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
16993 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
16994
16995 ax_pthread_clang_warning=no
16996
16997 # Clang needs special handling, because older versions handle the -pthread
16998 # option in a rather... idiosyncratic way
16999
17000 if test "x$ax_pthread_clang" = "xyes"; then
17001
17002 # Clang takes -pthread; it has never supported any other flag
17003
17004 # (Note 1: This will need to be revisited if a system that Clang
17005 # supports has POSIX threads in a separate library. This tends not
17006 # to be the way of modern systems, but it's conceivable.)
17007
17008 # (Note 2: On some systems, notably Darwin, -pthread is not needed
17009 # to get POSIX threads support; the API is always present and
17010 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
17011 # -pthread does define _REENTRANT, and while the Darwin headers
17012 # ignore this macro, third-party headers might not.)
17013
17014 PTHREAD_CFLAGS="-pthread"
17015 PTHREAD_LIBS=
17016
17017 ax_pthread_ok=yes
17018
17019 # However, older versions of Clang make a point of warning the user
17020 # that, in an invocation where only linking and no compilation is
17021 # taking place, the -pthread option has no effect ("argument unused
17022 # during compilation"). They expect -pthread to be passed in only
17023 # when source code is being compiled.
17024 #
17025 # Problem is, this is at odds with the way Automake and most other
17026 # C build frameworks function, which is that the same flags used in
17027 # compilation (CFLAGS) are also used in linking. Many systems
17028 # supported by AX_PTHREAD require exactly this for POSIX threads
17029 # support, and in fact it is often not straightforward to specify a
17030 # flag that is used only in the compilation phase and not in
17031 # linking. Such a scenario is extremely rare in practice.
17032 #
17033 # Even though use of the -pthread flag in linking would only print
17034 # a warning, this can be a nuisance for well-run software projects
17035 # that build with -Werror. So if the active version of Clang has
17036 # this misfeature, we search for an option to squash it.
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
17039 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
17040 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17043 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
17044 # Create an alternate version of $ac_link that compiles and
17045 # links in two steps (.c -> .o, .o -> exe) instead of one
17046 # (.c -> exe), because the warning occurs only in the second
17047 # step
17048 ax_pthread_save_ac_link="$ac_link"
17049 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
17050 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
17051 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
17052 ax_pthread_save_CFLAGS="$CFLAGS"
17053 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
17054 if test "x$ax_pthread_try" = "xunknown"; then :
17055 break
17056 fi
17057 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
17058 ac_link="$ax_pthread_save_ac_link"
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 int main(void){return 0;}
17062 _ACEOF
17063 if ac_fn_c_try_link "$LINENO"; then :
17064 ac_link="$ax_pthread_2step_ac_link"
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067 int main(void){return 0;}
17068 _ACEOF
17069 if ac_fn_c_try_link "$LINENO"; then :
17070 break
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17074
17075 fi
17076 rm -f core conftest.err conftest.$ac_objext \
17077 conftest$ac_exeext conftest.$ac_ext
17078 done
17079 ac_link="$ax_pthread_save_ac_link"
17080 CFLAGS="$ax_pthread_save_CFLAGS"
17081 if test "x$ax_pthread_try" = "x"; then :
17082 ax_pthread_try=no
17083 fi
17084 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
17085
17086 fi
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
17088 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
17089
17090 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
17091 no | unknown) ;;
17092 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
17093 esac
17094
17095 fi # $ax_pthread_clang = yes
17096
17097 if test "x$ax_pthread_ok" = "xno"; then
17098 for ax_pthread_try_flag in $ax_pthread_flags; do
17099
17100 case $ax_pthread_try_flag in
17101 none)
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17103 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17104 ;;
17105
17106 -mt,pthread)
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
17108 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
17109 PTHREAD_CFLAGS="-mt"
17110 PTHREAD_LIBS="-lpthread"
17111 ;;
17112
17113 -*)
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
17115 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
17116 PTHREAD_CFLAGS="$ax_pthread_try_flag"
17117 ;;
17118
17119 pthread-config)
17120 # Extract the first word of "pthread-config", so it can be a program name with args.
17121 set dummy pthread-config; ac_word=$2
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17123 $as_echo_n "checking for $ac_word... " >&6; }
17124 if ${ac_cv_prog_ax_pthread_config+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 if test -n "$ax_pthread_config"; then
17128 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17129 else
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in $PATH
17132 do
17133 IFS=$as_save_IFS
17134 test -z "$as_dir" && as_dir=.
17135 for ac_exec_ext in '' $ac_executable_extensions; do
17136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17137 ac_cv_prog_ax_pthread_config="yes"
17138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17139 break 2
17140 fi
17141 done
17142 done
17143 IFS=$as_save_IFS
17144
17145 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17146 fi
17147 fi
17148 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17149 if test -n "$ax_pthread_config"; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17151 $as_echo "$ax_pthread_config" >&6; }
17152 else
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154 $as_echo "no" >&6; }
17155 fi
17156
17157
17158 if test "x$ax_pthread_config" = "xno"; then :
17159 continue
17160 fi
17161 PTHREAD_CFLAGS="`pthread-config --cflags`"
17162 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17163 ;;
17164
17165 *)
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
17167 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
17168 PTHREAD_LIBS="-l$ax_pthread_try_flag"
17169 ;;
17170 esac
17171
17172 ax_pthread_save_CFLAGS="$CFLAGS"
17173 ax_pthread_save_LIBS="$LIBS"
17174 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17175 LIBS="$PTHREAD_LIBS $LIBS"
17176
17177 # Check for various functions. We must include pthread.h,
17178 # since some functions may be macros. (On the Sequent, we
17179 # need a special flag -Kthread to make this header compile.)
17180 # We check for pthread_join because it is in -lpthread on IRIX
17181 # while pthread_create is in libc. We check for pthread_attr_init
17182 # due to DEC craziness with -lpthreads. We check for
17183 # pthread_cleanup_push because it is one of the few pthread
17184 # functions on Solaris that doesn't have a non-functional libc stub.
17185 # We try pthread_create on general principles.
17186
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 #include <pthread.h>
17190 # if $ax_pthread_check_cond
17191 # error "$ax_pthread_check_macro must be defined"
17192 # endif
17193 static void routine(void *a) { a = 0; }
17194 static void *start_routine(void *a) { return a; }
17195 int
17196 main ()
17197 {
17198 pthread_t th; pthread_attr_t attr;
17199 pthread_create(&th, 0, start_routine, 0);
17200 pthread_join(th, 0);
17201 pthread_attr_init(&attr);
17202 pthread_cleanup_push(routine, 0);
17203 pthread_cleanup_pop(0) /* ; */
17204 ;
17205 return 0;
17206 }
17207 _ACEOF
17208 if ac_fn_c_try_link "$LINENO"; then :
17209 ax_pthread_ok=yes
17210 fi
17211 rm -f core conftest.err conftest.$ac_objext \
17212 conftest$ac_exeext conftest.$ac_ext
17213
17214 CFLAGS="$ax_pthread_save_CFLAGS"
17215 LIBS="$ax_pthread_save_LIBS"
17216
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17218 $as_echo "$ax_pthread_ok" >&6; }
17219 if test "x$ax_pthread_ok" = "xyes"; then :
17220 break
17221 fi
17222
17223 PTHREAD_LIBS=""
17224 PTHREAD_CFLAGS=""
17225 done
17226 fi
17227
17228 # Various other checks:
17229 if test "x$ax_pthread_ok" = "xyes"; then
17230 ax_pthread_save_CFLAGS="$CFLAGS"
17231 ax_pthread_save_LIBS="$LIBS"
17232 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17233 LIBS="$PTHREAD_LIBS $LIBS"
17234
17235 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17237 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17238 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
17242 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245 #include <pthread.h>
17246 int
17247 main ()
17248 {
17249 int attr = $ax_pthread_attr; return attr /* ; */
17250 ;
17251 return 0;
17252 }
17253 _ACEOF
17254 if ac_fn_c_try_link "$LINENO"; then :
17255 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 done
17260
17261 fi
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
17263 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
17264 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
17265 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
17266 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
17267
17268 cat >>confdefs.h <<_ACEOF
17269 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
17270 _ACEOF
17271
17272 ax_pthread_joinable_attr_defined=yes
17273
17274 fi
17275
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
17277 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
17278 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
17279 $as_echo_n "(cached) " >&6
17280 else
17281 ax_cv_PTHREAD_SPECIAL_FLAGS=no
17282 case $host_os in
17283 solaris*)
17284 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
17285 ;;
17286 esac
17287
17288 fi
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
17290 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
17291 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
17292 test "x$ax_pthread_special_flags_added" != "xyes"; then :
17293 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
17294 ax_pthread_special_flags_added=yes
17295 fi
17296
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17298 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17299 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
17300 $as_echo_n "(cached) " >&6
17301 else
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17304 #include <pthread.h>
17305 int
17306 main ()
17307 {
17308 int i = PTHREAD_PRIO_INHERIT;
17309 ;
17310 return 0;
17311 }
17312 _ACEOF
17313 if ac_fn_c_try_link "$LINENO"; then :
17314 ax_cv_PTHREAD_PRIO_INHERIT=yes
17315 else
17316 ax_cv_PTHREAD_PRIO_INHERIT=no
17317 fi
17318 rm -f core conftest.err conftest.$ac_objext \
17319 conftest$ac_exeext conftest.$ac_ext
17320
17321 fi
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17323 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17324 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
17325 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
17326
17327 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17328
17329 ax_pthread_prio_inherit_defined=yes
17330
17331 fi
17332
17333 CFLAGS="$ax_pthread_save_CFLAGS"
17334 LIBS="$ax_pthread_save_LIBS"
17335
17336 # More AIX lossage: compile with *_r variant
17337 if test "x$GCC" != "xyes"; then
17338 case $host_os in
17339 aix*)
17340 case "x/$CC" in #(
17341 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17342 #handle absolute path differently from PATH based program lookup
17343 case "x$CC" in #(
17344 x/*) :
17345 if as_fn_executable_p ${CC}_r; then :
17346 PTHREAD_CC="${CC}_r"
17347 fi ;; #(
17348 *) :
17349 for ac_prog in ${CC}_r
17350 do
17351 # Extract the first word of "$ac_prog", so it can be a program name with args.
17352 set dummy $ac_prog; ac_word=$2
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17354 $as_echo_n "checking for $ac_word... " >&6; }
17355 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17356 $as_echo_n "(cached) " >&6
17357 else
17358 if test -n "$PTHREAD_CC"; then
17359 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17360 else
17361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17362 for as_dir in $PATH
17363 do
17364 IFS=$as_save_IFS
17365 test -z "$as_dir" && as_dir=.
17366 for ac_exec_ext in '' $ac_executable_extensions; do
17367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17368 ac_cv_prog_PTHREAD_CC="$ac_prog"
17369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17370 break 2
17371 fi
17372 done
17373 done
17374 IFS=$as_save_IFS
17375
17376 fi
17377 fi
17378 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17379 if test -n "$PTHREAD_CC"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17381 $as_echo "$PTHREAD_CC" >&6; }
17382 else
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386
17387
17388 test -n "$PTHREAD_CC" && break
17389 done
17390 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17391 ;;
17392 esac ;; #(
17393 *) :
17394 ;;
17395 esac
17396 ;;
17397 esac
17398 fi
17399 fi
17400
17401 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17402
17403
17404
17405
17406
17407 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17408 if test "x$ax_pthread_ok" = "xyes"; then
17409
17410 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17411
17412 :
17413 else
17414 ax_pthread_ok=no
17415 as_fn_error $? "pthread is required to build ${PACKAGE}" "$LINENO" 5
17416 fi
17417 ac_ext=c
17418 ac_cpp='$CPP $CPPFLAGS'
17419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17422
17423
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_once in -lpthread" >&5
17425 $as_echo_n "checking for pthread_once in -lpthread... " >&6; }
17426 if ${ac_cv_lib_pthread_pthread_once+:} false; then :
17427 $as_echo_n "(cached) " >&6
17428 else
17429 ac_check_lib_save_LIBS=$LIBS
17430 LIBS="-lpthread $LIBS"
17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432 /* end confdefs.h. */
17433
17434 /* Override any GCC internal prototype to avoid an error.
17435 Use char because int might match the return type of a GCC
17436 builtin and then its argument prototype would still apply. */
17437 #ifdef __cplusplus
17438 extern "C"
17439 #endif
17440 char pthread_once ();
17441 int
17442 main ()
17443 {
17444 return pthread_once ();
17445 ;
17446 return 0;
17447 }
17448 _ACEOF
17449 if ac_fn_c_try_link "$LINENO"; then :
17450 ac_cv_lib_pthread_pthread_once=yes
17451 else
17452 ac_cv_lib_pthread_pthread_once=no
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_lib_save_LIBS
17457 fi
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_once" >&5
17459 $as_echo "$ac_cv_lib_pthread_pthread_once" >&6; }
17460 if test "x$ac_cv_lib_pthread_pthread_once" = xyes; then :
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE_LIBPTHREAD 1
17463 _ACEOF
17464
17465 LIBS="-lpthread $LIBS"
17466
17467 else
17468 as_fn_error $? "pthread with pthread_once required to build ${PACKAGE}" "$LINENO" 5
17469 fi
17470
17471 ;;
17472 esac
17473 if test x$win32 = xtrue; then
17474 WIN32_TRUE=
17475 WIN32_FALSE='#'
17476 else
17477 WIN32_TRUE='#'
17478 WIN32_FALSE=
17479 fi
17480
17481
17482
17483 list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden"
17484 flags_supported=""
17485 flags_unsupported=""
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
17487 $as_echo_n "checking for supported compiler flags... " >&6; }
17488 for each in $list
17489 do
17490 save_CFLAGS="$CFLAGS"
17491 CFLAGS="$CFLAGS $each"
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17494
17495 int
17496 main ()
17497 {
17498
17499 ;
17500 return 0;
17501 }
17502 _ACEOF
17503 if ac_fn_c_try_compile "$LINENO"; then :
17504 flag_ok=yes
17505 else
17506 flag_ok=no
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 CFLAGS="$save_CFLAGS"
17510
17511 if test "X$flag_ok" = Xyes ; then
17512 flags_supported="$flags_supported $each"
17513 else
17514 flags_unsupported="$flags_unsupported $each"
17515 fi
17516 done
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
17518 $as_echo "$flags_supported" >&6; }
17519 if test "X$flags_unsupported" != X ; then
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
17521 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
17522 fi
17523 GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
17524
17525
17526
17527 case "$GLOBAL_CFLAGS" in
17528 *-fvisibility=hidden*)
17529
17530 $as_echo "#define HAVE_FVISIBILITY 1" >>confdefs.h
17531
17532 esac
17533
17534 # Check whether --enable-silent-rules was given.
17535 if test "${enable_silent_rules+set}" = set; then :
17536 enableval=$enable_silent_rules;
17537 fi
17538
17539 case $enable_silent_rules in # (((
17540 yes) AM_DEFAULT_VERBOSITY=0;;
17541 no) AM_DEFAULT_VERBOSITY=1;;
17542 *) AM_DEFAULT_VERBOSITY=0;;
17543 esac
17544 am_make=${MAKE-make}
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17546 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17547 if ${am_cv_make_support_nested_variables+:} false; then :
17548 $as_echo_n "(cached) " >&6
17549 else
17550 if $as_echo 'TRUE=$(BAR$(V))
17551 BAR0=false
17552 BAR1=true
17553 V=1
17554 am__doit:
17555 @$(TRUE)
17556 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17557 am_cv_make_support_nested_variables=yes
17558 else
17559 am_cv_make_support_nested_variables=no
17560 fi
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17563 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17564 if test $am_cv_make_support_nested_variables = yes; then
17565 AM_V='$(V)'
17566 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17567 else
17568 AM_V=$AM_DEFAULT_VERBOSITY
17569 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17570 fi
17571 AM_BACKSLASH='\'
17572
17573
17574 ac_config_files="$ac_config_files Makefile src/Makefile src/libideviceactivation-1.0.pc include/Makefile tools/Makefile man/Makefile"
17575
17576 cat >confcache <<\_ACEOF
17577 # This file is a shell script that caches the results of configure
17578 # tests run on this system so they can be shared between configure
17579 # scripts and configure runs, see configure's option --config-cache.
17580 # It is not useful on other systems. If it contains results you don't
17581 # want to keep, you may remove or edit it.
17582 #
17583 # config.status only pays attention to the cache file if you give it
17584 # the --recheck option to rerun configure.
17585 #
17586 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17587 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17588 # following values.
17589
17590 _ACEOF
17591
17592 # The following way of writing the cache mishandles newlines in values,
17593 # but we know of no workaround that is simple, portable, and efficient.
17594 # So, we kill variables containing newlines.
17595 # Ultrix sh set writes to stderr and can't be redirected directly,
17596 # and sets the high bit in the cache file unless we assign to the vars.
17597 (
17598 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17599 eval ac_val=\$$ac_var
17600 case $ac_val in #(
17601 *${as_nl}*)
17602 case $ac_var in #(
17603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17604 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17605 esac
17606 case $ac_var in #(
17607 _ | IFS | as_nl) ;; #(
17608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17609 *) { eval $ac_var=; unset $ac_var;} ;;
17610 esac ;;
17611 esac
17612 done
17613
17614 (set) 2>&1 |
17615 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17616 *${as_nl}ac_space=\ *)
17617 # `set' does not quote correctly, so add quotes: double-quote
17618 # substitution turns \\\\ into \\, and sed turns \\ into \.
17619 sed -n \
17620 "s/'/'\\\\''/g;
17621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17622 ;; #(
17623 *)
17624 # `set' quotes correctly as required by POSIX, so do not add quotes.
17625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17626 ;;
17627 esac |
17628 sort
17629 ) |
17630 sed '
17631 /^ac_cv_env_/b end
17632 t clear
17633 :clear
17634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17635 t end
17636 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17637 :end' >>confcache
17638 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17639 if test -w "$cache_file"; then
17640 if test "x$cache_file" != "x/dev/null"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17642 $as_echo "$as_me: updating cache $cache_file" >&6;}
17643 if test ! -f "$cache_file" || test -h "$cache_file"; then
17644 cat confcache >"$cache_file"
17645 else
17646 case $cache_file in #(
17647 */* | ?:*)
17648 mv -f confcache "$cache_file"$$ &&
17649 mv -f "$cache_file"$$ "$cache_file" ;; #(
17650 *)
17651 mv -f confcache "$cache_file" ;;
17652 esac
17653 fi
17654 fi
17655 else
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17657 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17658 fi
17659 fi
17660 rm -f confcache
17661
17662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17663 # Let make expand exec_prefix.
17664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17665
17666 DEFS=-DHAVE_CONFIG_H
17667
17668 ac_libobjs=
17669 ac_ltlibobjs=
17670 U=
17671 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17672 # 1. Remove the extension, and $U if already installed.
17673 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17674 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17675 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17676 # will be set to the directory where LIBOBJS objects are built.
17677 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17678 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17679 done
17680 LIBOBJS=$ac_libobjs
17681
17682 LTLIBOBJS=$ac_ltlibobjs
17683
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17686 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17687 if test -n "$am_sleep_pid"; then
17688 # Hide warnings about reused PIDs.
17689 wait $am_sleep_pid 2>/dev/null
17690 fi
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17692 $as_echo "done" >&6; }
17693 if test -n "$EXEEXT"; then
17694 am__EXEEXT_TRUE=
17695 am__EXEEXT_FALSE='#'
17696 else
17697 am__EXEEXT_TRUE='#'
17698 am__EXEEXT_FALSE=
17699 fi
17700
17701 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17702 as_fn_error $? "conditional \"AMDEP\" was never defined.
17703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17704 fi
17705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17706 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17708 fi
17709 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17710 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17712 fi
17713 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17714 as_fn_error $? "conditional \"WIN32\" was never defined.
17715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17716 fi
17717
17718 : "${CONFIG_STATUS=./config.status}"
17719 ac_write_fail=0
17720 ac_clean_files_save=$ac_clean_files
17721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17724 as_write_fail=0
17725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17726 #! $SHELL
17727 # Generated by $as_me.
17728 # Run this file to recreate the current configuration.
17729 # Compiler output produced by configure, useful for debugging
17730 # configure, is in config.log if it exists.
17731
17732 debug=false
17733 ac_cs_recheck=false
17734 ac_cs_silent=false
17735
17736 SHELL=\${CONFIG_SHELL-$SHELL}
17737 export SHELL
17738 _ASEOF
17739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17740 ## -------------------- ##
17741 ## M4sh Initialization. ##
17742 ## -------------------- ##
17743
17744 # Be more Bourne compatible
17745 DUALCASE=1; export DUALCASE # for MKS sh
17746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17747 emulate sh
17748 NULLCMD=:
17749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17750 # is contrary to our usage. Disable this feature.
17751 alias -g '${1+"$@"}'='"$@"'
17752 setopt NO_GLOB_SUBST
17753 else
17754 case `(set -o) 2>/dev/null` in #(
17755 *posix*) :
17756 set -o posix ;; #(
17757 *) :
17758 ;;
17759 esac
17760 fi
17761
17762
17763 as_nl='
17764 '
17765 export as_nl
17766 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17767 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17770 # Prefer a ksh shell builtin over an external printf program on Solaris,
17771 # but without wasting forks for bash or zsh.
17772 if test -z "$BASH_VERSION$ZSH_VERSION" \
17773 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17774 as_echo='print -r --'
17775 as_echo_n='print -rn --'
17776 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17777 as_echo='printf %s\n'
17778 as_echo_n='printf %s'
17779 else
17780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17781 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17782 as_echo_n='/usr/ucb/echo -n'
17783 else
17784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17785 as_echo_n_body='eval
17786 arg=$1;
17787 case $arg in #(
17788 *"$as_nl"*)
17789 expr "X$arg" : "X\\(.*\\)$as_nl";
17790 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17791 esac;
17792 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17793 '
17794 export as_echo_n_body
17795 as_echo_n='sh -c $as_echo_n_body as_echo'
17796 fi
17797 export as_echo_body
17798 as_echo='sh -c $as_echo_body as_echo'
17799 fi
17800
17801 # The user is always right.
17802 if test "${PATH_SEPARATOR+set}" != set; then
17803 PATH_SEPARATOR=:
17804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17805 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17806 PATH_SEPARATOR=';'
17807 }
17808 fi
17809
17810
17811 # IFS
17812 # We need space, tab and new line, in precisely that order. Quoting is
17813 # there to prevent editors from complaining about space-tab.
17814 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17815 # splitting by setting IFS to empty value.)
17816 IFS=" "" $as_nl"
17817
17818 # Find who we are. Look in the path if we contain no directory separator.
17819 as_myself=
17820 case $0 in #((
17821 *[\\/]* ) as_myself=$0 ;;
17822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17823 for as_dir in $PATH
17824 do
17825 IFS=$as_save_IFS
17826 test -z "$as_dir" && as_dir=.
17827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17828 done
17829 IFS=$as_save_IFS
17830
17831 ;;
17832 esac
17833 # We did not find ourselves, most probably we were run as `sh COMMAND'
17834 # in which case we are not to be found in the path.
17835 if test "x$as_myself" = x; then
17836 as_myself=$0
17837 fi
17838 if test ! -f "$as_myself"; then
17839 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17840 exit 1
17841 fi
17842
17843 # Unset variables that we do not need and which cause bugs (e.g. in
17844 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17845 # suppresses any "Segmentation fault" message there. '((' could
17846 # trigger a bug in pdksh 5.2.14.
17847 for as_var in BASH_ENV ENV MAIL MAILPATH
17848 do eval test x\${$as_var+set} = xset \
17849 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17850 done
17851 PS1='$ '
17852 PS2='> '
17853 PS4='+ '
17854
17855 # NLS nuisances.
17856 LC_ALL=C
17857 export LC_ALL
17858 LANGUAGE=C
17859 export LANGUAGE
17860
17861 # CDPATH.
17862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17863
17864
17865 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17866 # ----------------------------------------
17867 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17868 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17869 # script with STATUS, using 1 if that was 0.
17870 as_fn_error ()
17871 {
17872 as_status=$1; test $as_status -eq 0 && as_status=1
17873 if test "$4"; then
17874 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17875 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17876 fi
17877 $as_echo "$as_me: error: $2" >&2
17878 as_fn_exit $as_status
17879 } # as_fn_error
17880
17881
17882 # as_fn_set_status STATUS
17883 # -----------------------
17884 # Set $? to STATUS, without forking.
17885 as_fn_set_status ()
17886 {
17887 return $1
17888 } # as_fn_set_status
17889
17890 # as_fn_exit STATUS
17891 # -----------------
17892 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17893 as_fn_exit ()
17894 {
17895 set +e
17896 as_fn_set_status $1
17897 exit $1
17898 } # as_fn_exit
17899
17900 # as_fn_unset VAR
17901 # ---------------
17902 # Portably unset VAR.
17903 as_fn_unset ()
17904 {
17905 { eval $1=; unset $1;}
17906 }
17907 as_unset=as_fn_unset
17908 # as_fn_append VAR VALUE
17909 # ----------------------
17910 # Append the text in VALUE to the end of the definition contained in VAR. Take
17911 # advantage of any shell optimizations that allow amortized linear growth over
17912 # repeated appends, instead of the typical quadratic growth present in naive
17913 # implementations.
17914 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17915 eval 'as_fn_append ()
17916 {
17917 eval $1+=\$2
17918 }'
17919 else
17920 as_fn_append ()
17921 {
17922 eval $1=\$$1\$2
17923 }
17924 fi # as_fn_append
17925
17926 # as_fn_arith ARG...
17927 # ------------------
17928 # Perform arithmetic evaluation on the ARGs, and store the result in the
17929 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17930 # must be portable across $(()) and expr.
17931 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17932 eval 'as_fn_arith ()
17933 {
17934 as_val=$(( $* ))
17935 }'
17936 else
17937 as_fn_arith ()
17938 {
17939 as_val=`expr "$@" || test $? -eq 1`
17940 }
17941 fi # as_fn_arith
17942
17943
17944 if expr a : '\(a\)' >/dev/null 2>&1 &&
17945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17946 as_expr=expr
17947 else
17948 as_expr=false
17949 fi
17950
17951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17952 as_basename=basename
17953 else
17954 as_basename=false
17955 fi
17956
17957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17958 as_dirname=dirname
17959 else
17960 as_dirname=false
17961 fi
17962
17963 as_me=`$as_basename -- "$0" ||
17964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17965 X"$0" : 'X\(//\)$' \| \
17966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17967 $as_echo X/"$0" |
17968 sed '/^.*\/\([^/][^/]*\)\/*$/{
17969 s//\1/
17970 q
17971 }
17972 /^X\/\(\/\/\)$/{
17973 s//\1/
17974 q
17975 }
17976 /^X\/\(\/\).*/{
17977 s//\1/
17978 q
17979 }
17980 s/.*/./; q'`
17981
17982 # Avoid depending upon Character Ranges.
17983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17986 as_cr_digits='0123456789'
17987 as_cr_alnum=$as_cr_Letters$as_cr_digits
17988
17989 ECHO_C= ECHO_N= ECHO_T=
17990 case `echo -n x` in #(((((
17991 -n*)
17992 case `echo 'xy\c'` in
17993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17994 xy) ECHO_C='\c';;
17995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17996 ECHO_T=' ';;
17997 esac;;
17998 *)
17999 ECHO_N='-n';;
18000 esac
18001
18002 rm -f conf$$ conf$$.exe conf$$.file
18003 if test -d conf$$.dir; then
18004 rm -f conf$$.dir/conf$$.file
18005 else
18006 rm -f conf$$.dir
18007 mkdir conf$$.dir 2>/dev/null
18008 fi
18009 if (echo >conf$$.file) 2>/dev/null; then
18010 if ln -s conf$$.file conf$$ 2>/dev/null; then
18011 as_ln_s='ln -s'
18012 # ... but there are two gotchas:
18013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18015 # In both cases, we have to default to `cp -pR'.
18016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18017 as_ln_s='cp -pR'
18018 elif ln conf$$.file conf$$ 2>/dev/null; then
18019 as_ln_s=ln
18020 else
18021 as_ln_s='cp -pR'
18022 fi
18023 else
18024 as_ln_s='cp -pR'
18025 fi
18026 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18027 rmdir conf$$.dir 2>/dev/null
18028
18029
18030 # as_fn_mkdir_p
18031 # -------------
18032 # Create "$as_dir" as a directory, including parents if necessary.
18033 as_fn_mkdir_p ()
18034 {
18035
18036 case $as_dir in #(
18037 -*) as_dir=./$as_dir;;
18038 esac
18039 test -d "$as_dir" || eval $as_mkdir_p || {
18040 as_dirs=
18041 while :; do
18042 case $as_dir in #(
18043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18044 *) as_qdir=$as_dir;;
18045 esac
18046 as_dirs="'$as_qdir' $as_dirs"
18047 as_dir=`$as_dirname -- "$as_dir" ||
18048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18049 X"$as_dir" : 'X\(//\)[^/]' \| \
18050 X"$as_dir" : 'X\(//\)$' \| \
18051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18052 $as_echo X"$as_dir" |
18053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18054 s//\1/
18055 q
18056 }
18057 /^X\(\/\/\)[^/].*/{
18058 s//\1/
18059 q
18060 }
18061 /^X\(\/\/\)$/{
18062 s//\1/
18063 q
18064 }
18065 /^X\(\/\).*/{
18066 s//\1/
18067 q
18068 }
18069 s/.*/./; q'`
18070 test -d "$as_dir" && break
18071 done
18072 test -z "$as_dirs" || eval "mkdir $as_dirs"
18073 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18074
18075
18076 } # as_fn_mkdir_p
18077 if mkdir -p . 2>/dev/null; then
18078 as_mkdir_p='mkdir -p "$as_dir"'
18079 else
18080 test -d ./-p && rmdir ./-p
18081 as_mkdir_p=false
18082 fi
18083
18084
18085 # as_fn_executable_p FILE
18086 # -----------------------
18087 # Test if FILE is an executable regular file.
18088 as_fn_executable_p ()
18089 {
18090 test -f "$1" && test -x "$1"
18091 } # as_fn_executable_p
18092 as_test_x='test -x'
18093 as_executable_p=as_fn_executable_p
18094
18095 # Sed expression to map a string onto a valid CPP name.
18096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18097
18098 # Sed expression to map a string onto a valid variable name.
18099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18100
18101
18102 exec 6>&1
18103 ## ----------------------------------- ##
18104 ## Main body of $CONFIG_STATUS script. ##
18105 ## ----------------------------------- ##
18106 _ASEOF
18107 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18108
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110 # Save the log message, to keep $0 and so on meaningful, and to
18111 # report actual input values of CONFIG_FILES etc. instead of their
18112 # values after options handling.
18113 ac_log="
18114 This file was extended by libideviceactivation $as_me 1.1.1, which was
18115 generated by GNU Autoconf 2.69. Invocation command line was
18116
18117 CONFIG_FILES = $CONFIG_FILES
18118 CONFIG_HEADERS = $CONFIG_HEADERS
18119 CONFIG_LINKS = $CONFIG_LINKS
18120 CONFIG_COMMANDS = $CONFIG_COMMANDS
18121 $ $0 $@
18122
18123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18124 "
18125
18126 _ACEOF
18127
18128 case $ac_config_files in *"
18129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18130 esac
18131
18132 case $ac_config_headers in *"
18133 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18134 esac
18135
18136
18137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18138 # Files that config.status was made for.
18139 config_files="$ac_config_files"
18140 config_headers="$ac_config_headers"
18141 config_commands="$ac_config_commands"
18142
18143 _ACEOF
18144
18145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18146 ac_cs_usage="\
18147 \`$as_me' instantiates files and other configuration actions
18148 from templates according to the current configuration. Unless the files
18149 and actions are specified as TAGs, all are instantiated by default.
18150
18151 Usage: $0 [OPTION]... [TAG]...
18152
18153 -h, --help print this help, then exit
18154 -V, --version print version number and configuration settings, then exit
18155 --config print configuration, then exit
18156 -q, --quiet, --silent
18157 do not print progress messages
18158 -d, --debug don't remove temporary files
18159 --recheck update $as_me by reconfiguring in the same conditions
18160 --file=FILE[:TEMPLATE]
18161 instantiate the configuration file FILE
18162 --header=FILE[:TEMPLATE]
18163 instantiate the configuration header FILE
18164
18165 Configuration files:
18166 $config_files
18167
18168 Configuration headers:
18169 $config_headers
18170
18171 Configuration commands:
18172 $config_commands
18173
18174 Report bugs to <https://github.com/libimobiledevice/libideviceactivation/issues>.
18175 libideviceactivation home page: <https://libimobiledevice.org>."
18176
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18179 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18180 ac_cs_version="\\
18181 libideviceactivation config.status 1.1.1
18182 configured by $0, generated by GNU Autoconf 2.69,
18183 with options \\"\$ac_cs_config\\"
18184
18185 Copyright (C) 2012 Free Software Foundation, Inc.
18186 This config.status script is free software; the Free Software Foundation
18187 gives unlimited permission to copy, distribute and modify it."
18188
18189 ac_pwd='$ac_pwd'
18190 srcdir='$srcdir'
18191 INSTALL='$INSTALL'
18192 MKDIR_P='$MKDIR_P'
18193 AWK='$AWK'
18194 test -n "\$AWK" || AWK=awk
18195 _ACEOF
18196
18197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18198 # The default lists apply if the user does not specify any file.
18199 ac_need_defaults=:
18200 while test $# != 0
18201 do
18202 case $1 in
18203 --*=?*)
18204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18206 ac_shift=:
18207 ;;
18208 --*=)
18209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18210 ac_optarg=
18211 ac_shift=:
18212 ;;
18213 *)
18214 ac_option=$1
18215 ac_optarg=$2
18216 ac_shift=shift
18217 ;;
18218 esac
18219
18220 case $ac_option in
18221 # Handling of the options.
18222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18223 ac_cs_recheck=: ;;
18224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18225 $as_echo "$ac_cs_version"; exit ;;
18226 --config | --confi | --conf | --con | --co | --c )
18227 $as_echo "$ac_cs_config"; exit ;;
18228 --debug | --debu | --deb | --de | --d | -d )
18229 debug=: ;;
18230 --file | --fil | --fi | --f )
18231 $ac_shift
18232 case $ac_optarg in
18233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18234 '') as_fn_error $? "missing file argument" ;;
18235 esac
18236 as_fn_append CONFIG_FILES " '$ac_optarg'"
18237 ac_need_defaults=false;;
18238 --header | --heade | --head | --hea )
18239 $ac_shift
18240 case $ac_optarg in
18241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18242 esac
18243 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18244 ac_need_defaults=false;;
18245 --he | --h)
18246 # Conflict between --help and --header
18247 as_fn_error $? "ambiguous option: \`$1'
18248 Try \`$0 --help' for more information.";;
18249 --help | --hel | -h )
18250 $as_echo "$ac_cs_usage"; exit ;;
18251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18253 ac_cs_silent=: ;;
18254
18255 # This is an error.
18256 -*) as_fn_error $? "unrecognized option: \`$1'
18257 Try \`$0 --help' for more information." ;;
18258
18259 *) as_fn_append ac_config_targets " $1"
18260 ac_need_defaults=false ;;
18261
18262 esac
18263 shift
18264 done
18265
18266 ac_configure_extra_args=
18267
18268 if $ac_cs_silent; then
18269 exec 6>/dev/null
18270 ac_configure_extra_args="$ac_configure_extra_args --silent"
18271 fi
18272
18273 _ACEOF
18274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18275 if \$ac_cs_recheck; then
18276 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18277 shift
18278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18279 CONFIG_SHELL='$SHELL'
18280 export CONFIG_SHELL
18281 exec "\$@"
18282 fi
18283
18284 _ACEOF
18285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18286 exec 5>>config.log
18287 {
18288 echo
18289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18290 ## Running $as_me. ##
18291 _ASBOX
18292 $as_echo "$ac_log"
18293 } >&5
18294
18295 _ACEOF
18296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18297 #
18298 # INIT-COMMANDS
18299 #
18300 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18301
18302
18303 # The HP-UX ksh and POSIX shell print the target directory to stdout
18304 # if CDPATH is set.
18305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18306
18307 sed_quote_subst='$sed_quote_subst'
18308 double_quote_subst='$double_quote_subst'
18309 delay_variable_subst='$delay_variable_subst'
18310 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18311 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18312 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18313 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18314 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18315 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18316 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18319 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18320 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18321 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18322 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18323 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18324 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18325 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18326 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18327 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18328 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18329 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18330 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18331 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18332 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18333 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18334 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18335 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18336 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18337 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18338 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18339 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18340 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18341 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18342 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18343 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18344 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18345 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18346 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18347 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18348 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18349 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18350 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18351 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18352 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18353 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18354 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18355 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18356 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18357 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18358 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18359 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18360 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18361 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18362 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18363 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18364 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18365 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18366 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18367 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18368 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"`'
18369 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18370 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18371 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18372 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18373 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18374 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18375 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18376 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18377 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18378 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18379 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18380 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18381 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18382 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18383 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18384 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18385 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18386 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18387 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18388 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18389 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18390 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18391 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18392 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18393 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18394 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18395 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18396 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18397 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18398 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18399 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18400 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18401 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18402 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18403 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18404 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18405 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18406 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18407 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18408 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18409 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18410 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18411 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18412 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18413 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18414 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18415 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18416 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18417 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18418 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18419 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18420 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18421 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18422 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18423 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18424 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18425 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18426 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18427 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18428 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18429 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18430 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18431 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18432 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18433 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18434 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18435 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18436 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18437 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18438 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18439 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18440 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18441 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18442 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18443 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18444 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18445 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18446 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18447 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18448 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18449 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18450 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18451 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18452 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18453 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18454 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18455 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18456 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18457 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18458 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18459 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18460 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18461 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18462 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18463 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18464 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18465 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18466 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18467 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18468 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18469 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18470 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18471 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18472 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18473 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18474 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18475 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18476 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18477 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18478 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18479 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18480 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18481 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18482 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18483 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18484 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18485 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18486 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18487 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18488 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18489 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18490 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18491 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18492 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18493 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18494 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18495 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18496 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18497 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18498 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18499
18500 LTCC='$LTCC'
18501 LTCFLAGS='$LTCFLAGS'
18502 compiler='$compiler_DEFAULT'
18503
18504 # A function that is used when there is no print builtin or printf.
18505 func_fallback_echo ()
18506 {
18507 eval 'cat <<_LTECHO_EOF
18508 \$1
18509 _LTECHO_EOF'
18510 }
18511
18512 # Quote evaled strings.
18513 for var in SHELL \
18514 ECHO \
18515 PATH_SEPARATOR \
18516 SED \
18517 GREP \
18518 EGREP \
18519 FGREP \
18520 LD \
18521 NM \
18522 LN_S \
18523 lt_SP2NL \
18524 lt_NL2SP \
18525 reload_flag \
18526 OBJDUMP \
18527 deplibs_check_method \
18528 file_magic_cmd \
18529 file_magic_glob \
18530 want_nocaseglob \
18531 DLLTOOL \
18532 sharedlib_from_linklib_cmd \
18533 AR \
18534 AR_FLAGS \
18535 archiver_list_spec \
18536 STRIP \
18537 RANLIB \
18538 CC \
18539 CFLAGS \
18540 compiler \
18541 lt_cv_sys_global_symbol_pipe \
18542 lt_cv_sys_global_symbol_to_cdecl \
18543 lt_cv_sys_global_symbol_to_import \
18544 lt_cv_sys_global_symbol_to_c_name_address \
18545 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18546 lt_cv_nm_interface \
18547 nm_file_list_spec \
18548 lt_cv_truncate_bin \
18549 lt_prog_compiler_no_builtin_flag \
18550 lt_prog_compiler_pic \
18551 lt_prog_compiler_wl \
18552 lt_prog_compiler_static \
18553 lt_cv_prog_compiler_c_o \
18554 need_locks \
18555 MANIFEST_TOOL \
18556 DSYMUTIL \
18557 NMEDIT \
18558 LIPO \
18559 OTOOL \
18560 OTOOL64 \
18561 shrext_cmds \
18562 export_dynamic_flag_spec \
18563 whole_archive_flag_spec \
18564 compiler_needs_object \
18565 with_gnu_ld \
18566 allow_undefined_flag \
18567 no_undefined_flag \
18568 hardcode_libdir_flag_spec \
18569 hardcode_libdir_separator \
18570 exclude_expsyms \
18571 include_expsyms \
18572 file_list_spec \
18573 variables_saved_for_relink \
18574 libname_spec \
18575 library_names_spec \
18576 soname_spec \
18577 install_override_mode \
18578 finish_eval \
18579 old_striplib \
18580 striplib \
18581 compiler_lib_search_dirs \
18582 predep_objects \
18583 postdep_objects \
18584 predeps \
18585 postdeps \
18586 compiler_lib_search_path \
18587 LD_CXX \
18588 reload_flag_CXX \
18589 compiler_CXX \
18590 lt_prog_compiler_no_builtin_flag_CXX \
18591 lt_prog_compiler_pic_CXX \
18592 lt_prog_compiler_wl_CXX \
18593 lt_prog_compiler_static_CXX \
18594 lt_cv_prog_compiler_c_o_CXX \
18595 export_dynamic_flag_spec_CXX \
18596 whole_archive_flag_spec_CXX \
18597 compiler_needs_object_CXX \
18598 with_gnu_ld_CXX \
18599 allow_undefined_flag_CXX \
18600 no_undefined_flag_CXX \
18601 hardcode_libdir_flag_spec_CXX \
18602 hardcode_libdir_separator_CXX \
18603 exclude_expsyms_CXX \
18604 include_expsyms_CXX \
18605 file_list_spec_CXX \
18606 compiler_lib_search_dirs_CXX \
18607 predep_objects_CXX \
18608 postdep_objects_CXX \
18609 predeps_CXX \
18610 postdeps_CXX \
18611 compiler_lib_search_path_CXX; do
18612 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18613 *[\\\\\\\`\\"\\\$]*)
18614 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18615 ;;
18616 *)
18617 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18618 ;;
18619 esac
18620 done
18621
18622 # Double-quote double-evaled strings.
18623 for var in reload_cmds \
18624 old_postinstall_cmds \
18625 old_postuninstall_cmds \
18626 old_archive_cmds \
18627 extract_expsyms_cmds \
18628 old_archive_from_new_cmds \
18629 old_archive_from_expsyms_cmds \
18630 archive_cmds \
18631 archive_expsym_cmds \
18632 module_cmds \
18633 module_expsym_cmds \
18634 export_symbols_cmds \
18635 prelink_cmds \
18636 postlink_cmds \
18637 postinstall_cmds \
18638 postuninstall_cmds \
18639 finish_cmds \
18640 sys_lib_search_path_spec \
18641 configure_time_dlsearch_path \
18642 configure_time_lt_sys_library_path \
18643 reload_cmds_CXX \
18644 old_archive_cmds_CXX \
18645 old_archive_from_new_cmds_CXX \
18646 old_archive_from_expsyms_cmds_CXX \
18647 archive_cmds_CXX \
18648 archive_expsym_cmds_CXX \
18649 module_cmds_CXX \
18650 module_expsym_cmds_CXX \
18651 export_symbols_cmds_CXX \
18652 prelink_cmds_CXX \
18653 postlink_cmds_CXX; do
18654 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18655 *[\\\\\\\`\\"\\\$]*)
18656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18657 ;;
18658 *)
18659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18660 ;;
18661 esac
18662 done
18663
18664 ac_aux_dir='$ac_aux_dir'
18665
18666 # See if we are running on zsh, and set the options that allow our
18667 # commands through without removal of \ escapes INIT.
18668 if test -n "\${ZSH_VERSION+set}"; then
18669 setopt NO_GLOB_SUBST
18670 fi
18671
18672
18673 PACKAGE='$PACKAGE'
18674 VERSION='$VERSION'
18675 RM='$RM'
18676 ofile='$ofile'
18677
18678
18679
18680
18681
18682
18683 _ACEOF
18684
18685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18686
18687 # Handling of arguments.
18688 for ac_config_target in $ac_config_targets
18689 do
18690 case $ac_config_target in
18691 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18692 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18693 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18694 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18695 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18696 "src/libideviceactivation-1.0.pc") CONFIG_FILES="$CONFIG_FILES src/libideviceactivation-1.0.pc" ;;
18697 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18698 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18699 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18700
18701 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18702 esac
18703 done
18704
18705
18706 # If the user did not use the arguments to specify the items to instantiate,
18707 # then the envvar interface is used. Set only those that are not.
18708 # We use the long form for the default assignment because of an extremely
18709 # bizarre bug on SunOS 4.1.3.
18710 if $ac_need_defaults; then
18711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18714 fi
18715
18716 # Have a temporary directory for convenience. Make it in the build tree
18717 # simply because there is no reason against having it here, and in addition,
18718 # creating and moving files from /tmp can sometimes cause problems.
18719 # Hook for its removal unless debugging.
18720 # Note that there is a small window in which the directory will not be cleaned:
18721 # after its creation but before its name has been assigned to `$tmp'.
18722 $debug ||
18723 {
18724 tmp= ac_tmp=
18725 trap 'exit_status=$?
18726 : "${ac_tmp:=$tmp}"
18727 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18728 ' 0
18729 trap 'as_fn_exit 1' 1 2 13 15
18730 }
18731 # Create a (secure) tmp directory for tmp files.
18732
18733 {
18734 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18735 test -d "$tmp"
18736 } ||
18737 {
18738 tmp=./conf$$-$RANDOM
18739 (umask 077 && mkdir "$tmp")
18740 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18741 ac_tmp=$tmp
18742
18743 # Set up the scripts for CONFIG_FILES section.
18744 # No need to generate them if there are no CONFIG_FILES.
18745 # This happens for instance with `./config.status config.h'.
18746 if test -n "$CONFIG_FILES"; then
18747
18748
18749 ac_cr=`echo X | tr X '\015'`
18750 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18751 # But we know of no other shell where ac_cr would be empty at this
18752 # point, so we can use a bashism as a fallback.
18753 if test "x$ac_cr" = x; then
18754 eval ac_cr=\$\'\\r\'
18755 fi
18756 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18757 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18758 ac_cs_awk_cr='\\r'
18759 else
18760 ac_cs_awk_cr=$ac_cr
18761 fi
18762
18763 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18764 _ACEOF
18765
18766
18767 {
18768 echo "cat >conf$$subs.awk <<_ACEOF" &&
18769 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18770 echo "_ACEOF"
18771 } >conf$$subs.sh ||
18772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18773 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18774 ac_delim='%!_!# '
18775 for ac_last_try in false false false false false :; do
18776 . ./conf$$subs.sh ||
18777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18778
18779 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18780 if test $ac_delim_n = $ac_delim_num; then
18781 break
18782 elif $ac_last_try; then
18783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18784 else
18785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18786 fi
18787 done
18788 rm -f conf$$subs.sh
18789
18790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18791 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18792 _ACEOF
18793 sed -n '
18794 h
18795 s/^/S["/; s/!.*/"]=/
18796 p
18797 g
18798 s/^[^!]*!//
18799 :repl
18800 t repl
18801 s/'"$ac_delim"'$//
18802 t delim
18803 :nl
18804 h
18805 s/\(.\{148\}\)..*/\1/
18806 t more1
18807 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18808 p
18809 n
18810 b repl
18811 :more1
18812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18813 p
18814 g
18815 s/.\{148\}//
18816 t nl
18817 :delim
18818 h
18819 s/\(.\{148\}\)..*/\1/
18820 t more2
18821 s/["\\]/\\&/g; s/^/"/; s/$/"/
18822 p
18823 b
18824 :more2
18825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18826 p
18827 g
18828 s/.\{148\}//
18829 t delim
18830 ' <conf$$subs.awk | sed '
18831 /^[^""]/{
18832 N
18833 s/\n//
18834 }
18835 ' >>$CONFIG_STATUS || ac_write_fail=1
18836 rm -f conf$$subs.awk
18837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18838 _ACAWK
18839 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18840 for (key in S) S_is_set[key] = 1
18841 FS = ""
18842
18843 }
18844 {
18845 line = $ 0
18846 nfields = split(line, field, "@")
18847 substed = 0
18848 len = length(field[1])
18849 for (i = 2; i < nfields; i++) {
18850 key = field[i]
18851 keylen = length(key)
18852 if (S_is_set[key]) {
18853 value = S[key]
18854 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18855 len += length(value) + length(field[++i])
18856 substed = 1
18857 } else
18858 len += 1 + keylen
18859 }
18860
18861 print line
18862 }
18863
18864 _ACAWK
18865 _ACEOF
18866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18867 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18868 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18869 else
18870 cat
18871 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18872 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18873 _ACEOF
18874
18875 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18876 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18877 # trailing colons and then remove the whole line if VPATH becomes empty
18878 # (actually we leave an empty line to preserve line numbers).
18879 if test "x$srcdir" = x.; then
18880 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18881 h
18882 s///
18883 s/^/:/
18884 s/[ ]*$/:/
18885 s/:\$(srcdir):/:/g
18886 s/:\${srcdir}:/:/g
18887 s/:@srcdir@:/:/g
18888 s/^:*//
18889 s/:*$//
18890 x
18891 s/\(=[ ]*\).*/\1/
18892 G
18893 s/\n//
18894 s/^[^=]*=[ ]*$//
18895 }'
18896 fi
18897
18898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18899 fi # test -n "$CONFIG_FILES"
18900
18901 # Set up the scripts for CONFIG_HEADERS section.
18902 # No need to generate them if there are no CONFIG_HEADERS.
18903 # This happens for instance with `./config.status Makefile'.
18904 if test -n "$CONFIG_HEADERS"; then
18905 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18906 BEGIN {
18907 _ACEOF
18908
18909 # Transform confdefs.h into an awk script `defines.awk', embedded as
18910 # here-document in config.status, that substitutes the proper values into
18911 # config.h.in to produce config.h.
18912
18913 # Create a delimiter string that does not exist in confdefs.h, to ease
18914 # handling of long lines.
18915 ac_delim='%!_!# '
18916 for ac_last_try in false false :; do
18917 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18918 if test -z "$ac_tt"; then
18919 break
18920 elif $ac_last_try; then
18921 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18922 else
18923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18924 fi
18925 done
18926
18927 # For the awk script, D is an array of macro values keyed by name,
18928 # likewise P contains macro parameters if any. Preserve backslash
18929 # newline sequences.
18930
18931 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18932 sed -n '
18933 s/.\{148\}/&'"$ac_delim"'/g
18934 t rset
18935 :rset
18936 s/^[ ]*#[ ]*define[ ][ ]*/ /
18937 t def
18938 d
18939 :def
18940 s/\\$//
18941 t bsnl
18942 s/["\\]/\\&/g
18943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18944 D["\1"]=" \3"/p
18945 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18946 d
18947 :bsnl
18948 s/["\\]/\\&/g
18949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18950 D["\1"]=" \3\\\\\\n"\\/p
18951 t cont
18952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18953 t cont
18954 d
18955 :cont
18956 n
18957 s/.\{148\}/&'"$ac_delim"'/g
18958 t clear
18959 :clear
18960 s/\\$//
18961 t bsnlc
18962 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18963 d
18964 :bsnlc
18965 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18966 b cont
18967 ' <confdefs.h | sed '
18968 s/'"$ac_delim"'/"\\\
18969 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18970
18971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18972 for (key in D) D_is_set[key] = 1
18973 FS = ""
18974 }
18975 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18976 line = \$ 0
18977 split(line, arg, " ")
18978 if (arg[1] == "#") {
18979 defundef = arg[2]
18980 mac1 = arg[3]
18981 } else {
18982 defundef = substr(arg[1], 2)
18983 mac1 = arg[2]
18984 }
18985 split(mac1, mac2, "(") #)
18986 macro = mac2[1]
18987 prefix = substr(line, 1, index(line, defundef) - 1)
18988 if (D_is_set[macro]) {
18989 # Preserve the white space surrounding the "#".
18990 print prefix "define", macro P[macro] D[macro]
18991 next
18992 } else {
18993 # Replace #undef with comments. This is necessary, for example,
18994 # in the case of _POSIX_SOURCE, which is predefined and required
18995 # on some systems where configure will not decide to define it.
18996 if (defundef == "undef") {
18997 print "/*", prefix defundef, macro, "*/"
18998 next
18999 }
19000 }
19001 }
19002 { print }
19003 _ACAWK
19004 _ACEOF
19005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19006 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19007 fi # test -n "$CONFIG_HEADERS"
19008
19009
19010 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19011 shift
19012 for ac_tag
19013 do
19014 case $ac_tag in
19015 :[FHLC]) ac_mode=$ac_tag; continue;;
19016 esac
19017 case $ac_mode$ac_tag in
19018 :[FHL]*:*);;
19019 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19020 :[FH]-) ac_tag=-:-;;
19021 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19022 esac
19023 ac_save_IFS=$IFS
19024 IFS=:
19025 set x $ac_tag
19026 IFS=$ac_save_IFS
19027 shift
19028 ac_file=$1
19029 shift
19030
19031 case $ac_mode in
19032 :L) ac_source=$1;;
19033 :[FH])
19034 ac_file_inputs=
19035 for ac_f
19036 do
19037 case $ac_f in
19038 -) ac_f="$ac_tmp/stdin";;
19039 *) # Look for the file first in the build tree, then in the source tree
19040 # (if the path is not absolute). The absolute path cannot be DOS-style,
19041 # because $ac_f cannot contain `:'.
19042 test -f "$ac_f" ||
19043 case $ac_f in
19044 [\\/$]*) false;;
19045 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19046 esac ||
19047 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19048 esac
19049 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19050 as_fn_append ac_file_inputs " '$ac_f'"
19051 done
19052
19053 # Let's still pretend it is `configure' which instantiates (i.e., don't
19054 # use $as_me), people would be surprised to read:
19055 # /* config.h. Generated by config.status. */
19056 configure_input='Generated from '`
19057 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19058 `' by configure.'
19059 if test x"$ac_file" != x-; then
19060 configure_input="$ac_file. $configure_input"
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19062 $as_echo "$as_me: creating $ac_file" >&6;}
19063 fi
19064 # Neutralize special characters interpreted by sed in replacement strings.
19065 case $configure_input in #(
19066 *\&* | *\|* | *\\* )
19067 ac_sed_conf_input=`$as_echo "$configure_input" |
19068 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19069 *) ac_sed_conf_input=$configure_input;;
19070 esac
19071
19072 case $ac_tag in
19073 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19075 esac
19076 ;;
19077 esac
19078
19079 ac_dir=`$as_dirname -- "$ac_file" ||
19080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19081 X"$ac_file" : 'X\(//\)[^/]' \| \
19082 X"$ac_file" : 'X\(//\)$' \| \
19083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19084 $as_echo X"$ac_file" |
19085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19086 s//\1/
19087 q
19088 }
19089 /^X\(\/\/\)[^/].*/{
19090 s//\1/
19091 q
19092 }
19093 /^X\(\/\/\)$/{
19094 s//\1/
19095 q
19096 }
19097 /^X\(\/\).*/{
19098 s//\1/
19099 q
19100 }
19101 s/.*/./; q'`
19102 as_dir="$ac_dir"; as_fn_mkdir_p
19103 ac_builddir=.
19104
19105 case "$ac_dir" in
19106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19107 *)
19108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19109 # A ".." for each directory in $ac_dir_suffix.
19110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19111 case $ac_top_builddir_sub in
19112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19114 esac ;;
19115 esac
19116 ac_abs_top_builddir=$ac_pwd
19117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19118 # for backward compatibility:
19119 ac_top_builddir=$ac_top_build_prefix
19120
19121 case $srcdir in
19122 .) # We are building in place.
19123 ac_srcdir=.
19124 ac_top_srcdir=$ac_top_builddir_sub
19125 ac_abs_top_srcdir=$ac_pwd ;;
19126 [\\/]* | ?:[\\/]* ) # Absolute name.
19127 ac_srcdir=$srcdir$ac_dir_suffix;
19128 ac_top_srcdir=$srcdir
19129 ac_abs_top_srcdir=$srcdir ;;
19130 *) # Relative name.
19131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19132 ac_top_srcdir=$ac_top_build_prefix$srcdir
19133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19134 esac
19135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19136
19137
19138 case $ac_mode in
19139 :F)
19140 #
19141 # CONFIG_FILE
19142 #
19143
19144 case $INSTALL in
19145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19147 esac
19148 ac_MKDIR_P=$MKDIR_P
19149 case $MKDIR_P in
19150 [\\/$]* | ?:[\\/]* ) ;;
19151 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19152 esac
19153 _ACEOF
19154
19155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156 # If the template does not know about datarootdir, expand it.
19157 # FIXME: This hack should be removed a few years after 2.60.
19158 ac_datarootdir_hack=; ac_datarootdir_seen=
19159 ac_sed_dataroot='
19160 /datarootdir/ {
19161 p
19162 q
19163 }
19164 /@datadir@/p
19165 /@docdir@/p
19166 /@infodir@/p
19167 /@localedir@/p
19168 /@mandir@/p'
19169 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19170 *datarootdir*) ac_datarootdir_seen=yes;;
19171 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19173 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19174 _ACEOF
19175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19176 ac_datarootdir_hack='
19177 s&@datadir@&$datadir&g
19178 s&@docdir@&$docdir&g
19179 s&@infodir@&$infodir&g
19180 s&@localedir@&$localedir&g
19181 s&@mandir@&$mandir&g
19182 s&\\\${datarootdir}&$datarootdir&g' ;;
19183 esac
19184 _ACEOF
19185
19186 # Neutralize VPATH when `$srcdir' = `.'.
19187 # Shell code in configure.ac might set extrasub.
19188 # FIXME: do we really want to maintain this feature?
19189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19190 ac_sed_extra="$ac_vpsub
19191 $extrasub
19192 _ACEOF
19193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194 :t
19195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19196 s|@configure_input@|$ac_sed_conf_input|;t t
19197 s&@top_builddir@&$ac_top_builddir_sub&;t t
19198 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19199 s&@srcdir@&$ac_srcdir&;t t
19200 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19201 s&@top_srcdir@&$ac_top_srcdir&;t t
19202 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19203 s&@builddir@&$ac_builddir&;t t
19204 s&@abs_builddir@&$ac_abs_builddir&;t t
19205 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19206 s&@INSTALL@&$ac_INSTALL&;t t
19207 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19208 $ac_datarootdir_hack
19209 "
19210 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19211 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19212
19213 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19214 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19215 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19216 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19218 which seems to be undefined. Please make sure it is defined" >&5
19219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19220 which seems to be undefined. Please make sure it is defined" >&2;}
19221
19222 rm -f "$ac_tmp/stdin"
19223 case $ac_file in
19224 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19225 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19226 esac \
19227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19228 ;;
19229 :H)
19230 #
19231 # CONFIG_HEADER
19232 #
19233 if test x"$ac_file" != x-; then
19234 {
19235 $as_echo "/* $configure_input */" \
19236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19237 } >"$ac_tmp/config.h" \
19238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19239 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19242 else
19243 rm -f "$ac_file"
19244 mv "$ac_tmp/config.h" "$ac_file" \
19245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19246 fi
19247 else
19248 $as_echo "/* $configure_input */" \
19249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19250 || as_fn_error $? "could not create -" "$LINENO" 5
19251 fi
19252 # Compute "$ac_file"'s index in $config_headers.
19253 _am_arg="$ac_file"
19254 _am_stamp_count=1
19255 for _am_header in $config_headers :; do
19256 case $_am_header in
19257 $_am_arg | $_am_arg:* )
19258 break ;;
19259 * )
19260 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19261 esac
19262 done
19263 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19264 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19265 X"$_am_arg" : 'X\(//\)[^/]' \| \
19266 X"$_am_arg" : 'X\(//\)$' \| \
19267 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19268 $as_echo X"$_am_arg" |
19269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19270 s//\1/
19271 q
19272 }
19273 /^X\(\/\/\)[^/].*/{
19274 s//\1/
19275 q
19276 }
19277 /^X\(\/\/\)$/{
19278 s//\1/
19279 q
19280 }
19281 /^X\(\/\).*/{
19282 s//\1/
19283 q
19284 }
19285 s/.*/./; q'`/stamp-h$_am_stamp_count
19286 ;;
19287
19288 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19289 $as_echo "$as_me: executing $ac_file commands" >&6;}
19290 ;;
19291 esac
19292
19293
19294 case $ac_file$ac_mode in
19295 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19296 # Older Autoconf quotes --file arguments for eval, but not when files
19297 # are listed without --file. Let's play safe and only enable the eval
19298 # if we detect the quoting.
19299 # TODO: see whether this extra hack can be removed once we start
19300 # requiring Autoconf 2.70 or later.
19301 case $CONFIG_FILES in #(
19302 *\'*) :
19303 eval set x "$CONFIG_FILES" ;; #(
19304 *) :
19305 set x $CONFIG_FILES ;; #(
19306 *) :
19307 ;;
19308 esac
19309 shift
19310 # Used to flag and report bootstrapping failures.
19311 am_rc=0
19312 for am_mf
19313 do
19314 # Strip MF so we end up with the name of the file.
19315 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19316 # Check whether this is an Automake generated Makefile which includes
19317 # dependency-tracking related rules and includes.
19318 # Grep'ing the whole file directly is not great: AIX grep has a line
19319 # limit of 2048, but all sed's we know have understand at least 4000.
19320 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19321 || continue
19322 am_dirpart=`$as_dirname -- "$am_mf" ||
19323 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19324 X"$am_mf" : 'X\(//\)[^/]' \| \
19325 X"$am_mf" : 'X\(//\)$' \| \
19326 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19327 $as_echo X"$am_mf" |
19328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19329 s//\1/
19330 q
19331 }
19332 /^X\(\/\/\)[^/].*/{
19333 s//\1/
19334 q
19335 }
19336 /^X\(\/\/\)$/{
19337 s//\1/
19338 q
19339 }
19340 /^X\(\/\).*/{
19341 s//\1/
19342 q
19343 }
19344 s/.*/./; q'`
19345 am_filepart=`$as_basename -- "$am_mf" ||
19346 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19347 X"$am_mf" : 'X\(//\)$' \| \
19348 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19349 $as_echo X/"$am_mf" |
19350 sed '/^.*\/\([^/][^/]*\)\/*$/{
19351 s//\1/
19352 q
19353 }
19354 /^X\/\(\/\/\)$/{
19355 s//\1/
19356 q
19357 }
19358 /^X\/\(\/\).*/{
19359 s//\1/
19360 q
19361 }
19362 s/.*/./; q'`
19363 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19364 && sed -e '/# am--include-marker/d' "$am_filepart" \
19365 | $MAKE -f - am--depfiles" >&5
19366 (cd "$am_dirpart" \
19367 && sed -e '/# am--include-marker/d' "$am_filepart" \
19368 | $MAKE -f - am--depfiles) >&5 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } || am_rc=$?
19372 done
19373 if test $am_rc -ne 0; then
19374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19376 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19377 for automatic dependency tracking. Try re-running configure with the
19378 '--disable-dependency-tracking' option to at least be able to build
19379 the package (albeit without support for automatic dependency tracking).
19380 See \`config.log' for more details" "$LINENO" 5; }
19381 fi
19382 { am_dirpart=; unset am_dirpart;}
19383 { am_filepart=; unset am_filepart;}
19384 { am_mf=; unset am_mf;}
19385 { am_rc=; unset am_rc;}
19386 rm -f conftest-deps.mk
19387 }
19388 ;;
19389 "libtool":C)
19390
19391 # See if we are running on zsh, and set the options that allow our
19392 # commands through without removal of \ escapes.
19393 if test -n "${ZSH_VERSION+set}"; then
19394 setopt NO_GLOB_SUBST
19395 fi
19396
19397 cfgfile=${ofile}T
19398 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19399 $RM "$cfgfile"
19400
19401 cat <<_LT_EOF >> "$cfgfile"
19402 #! $SHELL
19403 # Generated automatically by $as_me ($PACKAGE) $VERSION
19404 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19405
19406 # Provide generalized library-building support services.
19407 # Written by Gordon Matzigkeit, 1996
19408
19409 # Copyright (C) 2014 Free Software Foundation, Inc.
19410 # This is free software; see the source for copying conditions. There is NO
19411 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19412
19413 # GNU Libtool is free software; you can redistribute it and/or modify
19414 # it under the terms of the GNU General Public License as published by
19415 # the Free Software Foundation; either version 2 of of the License, or
19416 # (at your option) any later version.
19417 #
19418 # As a special exception to the GNU General Public License, if you
19419 # distribute this file as part of a program or library that is built
19420 # using GNU Libtool, you may include this file under the same
19421 # distribution terms that you use for the rest of that program.
19422 #
19423 # GNU Libtool is distributed in the hope that it will be useful, but
19424 # WITHOUT ANY WARRANTY; without even the implied warranty of
19425 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19426 # GNU General Public License for more details.
19427 #
19428 # You should have received a copy of the GNU General Public License
19429 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19430
19431
19432 # The names of the tagged configurations supported by this script.
19433 available_tags='CXX '
19434
19435 # Configured defaults for sys_lib_dlsearch_path munging.
19436 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19437
19438 # ### BEGIN LIBTOOL CONFIG
19439
19440 # Which release of libtool.m4 was used?
19441 macro_version=$macro_version
19442 macro_revision=$macro_revision
19443
19444 # Whether or not to build shared libraries.
19445 build_libtool_libs=$enable_shared
19446
19447 # Whether or not to build static libraries.
19448 build_old_libs=$enable_static
19449
19450 # What type of objects to build.
19451 pic_mode=$pic_mode
19452
19453 # Whether or not to optimize for fast installation.
19454 fast_install=$enable_fast_install
19455
19456 # Shared archive member basename,for filename based shared library versioning on AIX.
19457 shared_archive_member_spec=$shared_archive_member_spec
19458
19459 # Shell to use when invoking shell scripts.
19460 SHELL=$lt_SHELL
19461
19462 # An echo program that protects backslashes.
19463 ECHO=$lt_ECHO
19464
19465 # The PATH separator for the build system.
19466 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19467
19468 # The host system.
19469 host_alias=$host_alias
19470 host=$host
19471 host_os=$host_os
19472
19473 # The build system.
19474 build_alias=$build_alias
19475 build=$build
19476 build_os=$build_os
19477
19478 # A sed program that does not truncate output.
19479 SED=$lt_SED
19480
19481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19482 Xsed="\$SED -e 1s/^X//"
19483
19484 # A grep program that handles long lines.
19485 GREP=$lt_GREP
19486
19487 # An ERE matcher.
19488 EGREP=$lt_EGREP
19489
19490 # A literal string matcher.
19491 FGREP=$lt_FGREP
19492
19493 # A BSD- or MS-compatible name lister.
19494 NM=$lt_NM
19495
19496 # Whether we need soft or hard links.
19497 LN_S=$lt_LN_S
19498
19499 # What is the maximum length of a command?
19500 max_cmd_len=$max_cmd_len
19501
19502 # Object file suffix (normally "o").
19503 objext=$ac_objext
19504
19505 # Executable file suffix (normally "").
19506 exeext=$exeext
19507
19508 # whether the shell understands "unset".
19509 lt_unset=$lt_unset
19510
19511 # turn spaces into newlines.
19512 SP2NL=$lt_lt_SP2NL
19513
19514 # turn newlines into spaces.
19515 NL2SP=$lt_lt_NL2SP
19516
19517 # convert \$build file names to \$host format.
19518 to_host_file_cmd=$lt_cv_to_host_file_cmd
19519
19520 # convert \$build files to toolchain format.
19521 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19522
19523 # An object symbol dumper.
19524 OBJDUMP=$lt_OBJDUMP
19525
19526 # Method to check whether dependent libraries are shared objects.
19527 deplibs_check_method=$lt_deplibs_check_method
19528
19529 # Command to use when deplibs_check_method = "file_magic".
19530 file_magic_cmd=$lt_file_magic_cmd
19531
19532 # How to find potential files when deplibs_check_method = "file_magic".
19533 file_magic_glob=$lt_file_magic_glob
19534
19535 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19536 want_nocaseglob=$lt_want_nocaseglob
19537
19538 # DLL creation program.
19539 DLLTOOL=$lt_DLLTOOL
19540
19541 # Command to associate shared and link libraries.
19542 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19543
19544 # The archiver.
19545 AR=$lt_AR
19546
19547 # Flags to create an archive.
19548 AR_FLAGS=$lt_AR_FLAGS
19549
19550 # How to feed a file listing to the archiver.
19551 archiver_list_spec=$lt_archiver_list_spec
19552
19553 # A symbol stripping program.
19554 STRIP=$lt_STRIP
19555
19556 # Commands used to install an old-style archive.
19557 RANLIB=$lt_RANLIB
19558 old_postinstall_cmds=$lt_old_postinstall_cmds
19559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19560
19561 # Whether to use a lock for old archive extraction.
19562 lock_old_archive_extraction=$lock_old_archive_extraction
19563
19564 # A C compiler.
19565 LTCC=$lt_CC
19566
19567 # LTCC compiler flags.
19568 LTCFLAGS=$lt_CFLAGS
19569
19570 # Take the output of nm and produce a listing of raw symbols and C names.
19571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19572
19573 # Transform the output of nm in a proper C declaration.
19574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19575
19576 # Transform the output of nm into a list of symbols to manually relocate.
19577 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19578
19579 # Transform the output of nm in a C name address pair.
19580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19581
19582 # Transform the output of nm in a C name address pair when lib prefix is needed.
19583 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19584
19585 # The name lister interface.
19586 nm_interface=$lt_lt_cv_nm_interface
19587
19588 # Specify filename containing input files for \$NM.
19589 nm_file_list_spec=$lt_nm_file_list_spec
19590
19591 # The root where to search for dependent libraries,and where our libraries should be installed.
19592 lt_sysroot=$lt_sysroot
19593
19594 # Command to truncate a binary pipe.
19595 lt_truncate_bin=$lt_lt_cv_truncate_bin
19596
19597 # The name of the directory that contains temporary libtool files.
19598 objdir=$objdir
19599
19600 # Used to examine libraries when file_magic_cmd begins with "file".
19601 MAGIC_CMD=$MAGIC_CMD
19602
19603 # Must we lock files when doing compilation?
19604 need_locks=$lt_need_locks
19605
19606 # Manifest tool.
19607 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19608
19609 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19610 DSYMUTIL=$lt_DSYMUTIL
19611
19612 # Tool to change global to local symbols on Mac OS X.
19613 NMEDIT=$lt_NMEDIT
19614
19615 # Tool to manipulate fat objects and archives on Mac OS X.
19616 LIPO=$lt_LIPO
19617
19618 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19619 OTOOL=$lt_OTOOL
19620
19621 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19622 OTOOL64=$lt_OTOOL64
19623
19624 # Old archive suffix (normally "a").
19625 libext=$libext
19626
19627 # Shared library suffix (normally ".so").
19628 shrext_cmds=$lt_shrext_cmds
19629
19630 # The commands to extract the exported symbol list from a shared archive.
19631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19632
19633 # Variables whose values should be saved in libtool wrapper scripts and
19634 # restored at link time.
19635 variables_saved_for_relink=$lt_variables_saved_for_relink
19636
19637 # Do we need the "lib" prefix for modules?
19638 need_lib_prefix=$need_lib_prefix
19639
19640 # Do we need a version for libraries?
19641 need_version=$need_version
19642
19643 # Library versioning type.
19644 version_type=$version_type
19645
19646 # Shared library runtime path variable.
19647 runpath_var=$runpath_var
19648
19649 # Shared library path variable.
19650 shlibpath_var=$shlibpath_var
19651
19652 # Is shlibpath searched before the hard-coded library search path?
19653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19654
19655 # Format of library name prefix.
19656 libname_spec=$lt_libname_spec
19657
19658 # List of archive names. First name is the real one, the rest are links.
19659 # The last name is the one that the linker finds with -lNAME
19660 library_names_spec=$lt_library_names_spec
19661
19662 # The coded name of the library, if different from the real name.
19663 soname_spec=$lt_soname_spec
19664
19665 # Permission mode override for installation of shared libraries.
19666 install_override_mode=$lt_install_override_mode
19667
19668 # Command to use after installation of a shared archive.
19669 postinstall_cmds=$lt_postinstall_cmds
19670
19671 # Command to use after uninstallation of a shared archive.
19672 postuninstall_cmds=$lt_postuninstall_cmds
19673
19674 # Commands used to finish a libtool library installation in a directory.
19675 finish_cmds=$lt_finish_cmds
19676
19677 # As "finish_cmds", except a single script fragment to be evaled but
19678 # not shown.
19679 finish_eval=$lt_finish_eval
19680
19681 # Whether we should hardcode library paths into libraries.
19682 hardcode_into_libs=$hardcode_into_libs
19683
19684 # Compile-time system search path for libraries.
19685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19686
19687 # Detected run-time system search path for libraries.
19688 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19689
19690 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19691 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19692
19693 # Whether dlopen is supported.
19694 dlopen_support=$enable_dlopen
19695
19696 # Whether dlopen of programs is supported.
19697 dlopen_self=$enable_dlopen_self
19698
19699 # Whether dlopen of statically linked programs is supported.
19700 dlopen_self_static=$enable_dlopen_self_static
19701
19702 # Commands to strip libraries.
19703 old_striplib=$lt_old_striplib
19704 striplib=$lt_striplib
19705
19706
19707 # The linker used to build libraries.
19708 LD=$lt_LD
19709
19710 # How to create reloadable object files.
19711 reload_flag=$lt_reload_flag
19712 reload_cmds=$lt_reload_cmds
19713
19714 # Commands used to build an old-style archive.
19715 old_archive_cmds=$lt_old_archive_cmds
19716
19717 # A language specific compiler.
19718 CC=$lt_compiler
19719
19720 # Is the compiler the GNU compiler?
19721 with_gcc=$GCC
19722
19723 # Compiler flag to turn off builtin functions.
19724 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19725
19726 # Additional compiler flags for building library objects.
19727 pic_flag=$lt_lt_prog_compiler_pic
19728
19729 # How to pass a linker flag through the compiler.
19730 wl=$lt_lt_prog_compiler_wl
19731
19732 # Compiler flag to prevent dynamic linking.
19733 link_static_flag=$lt_lt_prog_compiler_static
19734
19735 # Does compiler simultaneously support -c and -o options?
19736 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19737
19738 # Whether or not to add -lc for building shared libraries.
19739 build_libtool_need_lc=$archive_cmds_need_lc
19740
19741 # Whether or not to disallow shared libs when runtime libs are static.
19742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19743
19744 # Compiler flag to allow reflexive dlopens.
19745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19746
19747 # Compiler flag to generate shared objects directly from archives.
19748 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19749
19750 # Whether the compiler copes with passing no objects directly.
19751 compiler_needs_object=$lt_compiler_needs_object
19752
19753 # Create an old-style archive from a shared archive.
19754 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19755
19756 # Create a temporary old-style archive to link instead of a shared archive.
19757 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19758
19759 # Commands used to build a shared archive.
19760 archive_cmds=$lt_archive_cmds
19761 archive_expsym_cmds=$lt_archive_expsym_cmds
19762
19763 # Commands used to build a loadable module if different from building
19764 # a shared archive.
19765 module_cmds=$lt_module_cmds
19766 module_expsym_cmds=$lt_module_expsym_cmds
19767
19768 # Whether we are building with GNU ld or not.
19769 with_gnu_ld=$lt_with_gnu_ld
19770
19771 # Flag that allows shared libraries with undefined symbols to be built.
19772 allow_undefined_flag=$lt_allow_undefined_flag
19773
19774 # Flag that enforces no undefined symbols.
19775 no_undefined_flag=$lt_no_undefined_flag
19776
19777 # Flag to hardcode \$libdir into a binary during linking.
19778 # This must work even if \$libdir does not exist
19779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19780
19781 # Whether we need a single "-rpath" flag with a separated argument.
19782 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19783
19784 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19785 # DIR into the resulting binary.
19786 hardcode_direct=$hardcode_direct
19787
19788 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19789 # DIR into the resulting binary and the resulting library dependency is
19790 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19791 # library is relocated.
19792 hardcode_direct_absolute=$hardcode_direct_absolute
19793
19794 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19795 # into the resulting binary.
19796 hardcode_minus_L=$hardcode_minus_L
19797
19798 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19799 # into the resulting binary.
19800 hardcode_shlibpath_var=$hardcode_shlibpath_var
19801
19802 # Set to "yes" if building a shared library automatically hardcodes DIR
19803 # into the library and all subsequent libraries and executables linked
19804 # against it.
19805 hardcode_automatic=$hardcode_automatic
19806
19807 # Set to yes if linker adds runtime paths of dependent libraries
19808 # to runtime path list.
19809 inherit_rpath=$inherit_rpath
19810
19811 # Whether libtool must link a program against all its dependency libraries.
19812 link_all_deplibs=$link_all_deplibs
19813
19814 # Set to "yes" if exported symbols are required.
19815 always_export_symbols=$always_export_symbols
19816
19817 # The commands to list exported symbols.
19818 export_symbols_cmds=$lt_export_symbols_cmds
19819
19820 # Symbols that should not be listed in the preloaded symbols.
19821 exclude_expsyms=$lt_exclude_expsyms
19822
19823 # Symbols that must always be exported.
19824 include_expsyms=$lt_include_expsyms
19825
19826 # Commands necessary for linking programs (against libraries) with templates.
19827 prelink_cmds=$lt_prelink_cmds
19828
19829 # Commands necessary for finishing linking programs.
19830 postlink_cmds=$lt_postlink_cmds
19831
19832 # Specify filename containing input files.
19833 file_list_spec=$lt_file_list_spec
19834
19835 # How to hardcode a shared library path into an executable.
19836 hardcode_action=$hardcode_action
19837
19838 # The directories searched by this compiler when creating a shared library.
19839 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19840
19841 # Dependencies to place before and after the objects being linked to
19842 # create a shared library.
19843 predep_objects=$lt_predep_objects
19844 postdep_objects=$lt_postdep_objects
19845 predeps=$lt_predeps
19846 postdeps=$lt_postdeps
19847
19848 # The library search path used internally by the compiler when linking
19849 # a shared library.
19850 compiler_lib_search_path=$lt_compiler_lib_search_path
19851
19852 # ### END LIBTOOL CONFIG
19853
19854 _LT_EOF
19855
19856 cat <<'_LT_EOF' >> "$cfgfile"
19857
19858 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19859
19860 # func_munge_path_list VARIABLE PATH
19861 # -----------------------------------
19862 # VARIABLE is name of variable containing _space_ separated list of
19863 # directories to be munged by the contents of PATH, which is string
19864 # having a format:
19865 # "DIR[:DIR]:"
19866 # string "DIR[ DIR]" will be prepended to VARIABLE
19867 # ":DIR[:DIR]"
19868 # string "DIR[ DIR]" will be appended to VARIABLE
19869 # "DIRP[:DIRP]::[DIRA:]DIRA"
19870 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19871 # "DIRA[ DIRA]" will be appended to VARIABLE
19872 # "DIR[:DIR]"
19873 # VARIABLE will be replaced by "DIR[ DIR]"
19874 func_munge_path_list ()
19875 {
19876 case x$2 in
19877 x)
19878 ;;
19879 *:)
19880 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19881 ;;
19882 x:*)
19883 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19884 ;;
19885 *::*)
19886 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19887 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19888 ;;
19889 *)
19890 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19891 ;;
19892 esac
19893 }
19894
19895
19896 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19897 func_cc_basename ()
19898 {
19899 for cc_temp in $*""; do
19900 case $cc_temp in
19901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19903 \-*) ;;
19904 *) break;;
19905 esac
19906 done
19907 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19908 }
19909
19910
19911 # ### END FUNCTIONS SHARED WITH CONFIGURE
19912
19913 _LT_EOF
19914
19915 case $host_os in
19916 aix3*)
19917 cat <<\_LT_EOF >> "$cfgfile"
19918 # AIX sometimes has problems with the GCC collect2 program. For some
19919 # reason, if we set the COLLECT_NAMES environment variable, the problems
19920 # vanish in a puff of smoke.
19921 if test set != "${COLLECT_NAMES+set}"; then
19922 COLLECT_NAMES=
19923 export COLLECT_NAMES
19924 fi
19925 _LT_EOF
19926 ;;
19927 esac
19928
19929
19930 ltmain=$ac_aux_dir/ltmain.sh
19931
19932
19933 # We use sed instead of cat because bash on DJGPP gets confused if
19934 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19935 # text mode, it properly converts lines to CR/LF. This bash problem
19936 # is reportedly fixed, but why not run on old versions too?
19937 sed '$q' "$ltmain" >> "$cfgfile" \
19938 || (rm -f "$cfgfile"; exit 1)
19939
19940 mv -f "$cfgfile" "$ofile" ||
19941 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19942 chmod +x "$ofile"
19943
19944
19945 cat <<_LT_EOF >> "$ofile"
19946
19947 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19948
19949 # The linker used to build libraries.
19950 LD=$lt_LD_CXX
19951
19952 # How to create reloadable object files.
19953 reload_flag=$lt_reload_flag_CXX
19954 reload_cmds=$lt_reload_cmds_CXX
19955
19956 # Commands used to build an old-style archive.
19957 old_archive_cmds=$lt_old_archive_cmds_CXX
19958
19959 # A language specific compiler.
19960 CC=$lt_compiler_CXX
19961
19962 # Is the compiler the GNU compiler?
19963 with_gcc=$GCC_CXX
19964
19965 # Compiler flag to turn off builtin functions.
19966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19967
19968 # Additional compiler flags for building library objects.
19969 pic_flag=$lt_lt_prog_compiler_pic_CXX
19970
19971 # How to pass a linker flag through the compiler.
19972 wl=$lt_lt_prog_compiler_wl_CXX
19973
19974 # Compiler flag to prevent dynamic linking.
19975 link_static_flag=$lt_lt_prog_compiler_static_CXX
19976
19977 # Does compiler simultaneously support -c and -o options?
19978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19979
19980 # Whether or not to add -lc for building shared libraries.
19981 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19982
19983 # Whether or not to disallow shared libs when runtime libs are static.
19984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19985
19986 # Compiler flag to allow reflexive dlopens.
19987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19988
19989 # Compiler flag to generate shared objects directly from archives.
19990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19991
19992 # Whether the compiler copes with passing no objects directly.
19993 compiler_needs_object=$lt_compiler_needs_object_CXX
19994
19995 # Create an old-style archive from a shared archive.
19996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19997
19998 # Create a temporary old-style archive to link instead of a shared archive.
19999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20000
20001 # Commands used to build a shared archive.
20002 archive_cmds=$lt_archive_cmds_CXX
20003 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20004
20005 # Commands used to build a loadable module if different from building
20006 # a shared archive.
20007 module_cmds=$lt_module_cmds_CXX
20008 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20009
20010 # Whether we are building with GNU ld or not.
20011 with_gnu_ld=$lt_with_gnu_ld_CXX
20012
20013 # Flag that allows shared libraries with undefined symbols to be built.
20014 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20015
20016 # Flag that enforces no undefined symbols.
20017 no_undefined_flag=$lt_no_undefined_flag_CXX
20018
20019 # Flag to hardcode \$libdir into a binary during linking.
20020 # This must work even if \$libdir does not exist
20021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20022
20023 # Whether we need a single "-rpath" flag with a separated argument.
20024 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20025
20026 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20027 # DIR into the resulting binary.
20028 hardcode_direct=$hardcode_direct_CXX
20029
20030 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20031 # DIR into the resulting binary and the resulting library dependency is
20032 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20033 # library is relocated.
20034 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20035
20036 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20037 # into the resulting binary.
20038 hardcode_minus_L=$hardcode_minus_L_CXX
20039
20040 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20041 # into the resulting binary.
20042 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20043
20044 # Set to "yes" if building a shared library automatically hardcodes DIR
20045 # into the library and all subsequent libraries and executables linked
20046 # against it.
20047 hardcode_automatic=$hardcode_automatic_CXX
20048
20049 # Set to yes if linker adds runtime paths of dependent libraries
20050 # to runtime path list.
20051 inherit_rpath=$inherit_rpath_CXX
20052
20053 # Whether libtool must link a program against all its dependency libraries.
20054 link_all_deplibs=$link_all_deplibs_CXX
20055
20056 # Set to "yes" if exported symbols are required.
20057 always_export_symbols=$always_export_symbols_CXX
20058
20059 # The commands to list exported symbols.
20060 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20061
20062 # Symbols that should not be listed in the preloaded symbols.
20063 exclude_expsyms=$lt_exclude_expsyms_CXX
20064
20065 # Symbols that must always be exported.
20066 include_expsyms=$lt_include_expsyms_CXX
20067
20068 # Commands necessary for linking programs (against libraries) with templates.
20069 prelink_cmds=$lt_prelink_cmds_CXX
20070
20071 # Commands necessary for finishing linking programs.
20072 postlink_cmds=$lt_postlink_cmds_CXX
20073
20074 # Specify filename containing input files.
20075 file_list_spec=$lt_file_list_spec_CXX
20076
20077 # How to hardcode a shared library path into an executable.
20078 hardcode_action=$hardcode_action_CXX
20079
20080 # The directories searched by this compiler when creating a shared library.
20081 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20082
20083 # Dependencies to place before and after the objects being linked to
20084 # create a shared library.
20085 predep_objects=$lt_predep_objects_CXX
20086 postdep_objects=$lt_postdep_objects_CXX
20087 predeps=$lt_predeps_CXX
20088 postdeps=$lt_postdeps_CXX
20089
20090 # The library search path used internally by the compiler when linking
20091 # a shared library.
20092 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20093
20094 # ### END LIBTOOL TAG CONFIG: CXX
20095 _LT_EOF
20096
20097 ;;
20098
20099 esac
20100 done # for ac_tag
20101
20102
20103 as_fn_exit 0
20104 _ACEOF
20105 ac_clean_files=$ac_clean_files_save
20106
20107 test $ac_write_fail = 0 ||
20108 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20109
20110
20111 # configure is writing to config.log, and then calls config.status.
20112 # config.status does its own redirection, appending to config.log.
20113 # Unfortunately, on DOS this fails, as config.log is still kept open
20114 # by configure, so config.status won't be able to write to it; its
20115 # output is simply discarded. So we exec the FD to /dev/null,
20116 # effectively closing config.log, so it can be properly (re)opened and
20117 # appended to by config.status. When coming back to configure, we
20118 # need to make the FD available again.
20119 if test "$no_create" != yes; then
20120 ac_cs_success=:
20121 ac_config_status_args=
20122 test "$silent" = yes &&
20123 ac_config_status_args="$ac_config_status_args --quiet"
20124 exec 5>/dev/null
20125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20126 exec 5>>config.log
20127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20128 # would make configure fail if this is the last instruction.
20129 $ac_cs_success || as_fn_exit 1
20130 fi
20131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20134 fi
20135
20136
20137 echo "
20138 Configuration for $PACKAGE $VERSION:
20139 -------------------------------------------
20140
20141 Install prefix: .........: $prefix
20142
20143 Now type 'make' to build $PACKAGE $VERSION,
20144 and then 'make install' for installation.
20145 "