Fix up more conflicts.
[deb_shairplay.git] / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for shairplay 0.9.0.
4 @%:@
5 @%:@ Report bugs to <juhovh@iki.fi>.
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 bug-autoconf@gnu.org and juhovh@iki.fi
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 @%:@ as_fn_unset VAR
297 @%:@ ---------------
298 @%:@ Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 @%:@ as_fn_set_status STATUS
306 @%:@ -----------------------
307 @%:@ Set @S|@? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } @%:@ as_fn_set_status
312
313 @%:@ as_fn_exit STATUS
314 @%:@ -----------------
315 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } @%:@ as_fn_exit
322
323 @%:@ as_fn_mkdir_p
324 @%:@ -------------
325 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } @%:@ as_fn_mkdir_p
370
371 @%:@ as_fn_executable_p FILE
372 @%:@ -----------------------
373 @%:@ Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } @%:@ as_fn_executable_p
378 @%:@ as_fn_append VAR VALUE
379 @%:@ ----------------------
380 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381 @%:@ advantage of any shell optimizations that allow amortized linear growth over
382 @%:@ repeated appends, instead of the typical quadratic growth present in naive
383 @%:@ implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 @%:@ as_fn_arith ARG...
397 @%:@ ------------------
398 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415 @%:@ ----------------------------------------
416 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 @%:@ script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } @%:@ as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in @%:@(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIB@&t@OBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='shairplay'
592 PACKAGE_TARNAME='shairplay'
593 PACKAGE_VERSION='0.9.0'
594 PACKAGE_STRING='shairplay 0.9.0'
595 PACKAGE_BUGREPORT='juhovh@iki.fi'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/shairplay.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIB@&t@OBJS
639 HAVE_LIBAO_FALSE
640 HAVE_LIBAO_TRUE
641 libao_LIBS
642 libao_CFLAGS
643 PKG_CONFIG
644 OS_FREEBSD_FALSE
645 OS_FREEBSD_TRUE
646 OS_GNU_FALSE
647 OS_GNU_TRUE
648 OS_LINUX_FALSE
649 OS_LINUX_TRUE
650 OS_UNIX_FALSE
651 OS_UNIX_TRUE
652 OS_WIN32_FALSE
653 OS_WIN32_TRUE
654 LIBM
655 LIBADD_DL
656 LT_DLPREOPEN
657 LIBADD_DLD_LINK
658 LIBADD_SHL_LOAD
659 LIBADD_DLOPEN
660 LT_DLLOADERS
661 CPP
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP
790 PKG_CONFIG
791 libao_CFLAGS
792 libao_LIBS'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1143
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 ;;
1199
1200 esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221 do
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures shairplay 0.9.0 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 @<:@@S|@ac_default_prefix@:>@
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 @<:@PREFIX@:>@
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/shairplay@:>@
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of shairplay 0.9.0:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --disable-dependency-tracking speeds up one-time build
1412 --enable-dependency-tracking do not reject slow dependency extractors
1413 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1414 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1415 --enable-fast-install@<:@=PKGS@:>@
1416 optimize for fast installation @<:@default=yes@:>@
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418
1419 Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1423 both@:>@
1424 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1425 --with-sysroot=DIR Search for dependent libraries within DIR
1426 (or the compiler's sysroot if not specified).
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437 PKG_CONFIG path to pkg-config utility
1438 libao_CFLAGS
1439 C compiler flags for libao, overriding pkg-config
1440 libao_LIBS linker flags for libao, overriding pkg-config
1441
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1444
1445 Report bugs to <juhovh@iki.fi>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1503 fi
1504
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 shairplay configure 0.9.0
1509 generated by GNU Autoconf 2.69
1510
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 @%:@ ac_fn_c_try_compile LINENO
1523 @%:@ --------------------------
1524 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1557
1558 } @%:@ ac_fn_c_try_compile
1559
1560 @%:@ ac_fn_c_try_link LINENO
1561 @%:@ -----------------------
1562 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_link ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext conftest$ac_exeext
1567 if { { ac_try="$ac_link"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_link") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest$ac_exeext && {
1586 test "$cross_compiling" = yes ||
1587 test -x conftest$ac_exeext
1588 }; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595 fi
1596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1598 # interfere with the next link command; also delete a directory that is
1599 # left behind by Apple's compiler. We do this before executing the actions.
1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604 } @%:@ ac_fn_c_try_link
1605
1606 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607 @%:@ -------------------------------------------------------
1608 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1609 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1610 ac_fn_c_check_header_compile ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617 else
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 $4
1621 @%:@include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 eval "$3=yes"
1625 else
1626 eval "$3=no"
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 fi
1630 eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635 } @%:@ ac_fn_c_check_header_compile
1636
1637 @%:@ ac_fn_c_try_cpp LINENO
1638 @%:@ ----------------------
1639 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_cpp ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i && {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } @%:@ ac_fn_c_try_cpp
1673
1674 @%:@ ac_fn_c_try_run LINENO
1675 @%:@ ----------------------
1676 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1677 @%:@ that executables *can* be run.
1678 ac_fn_c_try_run ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692 { { case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_try") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; }; }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: program exited with status $ac_status" >&5
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=$ac_status
1709 fi
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } @%:@ ac_fn_c_try_run
1715
1716 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1717 @%:@ ----------------------------------
1718 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1732
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (); below.
1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736 <limits.h> exists even on freestanding compilers. */
1737
1738 #ifdef __STDC__
1739 # include <limits.h>
1740 #else
1741 # include <assert.h>
1742 #endif
1743
1744 #undef $2
1745
1746 /* Override any GCC internal prototype to avoid an error.
1747 Use char because int might match the return type of a GCC
1748 builtin and then its argument prototype would still apply. */
1749 #ifdef __cplusplus
1750 extern "C"
1751 #endif
1752 char $2 ();
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined __stub_$2 || defined __stub___$2
1757 choke me
1758 #endif
1759
1760 int
1761 main ()
1762 {
1763 return $2 ();
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_link "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext \
1774 conftest$ac_exeext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } @%:@ ac_fn_c_check_func
1782
1783 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1784 @%:@ ---------------------------------------------
1785 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1786 @%:@ accordingly.
1787 ac_fn_c_check_decl ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 as_decl_name=`echo $2|sed 's/ *(.*//'`
1791 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1793 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 $4
1800 int
1801 main ()
1802 {
1803 @%:@ifndef $as_decl_name
1804 @%:@ifdef __cplusplus
1805 (void) $as_decl_use;
1806 @%:@else
1807 (void) $as_decl_name;
1808 @%:@endif
1809 @%:@endif
1810
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } @%:@ ac_fn_c_check_decl
1828 cat >config.log <<_ACEOF
1829 This file contains any messages produced by compilers while
1830 running configure, to aid debugging if configure makes a mistake.
1831
1832 It was created by shairplay $as_me 0.9.0, which was
1833 generated by GNU Autoconf 2.69. Invocation command line was
1834
1835 $ $0 $@
1836
1837 _ACEOF
1838 exec 5>>config.log
1839 {
1840 cat <<_ASUNAME
1841 ## --------- ##
1842 ## Platform. ##
1843 ## --------- ##
1844
1845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1850
1851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1853
1854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1861
1862 _ASUNAME
1863
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 $as_echo "PATH: $as_dir"
1870 done
1871 IFS=$as_save_IFS
1872
1873 } >&5
1874
1875 cat >&5 <<_ACEOF
1876
1877
1878 ## ----------- ##
1879 ## Core tests. ##
1880 ## ----------- ##
1881
1882 _ACEOF
1883
1884
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1890 ac_configure_args=
1891 ac_configure_args0=
1892 ac_configure_args1=
1893 ac_must_keep_next=false
1894 for ac_pass in 1 2
1895 do
1896 for ac_arg
1897 do
1898 case $ac_arg in
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1902 continue ;;
1903 *\'*)
1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 esac
1906 case $ac_pass in
1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908 2)
1909 as_fn_append ac_configure_args1 " '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1912 else
1913 case $ac_arg in
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 esac
1921 ;;
1922 -* ) ac_must_keep_next=true ;;
1923 esac
1924 fi
1925 as_fn_append ac_configure_args " '$ac_arg'"
1926 ;;
1927 esac
1928 done
1929 done
1930 { ac_configure_args0=; unset ac_configure_args0;}
1931 { ac_configure_args1=; unset ac_configure_args1;}
1932
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Save into config.log some information that might help in debugging.
1940 {
1941 echo
1942
1943 $as_echo "## ---------------- ##
1944 ## Cache variables. ##
1945 ## ---------------- ##"
1946 echo
1947 # The following way of writing the cache mishandles newlines in values,
1948 (
1949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in #(
1952 *${as_nl}*)
1953 case $ac_var in #(
1954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1956 esac
1957 case $ac_var in #(
1958 _ | IFS | as_nl) ;; #(
1959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1960 *) { eval $ac_var=; unset $ac_var;} ;;
1961 esac ;;
1962 esac
1963 done
1964 (set) 2>&1 |
1965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1966 *${as_nl}ac_space=\ *)
1967 sed -n \
1968 "s/'\''/'\''\\\\'\'''\''/g;
1969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1970 ;; #(
1971 *)
1972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1973 ;;
1974 esac |
1975 sort
1976 )
1977 echo
1978
1979 $as_echo "## ----------------- ##
1980 ## Output variables. ##
1981 ## ----------------- ##"
1982 echo
1983 for ac_var in $ac_subst_vars
1984 do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
1990 done | sort
1991 echo
1992
1993 if test -n "$ac_subst_files"; then
1994 $as_echo "## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##"
1997 echo
1998 for ac_var in $ac_subst_files
1999 do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 esac
2004 $as_echo "$ac_var='\''$ac_val'\''"
2005 done | sort
2006 echo
2007 fi
2008
2009 if test -s confdefs.h; then
2010 $as_echo "## ----------- ##
2011 ## confdefs.h. ##
2012 ## ----------- ##"
2013 echo
2014 cat confdefs.h
2015 echo
2016 fi
2017 test "$ac_signal" != 0 &&
2018 $as_echo "$as_me: caught signal $ac_signal"
2019 $as_echo "$as_me: exit $exit_status"
2020 } >&5
2021 rm -f core *.core core.conftest.* &&
2022 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2023 exit $exit_status
2024 ' 0
2025 for ac_signal in 1 2 13 15; do
2026 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2027 done
2028 ac_signal=0
2029
2030 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2031 rm -f -r conftest* confdefs.h
2032
2033 $as_echo "/* confdefs.h */" > confdefs.h
2034
2035 # Predefined preprocessor variables.
2036
2037 cat >>confdefs.h <<_ACEOF
2038 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 @%:@define PACKAGE_URL "$PACKAGE_URL"
2059 _ACEOF
2060
2061
2062 # Let the site file select an alternate cache file if it wants to.
2063 # Prefer an explicitly selected file to automatically selected ones.
2064 ac_site_file1=NONE
2065 ac_site_file2=NONE
2066 if test -n "$CONFIG_SITE"; then
2067 # We do not want a PATH search for config.site.
2068 case $CONFIG_SITE in @%:@((
2069 -*) ac_site_file1=./$CONFIG_SITE;;
2070 */*) ac_site_file1=$CONFIG_SITE;;
2071 *) ac_site_file1=./$CONFIG_SITE;;
2072 esac
2073 elif test "x$prefix" != xNONE; then
2074 ac_site_file1=$prefix/share/config.site
2075 ac_site_file2=$prefix/etc/config.site
2076 else
2077 ac_site_file1=$ac_default_prefix/share/config.site
2078 ac_site_file2=$ac_default_prefix/etc/config.site
2079 fi
2080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2081 do
2082 test "x$ac_site_file" = xNONE && continue
2083 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2086 sed 's/^/| /' "$ac_site_file" >&5
2087 . "$ac_site_file" \
2088 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2090 as_fn_error $? "failed to load site script $ac_site_file
2091 See \`config.log' for more details" "$LINENO" 5; }
2092 fi
2093 done
2094
2095 if test -r "$cache_file"; then
2096 # Some versions of bash will fail to source /dev/null (special files
2097 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2098 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100 $as_echo "$as_me: loading cache $cache_file" >&6;}
2101 case $cache_file in
2102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103 *) . "./$cache_file";;
2104 esac
2105 fi
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108 $as_echo "$as_me: creating cache $cache_file" >&6;}
2109 >$cache_file
2110 fi
2111
2112 # Check that the precious variables saved in the cache have kept the same
2113 # value.
2114 ac_cache_corrupted=false
2115 for ac_var in $ac_precious_vars; do
2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117 eval ac_new_set=\$ac_env_${ac_var}_set
2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119 eval ac_new_val=\$ac_env_${ac_var}_value
2120 case $ac_old_set,$ac_new_set in
2121 set,)
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2125 ,set)
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2129 ,);;
2130 *)
2131 if test "x$ac_old_val" != "x$ac_new_val"; then
2132 # differences in whitespace do not lead to failure.
2133 ac_old_val_w=`echo x $ac_old_val`
2134 ac_new_val_w=`echo x $ac_new_val`
2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138 ac_cache_corrupted=:
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142 eval $ac_var=\$ac_old_val
2143 fi
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2148 fi;;
2149 esac
2150 # Pass precious variables to config.status.
2151 if test "$ac_new_set" = set; then
2152 case $ac_new_val in
2153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 *) ac_arg=$ac_var=$ac_new_val ;;
2155 esac
2156 case " $ac_configure_args " in
2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2159 esac
2160 fi
2161 done
2162 if $ac_cache_corrupted; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168 fi
2169 ## -------------------- ##
2170 ## Main body of script. ##
2171 ## -------------------- ##
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
2181
2182 ac_config_headers="$ac_config_headers config.h"
2183
2184 am__api_version='1.11'
2185
2186 ac_aux_dir=
2187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2188 if test -f "$ac_dir/install-sh"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/install-sh -c"
2191 break
2192 elif test -f "$ac_dir/install.sh"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/install.sh -c"
2195 break
2196 elif test -f "$ac_dir/shtool"; then
2197 ac_aux_dir=$ac_dir
2198 ac_install_sh="$ac_aux_dir/shtool install -c"
2199 break
2200 fi
2201 done
2202 if test -z "$ac_aux_dir"; then
2203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2204 fi
2205
2206 # These three variables are undocumented and unsupported,
2207 # and are intended to be withdrawn in a future Autoconf release.
2208 # They can cause serious problems if a builder's source tree is in a directory
2209 # whose full name contains unusual characters.
2210 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2211 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2212 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2213
2214
2215 # Find a good install program. We prefer a C program (faster),
2216 # so one script is as good as another. But avoid the broken or
2217 # incompatible versions:
2218 # SysV /etc/install, /usr/sbin/install
2219 # SunOS /usr/etc/install
2220 # IRIX /sbin/install
2221 # AIX /bin/install
2222 # AmigaOS /C/install, which installs bootblocks on floppy discs
2223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2226 # OS/2's system install, which has a completely different semantic
2227 # ./install, which can be erroneously created by make from ./install.sh.
2228 # Reject install programs that cannot install multiple files.
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2230 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2231 if test -z "$INSTALL"; then
2232 if ${ac_cv_path_install+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 # Account for people who put trailing slashes in PATH elements.
2241 case $as_dir/ in @%:@((
2242 ./ | .// | /[cC]/* | \
2243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2244 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2245 /usr/ucb/* ) ;;
2246 *)
2247 # OSF1 and SCO ODT 3.0 have their own names for install.
2248 # Don't use installbsd from OSF since it installs stuff as root
2249 # by default.
2250 for ac_prog in ginstall scoinst install; do
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2253 if test $ac_prog = install &&
2254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255 # AIX install. It has an incompatible calling convention.
2256 :
2257 elif test $ac_prog = install &&
2258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259 # program-specific install script used by HP pwplus--don't use.
2260 :
2261 else
2262 rm -rf conftest.one conftest.two conftest.dir
2263 echo one > conftest.one
2264 echo two > conftest.two
2265 mkdir conftest.dir
2266 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2267 test -s conftest.one && test -s conftest.two &&
2268 test -s conftest.dir/conftest.one &&
2269 test -s conftest.dir/conftest.two
2270 then
2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2272 break 3
2273 fi
2274 fi
2275 fi
2276 done
2277 done
2278 ;;
2279 esac
2280
2281 done
2282 IFS=$as_save_IFS
2283
2284 rm -rf conftest.one conftest.two conftest.dir
2285
2286 fi
2287 if test "${ac_cv_path_install+set}" = set; then
2288 INSTALL=$ac_cv_path_install
2289 else
2290 # As a last resort, use the slow shell script. Don't cache a
2291 # value for INSTALL within a source directory, because that will
2292 # break other packages using the cache if that directory is
2293 # removed, or if the value is a relative name.
2294 INSTALL=$ac_install_sh
2295 fi
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2298 $as_echo "$INSTALL" >&6; }
2299
2300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2301 # It thinks the first close brace ends the variable substitution.
2302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2303
2304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2305
2306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2307
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2309 $as_echo_n "checking whether build environment is sane... " >&6; }
2310 # Just in case
2311 sleep 1
2312 echo timestamp > conftest.file
2313 # Reject unsafe characters in $srcdir or the absolute working directory
2314 # name. Accept space and tab only in the latter.
2315 am_lf='
2316 '
2317 case `pwd` in
2318 *[\\\"\#\$\&\'\`$am_lf]*)
2319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2320 esac
2321 case $srcdir in
2322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2323 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2324 esac
2325
2326 # Do `set' in a subshell so we don't clobber the current shell's
2327 # arguments. Must try -L first in case configure is actually a
2328 # symlink; some systems play weird games with the mod time of symlinks
2329 # (eg FreeBSD returns the mod time of the symlink's containing
2330 # directory).
2331 if (
2332 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2333 if test "$*" = "X"; then
2334 # -L didn't work.
2335 set X `ls -t "$srcdir/configure" conftest.file`
2336 fi
2337 rm -f conftest.file
2338 if test "$*" != "X $srcdir/configure conftest.file" \
2339 && test "$*" != "X conftest.file $srcdir/configure"; then
2340
2341 # If neither matched, then we have a broken ls. This can happen
2342 # if, for instance, CONFIG_SHELL is bash and it inherits a
2343 # broken ls alias from the environment. This has actually
2344 # happened. Such a system could not be considered "sane".
2345 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2346 alias in your environment" "$LINENO" 5
2347 fi
2348
2349 test "$2" = conftest.file
2350 )
2351 then
2352 # Ok.
2353 :
2354 else
2355 as_fn_error $? "newly created file is older than distributed files!
2356 Check your system clock" "$LINENO" 5
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359 $as_echo "yes" >&6; }
2360 test "$program_prefix" != NONE &&
2361 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362 # Use a double $ so make ignores it.
2363 test "$program_suffix" != NONE &&
2364 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2365 # Double any \ or $.
2366 # By default was `s,x,x', remove it if useless.
2367 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2368 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2369
2370 # expand $ac_aux_dir to an absolute path
2371 am_aux_dir=`cd $ac_aux_dir && pwd`
2372
2373 if test x"${MISSING+set}" != xset; then
2374 case $am_aux_dir in
2375 *\ * | *\ *)
2376 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2377 *)
2378 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2379 esac
2380 fi
2381 # Use eval to expand $SHELL
2382 if eval "$MISSING --run true"; then
2383 am_missing_run="$MISSING --run "
2384 else
2385 am_missing_run=
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2387 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2388 fi
2389
2390 if test x"${install_sh}" != xset; then
2391 case $am_aux_dir in
2392 *\ * | *\ *)
2393 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2394 *)
2395 install_sh="\${SHELL} $am_aux_dir/install-sh"
2396 esac
2397 fi
2398
2399 # Installed binaries are usually stripped using `strip' when the user
2400 # run `make install-strip'. However `strip' might not be the right
2401 # tool to use in cross-compilation environments, therefore Automake
2402 # will honor the `STRIP' environment variable to overrule this program.
2403 if test "$cross_compiling" != no; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}strip; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_STRIP+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$STRIP"; then
2413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431 fi
2432 STRIP=$ac_cv_prog_STRIP
2433 if test -n "$STRIP"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2435 $as_echo "$STRIP" >&6; }
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2440
2441
2442 fi
2443 if test -z "$ac_cv_prog_STRIP"; then
2444 ac_ct_STRIP=$STRIP
2445 # Extract the first word of "strip", so it can be a program name with args.
2446 set dummy strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$ac_ct_STRIP"; then
2453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_ac_ct_STRIP="strip"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2473 if test -n "$ac_ct_STRIP"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2475 $as_echo "$ac_ct_STRIP" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481 if test "x$ac_ct_STRIP" = x; then
2482 STRIP=":"
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490 STRIP=$ac_ct_STRIP
2491 fi
2492 else
2493 STRIP="$ac_cv_prog_STRIP"
2494 fi
2495
2496 fi
2497 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2500 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2501 if test -z "$MKDIR_P"; then
2502 if ${ac_cv_path_mkdir+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_prog in mkdir gmkdir; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2513 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2514 'mkdir (GNU coreutils) '* | \
2515 'mkdir (coreutils) '* | \
2516 'mkdir (fileutils) '4.1*)
2517 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2518 break 3;;
2519 esac
2520 done
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526
2527 test -d ./--version && rmdir ./--version
2528 if test "${ac_cv_path_mkdir+set}" = set; then
2529 MKDIR_P="$ac_cv_path_mkdir -p"
2530 else
2531 # As a last resort, use the slow shell script. Don't cache a
2532 # value for MKDIR_P within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the value is a relative name.
2535 MKDIR_P="$ac_install_sh -d"
2536 fi
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2539 $as_echo "$MKDIR_P" >&6; }
2540
2541 mkdir_p="$MKDIR_P"
2542 case $mkdir_p in
2543 [\\/$]* | ?:[\\/]*) ;;
2544 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2545 esac
2546
2547 for ac_prog in gawk mawk nawk awk
2548 do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_AWK+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$AWK"; then
2557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_AWK="$ac_prog"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 AWK=$ac_cv_prog_AWK
2577 if test -n "$AWK"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2579 $as_echo "$AWK" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 test -n "$AWK" && break
2587 done
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2590 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2591 set x ${MAKE-make}
2592 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2593 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 cat >conftest.make <<\_ACEOF
2597 SHELL = /bin/sh
2598 all:
2599 @echo '@@@%%%=$(MAKE)=@@@%%%'
2600 _ACEOF
2601 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2602 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2603 *@@@%%%=?*=@@@%%%*)
2604 eval ac_cv_prog_make_${ac_make}_set=yes;;
2605 *)
2606 eval ac_cv_prog_make_${ac_make}_set=no;;
2607 esac
2608 rm -f conftest.make
2609 fi
2610 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612 $as_echo "yes" >&6; }
2613 SET_MAKE=
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 SET_MAKE="MAKE=${MAKE-make}"
2618 fi
2619
2620 rm -rf .tst 2>/dev/null
2621 mkdir .tst 2>/dev/null
2622 if test -d .tst; then
2623 am__leading_dot=.
2624 else
2625 am__leading_dot=_
2626 fi
2627 rmdir .tst 2>/dev/null
2628
2629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2631 # is not polluted with repeated "-I."
2632 am__isrc=' -I$(srcdir)'
2633 # test to see if srcdir already configured
2634 if test -f $srcdir/config.status; then
2635 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2636 fi
2637 fi
2638
2639 # test whether we have cygpath
2640 if test -z "$CYGPATH_W"; then
2641 if (cygpath --version) >/dev/null 2>/dev/null; then
2642 CYGPATH_W='cygpath -w'
2643 else
2644 CYGPATH_W=echo
2645 fi
2646 fi
2647
2648
2649 # Define the identity of the package.
2650 PACKAGE='shairplay'
2651 VERSION='0.9.0'
2652
2653
2654 cat >>confdefs.h <<_ACEOF
2655 @%:@define PACKAGE "$PACKAGE"
2656 _ACEOF
2657
2658
2659 cat >>confdefs.h <<_ACEOF
2660 @%:@define VERSION "$VERSION"
2661 _ACEOF
2662
2663 # Some tools Automake needs.
2664
2665 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2666
2667
2668 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2669
2670
2671 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2672
2673
2674 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2675
2676
2677 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2678
2679 # We need awk for the "check" target. The system "awk" is bad on
2680 # some platforms.
2681 # Always define AMTAR for backward compatibility. Yes, it's still used
2682 # in the wild :-( We should find a proper way to deprecate it ...
2683 AMTAR='$${TAR-tar}'
2684
2685 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2686
2687
2688
2689
2690
2691
2692 # Checks for programs.
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_CC+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736 fi
2737 if test -z "$ac_cv_prog_CC"; then
2738 ac_ct_CC=$CC
2739 # Extract the first word of "gcc", so it can be a program name with args.
2740 set dummy gcc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_ac_ct_CC="gcc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2769 $as_echo "$ac_ct_CC" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775 if test "x$ac_ct_CC" = x; then
2776 CC=""
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784 CC=$ac_ct_CC
2785 fi
2786 else
2787 CC="$ac_cv_prog_CC"
2788 fi
2789
2790 if test -z "$CC"; then
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}cc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_CC="${ac_tool_prefix}cc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 fi
2831 if test -z "$CC"; then
2832 # Extract the first word of "cc", so it can be a program name with args.
2833 set dummy cc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 ac_prog_rejected=no
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851 ac_prog_rejected=yes
2852 continue
2853 fi
2854 ac_cv_prog_CC="cc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 if test $ac_prog_rejected = yes; then
2863 # We found a bogon in the path, so make sure we never use it.
2864 set dummy $ac_cv_prog_CC
2865 shift
2866 if test $@%:@ != 0; then
2867 # We chose a different compiler from the bogus one.
2868 # However, it has the same basename, so the bogon will be chosen
2869 # first if we set CC to just the basename; use the full file name.
2870 shift
2871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2872 fi
2873 fi
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in cl.exe
2890 do
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928 test -n "$CC" && break
2929 done
2930 fi
2931 if test -z "$CC"; then
2932 ac_ct_CC=$CC
2933 for ac_prog in cl.exe
2934 do
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_ac_ct_CC="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 test -n "$ac_ct_CC" && break
2973 done
2974
2975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned=yes ;;
2983 esac
2984 CC=$ac_ct_CC
2985 fi
2986 fi
2987
2988 fi
2989
2990
2991 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error $? "no acceptable C compiler found in \$PATH
2994 See \`config.log' for more details" "$LINENO" 5; }
2995
2996 # Provide some information about the compiler.
2997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2998 set X $ac_compile
2999 ac_compiler=$2
3000 for ac_option in --version -v -V -qversion; do
3001 { { ac_try="$ac_compiler $ac_option >&5"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3009 ac_status=$?
3010 if test -s conftest.err; then
3011 sed '10a\
3012 ... rest of stderr output deleted ...
3013 10q' conftest.err >conftest.er1
3014 cat conftest.er1 >&5
3015 fi
3016 rm -f conftest.er1 conftest.err
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }
3019 done
3020
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main ()
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 ac_clean_files_save=$ac_clean_files
3033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3034 # Try to create an executable without -o first, disregard a.out.
3035 # It will help us diagnose broken compilers, and finding out an intuition
3036 # of exeext.
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3038 $as_echo_n "checking whether the C compiler works... " >&6; }
3039 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040
3041 # The possible output files:
3042 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043
3044 ac_rmfiles=
3045 for ac_file in $ac_files
3046 do
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3050 esac
3051 done
3052 rm -f $ac_rmfiles
3053
3054 if { { ac_try="$ac_link_default"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link_default") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3068 # so that the user can short-circuit this test for compilers unknown to
3069 # Autoconf.
3070 for ac_file in $ac_files ''
3071 do
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3075 ;;
3076 [ab].out )
3077 # We found the default executable, but exeext='' is most
3078 # certainly right.
3079 break;;
3080 *.* )
3081 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3082 then :; else
3083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 fi
3085 # We set ac_cv_exeext here because the later test for it is not
3086 # safe: cross compilers may not add the suffix if given an `-o'
3087 # argument, so we may need to know it at that point already.
3088 # Even if this section looks crufty: it has the advantage of
3089 # actually working.
3090 break;;
3091 * )
3092 break;;
3093 esac
3094 done
3095 test "$ac_cv_exeext" = no && ac_cv_exeext=
3096
3097 else
3098 ac_file=''
3099 fi
3100 if test -z "$ac_file"; then :
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error 77 "C compiler cannot create executables
3109 See \`config.log' for more details" "$LINENO" 5; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3115 $as_echo_n "checking for C compiler default output file name... " >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3117 $as_echo "$ac_file" >&6; }
3118 ac_exeext=$ac_cv_exeext
3119
3120 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3121 ac_clean_files=$ac_clean_files_save
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123 $as_echo_n "checking for suffix of executables... " >&6; }
3124 if { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3137 # work properly (i.e., refer to `conftest.exe'), while it won't with
3138 # `rm'.
3139 for ac_file in conftest.exe conftest conftest.*; do
3140 test -f "$ac_file" || continue
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 break;;
3145 * ) break;;
3146 esac
3147 done
3148 else
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3152 See \`config.log' for more details" "$LINENO" 5; }
3153 fi
3154 rm -f conftest conftest$ac_cv_exeext
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156 $as_echo "$ac_cv_exeext" >&6; }
3157
3158 rm -f conftest.$ac_ext
3159 EXEEXT=$ac_cv_exeext
3160 ac_exeext=$EXEEXT
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163 @%:@include <stdio.h>
3164 int
3165 main ()
3166 {
3167 FILE *f = fopen ("conftest.out", "w");
3168 return ferror (f) || fclose (f) != 0;
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 ac_clean_files="$ac_clean_files conftest.out"
3175 # Check that the compiler produces executables we can run. If not, either
3176 # the compiler is broken, or we cross compile.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3178 $as_echo_n "checking whether we are cross compiling... " >&6; }
3179 if test "$cross_compiling" != yes; then
3180 { { ac_try="$ac_link"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_link") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }
3191 if { ac_try='./conftest$ac_cv_exeext'
3192 { { case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; }; then
3202 cross_compiling=no
3203 else
3204 if test "$cross_compiling" = maybe; then
3205 cross_compiling=yes
3206 else
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "cannot run C compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details" "$LINENO" 5; }
3212 fi
3213 fi
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3216 $as_echo "$cross_compiling" >&6; }
3217
3218 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3219 ac_clean_files=$ac_clean_files_save
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3221 $as_echo_n "checking for suffix of object files... " >&6; }
3222 if ${ac_cv_objext+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.o conftest.obj
3237 if { { ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_compile") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 for ac_file in conftest.o conftest.obj conftest.*; do
3249 test -f "$ac_file" || continue;
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3253 break;;
3254 esac
3255 done
3256 else
3257 $as_echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot compute suffix of object files: cannot compile
3263 See \`config.log' for more details" "$LINENO" 5; }
3264 fi
3265 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3268 $as_echo "$ac_cv_objext" >&6; }
3269 OBJEXT=$ac_cv_objext
3270 ac_objext=$OBJEXT
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3272 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3273 if ${ac_cv_c_compiler_gnu+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278
3279 int
3280 main ()
3281 {
3282 #ifndef __GNUC__
3283 choke me
3284 #endif
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 if ac_fn_c_try_compile "$LINENO"; then :
3291 ac_compiler_gnu=yes
3292 else
3293 ac_compiler_gnu=no
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3300 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3301 if test $ac_compiler_gnu = yes; then
3302 GCC=yes
3303 else
3304 GCC=
3305 fi
3306 ac_test_CFLAGS=${CFLAGS+set}
3307 ac_save_CFLAGS=$CFLAGS
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3309 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3310 if ${ac_cv_prog_cc_g+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 ac_save_c_werror_flag=$ac_c_werror_flag
3314 ac_c_werror_flag=yes
3315 ac_cv_prog_cc_g=no
3316 CFLAGS="-g"
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319
3320 int
3321 main ()
3322 {
3323
3324 ;
3325 return 0;
3326 }
3327 _ACEOF
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_g=yes
3330 else
3331 CFLAGS=""
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334
3335 int
3336 main ()
3337 {
3338
3339 ;
3340 return 0;
3341 }
3342 _ACEOF
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344
3345 else
3346 ac_c_werror_flag=$ac_save_c_werror_flag
3347 CFLAGS="-g"
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 if ac_fn_c_try_compile "$LINENO"; then :
3360 ac_cv_prog_cc_g=yes
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3370 $as_echo "$ac_cv_prog_cc_g" >&6; }
3371 if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS=$ac_save_CFLAGS
3373 elif test $ac_cv_prog_cc_g = yes; then
3374 if test "$GCC" = yes; then
3375 CFLAGS="-g -O2"
3376 else
3377 CFLAGS="-g"
3378 fi
3379 else
3380 if test "$GCC" = yes; then
3381 CFLAGS="-O2"
3382 else
3383 CFLAGS=
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3387 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3388 if ${ac_cv_prog_cc_c89+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 ac_cv_prog_cc_c89=no
3392 ac_save_CC=$CC
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395 #include <stdarg.h>
3396 #include <stdio.h>
3397 struct stat;
3398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3402 char **p;
3403 int i;
3404 {
3405 return p[i];
3406 }
3407 static char *f (char * (*g) (char **, int), char **p, ...)
3408 {
3409 char *s;
3410 va_list v;
3411 va_start (v,p);
3412 s = g (p, va_arg (v,int));
3413 va_end (v);
3414 return s;
3415 }
3416
3417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
3420 as 'x'. The following induces an error, until -std is added to get
3421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
3423 that's true only with -std. */
3424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
3426 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427 inside strings and character constants. */
3428 #define FOO(x) 'x'
3429 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
3431 int test (int i, double x);
3432 struct s1 {int (*f) (int a);};
3433 struct s2 {int (*f) (double a);};
3434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 int argc;
3436 char **argv;
3437 int
3438 main ()
3439 {
3440 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447 do
3448 CC="$ac_save_CC $ac_arg"
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450 ac_cv_prog_cc_c89=$ac_arg
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext
3453 test "x$ac_cv_prog_cc_c89" != "xno" && break
3454 done
3455 rm -f conftest.$ac_ext
3456 CC=$ac_save_CC
3457
3458 fi
3459 # AC_CACHE_VAL
3460 case "x$ac_cv_prog_cc_c89" in
3461 x)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3463 $as_echo "none needed" >&6; } ;;
3464 xno)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3466 $as_echo "unsupported" >&6; } ;;
3467 *)
3468 CC="$CC $ac_cv_prog_cc_c89"
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3470 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3471 esac
3472 if test "x$ac_cv_prog_cc_c89" != xno; then :
3473
3474 fi
3475
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 DEPDIR="${am__leading_dot}deps"
3482
3483 ac_config_commands="$ac_config_commands depfiles"
3484
3485
3486 am_make=${MAKE-make}
3487 cat > confinc << 'END'
3488 am__doit:
3489 @echo this is the am__doit target
3490 .PHONY: am__doit
3491 END
3492 # If we don't find an include directive, just comment out the code.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3494 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3495 am__include="#"
3496 am__quote=
3497 _am_result=none
3498 # First try GNU make style include.
3499 echo "include confinc" > confmf
3500 # Ignore all kinds of additional output from `make'.
3501 case `$am_make -s -f confmf 2> /dev/null` in #(
3502 *the\ am__doit\ target*)
3503 am__include=include
3504 am__quote=
3505 _am_result=GNU
3506 ;;
3507 esac
3508 # Now try BSD make style include.
3509 if test "$am__include" = "#"; then
3510 echo '.include "confinc"' > confmf
3511 case `$am_make -s -f confmf 2> /dev/null` in #(
3512 *the\ am__doit\ target*)
3513 am__include=.include
3514 am__quote="\""
3515 _am_result=BSD
3516 ;;
3517 esac
3518 fi
3519
3520
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3522 $as_echo "$_am_result" >&6; }
3523 rm -f confinc confmf
3524
3525 @%:@ Check whether --enable-dependency-tracking was given.
3526 if test "${enable_dependency_tracking+set}" = set; then :
3527 enableval=$enable_dependency_tracking;
3528 fi
3529
3530 if test "x$enable_dependency_tracking" != xno; then
3531 am_depcomp="$ac_aux_dir/depcomp"
3532 AMDEPBACKSLASH='\'
3533 am__nodep='_no'
3534 fi
3535 if test "x$enable_dependency_tracking" != xno; then
3536 AMDEP_TRUE=
3537 AMDEP_FALSE='#'
3538 else
3539 AMDEP_TRUE='#'
3540 AMDEP_FALSE=
3541 fi
3542
3543
3544
3545 depcc="$CC" am_compiler_list=
3546
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3548 $as_echo_n "checking dependency style of $depcc... " >&6; }
3549 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3553 # We make a subdir and do the tests there. Otherwise we can end up
3554 # making bogus files that we don't know about and never remove. For
3555 # instance it was reported that on HP-UX the gcc test will end up
3556 # making a dummy file named `D' -- because `-MD' means `put the output
3557 # in D'.
3558 rm -rf conftest.dir
3559 mkdir conftest.dir
3560 # Copy depcomp to subdir because otherwise we won't find it if we're
3561 # using a relative directory.
3562 cp "$am_depcomp" conftest.dir
3563 cd conftest.dir
3564 # We will build objects and dependencies in a subdirectory because
3565 # it helps to detect inapplicable dependency modes. For instance
3566 # both Tru64's cc and ICC support -MD to output dependencies as a
3567 # side effect of compilation, but ICC will put the dependencies in
3568 # the current directory while Tru64 will put them in the object
3569 # directory.
3570 mkdir sub
3571
3572 am_cv_CC_dependencies_compiler_type=none
3573 if test "$am_compiler_list" = ""; then
3574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3575 fi
3576 am__universal=false
3577 case " $depcc " in #(
3578 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3579 esac
3580
3581 for depmode in $am_compiler_list; do
3582 # Setup a source with many dependencies, because some compilers
3583 # like to wrap large dependency lists on column 80 (with \), and
3584 # we should not choose a depcomp mode which is confused by this.
3585 #
3586 # We need to recreate these files for each test, as the compiler may
3587 # overwrite some of them when testing with obscure command lines.
3588 # This happens at least with the AIX C compiler.
3589 : > sub/conftest.c
3590 for i in 1 2 3 4 5 6; do
3591 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3592 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3593 # Solaris 8's {/usr,}/bin/sh.
3594 touch sub/conftst$i.h
3595 done
3596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3597
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this. Also, some Intel
3601 # versions had trouble with output in subdirs
3602 am__obj=sub/conftest.${OBJEXT-o}
3603 am__minus_obj="-o $am__obj"
3604 case $depmode in
3605 gcc)
3606 # This depmode causes a compiler race in universal mode.
3607 test "$am__universal" = false || continue
3608 ;;
3609 nosideeffect)
3610 # after this tag, mechanisms are not by side-effect, so they'll
3611 # only be used when explicitly requested
3612 if test "x$enable_dependency_tracking" = xyes; then
3613 continue
3614 else
3615 break
3616 fi
3617 ;;
3618 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3619 # This compiler won't grok `-c -o', but also, the minuso test has
3620 # not run yet. These depmodes are late enough in the game, and
3621 # so weak that their functioning should not be impacted.
3622 am__obj=conftest.${OBJEXT-o}
3623 am__minus_obj=
3624 ;;
3625 none) break ;;
3626 esac
3627 if depmode=$depmode \
3628 source=sub/conftest.c object=$am__obj \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
3632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err ||
3644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645 am_cv_CC_dependencies_compiler_type=$depmode
3646 break
3647 fi
3648 fi
3649 done
3650
3651 cd ..
3652 rm -rf conftest.dir
3653 else
3654 am_cv_CC_dependencies_compiler_type=none
3655 fi
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3659 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3660 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3661
3662 if
3663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_TRUE=
3666 am__fastdepCC_FALSE='#'
3667 else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3670 fi
3671
3672
3673 case `pwd` in
3674 *\ * | *\ *)
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3676 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3677 esac
3678
3679
3680
3681 macro_version='2.4.2'
3682 macro_revision='1.3337'
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696 ltmain="$ac_aux_dir/ltmain.sh"
3697
3698 # Make sure we can run config.sub.
3699 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3700 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3701
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3703 $as_echo_n "checking build system type... " >&6; }
3704 if ${ac_cv_build+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_build_alias=$build_alias
3708 test "x$ac_build_alias" = x &&
3709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3710 test "x$ac_build_alias" = x &&
3711 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3712 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3714
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3717 $as_echo "$ac_cv_build" >&6; }
3718 case $ac_cv_build in
3719 *-*-*) ;;
3720 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3721 esac
3722 build=$ac_cv_build
3723 ac_save_IFS=$IFS; IFS='-'
3724 set x $ac_cv_build
3725 shift
3726 build_cpu=$1
3727 build_vendor=$2
3728 shift; shift
3729 # Remember, the first character of IFS is used to create $*,
3730 # except with old shells:
3731 build_os=$*
3732 IFS=$ac_save_IFS
3733 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3734
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3737 $as_echo_n "checking host system type... " >&6; }
3738 if ${ac_cv_host+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test "x$host_alias" = x; then
3742 ac_cv_host=$ac_cv_build
3743 else
3744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3746 fi
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3750 $as_echo "$ac_cv_host" >&6; }
3751 case $ac_cv_host in
3752 *-*-*) ;;
3753 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3754 esac
3755 host=$ac_cv_host
3756 ac_save_IFS=$IFS; IFS='-'
3757 set x $ac_cv_host
3758 shift
3759 host_cpu=$1
3760 host_vendor=$2
3761 shift; shift
3762 # Remember, the first character of IFS is used to create $*,
3763 # except with old shells:
3764 host_os=$*
3765 IFS=$ac_save_IFS
3766 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3767
3768
3769 # Backslashify metacharacters that are still active within
3770 # double-quoted strings.
3771 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3772
3773 # Same as above, but do not quote variable references.
3774 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3775
3776 # Sed substitution to delay expansion of an escaped shell variable in a
3777 # double_quote_subst'ed string.
3778 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3779
3780 # Sed substitution to delay expansion of an escaped single quote.
3781 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3782
3783 # Sed substitution to avoid accidental globbing in evaled expressions
3784 no_glob_subst='s/\*/\\\*/g'
3785
3786 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3787 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3788 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3789
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3791 $as_echo_n "checking how to print strings... " >&6; }
3792 # Test print first, because it will be a builtin if present.
3793 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3794 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3795 ECHO='print -r --'
3796 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3797 ECHO='printf %s\n'
3798 else
3799 # Use this function as a fallback that always works.
3800 func_fallback_echo ()
3801 {
3802 eval 'cat <<_LTECHO_EOF
3803 $1
3804 _LTECHO_EOF'
3805 }
3806 ECHO='func_fallback_echo'
3807 fi
3808
3809 # func_echo_all arg...
3810 # Invoke $ECHO with all args, space-separated.
3811 func_echo_all ()
3812 {
3813 $ECHO ""
3814 }
3815
3816 case "$ECHO" in
3817 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3818 $as_echo "printf" >&6; } ;;
3819 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3820 $as_echo "print -r" >&6; } ;;
3821 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3822 $as_echo "cat" >&6; } ;;
3823 esac
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3839 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3840 if ${ac_cv_path_SED+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3844 for ac_i in 1 2 3 4 5 6 7; do
3845 ac_script="$ac_script$as_nl$ac_script"
3846 done
3847 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3848 { ac_script=; unset ac_script;}
3849 if test -z "$SED"; then
3850 ac_path_SED_found=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in sed gsed; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3860 as_fn_executable_p "$ac_path_SED" || continue
3861 # Check for GNU ac_path_SED and select it if it is found.
3862 # Check for GNU $ac_path_SED
3863 case `"$ac_path_SED" --version 2>&1` in
3864 *GNU*)
3865 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3866 *)
3867 ac_count=0
3868 $as_echo_n 0123456789 >"conftest.in"
3869 while :
3870 do
3871 cat "conftest.in" "conftest.in" >"conftest.tmp"
3872 mv "conftest.tmp" "conftest.in"
3873 cp "conftest.in" "conftest.nl"
3874 $as_echo '' >> "conftest.nl"
3875 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877 as_fn_arith $ac_count + 1 && ac_count=$as_val
3878 if test $ac_count -gt ${ac_path_SED_max-0}; then
3879 # Best one so far, save it but keep looking for a better one
3880 ac_cv_path_SED="$ac_path_SED"
3881 ac_path_SED_max=$ac_count
3882 fi
3883 # 10*(2^10) chars as input seems more than enough
3884 test $ac_count -gt 10 && break
3885 done
3886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887 esac
3888
3889 $ac_path_SED_found && break 3
3890 done
3891 done
3892 done
3893 IFS=$as_save_IFS
3894 if test -z "$ac_cv_path_SED"; then
3895 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3896 fi
3897 else
3898 ac_cv_path_SED=$SED
3899 fi
3900
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3903 $as_echo "$ac_cv_path_SED" >&6; }
3904 SED="$ac_cv_path_SED"
3905 rm -f conftest.sed
3906
3907 test -z "$SED" && SED=sed
3908 Xsed="$SED -e 1s/^X//"
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3921 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3922 if ${ac_cv_path_GREP+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -z "$GREP"; then
3926 ac_path_GREP_found=false
3927 # Loop through the user's path and test for each of PROGNAME-LIST
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_prog in grep ggrep; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3936 as_fn_executable_p "$ac_path_GREP" || continue
3937 # Check for GNU ac_path_GREP and select it if it is found.
3938 # Check for GNU $ac_path_GREP
3939 case `"$ac_path_GREP" --version 2>&1` in
3940 *GNU*)
3941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3942 *)
3943 ac_count=0
3944 $as_echo_n 0123456789 >"conftest.in"
3945 while :
3946 do
3947 cat "conftest.in" "conftest.in" >"conftest.tmp"
3948 mv "conftest.tmp" "conftest.in"
3949 cp "conftest.in" "conftest.nl"
3950 $as_echo 'GREP' >> "conftest.nl"
3951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953 as_fn_arith $ac_count + 1 && ac_count=$as_val
3954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3955 # Best one so far, save it but keep looking for a better one
3956 ac_cv_path_GREP="$ac_path_GREP"
3957 ac_path_GREP_max=$ac_count
3958 fi
3959 # 10*(2^10) chars as input seems more than enough
3960 test $ac_count -gt 10 && break
3961 done
3962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 esac
3964
3965 $ac_path_GREP_found && break 3
3966 done
3967 done
3968 done
3969 IFS=$as_save_IFS
3970 if test -z "$ac_cv_path_GREP"; then
3971 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3972 fi
3973 else
3974 ac_cv_path_GREP=$GREP
3975 fi
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3979 $as_echo "$ac_cv_path_GREP" >&6; }
3980 GREP="$ac_cv_path_GREP"
3981
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3984 $as_echo_n "checking for egrep... " >&6; }
3985 if ${ac_cv_path_EGREP+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3989 then ac_cv_path_EGREP="$GREP -E"
3990 else
3991 if test -z "$EGREP"; then
3992 ac_path_EGREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_prog in egrep; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4002 as_fn_executable_p "$ac_path_EGREP" || continue
4003 # Check for GNU ac_path_EGREP and select it if it is found.
4004 # Check for GNU $ac_path_EGREP
4005 case `"$ac_path_EGREP" --version 2>&1` in
4006 *GNU*)
4007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4008 *)
4009 ac_count=0
4010 $as_echo_n 0123456789 >"conftest.in"
4011 while :
4012 do
4013 cat "conftest.in" "conftest.in" >"conftest.tmp"
4014 mv "conftest.tmp" "conftest.in"
4015 cp "conftest.in" "conftest.nl"
4016 $as_echo 'EGREP' >> "conftest.nl"
4017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019 as_fn_arith $ac_count + 1 && ac_count=$as_val
4020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4021 # Best one so far, save it but keep looking for a better one
4022 ac_cv_path_EGREP="$ac_path_EGREP"
4023 ac_path_EGREP_max=$ac_count
4024 fi
4025 # 10*(2^10) chars as input seems more than enough
4026 test $ac_count -gt 10 && break
4027 done
4028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 esac
4030
4031 $ac_path_EGREP_found && break 3
4032 done
4033 done
4034 done
4035 IFS=$as_save_IFS
4036 if test -z "$ac_cv_path_EGREP"; then
4037 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4038 fi
4039 else
4040 ac_cv_path_EGREP=$EGREP
4041 fi
4042
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4046 $as_echo "$ac_cv_path_EGREP" >&6; }
4047 EGREP="$ac_cv_path_EGREP"
4048
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4051 $as_echo_n "checking for fgrep... " >&6; }
4052 if ${ac_cv_path_FGREP+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4056 then ac_cv_path_FGREP="$GREP -F"
4057 else
4058 if test -z "$FGREP"; then
4059 ac_path_FGREP_found=false
4060 # Loop through the user's path and test for each of PROGNAME-LIST
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4063 do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_prog in fgrep; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4069 as_fn_executable_p "$ac_path_FGREP" || continue
4070 # Check for GNU ac_path_FGREP and select it if it is found.
4071 # Check for GNU $ac_path_FGREP
4072 case `"$ac_path_FGREP" --version 2>&1` in
4073 *GNU*)
4074 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4075 *)
4076 ac_count=0
4077 $as_echo_n 0123456789 >"conftest.in"
4078 while :
4079 do
4080 cat "conftest.in" "conftest.in" >"conftest.tmp"
4081 mv "conftest.tmp" "conftest.in"
4082 cp "conftest.in" "conftest.nl"
4083 $as_echo 'FGREP' >> "conftest.nl"
4084 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086 as_fn_arith $ac_count + 1 && ac_count=$as_val
4087 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4088 # Best one so far, save it but keep looking for a better one
4089 ac_cv_path_FGREP="$ac_path_FGREP"
4090 ac_path_FGREP_max=$ac_count
4091 fi
4092 # 10*(2^10) chars as input seems more than enough
4093 test $ac_count -gt 10 && break
4094 done
4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096 esac
4097
4098 $ac_path_FGREP_found && break 3
4099 done
4100 done
4101 done
4102 IFS=$as_save_IFS
4103 if test -z "$ac_cv_path_FGREP"; then
4104 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4105 fi
4106 else
4107 ac_cv_path_FGREP=$FGREP
4108 fi
4109
4110 fi
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4113 $as_echo "$ac_cv_path_FGREP" >&6; }
4114 FGREP="$ac_cv_path_FGREP"
4115
4116
4117 test -z "$GREP" && GREP=grep
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137 @%:@ Check whether --with-gnu-ld was given.
4138 if test "${with_gnu_ld+set}" = set; then :
4139 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4140 else
4141 with_gnu_ld=no
4142 fi
4143
4144 ac_prog=ld
4145 if test "$GCC" = yes; then
4146 # Check if gcc -print-prog-name=ld gives a path.
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4148 $as_echo_n "checking for ld used by $CC... " >&6; }
4149 case $host in
4150 *-*-mingw*)
4151 # gcc leaves a trailing carriage return which upsets mingw
4152 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4153 *)
4154 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4155 esac
4156 case $ac_prog in
4157 # Accept absolute paths.
4158 [\\/]* | ?:[\\/]*)
4159 re_direlt='/[^/][^/]*/\.\./'
4160 # Canonicalize the pathname of ld
4161 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4162 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4163 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4164 done
4165 test -z "$LD" && LD="$ac_prog"
4166 ;;
4167 "")
4168 # If it fails, then pretend we aren't using GCC.
4169 ac_prog=ld
4170 ;;
4171 *)
4172 # If it is relative, then search for the first ld in PATH.
4173 with_gnu_ld=unknown
4174 ;;
4175 esac
4176 elif test "$with_gnu_ld" = yes; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4178 $as_echo_n "checking for GNU ld... " >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4181 $as_echo_n "checking for non-GNU ld... " >&6; }
4182 fi
4183 if ${lt_cv_path_LD+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -z "$LD"; then
4187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4188 for ac_dir in $PATH; do
4189 IFS="$lt_save_ifs"
4190 test -z "$ac_dir" && ac_dir=.
4191 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4192 lt_cv_path_LD="$ac_dir/$ac_prog"
4193 # Check to see if the program is GNU ld. I'd rather use --version,
4194 # but apparently some variants of GNU ld only accept -v.
4195 # Break only if it was the GNU/non-GNU ld that we prefer.
4196 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4197 *GNU* | *'with BFD'*)
4198 test "$with_gnu_ld" != no && break
4199 ;;
4200 *)
4201 test "$with_gnu_ld" != yes && break
4202 ;;
4203 esac
4204 fi
4205 done
4206 IFS="$lt_save_ifs"
4207 else
4208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4209 fi
4210 fi
4211
4212 LD="$lt_cv_path_LD"
4213 if test -n "$LD"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4215 $as_echo "$LD" >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 fi
4220 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4222 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4223 if ${lt_cv_prog_gnu_ld+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4227 case `$LD -v 2>&1 </dev/null` in
4228 *GNU* | *'with BFD'*)
4229 lt_cv_prog_gnu_ld=yes
4230 ;;
4231 *)
4232 lt_cv_prog_gnu_ld=no
4233 ;;
4234 esac
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4237 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4238 with_gnu_ld=$lt_cv_prog_gnu_ld
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4249 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4250 if ${lt_cv_path_NM+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$NM"; then
4254 # Let the user override the test.
4255 lt_cv_path_NM="$NM"
4256 else
4257 lt_nm_to_check="${ac_tool_prefix}nm"
4258 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4259 lt_nm_to_check="$lt_nm_to_check nm"
4260 fi
4261 for lt_tmp_nm in $lt_nm_to_check; do
4262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4263 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4264 IFS="$lt_save_ifs"
4265 test -z "$ac_dir" && ac_dir=.
4266 tmp_nm="$ac_dir/$lt_tmp_nm"
4267 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4268 # Check to see if the nm accepts a BSD-compat flag.
4269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4270 # nm: unknown option "B" ignored
4271 # Tru64's nm complains that /dev/null is an invalid object file
4272 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4273 */dev/null* | *'Invalid file or object type'*)
4274 lt_cv_path_NM="$tmp_nm -B"
4275 break
4276 ;;
4277 *)
4278 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4279 */dev/null*)
4280 lt_cv_path_NM="$tmp_nm -p"
4281 break
4282 ;;
4283 *)
4284 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4285 continue # so that we can try to find one that supports BSD flags
4286 ;;
4287 esac
4288 ;;
4289 esac
4290 fi
4291 done
4292 IFS="$lt_save_ifs"
4293 done
4294 : ${lt_cv_path_NM=no}
4295 fi
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4298 $as_echo "$lt_cv_path_NM" >&6; }
4299 if test "$lt_cv_path_NM" != "no"; then
4300 NM="$lt_cv_path_NM"
4301 else
4302 # Didn't find any BSD compatible name lister, look for dumpbin.
4303 if test -n "$DUMPBIN"; then :
4304 # Let the user override the test.
4305 else
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in dumpbin "link -dump"
4308 do
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_DUMPBIN+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$DUMPBIN"; then
4317 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 DUMPBIN=$ac_cv_prog_DUMPBIN
4337 if test -n "$DUMPBIN"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4339 $as_echo "$DUMPBIN" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346 test -n "$DUMPBIN" && break
4347 done
4348 fi
4349 if test -z "$DUMPBIN"; then
4350 ac_ct_DUMPBIN=$DUMPBIN
4351 for ac_prog in dumpbin "link -dump"
4352 do
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$ac_ct_DUMPBIN"; then
4361 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4381 if test -n "$ac_ct_DUMPBIN"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4383 $as_echo "$ac_ct_DUMPBIN" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390 test -n "$ac_ct_DUMPBIN" && break
4391 done
4392
4393 if test "x$ac_ct_DUMPBIN" = x; then
4394 DUMPBIN=":"
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402 DUMPBIN=$ac_ct_DUMPBIN
4403 fi
4404 fi
4405
4406 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4407 *COFF*)
4408 DUMPBIN="$DUMPBIN -symbols"
4409 ;;
4410 *)
4411 DUMPBIN=:
4412 ;;
4413 esac
4414 fi
4415
4416 if test "$DUMPBIN" != ":"; then
4417 NM="$DUMPBIN"
4418 fi
4419 fi
4420 test -z "$NM" && NM=nm
4421
4422
4423
4424
4425
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4428 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4429 if ${lt_cv_nm_interface+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 lt_cv_nm_interface="BSD nm"
4433 echo "int some_variable = 0;" > conftest.$ac_ext
4434 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4435 (eval "$ac_compile" 2>conftest.err)
4436 cat conftest.err >&5
4437 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4438 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4439 cat conftest.err >&5
4440 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4441 cat conftest.out >&5
4442 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4443 lt_cv_nm_interface="MS dumpbin"
4444 fi
4445 rm -f conftest*
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4448 $as_echo "$lt_cv_nm_interface" >&6; }
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4451 $as_echo_n "checking whether ln -s works... " >&6; }
4452 LN_S=$as_ln_s
4453 if test "$LN_S" = "ln -s"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455 $as_echo "yes" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4458 $as_echo "no, using $LN_S" >&6; }
4459 fi
4460
4461 # find the maximum length of command line arguments
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4463 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4464 if ${lt_cv_sys_max_cmd_len+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 i=0
4468 teststring="ABCD"
4469
4470 case $build_os in
4471 msdosdjgpp*)
4472 # On DJGPP, this test can blow up pretty badly due to problems in libc
4473 # (any single argument exceeding 2000 bytes causes a buffer overrun
4474 # during glob expansion). Even if it were fixed, the result of this
4475 # check would be larger than it should be.
4476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4477 ;;
4478
4479 gnu*)
4480 # Under GNU Hurd, this test is not required because there is
4481 # no limit to the length of command line arguments.
4482 # Libtool will interpret -1 as no limit whatsoever
4483 lt_cv_sys_max_cmd_len=-1;
4484 ;;
4485
4486 cygwin* | mingw* | cegcc*)
4487 # On Win9x/ME, this test blows up -- it succeeds, but takes
4488 # about 5 minutes as the teststring grows exponentially.
4489 # Worse, since 9x/ME are not pre-emptively multitasking,
4490 # you end up with a "frozen" computer, even though with patience
4491 # the test eventually succeeds (with a max line length of 256k).
4492 # Instead, let's just punt: use the minimum linelength reported by
4493 # all of the supported platforms: 8192 (on NT/2K/XP).
4494 lt_cv_sys_max_cmd_len=8192;
4495 ;;
4496
4497 mint*)
4498 # On MiNT this can take a long time and run out of memory.
4499 lt_cv_sys_max_cmd_len=8192;
4500 ;;
4501
4502 amigaos*)
4503 # On AmigaOS with pdksh, this test takes hours, literally.
4504 # So we just punt and use a minimum line length of 8192.
4505 lt_cv_sys_max_cmd_len=8192;
4506 ;;
4507
4508 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4509 # This has been around since 386BSD, at least. Likely further.
4510 if test -x /sbin/sysctl; then
4511 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4512 elif test -x /usr/sbin/sysctl; then
4513 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4514 else
4515 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4516 fi
4517 # And add a safety zone
4518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4520 ;;
4521
4522 interix*)
4523 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4524 lt_cv_sys_max_cmd_len=196608
4525 ;;
4526
4527 os2*)
4528 # The test takes a long time on OS/2.
4529 lt_cv_sys_max_cmd_len=8192
4530 ;;
4531
4532 osf*)
4533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4535 # nice to cause kernel panics so lets avoid the loop below.
4536 # First set a reasonable default.
4537 lt_cv_sys_max_cmd_len=16384
4538 #
4539 if test -x /sbin/sysconfig; then
4540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4541 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4542 esac
4543 fi
4544 ;;
4545 sco3.2v5*)
4546 lt_cv_sys_max_cmd_len=102400
4547 ;;
4548 sysv5* | sco5v6* | sysv4.2uw2*)
4549 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4550 if test -n "$kargmax"; then
4551 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4552 else
4553 lt_cv_sys_max_cmd_len=32768
4554 fi
4555 ;;
4556 *)
4557 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4558 if test -n "$lt_cv_sys_max_cmd_len"; then
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4561 else
4562 # Make teststring a little bigger before we do anything with it.
4563 # a 1K string should be a reasonable start.
4564 for i in 1 2 3 4 5 6 7 8 ; do
4565 teststring=$teststring$teststring
4566 done
4567 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4568 # If test is not a shell built-in, we'll probably end up computing a
4569 # maximum length that is only half of the actual maximum length, but
4570 # we can't tell.
4571 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4572 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4573 test $i != 17 # 1/2 MB should be enough
4574 do
4575 i=`expr $i + 1`
4576 teststring=$teststring$teststring
4577 done
4578 # Only check the string length outside the loop.
4579 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4580 teststring=
4581 # Add a significant safety factor because C++ compilers can tack on
4582 # massive amounts of additional arguments before passing them to the
4583 # linker. It appears as though 1/2 is a usable value.
4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4585 fi
4586 ;;
4587 esac
4588
4589 fi
4590
4591 if test -n $lt_cv_sys_max_cmd_len ; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4593 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4596 $as_echo "none" >&6; }
4597 fi
4598 max_cmd_len=$lt_cv_sys_max_cmd_len
4599
4600
4601
4602
4603
4604
4605 : ${CP="cp -f"}
4606 : ${MV="mv -f"}
4607 : ${RM="rm -f"}
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4610 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4611 # Try some XSI features
4612 xsi_shell=no
4613 ( _lt_dummy="a/b/c"
4614 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4615 = c,a/b,b/c, \
4616 && eval 'test $(( 1 + 1 )) -eq 2 \
4617 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4618 && xsi_shell=yes
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4620 $as_echo "$xsi_shell" >&6; }
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4624 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4625 lt_shell_append=no
4626 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4627 >/dev/null 2>&1 \
4628 && lt_shell_append=yes
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4630 $as_echo "$lt_shell_append" >&6; }
4631
4632
4633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4634 lt_unset=unset
4635 else
4636 lt_unset=false
4637 fi
4638
4639
4640
4641
4642
4643 # test EBCDIC or ASCII
4644 case `echo X|tr X '\101'` in
4645 A) # ASCII based system
4646 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4647 lt_SP2NL='tr \040 \012'
4648 lt_NL2SP='tr \015\012 \040\040'
4649 ;;
4650 *) # EBCDIC based system
4651 lt_SP2NL='tr \100 \n'
4652 lt_NL2SP='tr \r\n \100\100'
4653 ;;
4654 esac
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4665 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4666 if ${lt_cv_to_host_file_cmd+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 case $host in
4670 *-*-mingw* )
4671 case $build in
4672 *-*-mingw* ) # actually msys
4673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4674 ;;
4675 *-*-cygwin* )
4676 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4677 ;;
4678 * ) # otherwise, assume *nix
4679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4680 ;;
4681 esac
4682 ;;
4683 *-*-cygwin* )
4684 case $build in
4685 *-*-mingw* ) # actually msys
4686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4687 ;;
4688 *-*-cygwin* )
4689 lt_cv_to_host_file_cmd=func_convert_file_noop
4690 ;;
4691 * ) # otherwise, assume *nix
4692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4693 ;;
4694 esac
4695 ;;
4696 * ) # unhandled hosts (and "normal" native builds)
4697 lt_cv_to_host_file_cmd=func_convert_file_noop
4698 ;;
4699 esac
4700
4701 fi
4702
4703 to_host_file_cmd=$lt_cv_to_host_file_cmd
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4705 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4706
4707
4708
4709
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4712 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4713 if ${lt_cv_to_tool_file_cmd+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 #assume ordinary cross tools, or native build.
4717 lt_cv_to_tool_file_cmd=func_convert_file_noop
4718 case $host in
4719 *-*-mingw* )
4720 case $build in
4721 *-*-mingw* ) # actually msys
4722 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4723 ;;
4724 esac
4725 ;;
4726 esac
4727
4728 fi
4729
4730 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4732 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4733
4734
4735
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4739 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4740 if ${lt_cv_ld_reload_flag+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 lt_cv_ld_reload_flag='-r'
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4746 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4747 reload_flag=$lt_cv_ld_reload_flag
4748 case $reload_flag in
4749 "" | " "*) ;;
4750 *) reload_flag=" $reload_flag" ;;
4751 esac
4752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4753 case $host_os in
4754 cygwin* | mingw* | pw32* | cegcc*)
4755 if test "$GCC" != yes; then
4756 reload_cmds=false
4757 fi
4758 ;;
4759 darwin*)
4760 if test "$GCC" = yes; then
4761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762 else
4763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4764 fi
4765 ;;
4766 esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_OBJDUMP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$OBJDUMP"; then
4785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 OBJDUMP=$ac_cv_prog_OBJDUMP
4805 if test -n "$OBJDUMP"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4807 $as_echo "$OBJDUMP" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812
4813
4814 fi
4815 if test -z "$ac_cv_prog_OBJDUMP"; then
4816 ac_ct_OBJDUMP=$OBJDUMP
4817 # Extract the first word of "objdump", so it can be a program name with args.
4818 set dummy objdump; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -n "$ac_ct_OBJDUMP"; then
4825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4845 if test -n "$ac_ct_OBJDUMP"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4847 $as_echo "$ac_ct_OBJDUMP" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 fi
4852
4853 if test "x$ac_ct_OBJDUMP" = x; then
4854 OBJDUMP="false"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862 OBJDUMP=$ac_ct_OBJDUMP
4863 fi
4864 else
4865 OBJDUMP="$ac_cv_prog_OBJDUMP"
4866 fi
4867
4868 test -z "$OBJDUMP" && OBJDUMP=objdump
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4879 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4880 if ${lt_cv_deplibs_check_method+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 lt_cv_file_magic_cmd='$MAGIC_CMD'
4884 lt_cv_file_magic_test_file=
4885 lt_cv_deplibs_check_method='unknown'
4886 # Need to set the preceding variable on all platforms that support
4887 # interlibrary dependencies.
4888 # 'none' -- dependencies not supported.
4889 # `unknown' -- same as none, but documents that we really don't know.
4890 # 'pass_all' -- all dependencies passed with no checks.
4891 # 'test_compile' -- check by making test program.
4892 # 'file_magic [[regex]]' -- check by looking for files in library path
4893 # which responds to the $file_magic_cmd with a given extended regex.
4894 # If you have `file' or equivalent on your system and you're not sure
4895 # whether `pass_all' will *always* work, you probably want this one.
4896
4897 case $host_os in
4898 aix[4-9]*)
4899 lt_cv_deplibs_check_method=pass_all
4900 ;;
4901
4902 beos*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906 bsdi[45]*)
4907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4908 lt_cv_file_magic_cmd='/usr/bin/file -L'
4909 lt_cv_file_magic_test_file=/shlib/libc.so
4910 ;;
4911
4912 cygwin*)
4913 # func_win32_libid is a shell function defined in ltmain.sh
4914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4915 lt_cv_file_magic_cmd='func_win32_libid'
4916 ;;
4917
4918 mingw* | pw32*)
4919 # Base MSYS/MinGW do not provide the 'file' command needed by
4920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4921 # unless we find 'file', for example because we are cross-compiling.
4922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925 lt_cv_file_magic_cmd='func_win32_libid'
4926 else
4927 # Keep this pattern in sync with the one in func_win32_libid.
4928 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4929 lt_cv_file_magic_cmd='$OBJDUMP -f'
4930 fi
4931 ;;
4932
4933 cegcc*)
4934 # use the weaker test based on 'objdump'. See mingw*.
4935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4936 lt_cv_file_magic_cmd='$OBJDUMP -f'
4937 ;;
4938
4939 darwin* | rhapsody*)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942
4943 freebsd* | dragonfly*)
4944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4945 case $host_cpu in
4946 i*86 )
4947 # Not sure whether the presence of OpenBSD here was a mistake.
4948 # Let's accept both of them until this is cleared up.
4949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4950 lt_cv_file_magic_cmd=/usr/bin/file
4951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4952 ;;
4953 esac
4954 else
4955 lt_cv_deplibs_check_method=pass_all
4956 fi
4957 ;;
4958
4959 gnu*)
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
4962
4963 haiku*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
4967 hpux10.20* | hpux11*)
4968 lt_cv_file_magic_cmd=/usr/bin/file
4969 case $host_cpu in
4970 ia64*)
4971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4973 ;;
4974 hppa*64*)
4975 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]'
4976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4977 ;;
4978 *)
4979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4981 ;;
4982 esac
4983 ;;
4984
4985 interix[3-9]*)
4986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4988 ;;
4989
4990 irix5* | irix6* | nonstopux*)
4991 case $LD in
4992 *-32|*"-32 ") libmagic=32-bit;;
4993 *-n32|*"-n32 ") libmagic=N32;;
4994 *-64|*"-64 ") libmagic=64-bit;;
4995 *) libmagic=never-match;;
4996 esac
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 # This must be glibc/ELF.
5001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5002 lt_cv_deplibs_check_method=pass_all
5003 ;;
5004
5005 netbsd* | netbsdelf*-gnu)
5006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5008 else
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5010 fi
5011 ;;
5012
5013 newos6*)
5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5015 lt_cv_file_magic_cmd=/usr/bin/file
5016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5017 ;;
5018
5019 *nto* | *qnx*)
5020 lt_cv_deplibs_check_method=pass_all
5021 ;;
5022
5023 openbsd*)
5024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5026 else
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5028 fi
5029 ;;
5030
5031 osf3* | osf4* | osf5*)
5032 lt_cv_deplibs_check_method=pass_all
5033 ;;
5034
5035 rdos*)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039 solaris*)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042
5043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047 sysv4 | sysv4.3*)
5048 case $host_vendor in
5049 motorola)
5050 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]'
5051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5052 ;;
5053 ncr)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056 sequent)
5057 lt_cv_file_magic_cmd='/bin/file'
5058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5059 ;;
5060 sni)
5061 lt_cv_file_magic_cmd='/bin/file'
5062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5063 lt_cv_file_magic_test_file=/lib/libc.so
5064 ;;
5065 siemens)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068 pc)
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
5071 esac
5072 ;;
5073
5074 tpf*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077 esac
5078
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5082
5083 file_magic_glob=
5084 want_nocaseglob=no
5085 if test "$build" = "$host"; then
5086 case $host_os in
5087 mingw* | pw32*)
5088 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5089 want_nocaseglob=yes
5090 else
5091 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5092 fi
5093 ;;
5094 esac
5095 fi
5096
5097 file_magic_cmd=$lt_cv_file_magic_cmd
5098 deplibs_check_method=$lt_cv_deplibs_check_method
5099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_DLLTOOL+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$DLLTOOL"; then
5131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 DLLTOOL=$ac_cv_prog_DLLTOOL
5151 if test -n "$DLLTOOL"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5153 $as_echo "$DLLTOOL" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160 fi
5161 if test -z "$ac_cv_prog_DLLTOOL"; then
5162 ac_ct_DLLTOOL=$DLLTOOL
5163 # Extract the first word of "dlltool", so it can be a program name with args.
5164 set dummy dlltool; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$ac_ct_DLLTOOL"; then
5171 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5191 if test -n "$ac_ct_DLLTOOL"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5193 $as_echo "$ac_ct_DLLTOOL" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199 if test "x$ac_ct_DLLTOOL" = x; then
5200 DLLTOOL="false"
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208 DLLTOOL=$ac_ct_DLLTOOL
5209 fi
5210 else
5211 DLLTOOL="$ac_cv_prog_DLLTOOL"
5212 fi
5213
5214 test -z "$DLLTOOL" && DLLTOOL=dlltool
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5226 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5227 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 lt_cv_sharedlib_from_linklib_cmd='unknown'
5231
5232 case $host_os in
5233 cygwin* | mingw* | pw32* | cegcc*)
5234 # two different shell functions defined in ltmain.sh
5235 # decide which to use based on capabilities of $DLLTOOL
5236 case `$DLLTOOL --help 2>&1` in
5237 *--identify-strict*)
5238 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5239 ;;
5240 *)
5241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5242 ;;
5243 esac
5244 ;;
5245 *)
5246 # fallback: assume linklib IS sharedlib
5247 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5248 ;;
5249 esac
5250
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5253 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5254 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5255 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5256
5257
5258
5259
5260
5261
5262
5263
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in ar
5266 do
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_AR+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 if test -n "$AR"; then
5275 ac_cv_prog_AR="$AR" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 AR=$ac_cv_prog_AR
5295 if test -n "$AR"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5297 $as_echo "$AR" >&6; }
5298 else
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304 test -n "$AR" && break
5305 done
5306 fi
5307 if test -z "$AR"; then
5308 ac_ct_AR=$AR
5309 for ac_prog in ar
5310 do
5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_AR"; then
5319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_AR="$ac_prog"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5339 if test -n "$ac_ct_AR"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5341 $as_echo "$ac_ct_AR" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347
5348 test -n "$ac_ct_AR" && break
5349 done
5350
5351 if test "x$ac_ct_AR" = x; then
5352 AR="false"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360 AR=$ac_ct_AR
5361 fi
5362 fi
5363
5364 : ${AR=ar}
5365 : ${AR_FLAGS=cru}
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5378 $as_echo_n "checking for archiver @FILE support... " >&6; }
5379 if ${lt_cv_ar_at_file+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 lt_cv_ar_at_file=no
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385
5386 int
5387 main ()
5388 {
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 echo conftest.$ac_objext > conftest.lst
5396 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5398 (eval $lt_ar_try) 2>&5
5399 ac_status=$?
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 if test "$ac_status" -eq 0; then
5403 # Ensure the archiver fails upon bogus file names.
5404 rm -f conftest.$ac_objext libconftest.a
5405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5406 (eval $lt_ar_try) 2>&5
5407 ac_status=$?
5408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409 test $ac_status = 0; }
5410 if test "$ac_status" -ne 0; then
5411 lt_cv_ar_at_file=@
5412 fi
5413 fi
5414 rm -f conftest.* libconftest.a
5415
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5421 $as_echo "$lt_cv_ar_at_file" >&6; }
5422
5423 if test "x$lt_cv_ar_at_file" = xno; then
5424 archiver_list_spec=
5425 else
5426 archiver_list_spec=$lt_cv_ar_at_file
5427 fi
5428
5429
5430
5431
5432
5433
5434
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}strip; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_STRIP+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$STRIP"; then
5444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 STRIP=$ac_cv_prog_STRIP
5464 if test -n "$STRIP"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5466 $as_echo "$STRIP" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 if test -z "$ac_cv_prog_STRIP"; then
5475 ac_ct_STRIP=$STRIP
5476 # Extract the first word of "strip", so it can be a program name with args.
5477 set dummy strip; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$ac_ct_STRIP"; then
5484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_STRIP="strip"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497 done
5498 done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5504 if test -n "$ac_ct_STRIP"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5506 $as_echo "$ac_ct_STRIP" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512 if test "x$ac_ct_STRIP" = x; then
5513 STRIP=":"
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516 yes:)
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5520 esac
5521 STRIP=$ac_ct_STRIP
5522 fi
5523 else
5524 STRIP="$ac_cv_prog_STRIP"
5525 fi
5526
5527 test -z "$STRIP" && STRIP=:
5528
5529
5530
5531
5532
5533
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_RANLIB+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$RANLIB"; then
5543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 RANLIB=$ac_cv_prog_RANLIB
5563 if test -n "$RANLIB"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5565 $as_echo "$RANLIB" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571
5572 fi
5573 if test -z "$ac_cv_prog_RANLIB"; then
5574 ac_ct_RANLIB=$RANLIB
5575 # Extract the first word of "ranlib", so it can be a program name with args.
5576 set dummy ranlib; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$ac_ct_RANLIB"; then
5583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_RANLIB="ranlib"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5603 if test -n "$ac_ct_RANLIB"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5605 $as_echo "$ac_ct_RANLIB" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611 if test "x$ac_ct_RANLIB" = x; then
5612 RANLIB=":"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615 yes:)
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5619 esac
5620 RANLIB=$ac_ct_RANLIB
5621 fi
5622 else
5623 RANLIB="$ac_cv_prog_RANLIB"
5624 fi
5625
5626 test -z "$RANLIB" && RANLIB=:
5627
5628
5629
5630
5631
5632
5633 # Determine commands to create old-style static archives.
5634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5635 old_postinstall_cmds='chmod 644 $oldlib'
5636 old_postuninstall_cmds=
5637
5638 if test -n "$RANLIB"; then
5639 case $host_os in
5640 openbsd*)
5641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5642 ;;
5643 *)
5644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5645 ;;
5646 esac
5647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5648 fi
5649
5650 case $host_os in
5651 darwin*)
5652 lock_old_archive_extraction=yes ;;
5653 *)
5654 lock_old_archive_extraction=no ;;
5655 esac
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 # If no C compiler was specified, use CC.
5696 LTCC=${LTCC-"$CC"}
5697
5698 # If no C compiler flags were specified, use CFLAGS.
5699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5700
5701 # Allow CC to be a program name with arguments.
5702 compiler=$CC
5703
5704
5705 # Check for command to grab the raw symbol name followed by C symbol from nm.
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5707 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5708 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711
5712 # These are sane defaults that work on at least a few old systems.
5713 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5714
5715 # Character class describing NM global symbol codes.
5716 symcode='[BCDEGRST]'
5717
5718 # Regexp to match symbols that can be accessed directly from C.
5719 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5720
5721 # Define system-specific variables.
5722 case $host_os in
5723 aix*)
5724 symcode='[BCDT]'
5725 ;;
5726 cygwin* | mingw* | pw32* | cegcc*)
5727 symcode='[ABCDGISTW]'
5728 ;;
5729 hpux*)
5730 if test "$host_cpu" = ia64; then
5731 symcode='[ABCDEGRST]'
5732 fi
5733 ;;
5734 irix* | nonstopux*)
5735 symcode='[BCDEGRST]'
5736 ;;
5737 osf*)
5738 symcode='[BCDEGQRST]'
5739 ;;
5740 solaris*)
5741 symcode='[BDRT]'
5742 ;;
5743 sco3.2v5*)
5744 symcode='[DT]'
5745 ;;
5746 sysv4.2uw2*)
5747 symcode='[DT]'
5748 ;;
5749 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5750 symcode='[ABDT]'
5751 ;;
5752 sysv4)
5753 symcode='[DFNSTU]'
5754 ;;
5755 esac
5756
5757 # If we're using GNU nm, then use its standard symbol codes.
5758 case `$NM -V 2>&1` in
5759 *GNU* | *'with BFD'*)
5760 symcode='[ABCDGIRSTW]' ;;
5761 esac
5762
5763 # Transform an extracted symbol line into a proper C declaration.
5764 # Some systems (esp. on ia64) link data and code symbols differently,
5765 # so use this general approach.
5766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5767
5768 # Transform an extracted symbol line into symbol name and symbol address
5769 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5771
5772 # Handle CRLF in mingw tool chain
5773 opt_cr=
5774 case $build_os in
5775 mingw*)
5776 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5777 ;;
5778 esac
5779
5780 # Try without a prefix underscore, then with it.
5781 for ac_symprfx in "" "_"; do
5782
5783 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5784 symxfrm="\\1 $ac_symprfx\\2 \\2"
5785
5786 # Write the raw and C identifiers.
5787 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5788 # Fake it for dumpbin and say T for any non-static function
5789 # and D for any global variable.
5790 # Also find C++ and __fastcall symbols from MSVC++,
5791 # which start with @ or ?.
5792 lt_cv_sys_global_symbol_pipe="$AWK '"\
5793 " {last_section=section; section=\$ 3};"\
5794 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5795 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5796 " \$ 0!~/External *\|/{next};"\
5797 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5798 " {if(hide[section]) next};"\
5799 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5800 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5801 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5802 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5803 " ' prfx=^$ac_symprfx"
5804 else
5805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5806 fi
5807 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5808
5809 # Check to see that the pipe works correctly.
5810 pipe_works=no
5811
5812 rm -f conftest*
5813 cat > conftest.$ac_ext <<_LT_EOF
5814 #ifdef __cplusplus
5815 extern "C" {
5816 #endif
5817 char nm_test_var;
5818 void nm_test_func(void);
5819 void nm_test_func(void){}
5820 #ifdef __cplusplus
5821 }
5822 #endif
5823 int main(){nm_test_var='a';nm_test_func();return(0);}
5824 _LT_EOF
5825
5826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5827 (eval $ac_compile) 2>&5
5828 ac_status=$?
5829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5830 test $ac_status = 0; }; then
5831 # Now try to grab the symbols.
5832 nlist=conftest.nm
5833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5834 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; } && test -s "$nlist"; then
5838 # Try sorting and uniquifying the output.
5839 if sort "$nlist" | uniq > "$nlist"T; then
5840 mv -f "$nlist"T "$nlist"
5841 else
5842 rm -f "$nlist"T
5843 fi
5844
5845 # Make sure that we snagged all the symbols we need.
5846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5848 cat <<_LT_EOF > conftest.$ac_ext
5849 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5850 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5851 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5852 relocations are performed -- see ld's documentation on pseudo-relocs. */
5853 # define LT@&t@_DLSYM_CONST
5854 #elif defined(__osf__)
5855 /* This system does not cope well with relocations in const data. */
5856 # define LT@&t@_DLSYM_CONST
5857 #else
5858 # define LT@&t@_DLSYM_CONST const
5859 #endif
5860
5861 #ifdef __cplusplus
5862 extern "C" {
5863 #endif
5864
5865 _LT_EOF
5866 # Now generate the symbol file.
5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5868
5869 cat <<_LT_EOF >> conftest.$ac_ext
5870
5871 /* The mapping between symbol names and symbols. */
5872 LT@&t@_DLSYM_CONST struct {
5873 const char *name;
5874 void *address;
5875 }
5876 lt__PROGRAM__LTX_preloaded_symbols[] =
5877 {
5878 { "@PROGRAM@", (void *) 0 },
5879 _LT_EOF
5880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5881 cat <<\_LT_EOF >> conftest.$ac_ext
5882 {0, (void *) 0}
5883 };
5884
5885 /* This works around a problem in FreeBSD linker */
5886 #ifdef FREEBSD_WORKAROUND
5887 static const void *lt_preloaded_setup() {
5888 return lt__PROGRAM__LTX_preloaded_symbols;
5889 }
5890 #endif
5891
5892 #ifdef __cplusplus
5893 }
5894 #endif
5895 _LT_EOF
5896 # Now try linking the two files.
5897 mv conftest.$ac_objext conftstm.$ac_objext
5898 lt_globsym_save_LIBS=$LIBS
5899 lt_globsym_save_CFLAGS=$CFLAGS
5900 LIBS="conftstm.$ac_objext"
5901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5903 (eval $ac_link) 2>&5
5904 ac_status=$?
5905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5907 pipe_works=yes
5908 fi
5909 LIBS=$lt_globsym_save_LIBS
5910 CFLAGS=$lt_globsym_save_CFLAGS
5911 else
5912 echo "cannot find nm_test_func in $nlist" >&5
5913 fi
5914 else
5915 echo "cannot find nm_test_var in $nlist" >&5
5916 fi
5917 else
5918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5919 fi
5920 else
5921 echo "$progname: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 fi
5924 rm -rf conftest* conftst*
5925
5926 # Do not use the global_symbol_pipe unless it works.
5927 if test "$pipe_works" = yes; then
5928 break
5929 else
5930 lt_cv_sys_global_symbol_pipe=
5931 fi
5932 done
5933
5934 fi
5935
5936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5937 lt_cv_sys_global_symbol_to_cdecl=
5938 fi
5939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5941 $as_echo "failed" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5944 $as_echo "ok" >&6; }
5945 fi
5946
5947 # Response file support.
5948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5949 nm_file_list_spec='@'
5950 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5951 nm_file_list_spec='@'
5952 fi
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5981 $as_echo_n "checking for sysroot... " >&6; }
5982
5983 @%:@ Check whether --with-sysroot was given.
5984 if test "${with_sysroot+set}" = set; then :
5985 withval=$with_sysroot;
5986 else
5987 with_sysroot=no
5988 fi
5989
5990
5991 lt_sysroot=
5992 case ${with_sysroot} in #(
5993 yes)
5994 if test "$GCC" = yes; then
5995 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5996 fi
5997 ;; #(
5998 /*)
5999 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6000 ;; #(
6001 no|'')
6002 ;; #(
6003 *)
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6005 $as_echo "${with_sysroot}" >&6; }
6006 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6007 ;;
6008 esac
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6011 $as_echo "${lt_sysroot:-no}" >&6; }
6012
6013
6014
6015
6016
6017 @%:@ Check whether --enable-libtool-lock was given.
6018 if test "${enable_libtool_lock+set}" = set; then :
6019 enableval=$enable_libtool_lock;
6020 fi
6021
6022 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6023
6024 # Some flags need to be propagated to the compiler or linker for good
6025 # libtool support.
6026 case $host in
6027 ia64-*-hpux*)
6028 # Find out which ABI we are using.
6029 echo 'int i;' > conftest.$ac_ext
6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6031 (eval $ac_compile) 2>&5
6032 ac_status=$?
6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; }; then
6035 case `/usr/bin/file conftest.$ac_objext` in
6036 *ELF-32*)
6037 HPUX_IA64_MODE="32"
6038 ;;
6039 *ELF-64*)
6040 HPUX_IA64_MODE="64"
6041 ;;
6042 esac
6043 fi
6044 rm -rf conftest*
6045 ;;
6046 *-*-irix6*)
6047 # Find out which ABI we are using.
6048 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6050 (eval $ac_compile) 2>&5
6051 ac_status=$?
6052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6053 test $ac_status = 0; }; then
6054 if test "$lt_cv_prog_gnu_ld" = yes; then
6055 case `/usr/bin/file conftest.$ac_objext` in
6056 *32-bit*)
6057 LD="${LD-ld} -melf32bsmip"
6058 ;;
6059 *N32*)
6060 LD="${LD-ld} -melf32bmipn32"
6061 ;;
6062 *64-bit*)
6063 LD="${LD-ld} -melf64bmip"
6064 ;;
6065 esac
6066 else
6067 case `/usr/bin/file conftest.$ac_objext` in
6068 *32-bit*)
6069 LD="${LD-ld} -32"
6070 ;;
6071 *N32*)
6072 LD="${LD-ld} -n32"
6073 ;;
6074 *64-bit*)
6075 LD="${LD-ld} -64"
6076 ;;
6077 esac
6078 fi
6079 fi
6080 rm -rf conftest*
6081 ;;
6082
6083 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6084 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6085 # Find out which ABI we are using.
6086 echo 'int i;' > conftest.$ac_ext
6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091 test $ac_status = 0; }; then
6092 case `/usr/bin/file conftest.o` in
6093 *32-bit*)
6094 case $host in
6095 x86_64-*kfreebsd*-gnu)
6096 LD="${LD-ld} -m elf_i386_fbsd"
6097 ;;
6098 x86_64-*linux*)
6099 LD="${LD-ld} -m elf_i386"
6100 ;;
6101 ppc64-*linux*|powerpc64-*linux*)
6102 LD="${LD-ld} -m elf32ppclinux"
6103 ;;
6104 s390x-*linux*)
6105 LD="${LD-ld} -m elf_s390"
6106 ;;
6107 sparc64-*linux*)
6108 LD="${LD-ld} -m elf32_sparc"
6109 ;;
6110 esac
6111 ;;
6112 *64-bit*)
6113 case $host in
6114 x86_64-*kfreebsd*-gnu)
6115 LD="${LD-ld} -m elf_x86_64_fbsd"
6116 ;;
6117 x86_64-*linux*)
6118 LD="${LD-ld} -m elf_x86_64"
6119 ;;
6120 ppc*-*linux*|powerpc*-*linux*)
6121 LD="${LD-ld} -m elf64ppc"
6122 ;;
6123 s390*-*linux*|s390*-*tpf*)
6124 LD="${LD-ld} -m elf64_s390"
6125 ;;
6126 sparc*-*linux*)
6127 LD="${LD-ld} -m elf64_sparc"
6128 ;;
6129 esac
6130 ;;
6131 esac
6132 fi
6133 rm -rf conftest*
6134 ;;
6135
6136 *-*-sco3.2v5*)
6137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6138 SAVE_CFLAGS="$CFLAGS"
6139 CFLAGS="$CFLAGS -belf"
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6141 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6142 if ${lt_cv_cc_needs_belf+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 ac_ext=c
6146 ac_cpp='$CPP $CPPFLAGS'
6147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153
6154 int
6155 main ()
6156 {
6157
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_link "$LINENO"; then :
6163 lt_cv_cc_needs_belf=yes
6164 else
6165 lt_cv_cc_needs_belf=no
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 ac_ext=c
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175 fi
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6177 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6178 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6179 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6180 CFLAGS="$SAVE_CFLAGS"
6181 fi
6182 ;;
6183 *-*solaris*)
6184 # Find out which ABI we are using.
6185 echo 'int i;' > conftest.$ac_ext
6186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6187 (eval $ac_compile) 2>&5
6188 ac_status=$?
6189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190 test $ac_status = 0; }; then
6191 case `/usr/bin/file conftest.o` in
6192 *64-bit*)
6193 case $lt_cv_prog_gnu_ld in
6194 yes*)
6195 case $host in
6196 i?86-*-solaris*)
6197 LD="${LD-ld} -m elf_x86_64"
6198 ;;
6199 sparc*-*-solaris*)
6200 LD="${LD-ld} -m elf64_sparc"
6201 ;;
6202 esac
6203 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6204 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6205 LD="${LD-ld}_sol2"
6206 fi
6207 ;;
6208 *)
6209 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6210 LD="${LD-ld} -64"
6211 fi
6212 ;;
6213 esac
6214 ;;
6215 esac
6216 fi
6217 rm -rf conftest*
6218 ;;
6219 esac
6220
6221 need_locks="$enable_libtool_lock"
6222
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6225 set dummy ${ac_tool_prefix}mt; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$MANIFEST_TOOL"; then
6232 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6252 if test -n "$MANIFEST_TOOL"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6254 $as_echo "$MANIFEST_TOOL" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260
6261 fi
6262 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6263 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6264 # Extract the first word of "mt", so it can be a program name with args.
6265 set dummy mt; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test -n "$ac_ct_MANIFEST_TOOL"; then
6272 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6292 if test -n "$ac_ct_MANIFEST_TOOL"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6294 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6301 MANIFEST_TOOL=":"
6302 else
6303 case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6310 fi
6311 else
6312 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6313 fi
6314
6315 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6317 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6318 if ${lt_cv_path_mainfest_tool+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 lt_cv_path_mainfest_tool=no
6322 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6323 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6324 cat conftest.err >&5
6325 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6326 lt_cv_path_mainfest_tool=yes
6327 fi
6328 rm -f conftest*
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6331 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6332 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6333 MANIFEST_TOOL=:
6334 fi
6335
6336
6337
6338
6339
6340
6341 case $host_os in
6342 rhapsody* | darwin*)
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$DSYMUTIL"; then
6352 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6372 if test -n "$DSYMUTIL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6374 $as_echo "$DSYMUTIL" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_DSYMUTIL"; then
6383 ac_ct_DSYMUTIL=$DSYMUTIL
6384 # Extract the first word of "dsymutil", so it can be a program name with args.
6385 set dummy dsymutil; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_DSYMUTIL"; then
6392 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6412 if test -n "$ac_ct_DSYMUTIL"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6414 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420 if test "x$ac_ct_DSYMUTIL" = x; then
6421 DSYMUTIL=":"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 DSYMUTIL=$ac_ct_DSYMUTIL
6430 fi
6431 else
6432 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6433 fi
6434
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_NMEDIT+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$NMEDIT"; then
6444 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 NMEDIT=$ac_cv_prog_NMEDIT
6464 if test -n "$NMEDIT"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6466 $as_echo "$NMEDIT" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_NMEDIT"; then
6475 ac_ct_NMEDIT=$NMEDIT
6476 # Extract the first word of "nmedit", so it can be a program name with args.
6477 set dummy nmedit; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_NMEDIT"; then
6484 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6504 if test -n "$ac_ct_NMEDIT"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6506 $as_echo "$ac_ct_NMEDIT" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512 if test "x$ac_ct_NMEDIT" = x; then
6513 NMEDIT=":"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 NMEDIT=$ac_ct_NMEDIT
6522 fi
6523 else
6524 NMEDIT="$ac_cv_prog_NMEDIT"
6525 fi
6526
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_LIPO+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$LIPO"; then
6536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 LIPO=$ac_cv_prog_LIPO
6556 if test -n "$LIPO"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6558 $as_echo "$LIPO" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565 fi
6566 if test -z "$ac_cv_prog_LIPO"; then
6567 ac_ct_LIPO=$LIPO
6568 # Extract the first word of "lipo", so it can be a program name with args.
6569 set dummy lipo; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 if test -n "$ac_ct_LIPO"; then
6576 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585 ac_cv_prog_ac_ct_LIPO="lipo"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6596 if test -n "$ac_ct_LIPO"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6598 $as_echo "$ac_ct_LIPO" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604 if test "x$ac_ct_LIPO" = x; then
6605 LIPO=":"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 LIPO=$ac_ct_LIPO
6614 fi
6615 else
6616 LIPO="$ac_cv_prog_LIPO"
6617 fi
6618
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}otool; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_OTOOL+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$OTOOL"; then
6628 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 OTOOL=$ac_cv_prog_OTOOL
6648 if test -n "$OTOOL"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6650 $as_echo "$OTOOL" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_OTOOL"; then
6659 ac_ct_OTOOL=$OTOOL
6660 # Extract the first word of "otool", so it can be a program name with args.
6661 set dummy otool; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$ac_ct_OTOOL"; then
6668 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_ac_ct_OTOOL="otool"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6688 if test -n "$ac_ct_OTOOL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6690 $as_echo "$ac_ct_OTOOL" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696 if test "x$ac_ct_OTOOL" = x; then
6697 OTOOL=":"
6698 else
6699 case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705 OTOOL=$ac_ct_OTOOL
6706 fi
6707 else
6708 OTOOL="$ac_cv_prog_OTOOL"
6709 fi
6710
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_OTOOL64+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$OTOOL64"; then
6720 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 OTOOL64=$ac_cv_prog_OTOOL64
6740 if test -n "$OTOOL64"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6742 $as_echo "$OTOOL64" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_OTOOL64"; then
6751 ac_ct_OTOOL64=$OTOOL64
6752 # Extract the first word of "otool64", so it can be a program name with args.
6753 set dummy otool64; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$ac_ct_OTOOL64"; then
6760 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_OTOOL64="otool64"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6780 if test -n "$ac_ct_OTOOL64"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6782 $as_echo "$ac_ct_OTOOL64" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788 if test "x$ac_ct_OTOOL64" = x; then
6789 OTOOL64=":"
6790 else
6791 case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797 OTOOL64=$ac_ct_OTOOL64
6798 fi
6799 else
6800 OTOOL64="$ac_cv_prog_OTOOL64"
6801 fi
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6830 $as_echo_n "checking for -single_module linker flag... " >&6; }
6831 if ${lt_cv_apple_cc_single_mod+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 lt_cv_apple_cc_single_mod=no
6835 if test -z "${LT_MULTI_MODULE}"; then
6836 # By default we will add the -single_module flag. You can override
6837 # by either setting the environment variable LT_MULTI_MODULE
6838 # non-empty at configure time, or by adding -multi_module to the
6839 # link flags.
6840 rm -rf libconftest.dylib*
6841 echo "int foo(void){return 1;}" > conftest.c
6842 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6843 -dynamiclib -Wl,-single_module conftest.c" >&5
6844 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6845 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6846 _lt_result=$?
6847 # If there is a non-empty error log, and "single_module"
6848 # appears in it, assume the flag caused a linker warning
6849 if test -s conftest.err && $GREP single_module conftest.err; then
6850 cat conftest.err >&5
6851 # Otherwise, if the output was created with a 0 exit code from
6852 # the compiler, it worked.
6853 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6854 lt_cv_apple_cc_single_mod=yes
6855 else
6856 cat conftest.err >&5
6857 fi
6858 rm -rf libconftest.dylib*
6859 rm -f conftest.*
6860 fi
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6863 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6866 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6867 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_ld_exported_symbols_list=no
6871 save_LDFLAGS=$LDFLAGS
6872 echo "_main" > conftest.sym
6873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876
6877 int
6878 main ()
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886 lt_cv_ld_exported_symbols_list=yes
6887 else
6888 lt_cv_ld_exported_symbols_list=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 LDFLAGS="$save_LDFLAGS"
6893
6894 fi
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6896 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6897
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6899 $as_echo_n "checking for -force_load linker flag... " >&6; }
6900 if ${lt_cv_ld_force_load+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 lt_cv_ld_force_load=no
6904 cat > conftest.c << _LT_EOF
6905 int forced_loaded() { return 2;}
6906 _LT_EOF
6907 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6908 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6909 echo "$AR cru libconftest.a conftest.o" >&5
6910 $AR cru libconftest.a conftest.o 2>&5
6911 echo "$RANLIB libconftest.a" >&5
6912 $RANLIB libconftest.a 2>&5
6913 cat > conftest.c << _LT_EOF
6914 int main() { return 0;}
6915 _LT_EOF
6916 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6917 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6918 _lt_result=$?
6919 if test -s conftest.err && $GREP force_load conftest.err; then
6920 cat conftest.err >&5
6921 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6922 lt_cv_ld_force_load=yes
6923 else
6924 cat conftest.err >&5
6925 fi
6926 rm -f conftest.err libconftest.a conftest conftest.c
6927 rm -rf conftest.dSYM
6928
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6931 $as_echo "$lt_cv_ld_force_load" >&6; }
6932 case $host_os in
6933 rhapsody* | darwin1.[012])
6934 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6935 darwin1.*)
6936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6937 darwin*) # darwin 5.x on
6938 # if running on 10.5 or later, the deployment target defaults
6939 # to the OS version, if on x86, and 10.4, the deployment
6940 # target defaults to 10.4. Don't you love it?
6941 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6942 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6943 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6944 10.[012]*)
6945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6946 10.*)
6947 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6948 esac
6949 ;;
6950 esac
6951 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6952 _lt_dar_single_mod='$single_module'
6953 fi
6954 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6955 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6956 else
6957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6958 fi
6959 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6960 _lt_dsymutil='~$DSYMUTIL $lib || :'
6961 else
6962 _lt_dsymutil=
6963 fi
6964 ;;
6965 esac
6966
6967 ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6974 # On Suns, sometimes $CPP names a directory.
6975 if test -n "$CPP" && test -d "$CPP"; then
6976 CPP=
6977 fi
6978 if test -z "$CPP"; then
6979 if ${ac_cv_prog_CPP+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 # Double quotes because CPP needs to be expanded
6983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6984 do
6985 ac_preproc_ok=false
6986 for ac_c_preproc_warn_flag in '' yes
6987 do
6988 # Use a header file that comes with gcc, so configuring glibc
6989 # with a fresh cross-compiler works.
6990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991 # <limits.h> exists even on freestanding compilers.
6992 # On the NeXT, cc -E runs the code through the compiler's parser,
6993 # not just through cpp. "Syntax error" is here to catch this case.
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 @%:@ifdef __STDC__
6997 @%:@ include <limits.h>
6998 @%:@else
6999 @%:@ include <assert.h>
7000 @%:@endif
7001 Syntax error
7002 _ACEOF
7003 if ac_fn_c_try_cpp "$LINENO"; then :
7004
7005 else
7006 # Broken: fails on valid input.
7007 continue
7008 fi
7009 rm -f conftest.err conftest.i conftest.$ac_ext
7010
7011 # OK, works on sane cases. Now check whether nonexistent headers
7012 # can be detected and how.
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 @%:@include <ac_nonexistent.h>
7016 _ACEOF
7017 if ac_fn_c_try_cpp "$LINENO"; then :
7018 # Broken: success on invalid input.
7019 continue
7020 else
7021 # Passes both tests.
7022 ac_preproc_ok=:
7023 break
7024 fi
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7026
7027 done
7028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7029 rm -f conftest.i conftest.err conftest.$ac_ext
7030 if $ac_preproc_ok; then :
7031 break
7032 fi
7033
7034 done
7035 ac_cv_prog_CPP=$CPP
7036
7037 fi
7038 CPP=$ac_cv_prog_CPP
7039 else
7040 ac_cv_prog_CPP=$CPP
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7043 $as_echo "$CPP" >&6; }
7044 ac_preproc_ok=false
7045 for ac_c_preproc_warn_flag in '' yes
7046 do
7047 # Use a header file that comes with gcc, so configuring glibc
7048 # with a fresh cross-compiler works.
7049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050 # <limits.h> exists even on freestanding compilers.
7051 # On the NeXT, cc -E runs the code through the compiler's parser,
7052 # not just through cpp. "Syntax error" is here to catch this case.
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 @%:@ifdef __STDC__
7056 @%:@ include <limits.h>
7057 @%:@else
7058 @%:@ include <assert.h>
7059 @%:@endif
7060 Syntax error
7061 _ACEOF
7062 if ac_fn_c_try_cpp "$LINENO"; then :
7063
7064 else
7065 # Broken: fails on valid input.
7066 continue
7067 fi
7068 rm -f conftest.err conftest.i conftest.$ac_ext
7069
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 @%:@include <ac_nonexistent.h>
7075 _ACEOF
7076 if ac_fn_c_try_cpp "$LINENO"; then :
7077 # Broken: success on invalid input.
7078 continue
7079 else
7080 # Passes both tests.
7081 ac_preproc_ok=:
7082 break
7083 fi
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7085
7086 done
7087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7088 rm -f conftest.i conftest.err conftest.$ac_ext
7089 if $ac_preproc_ok; then :
7090
7091 else
7092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7094 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7095 See \`config.log' for more details" "$LINENO" 5; }
7096 fi
7097
7098 ac_ext=c
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7106 $as_echo_n "checking for ANSI C header files... " >&6; }
7107 if ${ac_cv_header_stdc+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <stdlib.h>
7113 #include <stdarg.h>
7114 #include <string.h>
7115 #include <float.h>
7116
7117 int
7118 main ()
7119 {
7120
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 ac_cv_header_stdc=yes
7127 else
7128 ac_cv_header_stdc=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131
7132 if test $ac_cv_header_stdc = yes; then
7133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 #include <string.h>
7137
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "memchr" >/dev/null 2>&1; then :
7141
7142 else
7143 ac_cv_header_stdc=no
7144 fi
7145 rm -f conftest*
7146
7147 fi
7148
7149 if test $ac_cv_header_stdc = yes; then
7150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <stdlib.h>
7154
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "free" >/dev/null 2>&1; then :
7158
7159 else
7160 ac_cv_header_stdc=no
7161 fi
7162 rm -f conftest*
7163
7164 fi
7165
7166 if test $ac_cv_header_stdc = yes; then
7167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7168 if test "$cross_compiling" = yes; then :
7169 :
7170 else
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #include <ctype.h>
7174 #include <stdlib.h>
7175 #if ((' ' & 0x0FF) == 0x020)
7176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7178 #else
7179 # define ISLOWER(c) \
7180 (('a' <= (c) && (c) <= 'i') \
7181 || ('j' <= (c) && (c) <= 'r') \
7182 || ('s' <= (c) && (c) <= 'z'))
7183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7184 #endif
7185
7186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7187 int
7188 main ()
7189 {
7190 int i;
7191 for (i = 0; i < 256; i++)
7192 if (XOR (islower (i), ISLOWER (i))
7193 || toupper (i) != TOUPPER (i))
7194 return 2;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_run "$LINENO"; then :
7199
7200 else
7201 ac_cv_header_stdc=no
7202 fi
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
7205 fi
7206
7207 fi
7208 fi
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7210 $as_echo "$ac_cv_header_stdc" >&6; }
7211 if test $ac_cv_header_stdc = yes; then
7212
7213 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7214
7215 fi
7216
7217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219 inttypes.h stdint.h unistd.h
7220 do :
7221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7223 "
7224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7225 cat >>confdefs.h <<_ACEOF
7226 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230
7231 done
7232
7233
7234 for ac_header in dlfcn.h
7235 do :
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7237 "
7238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 @%:@define HAVE_DLFCN_H 1
7241 _ACEOF
7242
7243 fi
7244
7245 done
7246
7247
7248
7249
7250
7251 # Set options
7252
7253
7254
7255 enable_dlopen=no
7256
7257
7258 enable_win32_dll=no
7259
7260
7261 @%:@ Check whether --enable-shared was given.
7262 if test "${enable_shared+set}" = set; then :
7263 enableval=$enable_shared; p=${PACKAGE-default}
7264 case $enableval in
7265 yes) enable_shared=yes ;;
7266 no) enable_shared=no ;;
7267 *)
7268 enable_shared=no
7269 # Look at the argument we got. We use all the common list separators.
7270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271 for pkg in $enableval; do
7272 IFS="$lt_save_ifs"
7273 if test "X$pkg" = "X$p"; then
7274 enable_shared=yes
7275 fi
7276 done
7277 IFS="$lt_save_ifs"
7278 ;;
7279 esac
7280 else
7281 enable_shared=yes
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292 @%:@ Check whether --enable-static was given.
7293 if test "${enable_static+set}" = set; then :
7294 enableval=$enable_static; p=${PACKAGE-default}
7295 case $enableval in
7296 yes) enable_static=yes ;;
7297 no) enable_static=no ;;
7298 *)
7299 enable_static=no
7300 # Look at the argument we got. We use all the common list separators.
7301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302 for pkg in $enableval; do
7303 IFS="$lt_save_ifs"
7304 if test "X$pkg" = "X$p"; then
7305 enable_static=yes
7306 fi
7307 done
7308 IFS="$lt_save_ifs"
7309 ;;
7310 esac
7311 else
7312 enable_static=yes
7313 fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324 @%:@ Check whether --with-pic was given.
7325 if test "${with_pic+set}" = set; then :
7326 withval=$with_pic; lt_p=${PACKAGE-default}
7327 case $withval in
7328 yes|no) pic_mode=$withval ;;
7329 *)
7330 pic_mode=default
7331 # Look at the argument we got. We use all the common list separators.
7332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7333 for lt_pkg in $withval; do
7334 IFS="$lt_save_ifs"
7335 if test "X$lt_pkg" = "X$lt_p"; then
7336 pic_mode=yes
7337 fi
7338 done
7339 IFS="$lt_save_ifs"
7340 ;;
7341 esac
7342 else
7343 pic_mode=default
7344 fi
7345
7346
7347 test -z "$pic_mode" && pic_mode=default
7348
7349
7350
7351
7352
7353
7354
7355 @%:@ Check whether --enable-fast-install was given.
7356 if test "${enable_fast_install+set}" = set; then :
7357 enableval=$enable_fast_install; p=${PACKAGE-default}
7358 case $enableval in
7359 yes) enable_fast_install=yes ;;
7360 no) enable_fast_install=no ;;
7361 *)
7362 enable_fast_install=no
7363 # Look at the argument we got. We use all the common list separators.
7364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365 for pkg in $enableval; do
7366 IFS="$lt_save_ifs"
7367 if test "X$pkg" = "X$p"; then
7368 enable_fast_install=yes
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 ;;
7373 esac
7374 else
7375 enable_fast_install=yes
7376 fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 # This can be used to rebuild libtool when needed
7389 LIBTOOL_DEPS="$ltmain"
7390
7391 # Always use our own libtool.
7392 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423 test -z "$LN_S" && LN_S="ln -s"
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 if test -n "${ZSH_VERSION+set}" ; then
7439 setopt NO_GLOB_SUBST
7440 fi
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7443 $as_echo_n "checking for objdir... " >&6; }
7444 if ${lt_cv_objdir+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 rm -f .libs 2>/dev/null
7448 mkdir .libs 2>/dev/null
7449 if test -d .libs; then
7450 lt_cv_objdir=.libs
7451 else
7452 # MS-DOS does not allow filenames that begin with a dot.
7453 lt_cv_objdir=_libs
7454 fi
7455 rmdir .libs 2>/dev/null
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7458 $as_echo "$lt_cv_objdir" >&6; }
7459 objdir=$lt_cv_objdir
7460
7461
7462
7463
7464
7465 cat >>confdefs.h <<_ACEOF
7466 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7467 _ACEOF
7468
7469
7470
7471
7472 case $host_os in
7473 aix3*)
7474 # AIX sometimes has problems with the GCC collect2 program. For some
7475 # reason, if we set the COLLECT_NAMES environment variable, the problems
7476 # vanish in a puff of smoke.
7477 if test "X${COLLECT_NAMES+set}" != Xset; then
7478 COLLECT_NAMES=
7479 export COLLECT_NAMES
7480 fi
7481 ;;
7482 esac
7483
7484 # Global variables:
7485 ofile=libtool
7486 can_build_shared=yes
7487
7488 # All known linkers require a `.a' archive for static linking (except MSVC,
7489 # which needs '.lib').
7490 libext=a
7491
7492 with_gnu_ld="$lt_cv_prog_gnu_ld"
7493
7494 old_CC="$CC"
7495 old_CFLAGS="$CFLAGS"
7496
7497 # Set sane defaults for various variables
7498 test -z "$CC" && CC=cc
7499 test -z "$LTCC" && LTCC=$CC
7500 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7501 test -z "$LD" && LD=ld
7502 test -z "$ac_objext" && ac_objext=o
7503
7504 for cc_temp in $compiler""; do
7505 case $cc_temp in
7506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7508 \-*) ;;
7509 *) break;;
7510 esac
7511 done
7512 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7513
7514
7515 # Only perform the check for file, if the check method requires it
7516 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7517 case $deplibs_check_method in
7518 file_magic*)
7519 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7521 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7522 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 case $MAGIC_CMD in
7526 [\\/*] | ?:[\\/]*)
7527 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7528 ;;
7529 *)
7530 lt_save_MAGIC_CMD="$MAGIC_CMD"
7531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7533 for ac_dir in $ac_dummy; do
7534 IFS="$lt_save_ifs"
7535 test -z "$ac_dir" && ac_dir=.
7536 if test -f $ac_dir/${ac_tool_prefix}file; then
7537 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7538 if test -n "$file_magic_test_file"; then
7539 case $deplibs_check_method in
7540 "file_magic "*)
7541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7544 $EGREP "$file_magic_regex" > /dev/null; then
7545 :
7546 else
7547 cat <<_LT_EOF 1>&2
7548
7549 *** Warning: the command libtool uses to detect shared libraries,
7550 *** $file_magic_cmd, produces output that libtool cannot recognize.
7551 *** The result is that libtool may fail to recognize shared libraries
7552 *** as such. This will affect the creation of libtool libraries that
7553 *** depend on shared libraries, but programs linked with such libtool
7554 *** libraries will work regardless of this problem. Nevertheless, you
7555 *** may want to report the problem to your system manager and/or to
7556 *** bug-libtool@gnu.org
7557
7558 _LT_EOF
7559 fi ;;
7560 esac
7561 fi
7562 break
7563 fi
7564 done
7565 IFS="$lt_save_ifs"
7566 MAGIC_CMD="$lt_save_MAGIC_CMD"
7567 ;;
7568 esac
7569 fi
7570
7571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7572 if test -n "$MAGIC_CMD"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7574 $as_echo "$MAGIC_CMD" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580
7581
7582
7583
7584 if test -z "$lt_cv_path_MAGIC_CMD"; then
7585 if test -n "$ac_tool_prefix"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7587 $as_echo_n "checking for file... " >&6; }
7588 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 case $MAGIC_CMD in
7592 [\\/*] | ?:[\\/]*)
7593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 lt_save_MAGIC_CMD="$MAGIC_CMD"
7597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7599 for ac_dir in $ac_dummy; do
7600 IFS="$lt_save_ifs"
7601 test -z "$ac_dir" && ac_dir=.
7602 if test -f $ac_dir/file; then
7603 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7604 if test -n "$file_magic_test_file"; then
7605 case $deplibs_check_method in
7606 "file_magic "*)
7607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7610 $EGREP "$file_magic_regex" > /dev/null; then
7611 :
7612 else
7613 cat <<_LT_EOF 1>&2
7614
7615 *** Warning: the command libtool uses to detect shared libraries,
7616 *** $file_magic_cmd, produces output that libtool cannot recognize.
7617 *** The result is that libtool may fail to recognize shared libraries
7618 *** as such. This will affect the creation of libtool libraries that
7619 *** depend on shared libraries, but programs linked with such libtool
7620 *** libraries will work regardless of this problem. Nevertheless, you
7621 *** may want to report the problem to your system manager and/or to
7622 *** bug-libtool@gnu.org
7623
7624 _LT_EOF
7625 fi ;;
7626 esac
7627 fi
7628 break
7629 fi
7630 done
7631 IFS="$lt_save_ifs"
7632 MAGIC_CMD="$lt_save_MAGIC_CMD"
7633 ;;
7634 esac
7635 fi
7636
7637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7638 if test -n "$MAGIC_CMD"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7640 $as_echo "$MAGIC_CMD" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646
7647 else
7648 MAGIC_CMD=:
7649 fi
7650 fi
7651
7652 fi
7653 ;;
7654 esac
7655
7656 # Use C for the default configuration in the libtool script
7657
7658 lt_save_CC="$CC"
7659 ac_ext=c
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665
7666 # Source file extension for C test sources.
7667 ac_ext=c
7668
7669 # Object file extension for compiled C test sources.
7670 objext=o
7671 objext=$objext
7672
7673 # Code to be used in simple compile tests
7674 lt_simple_compile_test_code="int some_variable = 0;"
7675
7676 # Code to be used in simple link tests
7677 lt_simple_link_test_code='int main(){return(0);}'
7678
7679
7680
7681
7682
7683
7684
7685 # If no C compiler was specified, use CC.
7686 LTCC=${LTCC-"$CC"}
7687
7688 # If no C compiler flags were specified, use CFLAGS.
7689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7690
7691 # Allow CC to be a program name with arguments.
7692 compiler=$CC
7693
7694 # Save the default compiler, since it gets overwritten when the other
7695 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7696 compiler_DEFAULT=$CC
7697
7698 # save warnings/boilerplate of simple test code
7699 ac_outfile=conftest.$ac_objext
7700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7702 _lt_compiler_boilerplate=`cat conftest.err`
7703 $RM conftest*
7704
7705 ac_outfile=conftest.$ac_objext
7706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7708 _lt_linker_boilerplate=`cat conftest.err`
7709 $RM -r conftest*
7710
7711
7712 ## CAVEAT EMPTOR:
7713 ## There is no encapsulation within the following macros, do not change
7714 ## the running order or otherwise move them around unless you know exactly
7715 ## what you are doing...
7716 if test -n "$compiler"; then
7717
7718 lt_prog_compiler_no_builtin_flag=
7719
7720 if test "$GCC" = yes; then
7721 case $cc_basename in
7722 nvcc*)
7723 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7724 *)
7725 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7726 esac
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7729 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7730 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 lt_cv_prog_compiler_rtti_exceptions=no
7734 ac_outfile=conftest.$ac_objext
7735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7736 lt_compiler_flag="-fno-rtti -fno-exceptions"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 # The option is referenced via a variable to avoid confusing sed.
7742 lt_compile=`echo "$ac_compile" | $SED \
7743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7745 -e 's:$: $lt_compiler_flag:'`
7746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7747 (eval "$lt_compile" 2>conftest.err)
7748 ac_status=$?
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 if (exit $ac_status) && test -s "$ac_outfile"; then
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings other than the usual output.
7754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7757 lt_cv_prog_compiler_rtti_exceptions=yes
7758 fi
7759 fi
7760 $RM conftest*
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7764 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7765
7766 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7768 else
7769 :
7770 fi
7771
7772 fi
7773
7774
7775
7776
7777
7778
7779 lt_prog_compiler_wl=
7780 lt_prog_compiler_pic=
7781 lt_prog_compiler_static=
7782
7783
7784 if test "$GCC" = yes; then
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_static='-static'
7787
7788 case $host_os in
7789 aix*)
7790 # All AIX code is PIC.
7791 if test "$host_cpu" = ia64; then
7792 # AIX 5 now supports IA64 processor
7793 lt_prog_compiler_static='-Bstatic'
7794 fi
7795 ;;
7796
7797 amigaos*)
7798 case $host_cpu in
7799 powerpc)
7800 # see comment about AmigaOS4 .so support
7801 lt_prog_compiler_pic='-fPIC'
7802 ;;
7803 m68k)
7804 # FIXME: we need at least 68020 code to build shared libraries, but
7805 # adding the `-m68020' flag to GCC prevents building anything better,
7806 # like `-m68040'.
7807 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7808 ;;
7809 esac
7810 ;;
7811
7812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7813 # PIC is the default for these OSes.
7814 ;;
7815
7816 mingw* | cygwin* | pw32* | os2* | cegcc*)
7817 # This hack is so that the source file can tell whether it is being
7818 # built for inclusion in a dll (and should export symbols for example).
7819 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7820 # (--disable-auto-import) libraries
7821 lt_prog_compiler_pic='-DDLL_EXPORT'
7822 ;;
7823
7824 darwin* | rhapsody*)
7825 # PIC is the default on this platform
7826 # Common symbols not allowed in MH_DYLIB files
7827 lt_prog_compiler_pic='-fno-common'
7828 ;;
7829
7830 haiku*)
7831 # PIC is the default for Haiku.
7832 # The "-static" flag exists, but is broken.
7833 lt_prog_compiler_static=
7834 ;;
7835
7836 hpux*)
7837 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7838 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7839 # sets the default TLS model and affects inlining.
7840 case $host_cpu in
7841 hppa*64*)
7842 # +Z the default
7843 ;;
7844 *)
7845 lt_prog_compiler_pic='-fPIC'
7846 ;;
7847 esac
7848 ;;
7849
7850 interix[3-9]*)
7851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7852 # Instead, we relocate shared libraries at runtime.
7853 ;;
7854
7855 msdosdjgpp*)
7856 # Just because we use GCC doesn't mean we suddenly get shared libraries
7857 # on systems that don't support them.
7858 lt_prog_compiler_can_build_shared=no
7859 enable_shared=no
7860 ;;
7861
7862 *nto* | *qnx*)
7863 # QNX uses GNU C++, but need to define -shared option too, otherwise
7864 # it will coredump.
7865 lt_prog_compiler_pic='-fPIC -shared'
7866 ;;
7867
7868 sysv4*MP*)
7869 if test -d /usr/nec; then
7870 lt_prog_compiler_pic=-Kconform_pic
7871 fi
7872 ;;
7873
7874 *)
7875 lt_prog_compiler_pic='-fPIC'
7876 ;;
7877 esac
7878
7879 case $cc_basename in
7880 nvcc*) # Cuda Compiler Driver 2.2
7881 lt_prog_compiler_wl='-Xlinker '
7882 if test -n "$lt_prog_compiler_pic"; then
7883 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7884 fi
7885 ;;
7886 esac
7887 else
7888 # PORTME Check for flag to pass linker flags through the system compiler.
7889 case $host_os in
7890 aix*)
7891 lt_prog_compiler_wl='-Wl,'
7892 if test "$host_cpu" = ia64; then
7893 # AIX 5 now supports IA64 processor
7894 lt_prog_compiler_static='-Bstatic'
7895 else
7896 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7897 fi
7898 ;;
7899
7900 mingw* | cygwin* | pw32* | os2* | cegcc*)
7901 # This hack is so that the source file can tell whether it is being
7902 # built for inclusion in a dll (and should export symbols for example).
7903 lt_prog_compiler_pic='-DDLL_EXPORT'
7904 ;;
7905
7906 hpux9* | hpux10* | hpux11*)
7907 lt_prog_compiler_wl='-Wl,'
7908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7909 # not for PA HP-UX.
7910 case $host_cpu in
7911 hppa*64*|ia64*)
7912 # +Z the default
7913 ;;
7914 *)
7915 lt_prog_compiler_pic='+Z'
7916 ;;
7917 esac
7918 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7919 lt_prog_compiler_static='${wl}-a ${wl}archive'
7920 ;;
7921
7922 irix5* | irix6* | nonstopux*)
7923 lt_prog_compiler_wl='-Wl,'
7924 # PIC (with -KPIC) is the default.
7925 lt_prog_compiler_static='-non_shared'
7926 ;;
7927
7928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7929 case $cc_basename in
7930 # old Intel for x86_64 which still supported -KPIC.
7931 ecc*)
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='-KPIC'
7934 lt_prog_compiler_static='-static'
7935 ;;
7936 # icc used to be incompatible with GCC.
7937 # ICC 10 doesn't accept -KPIC any more.
7938 icc* | ifort*)
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_pic='-fPIC'
7941 lt_prog_compiler_static='-static'
7942 ;;
7943 # Lahey Fortran 8.1.
7944 lf95*)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='--shared'
7947 lt_prog_compiler_static='--static'
7948 ;;
7949 nagfor*)
7950 # NAG Fortran compiler
7951 lt_prog_compiler_wl='-Wl,-Wl,,'
7952 lt_prog_compiler_pic='-PIC'
7953 lt_prog_compiler_static='-Bstatic'
7954 ;;
7955 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7956 # Portland Group compilers (*not* the Pentium gcc compiler,
7957 # which looks to be a dead project)
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='-fpic'
7960 lt_prog_compiler_static='-Bstatic'
7961 ;;
7962 ccc*)
7963 lt_prog_compiler_wl='-Wl,'
7964 # All Alpha code is PIC.
7965 lt_prog_compiler_static='-non_shared'
7966 ;;
7967 xl* | bgxl* | bgf* | mpixl*)
7968 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7969 lt_prog_compiler_wl='-Wl,'
7970 lt_prog_compiler_pic='-qpic'
7971 lt_prog_compiler_static='-qstaticlink'
7972 ;;
7973 *)
7974 case `$CC -V 2>&1 | sed 5q` in
7975 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7976 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7977 lt_prog_compiler_pic='-KPIC'
7978 lt_prog_compiler_static='-Bstatic'
7979 lt_prog_compiler_wl=''
7980 ;;
7981 *Sun\ F* | *Sun*Fortran*)
7982 lt_prog_compiler_pic='-KPIC'
7983 lt_prog_compiler_static='-Bstatic'
7984 lt_prog_compiler_wl='-Qoption ld '
7985 ;;
7986 *Sun\ C*)
7987 # Sun C 5.9
7988 lt_prog_compiler_pic='-KPIC'
7989 lt_prog_compiler_static='-Bstatic'
7990 lt_prog_compiler_wl='-Wl,'
7991 ;;
7992 *Intel*\ [CF]*Compiler*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-fPIC'
7995 lt_prog_compiler_static='-static'
7996 ;;
7997 *Portland\ Group*)
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_pic='-fpic'
8000 lt_prog_compiler_static='-Bstatic'
8001 ;;
8002 esac
8003 ;;
8004 esac
8005 ;;
8006
8007 newsos6)
8008 lt_prog_compiler_pic='-KPIC'
8009 lt_prog_compiler_static='-Bstatic'
8010 ;;
8011
8012 *nto* | *qnx*)
8013 # QNX uses GNU C++, but need to define -shared option too, otherwise
8014 # it will coredump.
8015 lt_prog_compiler_pic='-fPIC -shared'
8016 ;;
8017
8018 osf3* | osf4* | osf5*)
8019 lt_prog_compiler_wl='-Wl,'
8020 # All OSF/1 code is PIC.
8021 lt_prog_compiler_static='-non_shared'
8022 ;;
8023
8024 rdos*)
8025 lt_prog_compiler_static='-non_shared'
8026 ;;
8027
8028 solaris*)
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 case $cc_basename in
8032 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8033 lt_prog_compiler_wl='-Qoption ld ';;
8034 *)
8035 lt_prog_compiler_wl='-Wl,';;
8036 esac
8037 ;;
8038
8039 sunos4*)
8040 lt_prog_compiler_wl='-Qoption ld '
8041 lt_prog_compiler_pic='-PIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
8044
8045 sysv4 | sysv4.2uw2* | sysv4.3*)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 ;;
8050
8051 sysv4*MP*)
8052 if test -d /usr/nec ;then
8053 lt_prog_compiler_pic='-Kconform_pic'
8054 lt_prog_compiler_static='-Bstatic'
8055 fi
8056 ;;
8057
8058 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8059 lt_prog_compiler_wl='-Wl,'
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8062 ;;
8063
8064 unicos*)
8065 lt_prog_compiler_wl='-Wl,'
8066 lt_prog_compiler_can_build_shared=no
8067 ;;
8068
8069 uts4*)
8070 lt_prog_compiler_pic='-pic'
8071 lt_prog_compiler_static='-Bstatic'
8072 ;;
8073
8074 *)
8075 lt_prog_compiler_can_build_shared=no
8076 ;;
8077 esac
8078 fi
8079
8080 case $host_os in
8081 # For platforms which do not support PIC, -DPIC is meaningless:
8082 *djgpp*)
8083 lt_prog_compiler_pic=
8084 ;;
8085 *)
8086 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8087 ;;
8088 esac
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8091 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8092 if ${lt_cv_prog_compiler_pic+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8098 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8099 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8100
8101 #
8102 # Check to make sure the PIC flag actually works.
8103 #
8104 if test -n "$lt_prog_compiler_pic"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8107 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 lt_cv_prog_compiler_pic_works=no
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8114 # Insert the option either (1) after the last *FLAGS variable, or
8115 # (2) before a word containing "conftest.", or (3) at the end.
8116 # Note that $ac_compile itself does not contain backslashes and begins
8117 # with a dollar sign (not a hyphen), so the echo should work correctly.
8118 # The option is referenced via a variable to avoid confusing sed.
8119 lt_compile=`echo "$ac_compile" | $SED \
8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122 -e 's:$: $lt_compiler_flag:'`
8123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8124 (eval "$lt_compile" 2>conftest.err)
8125 ac_status=$?
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 if (exit $ac_status) && test -s "$ac_outfile"; then
8129 # The compiler can only warn and ignore the option if not recognized
8130 # So say no if there are warnings other than the usual output.
8131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8134 lt_cv_prog_compiler_pic_works=yes
8135 fi
8136 fi
8137 $RM conftest*
8138
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8141 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8142
8143 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8144 case $lt_prog_compiler_pic in
8145 "" | " "*) ;;
8146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8147 esac
8148 else
8149 lt_prog_compiler_pic=
8150 lt_prog_compiler_can_build_shared=no
8151 fi
8152
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 #
8166 # Check to make sure the static flag actually works.
8167 #
8168 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8170 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8171 if ${lt_cv_prog_compiler_static_works+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_prog_compiler_static_works=no
8175 save_LDFLAGS="$LDFLAGS"
8176 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8177 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8178 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8179 # The linker can only warn and ignore the option if not recognized
8180 # So say no if there are warnings
8181 if test -s conftest.err; then
8182 # Append any errors to the config.log.
8183 cat conftest.err 1>&5
8184 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8186 if diff conftest.exp conftest.er2 >/dev/null; then
8187 lt_cv_prog_compiler_static_works=yes
8188 fi
8189 else
8190 lt_cv_prog_compiler_static_works=yes
8191 fi
8192 fi
8193 $RM -r conftest*
8194 LDFLAGS="$save_LDFLAGS"
8195
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8198 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8199
8200 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8201 :
8202 else
8203 lt_prog_compiler_static=
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8214 if ${lt_cv_prog_compiler_c_o+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 lt_cv_prog_compiler_c_o=no
8218 $RM -r conftest 2>/dev/null
8219 mkdir conftest
8220 cd conftest
8221 mkdir out
8222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8223
8224 lt_compiler_flag="-o out/conftest2.$ac_objext"
8225 # Insert the option either (1) after the last *FLAGS variable, or
8226 # (2) before a word containing "conftest.", or (3) at the end.
8227 # Note that $ac_compile itself does not contain backslashes and begins
8228 # with a dollar sign (not a hyphen), so the echo should work correctly.
8229 lt_compile=`echo "$ac_compile" | $SED \
8230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8232 -e 's:$: $lt_compiler_flag:'`
8233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8234 (eval "$lt_compile" 2>out/conftest.err)
8235 ac_status=$?
8236 cat out/conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8239 then
8240 # The compiler can only warn and ignore the option if not recognized
8241 # So say no if there are warnings
8242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8245 lt_cv_prog_compiler_c_o=yes
8246 fi
8247 fi
8248 chmod u+w . 2>&5
8249 $RM conftest*
8250 # SGI C++ compiler will create directory out/ii_files/ for
8251 # template instantiation
8252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8253 $RM out/* && rmdir out
8254 cd ..
8255 $RM -r conftest
8256 $RM conftest*
8257
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8260 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8261
8262
8263
8264
8265
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8268 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8269 if ${lt_cv_prog_compiler_c_o+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 lt_cv_prog_compiler_c_o=no
8273 $RM -r conftest 2>/dev/null
8274 mkdir conftest
8275 cd conftest
8276 mkdir out
8277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8278
8279 lt_compiler_flag="-o out/conftest2.$ac_objext"
8280 # Insert the option either (1) after the last *FLAGS variable, or
8281 # (2) before a word containing "conftest.", or (3) at the end.
8282 # Note that $ac_compile itself does not contain backslashes and begins
8283 # with a dollar sign (not a hyphen), so the echo should work correctly.
8284 lt_compile=`echo "$ac_compile" | $SED \
8285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8287 -e 's:$: $lt_compiler_flag:'`
8288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8289 (eval "$lt_compile" 2>out/conftest.err)
8290 ac_status=$?
8291 cat out/conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8294 then
8295 # The compiler can only warn and ignore the option if not recognized
8296 # So say no if there are warnings
8297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8300 lt_cv_prog_compiler_c_o=yes
8301 fi
8302 fi
8303 chmod u+w . 2>&5
8304 $RM conftest*
8305 # SGI C++ compiler will create directory out/ii_files/ for
8306 # template instantiation
8307 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8308 $RM out/* && rmdir out
8309 cd ..
8310 $RM -r conftest
8311 $RM conftest*
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8315 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8316
8317
8318
8319
8320 hard_links="nottested"
8321 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8322 # do not overwrite the value of need_locks provided by the user
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8324 $as_echo_n "checking if we can lock with hard links... " >&6; }
8325 hard_links=yes
8326 $RM conftest*
8327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8328 touch conftest.a
8329 ln conftest.a conftest.b 2>&5 || hard_links=no
8330 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8332 $as_echo "$hard_links" >&6; }
8333 if test "$hard_links" = no; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8335 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8336 need_locks=warn
8337 fi
8338 else
8339 need_locks=no
8340 fi
8341
8342
8343
8344
8345
8346
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8348 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8349
8350 runpath_var=
8351 allow_undefined_flag=
8352 always_export_symbols=no
8353 archive_cmds=
8354 archive_expsym_cmds=
8355 compiler_needs_object=no
8356 enable_shared_with_static_runtimes=no
8357 export_dynamic_flag_spec=
8358 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8359 hardcode_automatic=no
8360 hardcode_direct=no
8361 hardcode_direct_absolute=no
8362 hardcode_libdir_flag_spec=
8363 hardcode_libdir_separator=
8364 hardcode_minus_L=no
8365 hardcode_shlibpath_var=unsupported
8366 inherit_rpath=no
8367 link_all_deplibs=unknown
8368 module_cmds=
8369 module_expsym_cmds=
8370 old_archive_from_new_cmds=
8371 old_archive_from_expsyms_cmds=
8372 thread_safe_flag_spec=
8373 whole_archive_flag_spec=
8374 # include_expsyms should be a list of space-separated symbols to be *always*
8375 # included in the symbol list
8376 include_expsyms=
8377 # exclude_expsyms can be an extended regexp of symbols to exclude
8378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8380 # as well as any symbol that contains `d'.
8381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8383 # platforms (ab)use it in PIC code, but their linkers get confused if
8384 # the symbol is explicitly referenced. Since portable code cannot
8385 # rely on this symbol name, it's probably fine to never include it in
8386 # preloaded symbol tables.
8387 # Exclude shared library initialization/finalization symbols.
8388 extract_expsyms_cmds=
8389
8390 case $host_os in
8391 cygwin* | mingw* | pw32* | cegcc*)
8392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8393 # When not using gcc, we currently assume that we are using
8394 # Microsoft Visual C++.
8395 if test "$GCC" != yes; then
8396 with_gnu_ld=no
8397 fi
8398 ;;
8399 interix*)
8400 # we just hope/assume this is gcc and not c89 (= MSVC++)
8401 with_gnu_ld=yes
8402 ;;
8403 openbsd*)
8404 with_gnu_ld=no
8405 ;;
8406 linux* | k*bsd*-gnu | gnu*)
8407 link_all_deplibs=no
8408 ;;
8409 esac
8410
8411 ld_shlibs=yes
8412
8413 # On some targets, GNU ld is compatible enough with the native linker
8414 # that we're better off using the native interface for both.
8415 lt_use_gnu_ld_interface=no
8416 if test "$with_gnu_ld" = yes; then
8417 case $host_os in
8418 aix*)
8419 # The AIX port of GNU ld has always aspired to compatibility
8420 # with the native linker. However, as the warning in the GNU ld
8421 # block says, versions before 2.19.5* couldn't really create working
8422 # shared libraries, regardless of the interface used.
8423 case `$LD -v 2>&1` in
8424 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8425 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8426 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8427 *)
8428 lt_use_gnu_ld_interface=yes
8429 ;;
8430 esac
8431 ;;
8432 *)
8433 lt_use_gnu_ld_interface=yes
8434 ;;
8435 esac
8436 fi
8437
8438 if test "$lt_use_gnu_ld_interface" = yes; then
8439 # If archive_cmds runs LD, not CC, wlarc should be empty
8440 wlarc='${wl}'
8441
8442 # Set some defaults for GNU ld with shared library support. These
8443 # are reset later if shared libraries are not supported. Putting them
8444 # here allows them to be overridden if necessary.
8445 runpath_var=LD_RUN_PATH
8446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8447 export_dynamic_flag_spec='${wl}--export-dynamic'
8448 # ancient GNU ld didn't support --whole-archive et. al.
8449 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8450 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8451 else
8452 whole_archive_flag_spec=
8453 fi
8454 supports_anon_versioning=no
8455 case `$LD -v 2>&1` in
8456 *GNU\ gold*) supports_anon_versioning=yes ;;
8457 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8458 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8459 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8460 *\ 2.11.*) ;; # other 2.11 versions
8461 *) supports_anon_versioning=yes ;;
8462 esac
8463
8464 # See if GNU ld supports shared libraries.
8465 case $host_os in
8466 aix[3-9]*)
8467 # On AIX/PPC, the GNU linker is very broken
8468 if test "$host_cpu" != ia64; then
8469 ld_shlibs=no
8470 cat <<_LT_EOF 1>&2
8471
8472 *** Warning: the GNU linker, at least up to release 2.19, is reported
8473 *** to be unable to reliably create shared libraries on AIX.
8474 *** Therefore, libtool is disabling shared libraries support. If you
8475 *** really care for shared libraries, you may want to install binutils
8476 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8477 *** You will then need to restart the configuration process.
8478
8479 _LT_EOF
8480 fi
8481 ;;
8482
8483 amigaos*)
8484 case $host_cpu in
8485 powerpc)
8486 # see comment about AmigaOS4 .so support
8487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488 archive_expsym_cmds=''
8489 ;;
8490 m68k)
8491 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)'
8492 hardcode_libdir_flag_spec='-L$libdir'
8493 hardcode_minus_L=yes
8494 ;;
8495 esac
8496 ;;
8497
8498 beos*)
8499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8500 allow_undefined_flag=unsupported
8501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8502 # support --undefined. This deserves some investigation. FIXME
8503 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 else
8505 ld_shlibs=no
8506 fi
8507 ;;
8508
8509 cygwin* | mingw* | pw32* | cegcc*)
8510 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8511 # as there is no search path for DLLs.
8512 hardcode_libdir_flag_spec='-L$libdir'
8513 export_dynamic_flag_spec='${wl}--export-all-symbols'
8514 allow_undefined_flag=unsupported
8515 always_export_symbols=no
8516 enable_shared_with_static_runtimes=yes
8517 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'
8518 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8519
8520 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8522 # If the export-symbols file already is a .def file (1st line
8523 # is EXPORTS), use it as is; otherwise, prepend...
8524 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8525 cp $export_symbols $output_objdir/$soname.def;
8526 else
8527 echo EXPORTS > $output_objdir/$soname.def;
8528 cat $export_symbols >> $output_objdir/$soname.def;
8529 fi~
8530 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8531 else
8532 ld_shlibs=no
8533 fi
8534 ;;
8535
8536 haiku*)
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538 link_all_deplibs=yes
8539 ;;
8540
8541 interix[3-9]*)
8542 hardcode_direct=no
8543 hardcode_shlibpath_var=no
8544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8545 export_dynamic_flag_spec='${wl}-E'
8546 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8547 # Instead, shared libraries are loaded at an image base (0x10000000 by
8548 # default) and relocated if they conflict, which is a slow very memory
8549 # consuming and fragmenting process. To avoid this, we pick a random,
8550 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8551 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8553 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'
8554 ;;
8555
8556 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8557 tmp_diet=no
8558 if test "$host_os" = linux-dietlibc; then
8559 case $cc_basename in
8560 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8561 esac
8562 fi
8563 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8564 && test "$tmp_diet" = no
8565 then
8566 tmp_addflag=' $pic_flag'
8567 tmp_sharedflag='-shared'
8568 case $cc_basename,$host_cpu in
8569 pgcc*) # Portland Group C compiler
8570 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'
8571 tmp_addflag=' $pic_flag'
8572 ;;
8573 pgf77* | pgf90* | pgf95* | pgfortran*)
8574 # Portland Group f77 and f90 compilers
8575 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'
8576 tmp_addflag=' $pic_flag -Mnomain' ;;
8577 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8578 tmp_addflag=' -i_dynamic' ;;
8579 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8580 tmp_addflag=' -i_dynamic -nofor_main' ;;
8581 ifc* | ifort*) # Intel Fortran compiler
8582 tmp_addflag=' -nofor_main' ;;
8583 lf95*) # Lahey Fortran 8.1
8584 whole_archive_flag_spec=
8585 tmp_sharedflag='--shared' ;;
8586 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8587 tmp_sharedflag='-qmkshrobj'
8588 tmp_addflag= ;;
8589 nvcc*) # Cuda Compiler Driver 2.2
8590 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'
8591 compiler_needs_object=yes
8592 ;;
8593 esac
8594 case `$CC -V 2>&1 | sed 5q` in
8595 *Sun\ C*) # Sun C 5.9
8596 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'
8597 compiler_needs_object=yes
8598 tmp_sharedflag='-G' ;;
8599 *Sun\ F*) # Sun Fortran 8.3
8600 tmp_sharedflag='-G' ;;
8601 esac
8602 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8603
8604 if test "x$supports_anon_versioning" = xyes; then
8605 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8606 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8607 echo "local: *; };" >> $output_objdir/$libname.ver~
8608 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8609 fi
8610
8611 case $cc_basename in
8612 xlf* | bgf* | bgxlf* | mpixlf*)
8613 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8614 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8616 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8617 if test "x$supports_anon_versioning" = xyes; then
8618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8620 echo "local: *; };" >> $output_objdir/$libname.ver~
8621 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8622 fi
8623 ;;
8624 esac
8625 else
8626 ld_shlibs=no
8627 fi
8628 ;;
8629
8630 netbsd* | netbsdelf*-gnu)
8631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8632 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8633 wlarc=
8634 else
8635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8637 fi
8638 ;;
8639
8640 solaris*)
8641 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8642 ld_shlibs=no
8643 cat <<_LT_EOF 1>&2
8644
8645 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8646 *** create shared libraries on Solaris systems. Therefore, libtool
8647 *** is disabling shared libraries support. We urge you to upgrade GNU
8648 *** binutils to release 2.9.1 or newer. Another option is to modify
8649 *** your PATH or compiler configuration so that the native linker is
8650 *** used, and then restart.
8651
8652 _LT_EOF
8653 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8656 else
8657 ld_shlibs=no
8658 fi
8659 ;;
8660
8661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8662 case `$LD -v 2>&1` in
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8664 ld_shlibs=no
8665 cat <<_LT_EOF 1>&2
8666
8667 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8668 *** reliably create shared libraries on SCO systems. Therefore, libtool
8669 *** is disabling shared libraries support. We urge you to upgrade GNU
8670 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8671 *** your PATH or compiler configuration so that the native linker is
8672 *** used, and then restart.
8673
8674 _LT_EOF
8675 ;;
8676 *)
8677 # For security reasons, it is highly recommended that you always
8678 # use absolute paths for naming shared libraries, and exclude the
8679 # DT_RUNPATH tag from executables and libraries. But doing so
8680 # requires that you compile everything twice, which is a pain.
8681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8685 else
8686 ld_shlibs=no
8687 fi
8688 ;;
8689 esac
8690 ;;
8691
8692 sunos4*)
8693 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8694 wlarc=
8695 hardcode_direct=yes
8696 hardcode_shlibpath_var=no
8697 ;;
8698
8699 *)
8700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8703 else
8704 ld_shlibs=no
8705 fi
8706 ;;
8707 esac
8708
8709 if test "$ld_shlibs" = no; then
8710 runpath_var=
8711 hardcode_libdir_flag_spec=
8712 export_dynamic_flag_spec=
8713 whole_archive_flag_spec=
8714 fi
8715 else
8716 # PORTME fill in a description of your system's linker (not GNU ld)
8717 case $host_os in
8718 aix3*)
8719 allow_undefined_flag=unsupported
8720 always_export_symbols=yes
8721 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'
8722 # Note: this linker hardcodes the directories in LIBPATH if there
8723 # are no directories specified by -L.
8724 hardcode_minus_L=yes
8725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8726 # Neither direct hardcoding nor static linking is supported with a
8727 # broken collect2.
8728 hardcode_direct=unsupported
8729 fi
8730 ;;
8731
8732 aix[4-9]*)
8733 if test "$host_cpu" = ia64; then
8734 # On IA64, the linker does run time linking by default, so we don't
8735 # have to do anything special.
8736 aix_use_runtimelinking=no
8737 exp_sym_flag='-Bexport'
8738 no_entry_flag=""
8739 else
8740 # If we're using GNU nm, then we don't want the "-C" option.
8741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8742 # Also, AIX nm treats weak defined symbols like other global
8743 # defined symbols, whereas GNU nm marks them as "W".
8744 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8745 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8746 else
8747 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8748 fi
8749 aix_use_runtimelinking=no
8750
8751 # Test if we are trying to use run time linking or normal
8752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8753 # need to do runtime linking.
8754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8755 for ld_flag in $LDFLAGS; do
8756 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8757 aix_use_runtimelinking=yes
8758 break
8759 fi
8760 done
8761 ;;
8762 esac
8763
8764 exp_sym_flag='-bexport'
8765 no_entry_flag='-bnoentry'
8766 fi
8767
8768 # When large executables or shared objects are built, AIX ld can
8769 # have problems creating the table of contents. If linking a library
8770 # or program results in "error TOC overflow" add -mminimal-toc to
8771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8773
8774 archive_cmds=''
8775 hardcode_direct=yes
8776 hardcode_direct_absolute=yes
8777 hardcode_libdir_separator=':'
8778 link_all_deplibs=yes
8779 file_list_spec='${wl}-f,'
8780
8781 if test "$GCC" = yes; then
8782 case $host_os in aix4.[012]|aix4.[012].*)
8783 # We only want to do this on AIX 4.2 and lower, the check
8784 # below for broken collect2 doesn't work under 4.3+
8785 collect2name=`${CC} -print-prog-name=collect2`
8786 if test -f "$collect2name" &&
8787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8788 then
8789 # We have reworked collect2
8790 :
8791 else
8792 # We have old collect2
8793 hardcode_direct=unsupported
8794 # It fails to find uninstalled libraries when the uninstalled
8795 # path is not listed in the libpath. Setting hardcode_minus_L
8796 # to unsupported forces relinking
8797 hardcode_minus_L=yes
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_libdir_separator=
8800 fi
8801 ;;
8802 esac
8803 shared_flag='-shared'
8804 if test "$aix_use_runtimelinking" = yes; then
8805 shared_flag="$shared_flag "'${wl}-G'
8806 fi
8807 link_all_deplibs=no
8808 else
8809 # not using gcc
8810 if test "$host_cpu" = ia64; then
8811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8812 # chokes on -Wl,-G. The following line is correct:
8813 shared_flag='-G'
8814 else
8815 if test "$aix_use_runtimelinking" = yes; then
8816 shared_flag='${wl}-G'
8817 else
8818 shared_flag='${wl}-bM:SRE'
8819 fi
8820 fi
8821 fi
8822
8823 export_dynamic_flag_spec='${wl}-bexpall'
8824 # It seems that -bexpall does not export symbols beginning with
8825 # underscore (_), so it is better to generate a list of symbols to export.
8826 always_export_symbols=yes
8827 if test "$aix_use_runtimelinking" = yes; then
8828 # Warning - without using the other runtime loading flags (-brtl),
8829 # -berok will link without error, but may produce a broken library.
8830 allow_undefined_flag='-berok'
8831 # Determine the default libpath from the value encoded in an
8832 # empty executable.
8833 if test "${lt_cv_aix_libpath+set}" = set; then
8834 aix_libpath=$lt_cv_aix_libpath
8835 else
8836 if ${lt_cv_aix_libpath_+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841
8842 int
8843 main ()
8844 {
8845
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"; then :
8851
8852 lt_aix_libpath_sed='
8853 /Import File Strings/,/^$/ {
8854 /^0/ {
8855 s/^0 *\([^ ]*\) *$/\1/
8856 p
8857 }
8858 }'
8859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8860 # Check for a 64-bit object if we didn't find anything.
8861 if test -z "$lt_cv_aix_libpath_"; then
8862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863 fi
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867 if test -z "$lt_cv_aix_libpath_"; then
8868 lt_cv_aix_libpath_="/usr/lib:/lib"
8869 fi
8870
8871 fi
8872
8873 aix_libpath=$lt_cv_aix_libpath_
8874 fi
8875
8876 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8877 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8878 else
8879 if test "$host_cpu" = ia64; then
8880 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8881 allow_undefined_flag="-z nodefs"
8882 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"
8883 else
8884 # Determine the default libpath from the value encoded in an
8885 # empty executable.
8886 if test "${lt_cv_aix_libpath+set}" = set; then
8887 aix_libpath=$lt_cv_aix_libpath
8888 else
8889 if ${lt_cv_aix_libpath_+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894
8895 int
8896 main ()
8897 {
8898
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 if ac_fn_c_try_link "$LINENO"; then :
8904
8905 lt_aix_libpath_sed='
8906 /Import File Strings/,/^$/ {
8907 /^0/ {
8908 s/^0 *\([^ ]*\) *$/\1/
8909 p
8910 }
8911 }'
8912 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8913 # Check for a 64-bit object if we didn't find anything.
8914 if test -z "$lt_cv_aix_libpath_"; then
8915 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 fi
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 if test -z "$lt_cv_aix_libpath_"; then
8921 lt_cv_aix_libpath_="/usr/lib:/lib"
8922 fi
8923
8924 fi
8925
8926 aix_libpath=$lt_cv_aix_libpath_
8927 fi
8928
8929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930 # Warning - without using the other run time loading flags,
8931 # -berok will link without error, but may produce a broken library.
8932 no_undefined_flag=' ${wl}-bernotok'
8933 allow_undefined_flag=' ${wl}-berok'
8934 if test "$with_gnu_ld" = yes; then
8935 # We only use this code for GNU lds that support --whole-archive.
8936 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8937 else
8938 # Exported symbols can be pulled into shared objects from archives
8939 whole_archive_flag_spec='$convenience'
8940 fi
8941 archive_cmds_need_lc=yes
8942 # This is similar to how AIX traditionally builds its shared libraries.
8943 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8944 fi
8945 fi
8946 ;;
8947
8948 amigaos*)
8949 case $host_cpu in
8950 powerpc)
8951 # see comment about AmigaOS4 .so support
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds=''
8954 ;;
8955 m68k)
8956 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)'
8957 hardcode_libdir_flag_spec='-L$libdir'
8958 hardcode_minus_L=yes
8959 ;;
8960 esac
8961 ;;
8962
8963 bsdi[45]*)
8964 export_dynamic_flag_spec=-rdynamic
8965 ;;
8966
8967 cygwin* | mingw* | pw32* | cegcc*)
8968 # When not using gcc, we currently assume that we are using
8969 # Microsoft Visual C++.
8970 # hardcode_libdir_flag_spec is actually meaningless, as there is
8971 # no search path for DLLs.
8972 case $cc_basename in
8973 cl*)
8974 # Native MSVC
8975 hardcode_libdir_flag_spec=' '
8976 allow_undefined_flag=unsupported
8977 always_export_symbols=yes
8978 file_list_spec='@'
8979 # Tell ltmain to make .lib files, not .a files.
8980 libext=lib
8981 # Tell ltmain to make .dll files, not .so files.
8982 shrext_cmds=".dll"
8983 # FIXME: Setting linknames here is a bad hack.
8984 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8985 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8986 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8987 else
8988 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8989 fi~
8990 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8991 linknames='
8992 # The linker will not automatically build a static lib if we build a DLL.
8993 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8994 enable_shared_with_static_runtimes=yes
8995 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8997 # Don't use ranlib
8998 old_postinstall_cmds='chmod 644 $oldlib'
8999 postlink_cmds='lt_outputfile="@OUTPUT@"~
9000 lt_tool_outputfile="@TOOL_OUTPUT@"~
9001 case $lt_outputfile in
9002 *.exe|*.EXE) ;;
9003 *)
9004 lt_outputfile="$lt_outputfile.exe"
9005 lt_tool_outputfile="$lt_tool_outputfile.exe"
9006 ;;
9007 esac~
9008 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9009 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9010 $RM "$lt_outputfile.manifest";
9011 fi'
9012 ;;
9013 *)
9014 # Assume MSVC wrapper
9015 hardcode_libdir_flag_spec=' '
9016 allow_undefined_flag=unsupported
9017 # Tell ltmain to make .lib files, not .a files.
9018 libext=lib
9019 # Tell ltmain to make .dll files, not .so files.
9020 shrext_cmds=".dll"
9021 # FIXME: Setting linknames here is a bad hack.
9022 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9023 # The linker will automatically build a .lib file if we build a DLL.
9024 old_archive_from_new_cmds='true'
9025 # FIXME: Should let the user specify the lib program.
9026 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9027 enable_shared_with_static_runtimes=yes
9028 ;;
9029 esac
9030 ;;
9031
9032 darwin* | rhapsody*)
9033
9034
9035 archive_cmds_need_lc=no
9036 hardcode_direct=no
9037 hardcode_automatic=yes
9038 hardcode_shlibpath_var=unsupported
9039 if test "$lt_cv_ld_force_load" = "yes"; then
9040 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\"`'
9041
9042 else
9043 whole_archive_flag_spec=''
9044 fi
9045 link_all_deplibs=yes
9046 allow_undefined_flag="$_lt_dar_allow_undefined"
9047 case $cc_basename in
9048 ifort*) _lt_dar_can_shared=yes ;;
9049 *) _lt_dar_can_shared=$GCC ;;
9050 esac
9051 if test "$_lt_dar_can_shared" = "yes"; then
9052 output_verbose_link_cmd=func_echo_all
9053 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9054 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9055 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}"
9056 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}"
9057
9058 else
9059 ld_shlibs=no
9060 fi
9061
9062 ;;
9063
9064 dgux*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9071 # support. Future versions do this automatically, but an explicit c++rt0.o
9072 # does not break anything, and helps significantly (at the cost of a little
9073 # extra space).
9074 freebsd2.2*)
9075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9076 hardcode_libdir_flag_spec='-R$libdir'
9077 hardcode_direct=yes
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9082 freebsd2.*)
9083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_direct=yes
9085 hardcode_minus_L=yes
9086 hardcode_shlibpath_var=no
9087 ;;
9088
9089 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9090 freebsd* | dragonfly*)
9091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9092 hardcode_libdir_flag_spec='-R$libdir'
9093 hardcode_direct=yes
9094 hardcode_shlibpath_var=no
9095 ;;
9096
9097 hpux9*)
9098 if test "$GCC" = yes; then
9099 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9100 else
9101 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9102 fi
9103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9104 hardcode_libdir_separator=:
9105 hardcode_direct=yes
9106
9107 # hardcode_minus_L: Not really in the search PATH,
9108 # but as the default location of the library.
9109 hardcode_minus_L=yes
9110 export_dynamic_flag_spec='${wl}-E'
9111 ;;
9112
9113 hpux10*)
9114 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9115 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116 else
9117 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9118 fi
9119 if test "$with_gnu_ld" = no; then
9120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9121 hardcode_libdir_separator=:
9122 hardcode_direct=yes
9123 hardcode_direct_absolute=yes
9124 export_dynamic_flag_spec='${wl}-E'
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9128 fi
9129 ;;
9130
9131 hpux11*)
9132 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9133 case $host_cpu in
9134 hppa*64*)
9135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 ;;
9137 ia64*)
9138 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139 ;;
9140 *)
9141 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9142 ;;
9143 esac
9144 else
9145 case $host_cpu in
9146 hppa*64*)
9147 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 ;;
9149 ia64*)
9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9151 ;;
9152 *)
9153
9154 # Older versions of the 11.00 compiler do not understand -b yet
9155 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 lt_cv_prog_compiler__b=no
9162 save_LDFLAGS="$LDFLAGS"
9163 LDFLAGS="$LDFLAGS -b"
9164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166 # The linker can only warn and ignore the option if not recognized
9167 # So say no if there are warnings
9168 if test -s conftest.err; then
9169 # Append any errors to the config.log.
9170 cat conftest.err 1>&5
9171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173 if diff conftest.exp conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler__b=yes
9175 fi
9176 else
9177 lt_cv_prog_compiler__b=yes
9178 fi
9179 fi
9180 $RM -r conftest*
9181 LDFLAGS="$save_LDFLAGS"
9182
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9186
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 else
9190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191 fi
9192
9193 ;;
9194 esac
9195 fi
9196 if test "$with_gnu_ld" = no; then
9197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_separator=:
9199
9200 case $host_cpu in
9201 hppa*64*|ia64*)
9202 hardcode_direct=no
9203 hardcode_shlibpath_var=no
9204 ;;
9205 *)
9206 hardcode_direct=yes
9207 hardcode_direct_absolute=yes
9208 export_dynamic_flag_spec='${wl}-E'
9209
9210 # hardcode_minus_L: Not really in the search PATH,
9211 # but as the default location of the library.
9212 hardcode_minus_L=yes
9213 ;;
9214 esac
9215 fi
9216 ;;
9217
9218 irix5* | irix6* | nonstopux*)
9219 if test "$GCC" = yes; then
9220 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'
9221 # Try to use the -exported_symbol ld option, if it does not
9222 # work, assume that -exports_file does not work either and
9223 # implicitly export all symbols.
9224 # This should be the same for all languages, so no per-tag cache variable.
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9226 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9227 if ${lt_cv_irix_exported_symbol+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 save_LDFLAGS="$LDFLAGS"
9231 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int foo (void) { return 0; }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 lt_cv_irix_exported_symbol=yes
9238 else
9239 lt_cv_irix_exported_symbol=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 LDFLAGS="$save_LDFLAGS"
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9246 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9247 if test "$lt_cv_irix_exported_symbol" = yes; then
9248 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'
9249 fi
9250 else
9251 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'
9252 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'
9253 fi
9254 archive_cmds_need_lc='no'
9255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256 hardcode_libdir_separator=:
9257 inherit_rpath=yes
9258 link_all_deplibs=yes
9259 ;;
9260
9261 netbsd* | netbsdelf*-gnu)
9262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9264 else
9265 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9266 fi
9267 hardcode_libdir_flag_spec='-R$libdir'
9268 hardcode_direct=yes
9269 hardcode_shlibpath_var=no
9270 ;;
9271
9272 newsos6)
9273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_direct=yes
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 hardcode_libdir_separator=:
9277 hardcode_shlibpath_var=no
9278 ;;
9279
9280 *nto* | *qnx*)
9281 ;;
9282
9283 openbsd*)
9284 if test -f /usr/libexec/ld.so; then
9285 hardcode_direct=yes
9286 hardcode_shlibpath_var=no
9287 hardcode_direct_absolute=yes
9288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9289 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9290 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9292 export_dynamic_flag_spec='${wl}-E'
9293 else
9294 case $host_os in
9295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_libdir_flag_spec='-R$libdir'
9298 ;;
9299 *)
9300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9302 ;;
9303 esac
9304 fi
9305 else
9306 ld_shlibs=no
9307 fi
9308 ;;
9309
9310 os2*)
9311 hardcode_libdir_flag_spec='-L$libdir'
9312 hardcode_minus_L=yes
9313 allow_undefined_flag=unsupported
9314 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9315 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9316 ;;
9317
9318 osf3*)
9319 if test "$GCC" = yes; then
9320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321 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'
9322 else
9323 allow_undefined_flag=' -expect_unresolved \*'
9324 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'
9325 fi
9326 archive_cmds_need_lc='no'
9327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9328 hardcode_libdir_separator=:
9329 ;;
9330
9331 osf4* | osf5*) # as osf3* with the addition of -msym flag
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336 else
9337 allow_undefined_flag=' -expect_unresolved \*'
9338 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'
9339 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~
9340 $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'
9341
9342 # Both c and cxx compiler support -rpath directly
9343 hardcode_libdir_flag_spec='-rpath $libdir'
9344 fi
9345 archive_cmds_need_lc='no'
9346 hardcode_libdir_separator=:
9347 ;;
9348
9349 solaris*)
9350 no_undefined_flag=' -z defs'
9351 if test "$GCC" = yes; then
9352 wlarc='${wl}'
9353 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355 $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'
9356 else
9357 case `$CC -V 2>&1` in
9358 *"Compilers 5.0"*)
9359 wlarc=''
9360 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9363 ;;
9364 *)
9365 wlarc='${wl}'
9366 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9369 ;;
9370 esac
9371 fi
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_shlibpath_var=no
9374 case $host_os in
9375 solaris2.[0-5] | solaris2.[0-5].*) ;;
9376 *)
9377 # The compiler driver will combine and reorder linker options,
9378 # but understands `-z linker_flag'. GCC discards it without `$wl',
9379 # but is careful enough not to reorder.
9380 # Supported since Solaris 2.6 (maybe 2.5.1?)
9381 if test "$GCC" = yes; then
9382 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9383 else
9384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9385 fi
9386 ;;
9387 esac
9388 link_all_deplibs=yes
9389 ;;
9390
9391 sunos4*)
9392 if test "x$host_vendor" = xsequent; then
9393 # Use $CC to link under sequent, because it throws in some extra .o
9394 # files that make .init and .fini sections work.
9395 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9396 else
9397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9398 fi
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_direct=yes
9401 hardcode_minus_L=yes
9402 hardcode_shlibpath_var=no
9403 ;;
9404
9405 sysv4)
9406 case $host_vendor in
9407 sni)
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_direct=yes # is this really true???
9410 ;;
9411 siemens)
9412 ## LD is ld it makes a PLAMLIB
9413 ## CC just makes a GrossModule.
9414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9415 reload_cmds='$CC -r -o $output$reload_objs'
9416 hardcode_direct=no
9417 ;;
9418 motorola)
9419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9421 ;;
9422 esac
9423 runpath_var='LD_RUN_PATH'
9424 hardcode_shlibpath_var=no
9425 ;;
9426
9427 sysv4.3*)
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_shlibpath_var=no
9430 export_dynamic_flag_spec='-Bexport'
9431 ;;
9432
9433 sysv4*MP*)
9434 if test -d /usr/nec; then
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_shlibpath_var=no
9437 runpath_var=LD_RUN_PATH
9438 hardcode_runpath_var=yes
9439 ld_shlibs=yes
9440 fi
9441 ;;
9442
9443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9444 no_undefined_flag='${wl}-z,text'
9445 archive_cmds_need_lc=no
9446 hardcode_shlibpath_var=no
9447 runpath_var='LD_RUN_PATH'
9448
9449 if test "$GCC" = yes; then
9450 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 fi
9456 ;;
9457
9458 sysv5* | sco3.2v5* | sco5v6*)
9459 # Note: We can NOT use -z defs as we might desire, because we do not
9460 # link with -lc, and that would cause any symbols used from libc to
9461 # always be unresolved, which means just about no library would
9462 # ever link correctly. If we're not using GNU ld we use -z text
9463 # though, which does catch some bad symbols but isn't as heavy-handed
9464 # as -z defs.
9465 no_undefined_flag='${wl}-z,text'
9466 allow_undefined_flag='${wl}-z,nodefs'
9467 archive_cmds_need_lc=no
9468 hardcode_shlibpath_var=no
9469 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9470 hardcode_libdir_separator=':'
9471 link_all_deplibs=yes
9472 export_dynamic_flag_spec='${wl}-Bexport'
9473 runpath_var='LD_RUN_PATH'
9474
9475 if test "$GCC" = yes; then
9476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 else
9479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 fi
9482 ;;
9483
9484 uts4*)
9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_shlibpath_var=no
9488 ;;
9489
9490 *)
9491 ld_shlibs=no
9492 ;;
9493 esac
9494
9495 if test x$host_vendor = xsni; then
9496 case $host in
9497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9498 export_dynamic_flag_spec='${wl}-Blargedynsym'
9499 ;;
9500 esac
9501 fi
9502 fi
9503
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9505 $as_echo "$ld_shlibs" >&6; }
9506 test "$ld_shlibs" = no && can_build_shared=no
9507
9508 with_gnu_ld=$with_gnu_ld
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524 #
9525 # Do we need to explicitly link libc?
9526 #
9527 case "x$archive_cmds_need_lc" in
9528 x|xyes)
9529 # Assume -lc should be added
9530 archive_cmds_need_lc=yes
9531
9532 if test "$enable_shared" = yes && test "$GCC" = yes; then
9533 case $archive_cmds in
9534 *'~'*)
9535 # FIXME: we may have to deal with multi-command sequences.
9536 ;;
9537 '$CC '*)
9538 # Test whether the compiler implicitly links with -lc since on some
9539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9540 # to ld, don't add -lc before -lgcc.
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9543 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 $RM conftest*
9547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9548
9549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9550 (eval $ac_compile) 2>&5
9551 ac_status=$?
9552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9553 test $ac_status = 0; } 2>conftest.err; then
9554 soname=conftest
9555 lib=conftest
9556 libobjs=conftest.$ac_objext
9557 deplibs=
9558 wl=$lt_prog_compiler_wl
9559 pic_flag=$lt_prog_compiler_pic
9560 compiler_flags=-v
9561 linker_flags=-v
9562 verstring=
9563 output_objdir=.
9564 libname=conftest
9565 lt_save_allow_undefined_flag=$allow_undefined_flag
9566 allow_undefined_flag=
9567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9569 ac_status=$?
9570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571 test $ac_status = 0; }
9572 then
9573 lt_cv_archive_cmds_need_lc=no
9574 else
9575 lt_cv_archive_cmds_need_lc=yes
9576 fi
9577 allow_undefined_flag=$lt_save_allow_undefined_flag
9578 else
9579 cat conftest.err 1>&5
9580 fi
9581 $RM conftest*
9582
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9585 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9587 ;;
9588 esac
9589 fi
9590 ;;
9591 esac
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9745 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9746
9747 if test "$GCC" = yes; then
9748 case $host_os in
9749 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9750 *) lt_awk_arg="/^libraries:/" ;;
9751 esac
9752 case $host_os in
9753 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9754 *) lt_sed_strip_eq="s,=/,/,g" ;;
9755 esac
9756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9757 case $lt_search_path_spec in
9758 *\;*)
9759 # if the path contains ";" then we assume it to be the separator
9760 # otherwise default to the standard path separator (i.e. ":") - it is
9761 # assumed that no part of a normal pathname contains ";" but that should
9762 # okay in the real world where ";" in dirpaths is itself problematic.
9763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9764 ;;
9765 *)
9766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9767 ;;
9768 esac
9769 # Ok, now we have the path, separated by spaces, we can step through it
9770 # and add multilib dir if necessary.
9771 lt_tmp_lt_search_path_spec=
9772 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9773 for lt_sys_path in $lt_search_path_spec; do
9774 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9775 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9776 else
9777 test -d "$lt_sys_path" && \
9778 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9779 fi
9780 done
9781 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9782 BEGIN {RS=" "; FS="/|\n";} {
9783 lt_foo="";
9784 lt_count=0;
9785 for (lt_i = NF; lt_i > 0; lt_i--) {
9786 if ($lt_i != "" && $lt_i != ".") {
9787 if ($lt_i == "..") {
9788 lt_count++;
9789 } else {
9790 if (lt_count == 0) {
9791 lt_foo="/" $lt_i lt_foo;
9792 } else {
9793 lt_count--;
9794 }
9795 }
9796 }
9797 }
9798 if (lt_foo != "") { lt_freq[lt_foo]++; }
9799 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9800 }'`
9801 # AWK program above erroneously prepends '/' to C:/dos/paths
9802 # for these hosts.
9803 case $host_os in
9804 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9805 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9806 esac
9807 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9808 else
9809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9810 fi
9811 library_names_spec=
9812 libname_spec='lib$name'
9813 soname_spec=
9814 shrext_cmds=".so"
9815 postinstall_cmds=
9816 postuninstall_cmds=
9817 finish_cmds=
9818 finish_eval=
9819 shlibpath_var=
9820 shlibpath_overrides_runpath=unknown
9821 version_type=none
9822 dynamic_linker="$host_os ld.so"
9823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9824 need_lib_prefix=unknown
9825 hardcode_into_libs=no
9826
9827 # when you set need_version to no, make sure it does not cause -set_version
9828 # flags to be left without arguments
9829 need_version=unknown
9830
9831 case $host_os in
9832 aix3*)
9833 version_type=linux # correct to gnu/linux during the next big refactor
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9835 shlibpath_var=LIBPATH
9836
9837 # AIX 3 has no versioning support, so we append a major version to the name.
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 ;;
9840
9841 aix[4-9]*)
9842 version_type=linux # correct to gnu/linux during the next big refactor
9843 need_lib_prefix=no
9844 need_version=no
9845 hardcode_into_libs=yes
9846 if test "$host_cpu" = ia64; then
9847 # AIX 5 supports IA64
9848 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 else
9851 # With GCC up to 2.95.x, collect2 would create an import file
9852 # for dependence libraries. The import file would start with
9853 # the line `#! .'. This would cause the generated library to
9854 # depend on `.', always an invalid library. This was fixed in
9855 # development snapshots of GCC prior to 3.0.
9856 case $host_os in
9857 aix4 | aix4.[01] | aix4.[01].*)
9858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9859 echo ' yes '
9860 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9861 :
9862 else
9863 can_build_shared=no
9864 fi
9865 ;;
9866 esac
9867 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9868 # soname into executable. Probably we can add versioning support to
9869 # collect2, so additional links can be useful in future.
9870 if test "$aix_use_runtimelinking" = yes; then
9871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9872 # instead of lib<name>.a to let people know that these are not
9873 # typical AIX shared libraries.
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 else
9876 # We preserve .a as extension for shared libraries through AIX4.2
9877 # and later when we are not doing run time linking.
9878 library_names_spec='${libname}${release}.a $libname.a'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 fi
9881 shlibpath_var=LIBPATH
9882 fi
9883 ;;
9884
9885 amigaos*)
9886 case $host_cpu in
9887 powerpc)
9888 # Since July 2007 AmigaOS4 officially supports .so libraries.
9889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 ;;
9892 m68k)
9893 library_names_spec='$libname.ixlibrary $libname.a'
9894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9895 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9896 ;;
9897 esac
9898 ;;
9899
9900 beos*)
9901 library_names_spec='${libname}${shared_ext}'
9902 dynamic_linker="$host_os ld.so"
9903 shlibpath_var=LIBRARY_PATH
9904 ;;
9905
9906 bsdi[45]*)
9907 version_type=linux # correct to gnu/linux during the next big refactor
9908 need_version=no
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9915 # the default ld.so.conf also contains /usr/contrib/lib and
9916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9917 # libtool to hard-code these into programs
9918 ;;
9919
9920 cygwin* | mingw* | pw32* | cegcc*)
9921 version_type=windows
9922 shrext_cmds=".dll"
9923 need_version=no
9924 need_lib_prefix=no
9925
9926 case $GCC,$cc_basename in
9927 yes,*)
9928 # gcc
9929 library_names_spec='$libname.dll.a'
9930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9931 postinstall_cmds='base_file=`basename \${file}`~
9932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9933 dldir=$destdir/`dirname \$dlpath`~
9934 test -d \$dldir || mkdir -p \$dldir~
9935 $install_prog $dir/$dlname \$dldir/$dlname~
9936 chmod a+x \$dldir/$dlname~
9937 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9938 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9939 fi'
9940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9941 dlpath=$dir/\$dldll~
9942 $RM \$dlpath'
9943 shlibpath_overrides_runpath=yes
9944
9945 case $host_os in
9946 cygwin*)
9947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9949
9950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9951 ;;
9952 mingw* | cegcc*)
9953 # MinGW DLLs use traditional 'lib' prefix
9954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 ;;
9956 pw32*)
9957 # pw32 DLLs use 'pw' prefix rather than 'lib'
9958 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959 ;;
9960 esac
9961 dynamic_linker='Win32 ld.exe'
9962 ;;
9963
9964 *,cl*)
9965 # Native MSVC
9966 libname_spec='$name'
9967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968 library_names_spec='${libname}.dll.lib'
9969
9970 case $build_os in
9971 mingw*)
9972 sys_lib_search_path_spec=
9973 lt_save_ifs=$IFS
9974 IFS=';'
9975 for lt_path in $LIB
9976 do
9977 IFS=$lt_save_ifs
9978 # Let DOS variable expansion print the short 8.3 style file name.
9979 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9980 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9981 done
9982 IFS=$lt_save_ifs
9983 # Convert to MSYS style.
9984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9985 ;;
9986 cygwin*)
9987 # Convert to unix form, then to dos form, then back to unix form
9988 # but this time dos style (no spaces!) so that the unix form looks
9989 # like /cygdrive/c/PROGRA~1:/cygdr...
9990 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9991 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9992 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9993 ;;
9994 *)
9995 sys_lib_search_path_spec="$LIB"
9996 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9997 # It is most probably a Windows format PATH.
9998 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9999 else
10000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10001 fi
10002 # FIXME: find the short name or the path components, as spaces are
10003 # common. (e.g. "Program Files" -> "PROGRA~1")
10004 ;;
10005 esac
10006
10007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10008 postinstall_cmds='base_file=`basename \${file}`~
10009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10010 dldir=$destdir/`dirname \$dlpath`~
10011 test -d \$dldir || mkdir -p \$dldir~
10012 $install_prog $dir/$dlname \$dldir/$dlname'
10013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10014 dlpath=$dir/\$dldll~
10015 $RM \$dlpath'
10016 shlibpath_overrides_runpath=yes
10017 dynamic_linker='Win32 link.exe'
10018 ;;
10019
10020 *)
10021 # Assume MSVC wrapper
10022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10023 dynamic_linker='Win32 ld.exe'
10024 ;;
10025 esac
10026 # FIXME: first we should search . and the directory the executable is in
10027 shlibpath_var=PATH
10028 ;;
10029
10030 darwin* | rhapsody*)
10031 dynamic_linker="$host_os dyld"
10032 version_type=darwin
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10036 soname_spec='${libname}${release}${major}$shared_ext'
10037 shlibpath_overrides_runpath=yes
10038 shlibpath_var=DYLD_LIBRARY_PATH
10039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10040
10041 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10042 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10043 ;;
10044
10045 dgux*)
10046 version_type=linux # correct to gnu/linux during the next big refactor
10047 need_lib_prefix=no
10048 need_version=no
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 ;;
10053
10054 freebsd* | dragonfly*)
10055 # DragonFly does not have aout. When/if they implement a new
10056 # versioning mechanism, adjust this.
10057 if test -x /usr/bin/objformat; then
10058 objformat=`/usr/bin/objformat`
10059 else
10060 case $host_os in
10061 freebsd[23].*) objformat=aout ;;
10062 *) objformat=elf ;;
10063 esac
10064 fi
10065 version_type=freebsd-$objformat
10066 case $version_type in
10067 freebsd-elf*)
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10069 need_version=no
10070 need_lib_prefix=no
10071 ;;
10072 freebsd-*)
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10074 need_version=yes
10075 ;;
10076 esac
10077 shlibpath_var=LD_LIBRARY_PATH
10078 case $host_os in
10079 freebsd2.*)
10080 shlibpath_overrides_runpath=yes
10081 ;;
10082 freebsd3.[01]* | freebsdelf3.[01]*)
10083 shlibpath_overrides_runpath=yes
10084 hardcode_into_libs=yes
10085 ;;
10086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10088 shlibpath_overrides_runpath=no
10089 hardcode_into_libs=yes
10090 ;;
10091 *) # from 4.6 on, and DragonFly
10092 shlibpath_overrides_runpath=yes
10093 hardcode_into_libs=yes
10094 ;;
10095 esac
10096 ;;
10097
10098 gnu*)
10099 version_type=linux # correct to gnu/linux during the next big refactor
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 ;;
10108
10109 haiku*)
10110 version_type=linux # correct to gnu/linux during the next big refactor
10111 need_lib_prefix=no
10112 need_version=no
10113 dynamic_linker="$host_os runtime_loader"
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LIBRARY_PATH
10117 shlibpath_overrides_runpath=yes
10118 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10119 hardcode_into_libs=yes
10120 ;;
10121
10122 hpux9* | hpux10* | hpux11*)
10123 # Give a soname corresponding to the major version so that dld.sl refuses to
10124 # link against other versions.
10125 version_type=sunos
10126 need_lib_prefix=no
10127 need_version=no
10128 case $host_cpu in
10129 ia64*)
10130 shrext_cmds='.so'
10131 hardcode_into_libs=yes
10132 dynamic_linker="$host_os dld.so"
10133 shlibpath_var=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 if test "X$HPUX_IA64_MODE" = X32; then
10138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10139 else
10140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10141 fi
10142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10143 ;;
10144 hppa*64*)
10145 shrext_cmds='.sl'
10146 hardcode_into_libs=yes
10147 dynamic_linker="$host_os dld.sl"
10148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10154 ;;
10155 *)
10156 shrext_cmds='.sl'
10157 dynamic_linker="$host_os dld.sl"
10158 shlibpath_var=SHLIB_PATH
10159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 ;;
10163 esac
10164 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10165 postinstall_cmds='chmod 555 $lib'
10166 # or fails outright, so override atomically:
10167 install_override_mode=555
10168 ;;
10169
10170 interix[3-9]*)
10171 version_type=linux # correct to gnu/linux during the next big refactor
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath=no
10179 hardcode_into_libs=yes
10180 ;;
10181
10182 irix5* | irix6* | nonstopux*)
10183 case $host_os in
10184 nonstopux*) version_type=nonstopux ;;
10185 *)
10186 if test "$lt_cv_prog_gnu_ld" = yes; then
10187 version_type=linux # correct to gnu/linux during the next big refactor
10188 else
10189 version_type=irix
10190 fi ;;
10191 esac
10192 need_lib_prefix=no
10193 need_version=no
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10196 case $host_os in
10197 irix5* | nonstopux*)
10198 libsuff= shlibsuff=
10199 ;;
10200 *)
10201 case $LD in # libtool.m4 will add one of these switches to LD
10202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10203 libsuff= shlibsuff= libmagic=32-bit;;
10204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10205 libsuff=32 shlibsuff=N32 libmagic=N32;;
10206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10207 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10208 *) libsuff= shlibsuff= libmagic=never-match;;
10209 esac
10210 ;;
10211 esac
10212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10213 shlibpath_overrides_runpath=no
10214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10216 hardcode_into_libs=yes
10217 ;;
10218
10219 # No shared lib support for Linux oldld, aout, or coff.
10220 linux*oldld* | linux*aout* | linux*coff*)
10221 dynamic_linker=no
10222 ;;
10223
10224 # This must be glibc/ELF.
10225 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10226 version_type=linux # correct to gnu/linux during the next big refactor
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10234
10235 # Some binutils ld are patched to set DT_RUNPATH
10236 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 lt_cv_shlibpath_overrides_runpath=no
10240 save_LDFLAGS=$LDFLAGS
10241 save_libdir=$libdir
10242 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10243 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246
10247 int
10248 main ()
10249 {
10250
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10257 lt_cv_shlibpath_overrides_runpath=yes
10258 fi
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LDFLAGS=$save_LDFLAGS
10263 libdir=$save_libdir
10264
10265 fi
10266
10267 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10268
10269 # This implies no fast_install, which is unacceptable.
10270 # Some rework will be needed to allow for fast_install
10271 # before this can be enabled.
10272 hardcode_into_libs=yes
10273
10274 # Append ld.so.conf contents to the search path
10275 if test -f /etc/ld.so.conf; then
10276 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' ' '`
10277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10278 fi
10279
10280 # We used to test for /lib/ld.so.1 and disable shared libraries on
10281 # powerpc, because MkLinux only supported shared libraries with the
10282 # GNU dynamic linker. Since this was broken with cross compilers,
10283 # most powerpc-linux boxes support dynamic linking these days and
10284 # people can always --disable-shared, the test was removed, and we
10285 # assume the GNU/Linux dynamic linker is in use.
10286 dynamic_linker='GNU/Linux ld.so'
10287 ;;
10288
10289 netbsdelf*-gnu)
10290 version_type=linux
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10298 dynamic_linker='NetBSD ld.elf_so'
10299 ;;
10300
10301 netbsd*)
10302 version_type=sunos
10303 need_lib_prefix=no
10304 need_version=no
10305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308 dynamic_linker='NetBSD (a.out) ld.so'
10309 else
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 dynamic_linker='NetBSD ld.elf_so'
10313 fi
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=yes
10316 hardcode_into_libs=yes
10317 ;;
10318
10319 newsos6)
10320 version_type=linux # correct to gnu/linux during the next big refactor
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes
10324 ;;
10325
10326 *nto* | *qnx*)
10327 version_type=qnx
10328 need_lib_prefix=no
10329 need_version=no
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10335 dynamic_linker='ldqnx.so'
10336 ;;
10337
10338 openbsd*)
10339 version_type=sunos
10340 sys_lib_dlsearch_path_spec="/usr/lib"
10341 need_lib_prefix=no
10342 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10343 case $host_os in
10344 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10345 *) need_version=no ;;
10346 esac
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10351 case $host_os in
10352 openbsd2.[89] | openbsd2.[89].*)
10353 shlibpath_overrides_runpath=no
10354 ;;
10355 *)
10356 shlibpath_overrides_runpath=yes
10357 ;;
10358 esac
10359 else
10360 shlibpath_overrides_runpath=yes
10361 fi
10362 ;;
10363
10364 os2*)
10365 libname_spec='$name'
10366 shrext_cmds=".dll"
10367 need_lib_prefix=no
10368 library_names_spec='$libname${shared_ext} $libname.a'
10369 dynamic_linker='OS/2 ld.exe'
10370 shlibpath_var=LIBPATH
10371 ;;
10372
10373 osf3* | osf4* | osf5*)
10374 version_type=osf
10375 need_lib_prefix=no
10376 need_version=no
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10381 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10382 ;;
10383
10384 rdos*)
10385 dynamic_linker=no
10386 ;;
10387
10388 solaris*)
10389 version_type=linux # correct to gnu/linux during the next big refactor
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=yes
10396 hardcode_into_libs=yes
10397 # ldd complains unless libraries are executable
10398 postinstall_cmds='chmod +x $lib'
10399 ;;
10400
10401 sunos4*)
10402 version_type=sunos
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10407 if test "$with_gnu_ld" = yes; then
10408 need_lib_prefix=no
10409 fi
10410 need_version=yes
10411 ;;
10412
10413 sysv4 | sysv4.3*)
10414 version_type=linux # correct to gnu/linux during the next big refactor
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 case $host_vendor in
10419 sni)
10420 shlibpath_overrides_runpath=no
10421 need_lib_prefix=no
10422 runpath_var=LD_RUN_PATH
10423 ;;
10424 siemens)
10425 need_lib_prefix=no
10426 ;;
10427 motorola)
10428 need_lib_prefix=no
10429 need_version=no
10430 shlibpath_overrides_runpath=no
10431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10432 ;;
10433 esac
10434 ;;
10435
10436 sysv4*MP*)
10437 if test -d /usr/nec ;then
10438 version_type=linux # correct to gnu/linux during the next big refactor
10439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10440 soname_spec='$libname${shared_ext}.$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 fi
10443 ;;
10444
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10446 version_type=freebsd-elf
10447 need_lib_prefix=no
10448 need_version=no
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes
10453 hardcode_into_libs=yes
10454 if test "$with_gnu_ld" = yes; then
10455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10456 else
10457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10458 case $host_os in
10459 sco3.2v5*)
10460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10461 ;;
10462 esac
10463 fi
10464 sys_lib_dlsearch_path_spec='/usr/lib'
10465 ;;
10466
10467 tpf*)
10468 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10469 version_type=linux # correct to gnu/linux during the next big refactor
10470 need_lib_prefix=no
10471 need_version=no
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=no
10475 hardcode_into_libs=yes
10476 ;;
10477
10478 uts4*)
10479 version_type=linux # correct to gnu/linux during the next big refactor
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 ;;
10484
10485 *)
10486 dynamic_linker=no
10487 ;;
10488 esac
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10490 $as_echo "$dynamic_linker" >&6; }
10491 test "$dynamic_linker" = no && can_build_shared=no
10492
10493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10494 if test "$GCC" = yes; then
10495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10496 fi
10497
10498 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10499 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10500 fi
10501 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10502 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10503 fi
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10598 hardcode_action=
10599 if test -n "$hardcode_libdir_flag_spec" ||
10600 test -n "$runpath_var" ||
10601 test "X$hardcode_automatic" = "Xyes" ; then
10602
10603 # We can hardcode non-existent directories.
10604 if test "$hardcode_direct" != no &&
10605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10606 # have to relink, otherwise we might link with an installed library
10607 # when we should be linking with a yet-to-be-installed one
10608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10609 test "$hardcode_minus_L" != no; then
10610 # Linking always hardcodes the temporary library directory.
10611 hardcode_action=relink
10612 else
10613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10614 hardcode_action=immediate
10615 fi
10616 else
10617 # We cannot hardcode anything, or else we can only hardcode existing
10618 # directories.
10619 hardcode_action=unsupported
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10622 $as_echo "$hardcode_action" >&6; }
10623
10624 if test "$hardcode_action" = relink ||
10625 test "$inherit_rpath" = yes; then
10626 # Fast installation is not supported
10627 enable_fast_install=no
10628 elif test "$shlibpath_overrides_runpath" = yes ||
10629 test "$enable_shared" = no; then
10630 # Fast installation is not necessary
10631 enable_fast_install=needless
10632 fi
10633
10634
10635
10636
10637
10638
10639 if test "x$enable_dlopen" != xyes; then
10640 enable_dlopen=unknown
10641 enable_dlopen_self=unknown
10642 enable_dlopen_self_static=unknown
10643 else
10644 lt_cv_dlopen=no
10645 lt_cv_dlopen_libs=
10646
10647 case $host_os in
10648 beos*)
10649 lt_cv_dlopen="load_add_on"
10650 lt_cv_dlopen_libs=
10651 lt_cv_dlopen_self=yes
10652 ;;
10653
10654 mingw* | pw32* | cegcc*)
10655 lt_cv_dlopen="LoadLibrary"
10656 lt_cv_dlopen_libs=
10657 ;;
10658
10659 cygwin*)
10660 lt_cv_dlopen="dlopen"
10661 lt_cv_dlopen_libs=
10662 ;;
10663
10664 darwin*)
10665 # if libdl is installed we need to link against it
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10668 if ${ac_cv_lib_dl_dlopen+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-ldl $LIBS"
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char dlopen ();
10683 int
10684 main ()
10685 {
10686 return dlopen ();
10687 ;
10688 return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"; then :
10692 ac_cv_lib_dl_dlopen=yes
10693 else
10694 ac_cv_lib_dl_dlopen=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10702 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10704 else
10705
10706 lt_cv_dlopen="dyld"
10707 lt_cv_dlopen_libs=
10708 lt_cv_dlopen_self=yes
10709
10710 fi
10711
10712 ;;
10713
10714 *)
10715 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10716 if test "x$ac_cv_func_shl_load" = xyes; then :
10717 lt_cv_dlopen="shl_load"
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10720 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10721 if ${ac_cv_lib_dld_shl_load+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-ldld $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char shl_load ();
10736 int
10737 main ()
10738 {
10739 return shl_load ();
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 ac_cv_lib_dld_shl_load=yes
10746 else
10747 ac_cv_lib_dld_shl_load=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10754 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10755 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10757 else
10758 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10759 if test "x$ac_cv_func_dlopen" = xyes; then :
10760 lt_cv_dlopen="dlopen"
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10764 if ${ac_cv_lib_dl_dlopen+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-ldl $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char dlopen ();
10779 int
10780 main ()
10781 {
10782 return dlopen ();
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_dl_dlopen=yes
10789 else
10790 ac_cv_lib_dl_dlopen=no
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10802 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10803 if ${ac_cv_lib_svld_dlopen+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-lsvld $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char dlopen ();
10818 int
10819 main ()
10820 {
10821 return dlopen ();
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 ac_cv_lib_svld_dlopen=yes
10828 else
10829 ac_cv_lib_svld_dlopen=no
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10834 fi
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10837 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10842 if ${ac_cv_lib_dld_dld_link+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldld $LIBS"
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char dld_link ();
10857 int
10858 main ()
10859 {
10860 return dld_link ();
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_lib_dld_dld_link=yes
10867 else
10868 ac_cv_lib_dld_dld_link=no
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10873 fi
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10876 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10877 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10878 fi
10879
10880
10881 fi
10882
10883
10884 fi
10885
10886
10887 fi
10888
10889
10890 fi
10891
10892
10893 fi
10894
10895 ;;
10896 esac
10897
10898 if test "x$lt_cv_dlopen" != xno; then
10899 enable_dlopen=yes
10900 else
10901 enable_dlopen=no
10902 fi
10903
10904 case $lt_cv_dlopen in
10905 dlopen)
10906 save_CPPFLAGS="$CPPFLAGS"
10907 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10908
10909 save_LDFLAGS="$LDFLAGS"
10910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10911
10912 save_LIBS="$LIBS"
10913 LIBS="$lt_cv_dlopen_libs $LIBS"
10914
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10916 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10917 if ${lt_cv_dlopen_self+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 if test "$cross_compiling" = yes; then :
10921 lt_cv_dlopen_self=cross
10922 else
10923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10924 lt_status=$lt_dlunknown
10925 cat > conftest.$ac_ext <<_LT_EOF
10926 #line $LINENO "configure"
10927 #include "confdefs.h"
10928
10929 #if HAVE_DLFCN_H
10930 #include <dlfcn.h>
10931 #endif
10932
10933 #include <stdio.h>
10934
10935 #ifdef RTLD_GLOBAL
10936 # define LT_DLGLOBAL RTLD_GLOBAL
10937 #else
10938 # ifdef DL_GLOBAL
10939 # define LT_DLGLOBAL DL_GLOBAL
10940 # else
10941 # define LT_DLGLOBAL 0
10942 # endif
10943 #endif
10944
10945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10946 find out it does not work in some platform. */
10947 #ifndef LT_DLLAZY_OR_NOW
10948 # ifdef RTLD_LAZY
10949 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10950 # else
10951 # ifdef DL_LAZY
10952 # define LT_DLLAZY_OR_NOW DL_LAZY
10953 # else
10954 # ifdef RTLD_NOW
10955 # define LT_DLLAZY_OR_NOW RTLD_NOW
10956 # else
10957 # ifdef DL_NOW
10958 # define LT_DLLAZY_OR_NOW DL_NOW
10959 # else
10960 # define LT_DLLAZY_OR_NOW 0
10961 # endif
10962 # endif
10963 # endif
10964 # endif
10965 #endif
10966
10967 /* When -fvisbility=hidden is used, assume the code has been annotated
10968 correspondingly for the symbols needed. */
10969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10970 int fnord () __attribute__((visibility("default")));
10971 #endif
10972
10973 int fnord () { return 42; }
10974 int main ()
10975 {
10976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10977 int status = $lt_dlunknown;
10978
10979 if (self)
10980 {
10981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10982 else
10983 {
10984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10985 else puts (dlerror ());
10986 }
10987 /* dlclose (self); */
10988 }
10989 else
10990 puts (dlerror ());
10991
10992 return status;
10993 }
10994 _LT_EOF
10995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10996 (eval $ac_link) 2>&5
10997 ac_status=$?
10998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11000 (./conftest; exit; ) >&5 2>/dev/null
11001 lt_status=$?
11002 case x$lt_status in
11003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11005 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11006 esac
11007 else :
11008 # compilation failed
11009 lt_cv_dlopen_self=no
11010 fi
11011 fi
11012 rm -fr conftest*
11013
11014
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11017 $as_echo "$lt_cv_dlopen_self" >&6; }
11018
11019 if test "x$lt_cv_dlopen_self" = xyes; then
11020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11022 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11023 if ${lt_cv_dlopen_self_static+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 if test "$cross_compiling" = yes; then :
11027 lt_cv_dlopen_self_static=cross
11028 else
11029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11030 lt_status=$lt_dlunknown
11031 cat > conftest.$ac_ext <<_LT_EOF
11032 #line $LINENO "configure"
11033 #include "confdefs.h"
11034
11035 #if HAVE_DLFCN_H
11036 #include <dlfcn.h>
11037 #endif
11038
11039 #include <stdio.h>
11040
11041 #ifdef RTLD_GLOBAL
11042 # define LT_DLGLOBAL RTLD_GLOBAL
11043 #else
11044 # ifdef DL_GLOBAL
11045 # define LT_DLGLOBAL DL_GLOBAL
11046 # else
11047 # define LT_DLGLOBAL 0
11048 # endif
11049 #endif
11050
11051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11052 find out it does not work in some platform. */
11053 #ifndef LT_DLLAZY_OR_NOW
11054 # ifdef RTLD_LAZY
11055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11056 # else
11057 # ifdef DL_LAZY
11058 # define LT_DLLAZY_OR_NOW DL_LAZY
11059 # else
11060 # ifdef RTLD_NOW
11061 # define LT_DLLAZY_OR_NOW RTLD_NOW
11062 # else
11063 # ifdef DL_NOW
11064 # define LT_DLLAZY_OR_NOW DL_NOW
11065 # else
11066 # define LT_DLLAZY_OR_NOW 0
11067 # endif
11068 # endif
11069 # endif
11070 # endif
11071 #endif
11072
11073 /* When -fvisbility=hidden is used, assume the code has been annotated
11074 correspondingly for the symbols needed. */
11075 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11076 int fnord () __attribute__((visibility("default")));
11077 #endif
11078
11079 int fnord () { return 42; }
11080 int main ()
11081 {
11082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11083 int status = $lt_dlunknown;
11084
11085 if (self)
11086 {
11087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11088 else
11089 {
11090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11091 else puts (dlerror ());
11092 }
11093 /* dlclose (self); */
11094 }
11095 else
11096 puts (dlerror ());
11097
11098 return status;
11099 }
11100 _LT_EOF
11101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11102 (eval $ac_link) 2>&5
11103 ac_status=$?
11104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11106 (./conftest; exit; ) >&5 2>/dev/null
11107 lt_status=$?
11108 case x$lt_status in
11109 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11110 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11111 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11112 esac
11113 else :
11114 # compilation failed
11115 lt_cv_dlopen_self_static=no
11116 fi
11117 fi
11118 rm -fr conftest*
11119
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11123 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11124 fi
11125
11126 CPPFLAGS="$save_CPPFLAGS"
11127 LDFLAGS="$save_LDFLAGS"
11128 LIBS="$save_LIBS"
11129 ;;
11130 esac
11131
11132 case $lt_cv_dlopen_self in
11133 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11134 *) enable_dlopen_self=unknown ;;
11135 esac
11136
11137 case $lt_cv_dlopen_self_static in
11138 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11139 *) enable_dlopen_self_static=unknown ;;
11140 esac
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159 striplib=
11160 old_striplib=
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11162 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11163 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11168 else
11169 # FIXME - insert some real tests, host_os isn't really good enough
11170 case $host_os in
11171 darwin*)
11172 if test -n "$STRIP" ; then
11173 striplib="$STRIP -x"
11174 old_striplib="$STRIP -S"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181 ;;
11182 *)
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185 ;;
11186 esac
11187 fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200 # Report which library types will actually be built
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11202 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11204 $as_echo "$can_build_shared" >&6; }
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11207 $as_echo_n "checking whether to build shared libraries... " >&6; }
11208 test "$can_build_shared" = "no" && enable_shared=no
11209
11210 # On AIX, shared libraries and static libraries use the same namespace, and
11211 # are all built from PIC.
11212 case $host_os in
11213 aix3*)
11214 test "$enable_shared" = yes && enable_static=no
11215 if test -n "$RANLIB"; then
11216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11217 postinstall_cmds='$RANLIB $lib'
11218 fi
11219 ;;
11220
11221 aix[4-9]*)
11222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11223 test "$enable_shared" = yes && enable_static=no
11224 fi
11225 ;;
11226 esac
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11228 $as_echo "$enable_shared" >&6; }
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11231 $as_echo_n "checking whether to build static libraries... " >&6; }
11232 # Make sure either enable_shared or enable_static is yes.
11233 test "$enable_shared" = yes || enable_static=yes
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11235 $as_echo "$enable_static" >&6; }
11236
11237
11238
11239
11240 fi
11241 ac_ext=c
11242 ac_cpp='$CPP $CPPFLAGS'
11243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246
11247 CC="$lt_save_CC"
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 ac_config_commands="$ac_config_commands libtool"
11264
11265
11266
11267
11268 # Only expand once:
11269
11270
11271
11272 # Checks for libraries.
11273
11274 LT_DLLOADERS=
11275
11276
11277 ac_ext=c
11278 ac_cpp='$CPP $CPPFLAGS'
11279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11282
11283
11284 LIBADD_DLOPEN=
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11286 $as_echo_n "checking for library containing dlopen... " >&6; }
11287 if ${ac_cv_search_dlopen+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 ac_func_search_save_LIBS=$LIBS
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dlopen ();
11301 int
11302 main ()
11303 {
11304 return dlopen ();
11305 ;
11306 return 0;
11307 }
11308 _ACEOF
11309 for ac_lib in '' dl; do
11310 if test -z "$ac_lib"; then
11311 ac_res="none required"
11312 else
11313 ac_res=-l$ac_lib
11314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11315 fi
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_search_dlopen=$ac_res
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext
11321 if ${ac_cv_search_dlopen+:} false; then :
11322 break
11323 fi
11324 done
11325 if ${ac_cv_search_dlopen+:} false; then :
11326
11327 else
11328 ac_cv_search_dlopen=no
11329 fi
11330 rm conftest.$ac_ext
11331 LIBS=$ac_func_search_save_LIBS
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11334 $as_echo "$ac_cv_search_dlopen" >&6; }
11335 ac_res=$ac_cv_search_dlopen
11336 if test "$ac_res" != no; then :
11337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11338
11339 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
11340
11341 if test "$ac_cv_search_dlopen" != "none required" ; then
11342 LIBADD_DLOPEN="-ldl"
11343 fi
11344 libltdl_cv_lib_dl_dlopen="yes"
11345 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11346 else
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 #if HAVE_DLFCN_H
11350 # include <dlfcn.h>
11351 #endif
11352
11353 int
11354 main ()
11355 {
11356 dlopen(0, 0);
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362
11363 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
11364
11365 libltdl_cv_func_dlopen="yes"
11366 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11369 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11370 if ${ac_cv_lib_svld_dlopen+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-lsvld $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char dlopen ();
11385 int
11386 main ()
11387 {
11388 return dlopen ();
11389 ;
11390 return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_svld_dlopen=yes
11395 else
11396 ac_cv_lib_svld_dlopen=no
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11403 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11404 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11405
11406 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
11407
11408 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11409 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11410 fi
11411
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 fi
11416
11417 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11418 then
11419 lt_save_LIBS="$LIBS"
11420 LIBS="$LIBS $LIBADD_DLOPEN"
11421 for ac_func in dlerror
11422 do :
11423 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11424 if test "x$ac_cv_func_dlerror" = xyes; then :
11425 cat >>confdefs.h <<_ACEOF
11426 @%:@define HAVE_DLERROR 1
11427 _ACEOF
11428
11429 fi
11430 done
11431
11432 LIBS="$lt_save_LIBS"
11433 fi
11434
11435
11436 LIBADD_SHL_LOAD=
11437 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11438 if test "x$ac_cv_func_shl_load" = xyes; then :
11439
11440 $as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
11441
11442 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11445 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11446 if ${ac_cv_lib_dld_shl_load+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-ldld $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char shl_load ();
11461 int
11462 main ()
11463 {
11464 return shl_load ();
11465 ;
11466 return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_lib_dld_shl_load=yes
11471 else
11472 ac_cv_lib_dld_shl_load=no
11473 fi
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11479 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11480 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11481
11482 $as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
11483
11484 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11485 LIBADD_SHL_LOAD="-ldld"
11486 fi
11487
11488 fi
11489
11490
11491
11492 case $host_os in
11493 darwin[1567].*)
11494 # We only want this for pre-Mac OS X 10.4.
11495 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11496 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11497
11498 $as_echo "@%:@define HAVE_DYLD 1" >>confdefs.h
11499
11500 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11501 fi
11502
11503 ;;
11504 beos*)
11505 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11506 ;;
11507 cygwin* | mingw* | os2* | pw32*)
11508 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11509 "
11510 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11511 ac_have_decl=1
11512 else
11513 ac_have_decl=0
11514 fi
11515
11516 cat >>confdefs.h <<_ACEOF
11517 @%:@define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11518 _ACEOF
11519
11520 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11521 ;;
11522 esac
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11525 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11526 if ${ac_cv_lib_dld_dld_link+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-ldld $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char dld_link ();
11541 int
11542 main ()
11543 {
11544 return dld_link ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_dld_dld_link=yes
11551 else
11552 ac_cv_lib_dld_dld_link=no
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11559 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11560 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11561
11562 $as_echo "@%:@define HAVE_DLD 1" >>confdefs.h
11563
11564 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11565 fi
11566
11567
11568
11569
11570 LT_DLPREOPEN=
11571 if test -n "$LT_DLLOADERS"
11572 then
11573 for lt_loader in $LT_DLLOADERS; do
11574 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11575 done
11576
11577 $as_echo "@%:@define HAVE_LIBDLLOADER 1" >>confdefs.h
11578
11579 fi
11580
11581
11582 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11583
11584
11585 ac_ext=c
11586 ac_cpp='$CPP $CPPFLAGS'
11587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11590
11591
11592 LIBM=
11593 case $host in
11594 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11595 # These system don't have libm, or don't need it
11596 ;;
11597 *-ncr-sysv4.3*)
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11599 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11600 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lmw $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char _mwvalidcheckl ();
11615 int
11616 main ()
11617 {
11618 return _mwvalidcheckl ();
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 ac_cv_lib_mw__mwvalidcheckl=yes
11625 else
11626 ac_cv_lib_mw__mwvalidcheckl=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11633 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11634 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11635 LIBM="-lmw"
11636 fi
11637
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11639 $as_echo_n "checking for cos in -lm... " >&6; }
11640 if ${ac_cv_lib_m_cos+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 ac_check_lib_save_LIBS=$LIBS
11644 LIBS="-lm $LIBS"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11651 #ifdef __cplusplus
11652 extern "C"
11653 #endif
11654 char cos ();
11655 int
11656 main ()
11657 {
11658 return cos ();
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 ac_cv_lib_m_cos=yes
11665 else
11666 ac_cv_lib_m_cos=no
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11673 $as_echo "$ac_cv_lib_m_cos" >&6; }
11674 if test "x$ac_cv_lib_m_cos" = xyes; then :
11675 LIBM="$LIBM -lm"
11676 fi
11677
11678 ;;
11679 *)
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11681 $as_echo_n "checking for cos in -lm... " >&6; }
11682 if ${ac_cv_lib_m_cos+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lm $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char cos ();
11697 int
11698 main ()
11699 {
11700 return cos ();
11701 ;
11702 return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_m_cos=yes
11707 else
11708 ac_cv_lib_m_cos=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11715 $as_echo "$ac_cv_lib_m_cos" >&6; }
11716 if test "x$ac_cv_lib_m_cos" = xyes; then :
11717 LIBM="-lm"
11718 fi
11719
11720 ;;
11721 esac
11722
11723
11724
11725 # Checks for header files.
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11727 $as_echo_n "checking for ANSI C header files... " >&6; }
11728 if ${ac_cv_header_stdc+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include <stdlib.h>
11734 #include <stdarg.h>
11735 #include <string.h>
11736 #include <float.h>
11737
11738 int
11739 main ()
11740 {
11741
11742 ;
11743 return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_compile "$LINENO"; then :
11747 ac_cv_header_stdc=yes
11748 else
11749 ac_cv_header_stdc=no
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752
11753 if test $ac_cv_header_stdc = yes; then
11754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h. */
11757 #include <string.h>
11758
11759 _ACEOF
11760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11761 $EGREP "memchr" >/dev/null 2>&1; then :
11762
11763 else
11764 ac_cv_header_stdc=no
11765 fi
11766 rm -f conftest*
11767
11768 fi
11769
11770 if test $ac_cv_header_stdc = yes; then
11771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 #include <stdlib.h>
11775
11776 _ACEOF
11777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11778 $EGREP "free" >/dev/null 2>&1; then :
11779
11780 else
11781 ac_cv_header_stdc=no
11782 fi
11783 rm -f conftest*
11784
11785 fi
11786
11787 if test $ac_cv_header_stdc = yes; then
11788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11789 if test "$cross_compiling" = yes; then :
11790 :
11791 else
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 #include <ctype.h>
11795 #include <stdlib.h>
11796 #if ((' ' & 0x0FF) == 0x020)
11797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11799 #else
11800 # define ISLOWER(c) \
11801 (('a' <= (c) && (c) <= 'i') \
11802 || ('j' <= (c) && (c) <= 'r') \
11803 || ('s' <= (c) && (c) <= 'z'))
11804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11805 #endif
11806
11807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11808 int
11809 main ()
11810 {
11811 int i;
11812 for (i = 0; i < 256; i++)
11813 if (XOR (islower (i), ISLOWER (i))
11814 || toupper (i) != TOUPPER (i))
11815 return 2;
11816 return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_run "$LINENO"; then :
11820
11821 else
11822 ac_cv_header_stdc=no
11823 fi
11824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11825 conftest.$ac_objext conftest.beam conftest.$ac_ext
11826 fi
11827
11828 fi
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11831 $as_echo "$ac_cv_header_stdc" >&6; }
11832 if test $ac_cv_header_stdc = yes; then
11833
11834 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
11835
11836 fi
11837
11838
11839 # Checks for typedefs, structures, and compiler characteristics.
11840
11841 # Checks for library functions.
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11843 $as_echo_n "checking for connect in -lsocket... " >&6; }
11844 if ${ac_cv_lib_socket_connect+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 ac_check_lib_save_LIBS=$LIBS
11848 LIBS="-lsocket $LIBS"
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11851
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char connect ();
11859 int
11860 main ()
11861 {
11862 return connect ();
11863 ;
11864 return 0;
11865 }
11866 _ACEOF
11867 if ac_fn_c_try_link "$LINENO"; then :
11868 ac_cv_lib_socket_connect=yes
11869 else
11870 ac_cv_lib_socket_connect=no
11871 fi
11872 rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 LIBS=$ac_check_lib_save_LIBS
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11877 $as_echo "$ac_cv_lib_socket_connect" >&6; }
11878 if test "x$ac_cv_lib_socket_connect" = xyes; then :
11879 cat >>confdefs.h <<_ACEOF
11880 @%:@define HAVE_LIBSOCKET 1
11881 _ACEOF
11882
11883 LIBS="-lsocket $LIBS"
11884
11885 fi
11886
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11888 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11889 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-lpthread $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char pthread_create ();
11904 int
11905 main ()
11906 {
11907 return pthread_create ();
11908 ;
11909 return 0;
11910 }
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_lib_pthread_pthread_create=yes
11914 else
11915 ac_cv_lib_pthread_pthread_create=no
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
11922 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
11923 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
11924 cat >>confdefs.h <<_ACEOF
11925 @%:@define HAVE_LIBPTHREAD 1
11926 _ACEOF
11927
11928 LIBS="-lpthread $LIBS"
11929
11930 fi
11931
11932
11933
11934 # Custom check for os, similar to webkit
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
11936 $as_echo_n "checking for native Win32... " >&6; }
11937 case "$host" in
11938 *-*-mingw*)
11939 os_win32=yes
11940 ;;
11941 *)
11942 os_win32=no
11943 ;;
11944 esac
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
11946 $as_echo "$os_win32" >&6; }
11947
11948 case "$host" in
11949 *-*-linux*)
11950 os_linux=yes
11951 ;;
11952 *-*-freebsd*)
11953 os_freebsd=yes
11954 ;;
11955 *-*-darwin*)
11956 os_darwin=yes
11957 ;;
11958 esac
11959
11960 case "$host_os" in
11961 gnu* | linux* | k*bsd*-gnu)
11962 os_gnu=yes
11963 ;;
11964 *)
11965 os_gnu=no
11966 ;;
11967 esac
11968
11969 # OS conditionals
11970 if test "$os_win32" = "yes"; then
11971 OS_WIN32_TRUE=
11972 OS_WIN32_FALSE='#'
11973 else
11974 OS_WIN32_TRUE='#'
11975 OS_WIN32_FALSE=
11976 fi
11977
11978 if test "$os_win32" = "no"; then
11979 OS_UNIX_TRUE=
11980 OS_UNIX_FALSE='#'
11981 else
11982 OS_UNIX_TRUE='#'
11983 OS_UNIX_FALSE=
11984 fi
11985
11986 if test "$os_linux" = "yes"; then
11987 OS_LINUX_TRUE=
11988 OS_LINUX_FALSE='#'
11989 else
11990 OS_LINUX_TRUE='#'
11991 OS_LINUX_FALSE=
11992 fi
11993
11994 if test "$os_gnu" = "yes"; then
11995 OS_GNU_TRUE=
11996 OS_GNU_FALSE='#'
11997 else
11998 OS_GNU_TRUE='#'
11999 OS_GNU_FALSE=
12000 fi
12001
12002 if test "$os_freebsd" = "yes"; then
12003 OS_FREEBSD_TRUE=
12004 OS_FREEBSD_FALSE='#'
12005 else
12006 OS_FREEBSD_TRUE='#'
12007 OS_FREEBSD_FALSE=
12008 fi
12009
12010
12011 # Custom check for libao
12012
12013
12014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12015 if test -n "$ac_tool_prefix"; then
12016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019 $as_echo_n "checking for $ac_word... " >&6; }
12020 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 case $PKG_CONFIG in
12024 [\\/]* | ?:[\\/]*)
12025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12026 ;;
12027 *)
12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12030 do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12038 fi
12039 done
12040 done
12041 IFS=$as_save_IFS
12042
12043 ;;
12044 esac
12045 fi
12046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12047 if test -n "$PKG_CONFIG"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12049 $as_echo "$PKG_CONFIG" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054
12055
12056 fi
12057 if test -z "$ac_cv_path_PKG_CONFIG"; then
12058 ac_pt_PKG_CONFIG=$PKG_CONFIG
12059 # Extract the first word of "pkg-config", so it can be a program name with args.
12060 set dummy pkg-config; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 case $ac_pt_PKG_CONFIG in
12067 [\\/]* | ?:[\\/]*)
12068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12069 ;;
12070 *)
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12081 fi
12082 done
12083 done
12084 IFS=$as_save_IFS
12085
12086 ;;
12087 esac
12088 fi
12089 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12090 if test -n "$ac_pt_PKG_CONFIG"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12092 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12096 fi
12097
12098 if test "x$ac_pt_PKG_CONFIG" = x; then
12099 PKG_CONFIG=""
12100 else
12101 case $cross_compiling:$ac_tool_warned in
12102 yes:)
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12105 ac_tool_warned=yes ;;
12106 esac
12107 PKG_CONFIG=$ac_pt_PKG_CONFIG
12108 fi
12109 else
12110 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12111 fi
12112
12113 fi
12114 if test -n "$PKG_CONFIG"; then
12115 _pkg_min_version=0.9.0
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12117 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12118 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12120 $as_echo "yes" >&6; }
12121 else
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 PKG_CONFIG=""
12125 fi
12126
12127 fi
12128
12129 pkg_failed=no
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libao" >&5
12131 $as_echo_n "checking for libao... " >&6; }
12132
12133 if test -n "$libao_CFLAGS"; then
12134 pkg_cv_libao_CFLAGS="$libao_CFLAGS"
12135 elif test -n "$PKG_CONFIG"; then
12136 if test -n "$PKG_CONFIG" && \
12137 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 1.1.0\""; } >&5
12138 ($PKG_CONFIG --exists --print-errors "ao >= 1.1.0") 2>&5
12139 ac_status=$?
12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141 test $ac_status = 0; }; then
12142 pkg_cv_libao_CFLAGS=`$PKG_CONFIG --cflags "ao >= 1.1.0" 2>/dev/null`
12143 else
12144 pkg_failed=yes
12145 fi
12146 else
12147 pkg_failed=untried
12148 fi
12149 if test -n "$libao_LIBS"; then
12150 pkg_cv_libao_LIBS="$libao_LIBS"
12151 elif test -n "$PKG_CONFIG"; then
12152 if test -n "$PKG_CONFIG" && \
12153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 1.1.0\""; } >&5
12154 ($PKG_CONFIG --exists --print-errors "ao >= 1.1.0") 2>&5
12155 ac_status=$?
12156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12157 test $ac_status = 0; }; then
12158 pkg_cv_libao_LIBS=`$PKG_CONFIG --libs "ao >= 1.1.0" 2>/dev/null`
12159 else
12160 pkg_failed=yes
12161 fi
12162 else
12163 pkg_failed=untried
12164 fi
12165
12166
12167
12168 if test $pkg_failed = yes; then
12169
12170 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12171 _pkg_short_errors_supported=yes
12172 else
12173 _pkg_short_errors_supported=no
12174 fi
12175 if test $_pkg_short_errors_supported = yes; then
12176 libao_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ao >= 1.1.0" 2>&1`
12177 else
12178 libao_PKG_ERRORS=`$PKG_CONFIG --print-errors "ao >= 1.1.0" 2>&1`
12179 fi
12180 # Put the nasty error message in config.log where it belongs
12181 echo "$libao_PKG_ERRORS" >&5
12182
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 have_libao=0
12186 elif test $pkg_failed = untried; then
12187 have_libao=0
12188 else
12189 libao_CFLAGS=$pkg_cv_libao_CFLAGS
12190 libao_LIBS=$pkg_cv_libao_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192 $as_echo "yes" >&6; }
12193 have_libao=1
12194 fi
12195 if test "$have_libao" -eq 1; then
12196 HAVE_LIBAO_TRUE=
12197 HAVE_LIBAO_FALSE='#'
12198 else
12199 HAVE_LIBAO_TRUE='#'
12200 HAVE_LIBAO_FALSE=
12201 fi
12202
12203
12204
12205
12206 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/lib/alac/Makefile src/lib/crypto/Makefile"
12207
12208 cat >confcache <<\_ACEOF
12209 # This file is a shell script that caches the results of configure
12210 # tests run on this system so they can be shared between configure
12211 # scripts and configure runs, see configure's option --config-cache.
12212 # It is not useful on other systems. If it contains results you don't
12213 # want to keep, you may remove or edit it.
12214 #
12215 # config.status only pays attention to the cache file if you give it
12216 # the --recheck option to rerun configure.
12217 #
12218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12220 # following values.
12221
12222 _ACEOF
12223
12224 # The following way of writing the cache mishandles newlines in values,
12225 # but we know of no workaround that is simple, portable, and efficient.
12226 # So, we kill variables containing newlines.
12227 # Ultrix sh set writes to stderr and can't be redirected directly,
12228 # and sets the high bit in the cache file unless we assign to the vars.
12229 (
12230 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12231 eval ac_val=\$$ac_var
12232 case $ac_val in #(
12233 *${as_nl}*)
12234 case $ac_var in #(
12235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12237 esac
12238 case $ac_var in #(
12239 _ | IFS | as_nl) ;; #(
12240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12241 *) { eval $ac_var=; unset $ac_var;} ;;
12242 esac ;;
12243 esac
12244 done
12245
12246 (set) 2>&1 |
12247 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12248 *${as_nl}ac_space=\ *)
12249 # `set' does not quote correctly, so add quotes: double-quote
12250 # substitution turns \\\\ into \\, and sed turns \\ into \.
12251 sed -n \
12252 "s/'/'\\\\''/g;
12253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12254 ;; #(
12255 *)
12256 # `set' quotes correctly as required by POSIX, so do not add quotes.
12257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12258 ;;
12259 esac |
12260 sort
12261 ) |
12262 sed '
12263 /^ac_cv_env_/b end
12264 t clear
12265 :clear
12266 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12267 t end
12268 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12269 :end' >>confcache
12270 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12271 if test -w "$cache_file"; then
12272 if test "x$cache_file" != "x/dev/null"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12274 $as_echo "$as_me: updating cache $cache_file" >&6;}
12275 if test ! -f "$cache_file" || test -h "$cache_file"; then
12276 cat confcache >"$cache_file"
12277 else
12278 case $cache_file in #(
12279 */* | ?:*)
12280 mv -f confcache "$cache_file"$$ &&
12281 mv -f "$cache_file"$$ "$cache_file" ;; #(
12282 *)
12283 mv -f confcache "$cache_file" ;;
12284 esac
12285 fi
12286 fi
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12289 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12290 fi
12291 fi
12292 rm -f confcache
12293
12294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12295 # Let make expand exec_prefix.
12296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12297
12298 DEFS=-DHAVE_CONFIG_H
12299
12300 ac_libobjs=
12301 ac_ltlibobjs=
12302 U=
12303 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
12304 # 1. Remove the extension, and $U if already installed.
12305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12306 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12308 # will be set to the directory where LIBOBJS objects are built.
12309 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12310 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12311 done
12312 LIB@&t@OBJS=$ac_libobjs
12313
12314 LTLIBOBJS=$ac_ltlibobjs
12315
12316
12317 if test -n "$EXEEXT"; then
12318 am__EXEEXT_TRUE=
12319 am__EXEEXT_FALSE='#'
12320 else
12321 am__EXEEXT_TRUE='#'
12322 am__EXEEXT_FALSE=
12323 fi
12324
12325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12326 as_fn_error $? "conditional \"AMDEP\" was never defined.
12327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12328 fi
12329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12330 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12332 fi
12333 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
12334 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
12335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12336 fi
12337 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
12338 as_fn_error $? "conditional \"OS_UNIX\" was never defined.
12339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12340 fi
12341 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
12342 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
12343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12344 fi
12345 if test -z "${OS_GNU_TRUE}" && test -z "${OS_GNU_FALSE}"; then
12346 as_fn_error $? "conditional \"OS_GNU\" was never defined.
12347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12348 fi
12349 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
12350 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
12351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12352 fi
12353 if test -z "${HAVE_LIBAO_TRUE}" && test -z "${HAVE_LIBAO_FALSE}"; then
12354 as_fn_error $? "conditional \"HAVE_LIBAO\" was never defined.
12355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12356 fi
12357
12358 : "${CONFIG_STATUS=./config.status}"
12359 ac_write_fail=0
12360 ac_clean_files_save=$ac_clean_files
12361 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12363 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12364 as_write_fail=0
12365 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12366 #! $SHELL
12367 # Generated by $as_me.
12368 # Run this file to recreate the current configuration.
12369 # Compiler output produced by configure, useful for debugging
12370 # configure, is in config.log if it exists.
12371
12372 debug=false
12373 ac_cs_recheck=false
12374 ac_cs_silent=false
12375
12376 SHELL=\${CONFIG_SHELL-$SHELL}
12377 export SHELL
12378 _ASEOF
12379 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12380 ## -------------------- ##
12381 ## M4sh Initialization. ##
12382 ## -------------------- ##
12383
12384 # Be more Bourne compatible
12385 DUALCASE=1; export DUALCASE # for MKS sh
12386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12387 emulate sh
12388 NULLCMD=:
12389 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12390 # is contrary to our usage. Disable this feature.
12391 alias -g '${1+"$@"}'='"$@"'
12392 setopt NO_GLOB_SUBST
12393 else
12394 case `(set -o) 2>/dev/null` in @%:@(
12395 *posix*) :
12396 set -o posix ;; @%:@(
12397 *) :
12398 ;;
12399 esac
12400 fi
12401
12402
12403 as_nl='
12404 '
12405 export as_nl
12406 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12407 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12410 # Prefer a ksh shell builtin over an external printf program on Solaris,
12411 # but without wasting forks for bash or zsh.
12412 if test -z "$BASH_VERSION$ZSH_VERSION" \
12413 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12414 as_echo='print -r --'
12415 as_echo_n='print -rn --'
12416 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12417 as_echo='printf %s\n'
12418 as_echo_n='printf %s'
12419 else
12420 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12421 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12422 as_echo_n='/usr/ucb/echo -n'
12423 else
12424 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12425 as_echo_n_body='eval
12426 arg=$1;
12427 case $arg in @%:@(
12428 *"$as_nl"*)
12429 expr "X$arg" : "X\\(.*\\)$as_nl";
12430 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12431 esac;
12432 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12433 '
12434 export as_echo_n_body
12435 as_echo_n='sh -c $as_echo_n_body as_echo'
12436 fi
12437 export as_echo_body
12438 as_echo='sh -c $as_echo_body as_echo'
12439 fi
12440
12441 # The user is always right.
12442 if test "${PATH_SEPARATOR+set}" != set; then
12443 PATH_SEPARATOR=:
12444 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12445 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12446 PATH_SEPARATOR=';'
12447 }
12448 fi
12449
12450
12451 # IFS
12452 # We need space, tab and new line, in precisely that order. Quoting is
12453 # there to prevent editors from complaining about space-tab.
12454 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12455 # splitting by setting IFS to empty value.)
12456 IFS=" "" $as_nl"
12457
12458 # Find who we are. Look in the path if we contain no directory separator.
12459 as_myself=
12460 case $0 in @%:@((
12461 *[\\/]* ) as_myself=$0 ;;
12462 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465 IFS=$as_save_IFS
12466 test -z "$as_dir" && as_dir=.
12467 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12468 done
12469 IFS=$as_save_IFS
12470
12471 ;;
12472 esac
12473 # We did not find ourselves, most probably we were run as `sh COMMAND'
12474 # in which case we are not to be found in the path.
12475 if test "x$as_myself" = x; then
12476 as_myself=$0
12477 fi
12478 if test ! -f "$as_myself"; then
12479 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12480 exit 1
12481 fi
12482
12483 # Unset variables that we do not need and which cause bugs (e.g. in
12484 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12485 # suppresses any "Segmentation fault" message there. '((' could
12486 # trigger a bug in pdksh 5.2.14.
12487 for as_var in BASH_ENV ENV MAIL MAILPATH
12488 do eval test x\${$as_var+set} = xset \
12489 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12490 done
12491 PS1='$ '
12492 PS2='> '
12493 PS4='+ '
12494
12495 # NLS nuisances.
12496 LC_ALL=C
12497 export LC_ALL
12498 LANGUAGE=C
12499 export LANGUAGE
12500
12501 # CDPATH.
12502 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12503
12504
12505 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
12506 @%:@ ----------------------------------------
12507 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12508 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12509 @%:@ script with STATUS, using 1 if that was 0.
12510 as_fn_error ()
12511 {
12512 as_status=$1; test $as_status -eq 0 && as_status=1
12513 if test "$4"; then
12514 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12515 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12516 fi
12517 $as_echo "$as_me: error: $2" >&2
12518 as_fn_exit $as_status
12519 } @%:@ as_fn_error
12520
12521
12522 @%:@ as_fn_set_status STATUS
12523 @%:@ -----------------------
12524 @%:@ Set @S|@? to STATUS, without forking.
12525 as_fn_set_status ()
12526 {
12527 return $1
12528 } @%:@ as_fn_set_status
12529
12530 @%:@ as_fn_exit STATUS
12531 @%:@ -----------------
12532 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12533 as_fn_exit ()
12534 {
12535 set +e
12536 as_fn_set_status $1
12537 exit $1
12538 } @%:@ as_fn_exit
12539
12540 @%:@ as_fn_unset VAR
12541 @%:@ ---------------
12542 @%:@ Portably unset VAR.
12543 as_fn_unset ()
12544 {
12545 { eval $1=; unset $1;}
12546 }
12547 as_unset=as_fn_unset
12548 @%:@ as_fn_append VAR VALUE
12549 @%:@ ----------------------
12550 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
12551 @%:@ advantage of any shell optimizations that allow amortized linear growth over
12552 @%:@ repeated appends, instead of the typical quadratic growth present in naive
12553 @%:@ implementations.
12554 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12555 eval 'as_fn_append ()
12556 {
12557 eval $1+=\$2
12558 }'
12559 else
12560 as_fn_append ()
12561 {
12562 eval $1=\$$1\$2
12563 }
12564 fi # as_fn_append
12565
12566 @%:@ as_fn_arith ARG...
12567 @%:@ ------------------
12568 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
12569 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
12570 @%:@ must be portable across @S|@(()) and expr.
12571 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12572 eval 'as_fn_arith ()
12573 {
12574 as_val=$(( $* ))
12575 }'
12576 else
12577 as_fn_arith ()
12578 {
12579 as_val=`expr "$@" || test $? -eq 1`
12580 }
12581 fi # as_fn_arith
12582
12583
12584 if expr a : '\(a\)' >/dev/null 2>&1 &&
12585 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12586 as_expr=expr
12587 else
12588 as_expr=false
12589 fi
12590
12591 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12592 as_basename=basename
12593 else
12594 as_basename=false
12595 fi
12596
12597 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12598 as_dirname=dirname
12599 else
12600 as_dirname=false
12601 fi
12602
12603 as_me=`$as_basename -- "$0" ||
12604 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12605 X"$0" : 'X\(//\)$' \| \
12606 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12607 $as_echo X/"$0" |
12608 sed '/^.*\/\([^/][^/]*\)\/*$/{
12609 s//\1/
12610 q
12611 }
12612 /^X\/\(\/\/\)$/{
12613 s//\1/
12614 q
12615 }
12616 /^X\/\(\/\).*/{
12617 s//\1/
12618 q
12619 }
12620 s/.*/./; q'`
12621
12622 # Avoid depending upon Character Ranges.
12623 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12624 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12625 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12626 as_cr_digits='0123456789'
12627 as_cr_alnum=$as_cr_Letters$as_cr_digits
12628
12629 ECHO_C= ECHO_N= ECHO_T=
12630 case `echo -n x` in @%:@(((((
12631 -n*)
12632 case `echo 'xy\c'` in
12633 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12634 xy) ECHO_C='\c';;
12635 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12636 ECHO_T=' ';;
12637 esac;;
12638 *)
12639 ECHO_N='-n';;
12640 esac
12641
12642 rm -f conf$$ conf$$.exe conf$$.file
12643 if test -d conf$$.dir; then
12644 rm -f conf$$.dir/conf$$.file
12645 else
12646 rm -f conf$$.dir
12647 mkdir conf$$.dir 2>/dev/null
12648 fi
12649 if (echo >conf$$.file) 2>/dev/null; then
12650 if ln -s conf$$.file conf$$ 2>/dev/null; then
12651 as_ln_s='ln -s'
12652 # ... but there are two gotchas:
12653 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12654 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12655 # In both cases, we have to default to `cp -pR'.
12656 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12657 as_ln_s='cp -pR'
12658 elif ln conf$$.file conf$$ 2>/dev/null; then
12659 as_ln_s=ln
12660 else
12661 as_ln_s='cp -pR'
12662 fi
12663 else
12664 as_ln_s='cp -pR'
12665 fi
12666 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12667 rmdir conf$$.dir 2>/dev/null
12668
12669
12670 @%:@ as_fn_mkdir_p
12671 @%:@ -------------
12672 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
12673 as_fn_mkdir_p ()
12674 {
12675
12676 case $as_dir in #(
12677 -*) as_dir=./$as_dir;;
12678 esac
12679 test -d "$as_dir" || eval $as_mkdir_p || {
12680 as_dirs=
12681 while :; do
12682 case $as_dir in #(
12683 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12684 *) as_qdir=$as_dir;;
12685 esac
12686 as_dirs="'$as_qdir' $as_dirs"
12687 as_dir=`$as_dirname -- "$as_dir" ||
12688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12689 X"$as_dir" : 'X\(//\)[^/]' \| \
12690 X"$as_dir" : 'X\(//\)$' \| \
12691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12692 $as_echo X"$as_dir" |
12693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12694 s//\1/
12695 q
12696 }
12697 /^X\(\/\/\)[^/].*/{
12698 s//\1/
12699 q
12700 }
12701 /^X\(\/\/\)$/{
12702 s//\1/
12703 q
12704 }
12705 /^X\(\/\).*/{
12706 s//\1/
12707 q
12708 }
12709 s/.*/./; q'`
12710 test -d "$as_dir" && break
12711 done
12712 test -z "$as_dirs" || eval "mkdir $as_dirs"
12713 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12714
12715
12716 } @%:@ as_fn_mkdir_p
12717 if mkdir -p . 2>/dev/null; then
12718 as_mkdir_p='mkdir -p "$as_dir"'
12719 else
12720 test -d ./-p && rmdir ./-p
12721 as_mkdir_p=false
12722 fi
12723
12724
12725 @%:@ as_fn_executable_p FILE
12726 @%:@ -----------------------
12727 @%:@ Test if FILE is an executable regular file.
12728 as_fn_executable_p ()
12729 {
12730 test -f "$1" && test -x "$1"
12731 } @%:@ as_fn_executable_p
12732 as_test_x='test -x'
12733 as_executable_p=as_fn_executable_p
12734
12735 # Sed expression to map a string onto a valid CPP name.
12736 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12737
12738 # Sed expression to map a string onto a valid variable name.
12739 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12740
12741
12742 exec 6>&1
12743 ## ----------------------------------- ##
12744 ## Main body of $CONFIG_STATUS script. ##
12745 ## ----------------------------------- ##
12746 _ASEOF
12747 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12748
12749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12750 # Save the log message, to keep $0 and so on meaningful, and to
12751 # report actual input values of CONFIG_FILES etc. instead of their
12752 # values after options handling.
12753 ac_log="
12754 This file was extended by shairplay $as_me 0.9.0, which was
12755 generated by GNU Autoconf 2.69. Invocation command line was
12756
12757 CONFIG_FILES = $CONFIG_FILES
12758 CONFIG_HEADERS = $CONFIG_HEADERS
12759 CONFIG_LINKS = $CONFIG_LINKS
12760 CONFIG_COMMANDS = $CONFIG_COMMANDS
12761 $ $0 $@
12762
12763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12764 "
12765
12766 _ACEOF
12767
12768 case $ac_config_files in *"
12769 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12770 esac
12771
12772 case $ac_config_headers in *"
12773 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12774 esac
12775
12776
12777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778 # Files that config.status was made for.
12779 config_files="$ac_config_files"
12780 config_headers="$ac_config_headers"
12781 config_commands="$ac_config_commands"
12782
12783 _ACEOF
12784
12785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12786 ac_cs_usage="\
12787 \`$as_me' instantiates files and other configuration actions
12788 from templates according to the current configuration. Unless the files
12789 and actions are specified as TAGs, all are instantiated by default.
12790
12791 Usage: $0 [OPTION]... [TAG]...
12792
12793 -h, --help print this help, then exit
12794 -V, --version print version number and configuration settings, then exit
12795 --config print configuration, then exit
12796 -q, --quiet, --silent
12797 do not print progress messages
12798 -d, --debug don't remove temporary files
12799 --recheck update $as_me by reconfiguring in the same conditions
12800 --file=FILE[:TEMPLATE]
12801 instantiate the configuration file FILE
12802 --header=FILE[:TEMPLATE]
12803 instantiate the configuration header FILE
12804
12805 Configuration files:
12806 $config_files
12807
12808 Configuration headers:
12809 $config_headers
12810
12811 Configuration commands:
12812 $config_commands
12813
12814 Report bugs to <juhovh@iki.fi>."
12815
12816 _ACEOF
12817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12818 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12819 ac_cs_version="\\
12820 shairplay config.status 0.9.0
12821 configured by $0, generated by GNU Autoconf 2.69,
12822 with options \\"\$ac_cs_config\\"
12823
12824 Copyright (C) 2012 Free Software Foundation, Inc.
12825 This config.status script is free software; the Free Software Foundation
12826 gives unlimited permission to copy, distribute and modify it."
12827
12828 ac_pwd='$ac_pwd'
12829 srcdir='$srcdir'
12830 INSTALL='$INSTALL'
12831 MKDIR_P='$MKDIR_P'
12832 AWK='$AWK'
12833 test -n "\$AWK" || AWK=awk
12834 _ACEOF
12835
12836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837 # The default lists apply if the user does not specify any file.
12838 ac_need_defaults=:
12839 while test $# != 0
12840 do
12841 case $1 in
12842 --*=?*)
12843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12845 ac_shift=:
12846 ;;
12847 --*=)
12848 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12849 ac_optarg=
12850 ac_shift=:
12851 ;;
12852 *)
12853 ac_option=$1
12854 ac_optarg=$2
12855 ac_shift=shift
12856 ;;
12857 esac
12858
12859 case $ac_option in
12860 # Handling of the options.
12861 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12862 ac_cs_recheck=: ;;
12863 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12864 $as_echo "$ac_cs_version"; exit ;;
12865 --config | --confi | --conf | --con | --co | --c )
12866 $as_echo "$ac_cs_config"; exit ;;
12867 --debug | --debu | --deb | --de | --d | -d )
12868 debug=: ;;
12869 --file | --fil | --fi | --f )
12870 $ac_shift
12871 case $ac_optarg in
12872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12873 '') as_fn_error $? "missing file argument" ;;
12874 esac
12875 as_fn_append CONFIG_FILES " '$ac_optarg'"
12876 ac_need_defaults=false;;
12877 --header | --heade | --head | --hea )
12878 $ac_shift
12879 case $ac_optarg in
12880 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12881 esac
12882 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12883 ac_need_defaults=false;;
12884 --he | --h)
12885 # Conflict between --help and --header
12886 as_fn_error $? "ambiguous option: \`$1'
12887 Try \`$0 --help' for more information.";;
12888 --help | --hel | -h )
12889 $as_echo "$ac_cs_usage"; exit ;;
12890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12892 ac_cs_silent=: ;;
12893
12894 # This is an error.
12895 -*) as_fn_error $? "unrecognized option: \`$1'
12896 Try \`$0 --help' for more information." ;;
12897
12898 *) as_fn_append ac_config_targets " $1"
12899 ac_need_defaults=false ;;
12900
12901 esac
12902 shift
12903 done
12904
12905 ac_configure_extra_args=
12906
12907 if $ac_cs_silent; then
12908 exec 6>/dev/null
12909 ac_configure_extra_args="$ac_configure_extra_args --silent"
12910 fi
12911
12912 _ACEOF
12913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12914 if \$ac_cs_recheck; then
12915 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12916 shift
12917 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12918 CONFIG_SHELL='$SHELL'
12919 export CONFIG_SHELL
12920 exec "\$@"
12921 fi
12922
12923 _ACEOF
12924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12925 exec 5>>config.log
12926 {
12927 echo
12928 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
12929 @%:@@%:@ Running $as_me. @%:@@%:@
12930 _ASBOX
12931 $as_echo "$ac_log"
12932 } >&5
12933
12934 _ACEOF
12935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12936 #
12937 # INIT-COMMANDS
12938 #
12939 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12940
12941
12942 # The HP-UX ksh and POSIX shell print the target directory to stdout
12943 # if CDPATH is set.
12944 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12945
12946 sed_quote_subst='$sed_quote_subst'
12947 double_quote_subst='$double_quote_subst'
12948 delay_variable_subst='$delay_variable_subst'
12949 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12950 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12951 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12952 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12953 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12954 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12955 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12956 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12957 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12958 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12959 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12960 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12961 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12962 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12963 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12964 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12965 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12966 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12967 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12968 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12969 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12970 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12971 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12972 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12973 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12974 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12975 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12976 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12977 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12978 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12979 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12980 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12981 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12982 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12983 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12984 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12985 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12986 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12987 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12988 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12989 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12990 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12991 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12992 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12993 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12994 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12995 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12996 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12997 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12998 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12999 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13000 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13001 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13002 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13003 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13004 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13005 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"`'
13006 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13007 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13008 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13009 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13010 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13011 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13012 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13013 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13014 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13015 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13016 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13017 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13018 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13019 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13020 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13021 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13022 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13023 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13024 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13025 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13026 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13027 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13028 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13029 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13030 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13031 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13032 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13033 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13034 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13035 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13036 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13037 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13038 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13039 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13040 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13041 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13042 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13043 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13044 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13045 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13046 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13047 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13048 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13049 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13050 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13051 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13052 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13053 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13054 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13055 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13056 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13057 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13058 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13059 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13060 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13061 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13062 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13063 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13064 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13065 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13066 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13067 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13068 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13069 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13070 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13071 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13072 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13073 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13074 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13075 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13076 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13077 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13078 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13079
13080 LTCC='$LTCC'
13081 LTCFLAGS='$LTCFLAGS'
13082 compiler='$compiler_DEFAULT'
13083
13084 # A function that is used when there is no print builtin or printf.
13085 func_fallback_echo ()
13086 {
13087 eval 'cat <<_LTECHO_EOF
13088 \$1
13089 _LTECHO_EOF'
13090 }
13091
13092 # Quote evaled strings.
13093 for var in SHELL \
13094 ECHO \
13095 PATH_SEPARATOR \
13096 SED \
13097 GREP \
13098 EGREP \
13099 FGREP \
13100 LD \
13101 NM \
13102 LN_S \
13103 lt_SP2NL \
13104 lt_NL2SP \
13105 reload_flag \
13106 OBJDUMP \
13107 deplibs_check_method \
13108 file_magic_cmd \
13109 file_magic_glob \
13110 want_nocaseglob \
13111 DLLTOOL \
13112 sharedlib_from_linklib_cmd \
13113 AR \
13114 AR_FLAGS \
13115 archiver_list_spec \
13116 STRIP \
13117 RANLIB \
13118 CC \
13119 CFLAGS \
13120 compiler \
13121 lt_cv_sys_global_symbol_pipe \
13122 lt_cv_sys_global_symbol_to_cdecl \
13123 lt_cv_sys_global_symbol_to_c_name_address \
13124 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13125 nm_file_list_spec \
13126 lt_prog_compiler_no_builtin_flag \
13127 lt_prog_compiler_pic \
13128 lt_prog_compiler_wl \
13129 lt_prog_compiler_static \
13130 lt_cv_prog_compiler_c_o \
13131 need_locks \
13132 MANIFEST_TOOL \
13133 DSYMUTIL \
13134 NMEDIT \
13135 LIPO \
13136 OTOOL \
13137 OTOOL64 \
13138 shrext_cmds \
13139 export_dynamic_flag_spec \
13140 whole_archive_flag_spec \
13141 compiler_needs_object \
13142 with_gnu_ld \
13143 allow_undefined_flag \
13144 no_undefined_flag \
13145 hardcode_libdir_flag_spec \
13146 hardcode_libdir_separator \
13147 exclude_expsyms \
13148 include_expsyms \
13149 file_list_spec \
13150 variables_saved_for_relink \
13151 libname_spec \
13152 library_names_spec \
13153 soname_spec \
13154 install_override_mode \
13155 finish_eval \
13156 old_striplib \
13157 striplib; do
13158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13159 *[\\\\\\\`\\"\\\$]*)
13160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13161 ;;
13162 *)
13163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13164 ;;
13165 esac
13166 done
13167
13168 # Double-quote double-evaled strings.
13169 for var in reload_cmds \
13170 old_postinstall_cmds \
13171 old_postuninstall_cmds \
13172 old_archive_cmds \
13173 extract_expsyms_cmds \
13174 old_archive_from_new_cmds \
13175 old_archive_from_expsyms_cmds \
13176 archive_cmds \
13177 archive_expsym_cmds \
13178 module_cmds \
13179 module_expsym_cmds \
13180 export_symbols_cmds \
13181 prelink_cmds \
13182 postlink_cmds \
13183 postinstall_cmds \
13184 postuninstall_cmds \
13185 finish_cmds \
13186 sys_lib_search_path_spec \
13187 sys_lib_dlsearch_path_spec; do
13188 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13189 *[\\\\\\\`\\"\\\$]*)
13190 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13191 ;;
13192 *)
13193 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13194 ;;
13195 esac
13196 done
13197
13198 ac_aux_dir='$ac_aux_dir'
13199 xsi_shell='$xsi_shell'
13200 lt_shell_append='$lt_shell_append'
13201
13202 # See if we are running on zsh, and set the options which allow our
13203 # commands through without removal of \ escapes INIT.
13204 if test -n "\${ZSH_VERSION+set}" ; then
13205 setopt NO_GLOB_SUBST
13206 fi
13207
13208
13209 PACKAGE='$PACKAGE'
13210 VERSION='$VERSION'
13211 TIMESTAMP='$TIMESTAMP'
13212 RM='$RM'
13213 ofile='$ofile'
13214
13215
13216
13217
13218 _ACEOF
13219
13220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221
13222 # Handling of arguments.
13223 for ac_config_target in $ac_config_targets
13224 do
13225 case $ac_config_target in
13226 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13227 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13228 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13229 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13230 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13231 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13232 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
13233 "src/lib/alac/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/alac/Makefile" ;;
13234 "src/lib/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/crypto/Makefile" ;;
13235
13236 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13237 esac
13238 done
13239
13240
13241 # If the user did not use the arguments to specify the items to instantiate,
13242 # then the envvar interface is used. Set only those that are not.
13243 # We use the long form for the default assignment because of an extremely
13244 # bizarre bug on SunOS 4.1.3.
13245 if $ac_need_defaults; then
13246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13249 fi
13250
13251 # Have a temporary directory for convenience. Make it in the build tree
13252 # simply because there is no reason against having it here, and in addition,
13253 # creating and moving files from /tmp can sometimes cause problems.
13254 # Hook for its removal unless debugging.
13255 # Note that there is a small window in which the directory will not be cleaned:
13256 # after its creation but before its name has been assigned to `$tmp'.
13257 $debug ||
13258 {
13259 tmp= ac_tmp=
13260 trap 'exit_status=$?
13261 : "${ac_tmp:=$tmp}"
13262 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13263 ' 0
13264 trap 'as_fn_exit 1' 1 2 13 15
13265 }
13266 # Create a (secure) tmp directory for tmp files.
13267
13268 {
13269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13270 test -d "$tmp"
13271 } ||
13272 {
13273 tmp=./conf$$-$RANDOM
13274 (umask 077 && mkdir "$tmp")
13275 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13276 ac_tmp=$tmp
13277
13278 # Set up the scripts for CONFIG_FILES section.
13279 # No need to generate them if there are no CONFIG_FILES.
13280 # This happens for instance with `./config.status config.h'.
13281 if test -n "$CONFIG_FILES"; then
13282
13283
13284 ac_cr=`echo X | tr X '\015'`
13285 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13286 # But we know of no other shell where ac_cr would be empty at this
13287 # point, so we can use a bashism as a fallback.
13288 if test "x$ac_cr" = x; then
13289 eval ac_cr=\$\'\\r\'
13290 fi
13291 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13292 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13293 ac_cs_awk_cr='\\r'
13294 else
13295 ac_cs_awk_cr=$ac_cr
13296 fi
13297
13298 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13299 _ACEOF
13300
13301
13302 {
13303 echo "cat >conf$$subs.awk <<_ACEOF" &&
13304 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13305 echo "_ACEOF"
13306 } >conf$$subs.sh ||
13307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13308 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13309 ac_delim='%!_!# '
13310 for ac_last_try in false false false false false :; do
13311 . ./conf$$subs.sh ||
13312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13313
13314 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13315 if test $ac_delim_n = $ac_delim_num; then
13316 break
13317 elif $ac_last_try; then
13318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13319 else
13320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13321 fi
13322 done
13323 rm -f conf$$subs.sh
13324
13325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13326 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13327 _ACEOF
13328 sed -n '
13329 h
13330 s/^/S["/; s/!.*/"]=/
13331 p
13332 g
13333 s/^[^!]*!//
13334 :repl
13335 t repl
13336 s/'"$ac_delim"'$//
13337 t delim
13338 :nl
13339 h
13340 s/\(.\{148\}\)..*/\1/
13341 t more1
13342 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13343 p
13344 n
13345 b repl
13346 :more1
13347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13348 p
13349 g
13350 s/.\{148\}//
13351 t nl
13352 :delim
13353 h
13354 s/\(.\{148\}\)..*/\1/
13355 t more2
13356 s/["\\]/\\&/g; s/^/"/; s/$/"/
13357 p
13358 b
13359 :more2
13360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13361 p
13362 g
13363 s/.\{148\}//
13364 t delim
13365 ' <conf$$subs.awk | sed '
13366 /^[^""]/{
13367 N
13368 s/\n//
13369 }
13370 ' >>$CONFIG_STATUS || ac_write_fail=1
13371 rm -f conf$$subs.awk
13372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13373 _ACAWK
13374 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13375 for (key in S) S_is_set[key] = 1
13376 FS = "\a"
13377
13378 }
13379 {
13380 line = $ 0
13381 nfields = split(line, field, "@")
13382 substed = 0
13383 len = length(field[1])
13384 for (i = 2; i < nfields; i++) {
13385 key = field[i]
13386 keylen = length(key)
13387 if (S_is_set[key]) {
13388 value = S[key]
13389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13390 len += length(value) + length(field[++i])
13391 substed = 1
13392 } else
13393 len += 1 + keylen
13394 }
13395
13396 print line
13397 }
13398
13399 _ACAWK
13400 _ACEOF
13401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13404 else
13405 cat
13406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13408 _ACEOF
13409
13410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13412 # trailing colons and then remove the whole line if VPATH becomes empty
13413 # (actually we leave an empty line to preserve line numbers).
13414 if test "x$srcdir" = x.; then
13415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13416 h
13417 s///
13418 s/^/:/
13419 s/[ ]*$/:/
13420 s/:\$(srcdir):/:/g
13421 s/:\${srcdir}:/:/g
13422 s/:@srcdir@:/:/g
13423 s/^:*//
13424 s/:*$//
13425 x
13426 s/\(=[ ]*\).*/\1/
13427 G
13428 s/\n//
13429 s/^[^=]*=[ ]*$//
13430 }'
13431 fi
13432
13433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434 fi # test -n "$CONFIG_FILES"
13435
13436 # Set up the scripts for CONFIG_HEADERS section.
13437 # No need to generate them if there are no CONFIG_HEADERS.
13438 # This happens for instance with `./config.status Makefile'.
13439 if test -n "$CONFIG_HEADERS"; then
13440 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13441 BEGIN {
13442 _ACEOF
13443
13444 # Transform confdefs.h into an awk script `defines.awk', embedded as
13445 # here-document in config.status, that substitutes the proper values into
13446 # config.h.in to produce config.h.
13447
13448 # Create a delimiter string that does not exist in confdefs.h, to ease
13449 # handling of long lines.
13450 ac_delim='%!_!# '
13451 for ac_last_try in false false :; do
13452 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13453 if test -z "$ac_tt"; then
13454 break
13455 elif $ac_last_try; then
13456 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13457 else
13458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13459 fi
13460 done
13461
13462 # For the awk script, D is an array of macro values keyed by name,
13463 # likewise P contains macro parameters if any. Preserve backslash
13464 # newline sequences.
13465
13466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13467 sed -n '
13468 s/.\{148\}/&'"$ac_delim"'/g
13469 t rset
13470 :rset
13471 s/^[ ]*#[ ]*define[ ][ ]*/ /
13472 t def
13473 d
13474 :def
13475 s/\\$//
13476 t bsnl
13477 s/["\\]/\\&/g
13478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13479 D["\1"]=" \3"/p
13480 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13481 d
13482 :bsnl
13483 s/["\\]/\\&/g
13484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13485 D["\1"]=" \3\\\\\\n"\\/p
13486 t cont
13487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13488 t cont
13489 d
13490 :cont
13491 n
13492 s/.\{148\}/&'"$ac_delim"'/g
13493 t clear
13494 :clear
13495 s/\\$//
13496 t bsnlc
13497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13498 d
13499 :bsnlc
13500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13501 b cont
13502 ' <confdefs.h | sed '
13503 s/'"$ac_delim"'/"\\\
13504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13505
13506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13507 for (key in D) D_is_set[key] = 1
13508 FS = "\a"
13509 }
13510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13511 line = \$ 0
13512 split(line, arg, " ")
13513 if (arg[1] == "#") {
13514 defundef = arg[2]
13515 mac1 = arg[3]
13516 } else {
13517 defundef = substr(arg[1], 2)
13518 mac1 = arg[2]
13519 }
13520 split(mac1, mac2, "(") #)
13521 macro = mac2[1]
13522 prefix = substr(line, 1, index(line, defundef) - 1)
13523 if (D_is_set[macro]) {
13524 # Preserve the white space surrounding the "#".
13525 print prefix "define", macro P[macro] D[macro]
13526 next
13527 } else {
13528 # Replace #undef with comments. This is necessary, for example,
13529 # in the case of _POSIX_SOURCE, which is predefined and required
13530 # on some systems where configure will not decide to define it.
13531 if (defundef == "undef") {
13532 print "/*", prefix defundef, macro, "*/"
13533 next
13534 }
13535 }
13536 }
13537 { print }
13538 _ACAWK
13539 _ACEOF
13540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13541 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13542 fi # test -n "$CONFIG_HEADERS"
13543
13544
13545 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13546 shift
13547 for ac_tag
13548 do
13549 case $ac_tag in
13550 :[FHLC]) ac_mode=$ac_tag; continue;;
13551 esac
13552 case $ac_mode$ac_tag in
13553 :[FHL]*:*);;
13554 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13555 :[FH]-) ac_tag=-:-;;
13556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13557 esac
13558 ac_save_IFS=$IFS
13559 IFS=:
13560 set x $ac_tag
13561 IFS=$ac_save_IFS
13562 shift
13563 ac_file=$1
13564 shift
13565
13566 case $ac_mode in
13567 :L) ac_source=$1;;
13568 :[FH])
13569 ac_file_inputs=
13570 for ac_f
13571 do
13572 case $ac_f in
13573 -) ac_f="$ac_tmp/stdin";;
13574 *) # Look for the file first in the build tree, then in the source tree
13575 # (if the path is not absolute). The absolute path cannot be DOS-style,
13576 # because $ac_f cannot contain `:'.
13577 test -f "$ac_f" ||
13578 case $ac_f in
13579 [\\/$]*) false;;
13580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13581 esac ||
13582 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13583 esac
13584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13585 as_fn_append ac_file_inputs " '$ac_f'"
13586 done
13587
13588 # Let's still pretend it is `configure' which instantiates (i.e., don't
13589 # use $as_me), people would be surprised to read:
13590 # /* config.h. Generated by config.status. */
13591 configure_input='Generated from '`
13592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13593 `' by configure.'
13594 if test x"$ac_file" != x-; then
13595 configure_input="$ac_file. $configure_input"
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13597 $as_echo "$as_me: creating $ac_file" >&6;}
13598 fi
13599 # Neutralize special characters interpreted by sed in replacement strings.
13600 case $configure_input in #(
13601 *\&* | *\|* | *\\* )
13602 ac_sed_conf_input=`$as_echo "$configure_input" |
13603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13604 *) ac_sed_conf_input=$configure_input;;
13605 esac
13606
13607 case $ac_tag in
13608 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13610 esac
13611 ;;
13612 esac
13613
13614 ac_dir=`$as_dirname -- "$ac_file" ||
13615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13616 X"$ac_file" : 'X\(//\)[^/]' \| \
13617 X"$ac_file" : 'X\(//\)$' \| \
13618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13619 $as_echo X"$ac_file" |
13620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13621 s//\1/
13622 q
13623 }
13624 /^X\(\/\/\)[^/].*/{
13625 s//\1/
13626 q
13627 }
13628 /^X\(\/\/\)$/{
13629 s//\1/
13630 q
13631 }
13632 /^X\(\/\).*/{
13633 s//\1/
13634 q
13635 }
13636 s/.*/./; q'`
13637 as_dir="$ac_dir"; as_fn_mkdir_p
13638 ac_builddir=.
13639
13640 case "$ac_dir" in
13641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13642 *)
13643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13644 # A ".." for each directory in $ac_dir_suffix.
13645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13646 case $ac_top_builddir_sub in
13647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13649 esac ;;
13650 esac
13651 ac_abs_top_builddir=$ac_pwd
13652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13653 # for backward compatibility:
13654 ac_top_builddir=$ac_top_build_prefix
13655
13656 case $srcdir in
13657 .) # We are building in place.
13658 ac_srcdir=.
13659 ac_top_srcdir=$ac_top_builddir_sub
13660 ac_abs_top_srcdir=$ac_pwd ;;
13661 [\\/]* | ?:[\\/]* ) # Absolute name.
13662 ac_srcdir=$srcdir$ac_dir_suffix;
13663 ac_top_srcdir=$srcdir
13664 ac_abs_top_srcdir=$srcdir ;;
13665 *) # Relative name.
13666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13667 ac_top_srcdir=$ac_top_build_prefix$srcdir
13668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13669 esac
13670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13671
13672
13673 case $ac_mode in
13674 :F)
13675 #
13676 # CONFIG_FILE
13677 #
13678
13679 case $INSTALL in
13680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13682 esac
13683 ac_MKDIR_P=$MKDIR_P
13684 case $MKDIR_P in
13685 [\\/$]* | ?:[\\/]* ) ;;
13686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13687 esac
13688 _ACEOF
13689
13690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13691 # If the template does not know about datarootdir, expand it.
13692 # FIXME: This hack should be removed a few years after 2.60.
13693 ac_datarootdir_hack=; ac_datarootdir_seen=
13694 ac_sed_dataroot='
13695 /datarootdir/ {
13696 p
13697 q
13698 }
13699 /@datadir@/p
13700 /@docdir@/p
13701 /@infodir@/p
13702 /@localedir@/p
13703 /@mandir@/p'
13704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13705 *datarootdir*) ac_datarootdir_seen=yes;;
13706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13709 _ACEOF
13710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13711 ac_datarootdir_hack='
13712 s&@datadir@&$datadir&g
13713 s&@docdir@&$docdir&g
13714 s&@infodir@&$infodir&g
13715 s&@localedir@&$localedir&g
13716 s&@mandir@&$mandir&g
13717 s&\\\${datarootdir}&$datarootdir&g' ;;
13718 esac
13719 _ACEOF
13720
13721 # Neutralize VPATH when `$srcdir' = `.'.
13722 # Shell code in configure.ac might set extrasub.
13723 # FIXME: do we really want to maintain this feature?
13724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13725 ac_sed_extra="$ac_vpsub
13726 $extrasub
13727 _ACEOF
13728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13729 :t
13730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13731 s|@configure_input@|$ac_sed_conf_input|;t t
13732 s&@top_builddir@&$ac_top_builddir_sub&;t t
13733 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13734 s&@srcdir@&$ac_srcdir&;t t
13735 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13736 s&@top_srcdir@&$ac_top_srcdir&;t t
13737 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13738 s&@builddir@&$ac_builddir&;t t
13739 s&@abs_builddir@&$ac_abs_builddir&;t t
13740 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13741 s&@INSTALL@&$ac_INSTALL&;t t
13742 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13743 $ac_datarootdir_hack
13744 "
13745 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13746 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13747
13748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13749 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13751 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13753 which seems to be undefined. Please make sure it is defined" >&5
13754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13755 which seems to be undefined. Please make sure it is defined" >&2;}
13756
13757 rm -f "$ac_tmp/stdin"
13758 case $ac_file in
13759 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13760 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13761 esac \
13762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13763 ;;
13764 :H)
13765 #
13766 # CONFIG_HEADER
13767 #
13768 if test x"$ac_file" != x-; then
13769 {
13770 $as_echo "/* $configure_input */" \
13771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13772 } >"$ac_tmp/config.h" \
13773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13774 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13777 else
13778 rm -f "$ac_file"
13779 mv "$ac_tmp/config.h" "$ac_file" \
13780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13781 fi
13782 else
13783 $as_echo "/* $configure_input */" \
13784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13785 || as_fn_error $? "could not create -" "$LINENO" 5
13786 fi
13787 # Compute "$ac_file"'s index in $config_headers.
13788 _am_arg="$ac_file"
13789 _am_stamp_count=1
13790 for _am_header in $config_headers :; do
13791 case $_am_header in
13792 $_am_arg | $_am_arg:* )
13793 break ;;
13794 * )
13795 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13796 esac
13797 done
13798 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13799 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13800 X"$_am_arg" : 'X\(//\)[^/]' \| \
13801 X"$_am_arg" : 'X\(//\)$' \| \
13802 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13803 $as_echo X"$_am_arg" |
13804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13805 s//\1/
13806 q
13807 }
13808 /^X\(\/\/\)[^/].*/{
13809 s//\1/
13810 q
13811 }
13812 /^X\(\/\/\)$/{
13813 s//\1/
13814 q
13815 }
13816 /^X\(\/\).*/{
13817 s//\1/
13818 q
13819 }
13820 s/.*/./; q'`/stamp-h$_am_stamp_count
13821 ;;
13822
13823 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13824 $as_echo "$as_me: executing $ac_file commands" >&6;}
13825 ;;
13826 esac
13827
13828
13829 case $ac_file$ac_mode in
13830 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13831 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13832 # are listed without --file. Let's play safe and only enable the eval
13833 # if we detect the quoting.
13834 case $CONFIG_FILES in
13835 *\'*) eval set x "$CONFIG_FILES" ;;
13836 *) set x $CONFIG_FILES ;;
13837 esac
13838 shift
13839 for mf
13840 do
13841 # Strip MF so we end up with the name of the file.
13842 mf=`echo "$mf" | sed -e 's/:.*$//'`
13843 # Check whether this is an Automake generated Makefile or not.
13844 # We used to match only the files named `Makefile.in', but
13845 # some people rename them; so instead we look at the file content.
13846 # Grep'ing the first line is not enough: some people post-process
13847 # each Makefile.in and add a new line on top of each file to say so.
13848 # Grep'ing the whole file is not good either: AIX grep has a line
13849 # limit of 2048, but all sed's we know have understand at least 4000.
13850 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13851 dirpart=`$as_dirname -- "$mf" ||
13852 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13853 X"$mf" : 'X\(//\)[^/]' \| \
13854 X"$mf" : 'X\(//\)$' \| \
13855 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13856 $as_echo X"$mf" |
13857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13858 s//\1/
13859 q
13860 }
13861 /^X\(\/\/\)[^/].*/{
13862 s//\1/
13863 q
13864 }
13865 /^X\(\/\/\)$/{
13866 s//\1/
13867 q
13868 }
13869 /^X\(\/\).*/{
13870 s//\1/
13871 q
13872 }
13873 s/.*/./; q'`
13874 else
13875 continue
13876 fi
13877 # Extract the definition of DEPDIR, am__include, and am__quote
13878 # from the Makefile without running `make'.
13879 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13880 test -z "$DEPDIR" && continue
13881 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13882 test -z "am__include" && continue
13883 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13884 # When using ansi2knr, U may be empty or an underscore; expand it
13885 U=`sed -n 's/^U = //p' < "$mf"`
13886 # Find all dependency output files, they are included files with
13887 # $(DEPDIR) in their names. We invoke sed twice because it is the
13888 # simplest approach to changing $(DEPDIR) to its actual value in the
13889 # expansion.
13890 for file in `sed -n "
13891 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13893 # Make sure the directory exists.
13894 test -f "$dirpart/$file" && continue
13895 fdir=`$as_dirname -- "$file" ||
13896 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13897 X"$file" : 'X\(//\)[^/]' \| \
13898 X"$file" : 'X\(//\)$' \| \
13899 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13900 $as_echo X"$file" |
13901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13902 s//\1/
13903 q
13904 }
13905 /^X\(\/\/\)[^/].*/{
13906 s//\1/
13907 q
13908 }
13909 /^X\(\/\/\)$/{
13910 s//\1/
13911 q
13912 }
13913 /^X\(\/\).*/{
13914 s//\1/
13915 q
13916 }
13917 s/.*/./; q'`
13918 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13919 # echo "creating $dirpart/$file"
13920 echo '# dummy' > "$dirpart/$file"
13921 done
13922 done
13923 }
13924 ;;
13925 "libtool":C)
13926
13927 # See if we are running on zsh, and set the options which allow our
13928 # commands through without removal of \ escapes.
13929 if test -n "${ZSH_VERSION+set}" ; then
13930 setopt NO_GLOB_SUBST
13931 fi
13932
13933 cfgfile="${ofile}T"
13934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13935 $RM "$cfgfile"
13936
13937 cat <<_LT_EOF >> "$cfgfile"
13938 #! $SHELL
13939
13940 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13941 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13943 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13944 #
13945 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13946 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13947 # Foundation, Inc.
13948 # Written by Gordon Matzigkeit, 1996
13949 #
13950 # This file is part of GNU Libtool.
13951 #
13952 # GNU Libtool is free software; you can redistribute it and/or
13953 # modify it under the terms of the GNU General Public License as
13954 # published by the Free Software Foundation; either version 2 of
13955 # the License, or (at your option) any later version.
13956 #
13957 # As a special exception to the GNU General Public License,
13958 # if you distribute this file as part of a program or library that
13959 # is built using GNU Libtool, you may include this file under the
13960 # same distribution terms that you use for the rest of that program.
13961 #
13962 # GNU Libtool is distributed in the hope that it will be useful,
13963 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13965 # GNU General Public License for more details.
13966 #
13967 # You should have received a copy of the GNU General Public License
13968 # along with GNU Libtool; see the file COPYING. If not, a copy
13969 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13970 # obtained by writing to the Free Software Foundation, Inc.,
13971 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13972
13973
13974 # The names of the tagged configurations supported by this script.
13975 available_tags=""
13976
13977 # ### BEGIN LIBTOOL CONFIG
13978
13979 # Which release of libtool.m4 was used?
13980 macro_version=$macro_version
13981 macro_revision=$macro_revision
13982
13983 # Whether or not to build shared libraries.
13984 build_libtool_libs=$enable_shared
13985
13986 # Whether or not to build static libraries.
13987 build_old_libs=$enable_static
13988
13989 # What type of objects to build.
13990 pic_mode=$pic_mode
13991
13992 # Whether or not to optimize for fast installation.
13993 fast_install=$enable_fast_install
13994
13995 # Shell to use when invoking shell scripts.
13996 SHELL=$lt_SHELL
13997
13998 # An echo program that protects backslashes.
13999 ECHO=$lt_ECHO
14000
14001 # The PATH separator for the build system.
14002 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14003
14004 # The host system.
14005 host_alias=$host_alias
14006 host=$host
14007 host_os=$host_os
14008
14009 # The build system.
14010 build_alias=$build_alias
14011 build=$build
14012 build_os=$build_os
14013
14014 # A sed program that does not truncate output.
14015 SED=$lt_SED
14016
14017 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14018 Xsed="\$SED -e 1s/^X//"
14019
14020 # A grep program that handles long lines.
14021 GREP=$lt_GREP
14022
14023 # An ERE matcher.
14024 EGREP=$lt_EGREP
14025
14026 # A literal string matcher.
14027 FGREP=$lt_FGREP
14028
14029 # A BSD- or MS-compatible name lister.
14030 NM=$lt_NM
14031
14032 # Whether we need soft or hard links.
14033 LN_S=$lt_LN_S
14034
14035 # What is the maximum length of a command?
14036 max_cmd_len=$max_cmd_len
14037
14038 # Object file suffix (normally "o").
14039 objext=$ac_objext
14040
14041 # Executable file suffix (normally "").
14042 exeext=$exeext
14043
14044 # whether the shell understands "unset".
14045 lt_unset=$lt_unset
14046
14047 # turn spaces into newlines.
14048 SP2NL=$lt_lt_SP2NL
14049
14050 # turn newlines into spaces.
14051 NL2SP=$lt_lt_NL2SP
14052
14053 # convert \$build file names to \$host format.
14054 to_host_file_cmd=$lt_cv_to_host_file_cmd
14055
14056 # convert \$build files to toolchain format.
14057 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14058
14059 # An object symbol dumper.
14060 OBJDUMP=$lt_OBJDUMP
14061
14062 # Method to check whether dependent libraries are shared objects.
14063 deplibs_check_method=$lt_deplibs_check_method
14064
14065 # Command to use when deplibs_check_method = "file_magic".
14066 file_magic_cmd=$lt_file_magic_cmd
14067
14068 # How to find potential files when deplibs_check_method = "file_magic".
14069 file_magic_glob=$lt_file_magic_glob
14070
14071 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14072 want_nocaseglob=$lt_want_nocaseglob
14073
14074 # DLL creation program.
14075 DLLTOOL=$lt_DLLTOOL
14076
14077 # Command to associate shared and link libraries.
14078 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14079
14080 # The archiver.
14081 AR=$lt_AR
14082
14083 # Flags to create an archive.
14084 AR_FLAGS=$lt_AR_FLAGS
14085
14086 # How to feed a file listing to the archiver.
14087 archiver_list_spec=$lt_archiver_list_spec
14088
14089 # A symbol stripping program.
14090 STRIP=$lt_STRIP
14091
14092 # Commands used to install an old-style archive.
14093 RANLIB=$lt_RANLIB
14094 old_postinstall_cmds=$lt_old_postinstall_cmds
14095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14096
14097 # Whether to use a lock for old archive extraction.
14098 lock_old_archive_extraction=$lock_old_archive_extraction
14099
14100 # A C compiler.
14101 LTCC=$lt_CC
14102
14103 # LTCC compiler flags.
14104 LTCFLAGS=$lt_CFLAGS
14105
14106 # Take the output of nm and produce a listing of raw symbols and C names.
14107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14108
14109 # Transform the output of nm in a proper C declaration.
14110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14111
14112 # Transform the output of nm in a C name address pair.
14113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14114
14115 # Transform the output of nm in a C name address pair when lib prefix is needed.
14116 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14117
14118 # Specify filename containing input files for \$NM.
14119 nm_file_list_spec=$lt_nm_file_list_spec
14120
14121 # The root where to search for dependent libraries,and in which our libraries should be installed.
14122 lt_sysroot=$lt_sysroot
14123
14124 # The name of the directory that contains temporary libtool files.
14125 objdir=$objdir
14126
14127 # Used to examine libraries when file_magic_cmd begins with "file".
14128 MAGIC_CMD=$MAGIC_CMD
14129
14130 # Must we lock files when doing compilation?
14131 need_locks=$lt_need_locks
14132
14133 # Manifest tool.
14134 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14135
14136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14137 DSYMUTIL=$lt_DSYMUTIL
14138
14139 # Tool to change global to local symbols on Mac OS X.
14140 NMEDIT=$lt_NMEDIT
14141
14142 # Tool to manipulate fat objects and archives on Mac OS X.
14143 LIPO=$lt_LIPO
14144
14145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14146 OTOOL=$lt_OTOOL
14147
14148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14149 OTOOL64=$lt_OTOOL64
14150
14151 # Old archive suffix (normally "a").
14152 libext=$libext
14153
14154 # Shared library suffix (normally ".so").
14155 shrext_cmds=$lt_shrext_cmds
14156
14157 # The commands to extract the exported symbol list from a shared archive.
14158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14159
14160 # Variables whose values should be saved in libtool wrapper scripts and
14161 # restored at link time.
14162 variables_saved_for_relink=$lt_variables_saved_for_relink
14163
14164 # Do we need the "lib" prefix for modules?
14165 need_lib_prefix=$need_lib_prefix
14166
14167 # Do we need a version for libraries?
14168 need_version=$need_version
14169
14170 # Library versioning type.
14171 version_type=$version_type
14172
14173 # Shared library runtime path variable.
14174 runpath_var=$runpath_var
14175
14176 # Shared library path variable.
14177 shlibpath_var=$shlibpath_var
14178
14179 # Is shlibpath searched before the hard-coded library search path?
14180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14181
14182 # Format of library name prefix.
14183 libname_spec=$lt_libname_spec
14184
14185 # List of archive names. First name is the real one, the rest are links.
14186 # The last name is the one that the linker finds with -lNAME
14187 library_names_spec=$lt_library_names_spec
14188
14189 # The coded name of the library, if different from the real name.
14190 soname_spec=$lt_soname_spec
14191
14192 # Permission mode override for installation of shared libraries.
14193 install_override_mode=$lt_install_override_mode
14194
14195 # Command to use after installation of a shared archive.
14196 postinstall_cmds=$lt_postinstall_cmds
14197
14198 # Command to use after uninstallation of a shared archive.
14199 postuninstall_cmds=$lt_postuninstall_cmds
14200
14201 # Commands used to finish a libtool library installation in a directory.
14202 finish_cmds=$lt_finish_cmds
14203
14204 # As "finish_cmds", except a single script fragment to be evaled but
14205 # not shown.
14206 finish_eval=$lt_finish_eval
14207
14208 # Whether we should hardcode library paths into libraries.
14209 hardcode_into_libs=$hardcode_into_libs
14210
14211 # Compile-time system search path for libraries.
14212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14213
14214 # Run-time system search path for libraries.
14215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14216
14217 # Whether dlopen is supported.
14218 dlopen_support=$enable_dlopen
14219
14220 # Whether dlopen of programs is supported.
14221 dlopen_self=$enable_dlopen_self
14222
14223 # Whether dlopen of statically linked programs is supported.
14224 dlopen_self_static=$enable_dlopen_self_static
14225
14226 # Commands to strip libraries.
14227 old_striplib=$lt_old_striplib
14228 striplib=$lt_striplib
14229
14230
14231 # The linker used to build libraries.
14232 LD=$lt_LD
14233
14234 # How to create reloadable object files.
14235 reload_flag=$lt_reload_flag
14236 reload_cmds=$lt_reload_cmds
14237
14238 # Commands used to build an old-style archive.
14239 old_archive_cmds=$lt_old_archive_cmds
14240
14241 # A language specific compiler.
14242 CC=$lt_compiler
14243
14244 # Is the compiler the GNU compiler?
14245 with_gcc=$GCC
14246
14247 # Compiler flag to turn off builtin functions.
14248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14249
14250 # Additional compiler flags for building library objects.
14251 pic_flag=$lt_lt_prog_compiler_pic
14252
14253 # How to pass a linker flag through the compiler.
14254 wl=$lt_lt_prog_compiler_wl
14255
14256 # Compiler flag to prevent dynamic linking.
14257 link_static_flag=$lt_lt_prog_compiler_static
14258
14259 # Does compiler simultaneously support -c and -o options?
14260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14261
14262 # Whether or not to add -lc for building shared libraries.
14263 build_libtool_need_lc=$archive_cmds_need_lc
14264
14265 # Whether or not to disallow shared libs when runtime libs are static.
14266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14267
14268 # Compiler flag to allow reflexive dlopens.
14269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14270
14271 # Compiler flag to generate shared objects directly from archives.
14272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14273
14274 # Whether the compiler copes with passing no objects directly.
14275 compiler_needs_object=$lt_compiler_needs_object
14276
14277 # Create an old-style archive from a shared archive.
14278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14279
14280 # Create a temporary old-style archive to link instead of a shared archive.
14281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14282
14283 # Commands used to build a shared archive.
14284 archive_cmds=$lt_archive_cmds
14285 archive_expsym_cmds=$lt_archive_expsym_cmds
14286
14287 # Commands used to build a loadable module if different from building
14288 # a shared archive.
14289 module_cmds=$lt_module_cmds
14290 module_expsym_cmds=$lt_module_expsym_cmds
14291
14292 # Whether we are building with GNU ld or not.
14293 with_gnu_ld=$lt_with_gnu_ld
14294
14295 # Flag that allows shared libraries with undefined symbols to be built.
14296 allow_undefined_flag=$lt_allow_undefined_flag
14297
14298 # Flag that enforces no undefined symbols.
14299 no_undefined_flag=$lt_no_undefined_flag
14300
14301 # Flag to hardcode \$libdir into a binary during linking.
14302 # This must work even if \$libdir does not exist
14303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14304
14305 # Whether we need a single "-rpath" flag with a separated argument.
14306 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14307
14308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14309 # DIR into the resulting binary.
14310 hardcode_direct=$hardcode_direct
14311
14312 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14313 # DIR into the resulting binary and the resulting library dependency is
14314 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14315 # library is relocated.
14316 hardcode_direct_absolute=$hardcode_direct_absolute
14317
14318 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14319 # into the resulting binary.
14320 hardcode_minus_L=$hardcode_minus_L
14321
14322 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14323 # into the resulting binary.
14324 hardcode_shlibpath_var=$hardcode_shlibpath_var
14325
14326 # Set to "yes" if building a shared library automatically hardcodes DIR
14327 # into the library and all subsequent libraries and executables linked
14328 # against it.
14329 hardcode_automatic=$hardcode_automatic
14330
14331 # Set to yes if linker adds runtime paths of dependent libraries
14332 # to runtime path list.
14333 inherit_rpath=$inherit_rpath
14334
14335 # Whether libtool must link a program against all its dependency libraries.
14336 link_all_deplibs=$link_all_deplibs
14337
14338 # Set to "yes" if exported symbols are required.
14339 always_export_symbols=$always_export_symbols
14340
14341 # The commands to list exported symbols.
14342 export_symbols_cmds=$lt_export_symbols_cmds
14343
14344 # Symbols that should not be listed in the preloaded symbols.
14345 exclude_expsyms=$lt_exclude_expsyms
14346
14347 # Symbols that must always be exported.
14348 include_expsyms=$lt_include_expsyms
14349
14350 # Commands necessary for linking programs (against libraries) with templates.
14351 prelink_cmds=$lt_prelink_cmds
14352
14353 # Commands necessary for finishing linking programs.
14354 postlink_cmds=$lt_postlink_cmds
14355
14356 # Specify filename containing input files.
14357 file_list_spec=$lt_file_list_spec
14358
14359 # How to hardcode a shared library path into an executable.
14360 hardcode_action=$hardcode_action
14361
14362 # ### END LIBTOOL CONFIG
14363
14364 _LT_EOF
14365
14366 case $host_os in
14367 aix3*)
14368 cat <<\_LT_EOF >> "$cfgfile"
14369 # AIX sometimes has problems with the GCC collect2 program. For some
14370 # reason, if we set the COLLECT_NAMES environment variable, the problems
14371 # vanish in a puff of smoke.
14372 if test "X${COLLECT_NAMES+set}" != Xset; then
14373 COLLECT_NAMES=
14374 export COLLECT_NAMES
14375 fi
14376 _LT_EOF
14377 ;;
14378 esac
14379
14380
14381 ltmain="$ac_aux_dir/ltmain.sh"
14382
14383
14384 # We use sed instead of cat because bash on DJGPP gets confused if
14385 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14386 # text mode, it properly converts lines to CR/LF. This bash problem
14387 # is reportedly fixed, but why not run on old versions too?
14388 sed '$q' "$ltmain" >> "$cfgfile" \
14389 || (rm -f "$cfgfile"; exit 1)
14390
14391 if test x"$xsi_shell" = xyes; then
14392 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14393 func_dirname ()\
14394 {\
14395 \ case ${1} in\
14396 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14397 \ * ) func_dirname_result="${3}" ;;\
14398 \ esac\
14399 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14400 && mv -f "$cfgfile.tmp" "$cfgfile" \
14401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14402 test 0 -eq $? || _lt_function_replace_fail=:
14403
14404
14405 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14406 func_basename ()\
14407 {\
14408 \ func_basename_result="${1##*/}"\
14409 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14410 && mv -f "$cfgfile.tmp" "$cfgfile" \
14411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14412 test 0 -eq $? || _lt_function_replace_fail=:
14413
14414
14415 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14416 func_dirname_and_basename ()\
14417 {\
14418 \ case ${1} in\
14419 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14420 \ * ) func_dirname_result="${3}" ;;\
14421 \ esac\
14422 \ func_basename_result="${1##*/}"\
14423 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14424 && mv -f "$cfgfile.tmp" "$cfgfile" \
14425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14426 test 0 -eq $? || _lt_function_replace_fail=:
14427
14428
14429 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14430 func_stripname ()\
14431 {\
14432 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14433 \ # positional parameters, so assign one to ordinary parameter first.\
14434 \ func_stripname_result=${3}\
14435 \ func_stripname_result=${func_stripname_result#"${1}"}\
14436 \ func_stripname_result=${func_stripname_result%"${2}"}\
14437 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14438 && mv -f "$cfgfile.tmp" "$cfgfile" \
14439 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14440 test 0 -eq $? || _lt_function_replace_fail=:
14441
14442
14443 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14444 func_split_long_opt ()\
14445 {\
14446 \ func_split_long_opt_name=${1%%=*}\
14447 \ func_split_long_opt_arg=${1#*=}\
14448 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14449 && mv -f "$cfgfile.tmp" "$cfgfile" \
14450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14451 test 0 -eq $? || _lt_function_replace_fail=:
14452
14453
14454 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14455 func_split_short_opt ()\
14456 {\
14457 \ func_split_short_opt_arg=${1#??}\
14458 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14459 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14460 && mv -f "$cfgfile.tmp" "$cfgfile" \
14461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14462 test 0 -eq $? || _lt_function_replace_fail=:
14463
14464
14465 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14466 func_lo2o ()\
14467 {\
14468 \ case ${1} in\
14469 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14470 \ *) func_lo2o_result=${1} ;;\
14471 \ esac\
14472 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14473 && mv -f "$cfgfile.tmp" "$cfgfile" \
14474 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14475 test 0 -eq $? || _lt_function_replace_fail=:
14476
14477
14478 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14479 func_xform ()\
14480 {\
14481 func_xform_result=${1%.*}.lo\
14482 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14483 && mv -f "$cfgfile.tmp" "$cfgfile" \
14484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14485 test 0 -eq $? || _lt_function_replace_fail=:
14486
14487
14488 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14489 func_arith ()\
14490 {\
14491 func_arith_result=$(( $* ))\
14492 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14493 && mv -f "$cfgfile.tmp" "$cfgfile" \
14494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14495 test 0 -eq $? || _lt_function_replace_fail=:
14496
14497
14498 sed -e '/^func_len ()$/,/^} # func_len /c\
14499 func_len ()\
14500 {\
14501 func_len_result=${#1}\
14502 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14503 && mv -f "$cfgfile.tmp" "$cfgfile" \
14504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14505 test 0 -eq $? || _lt_function_replace_fail=:
14506
14507 fi
14508
14509 if test x"$lt_shell_append" = xyes; then
14510 sed -e '/^func_append ()$/,/^} # func_append /c\
14511 func_append ()\
14512 {\
14513 eval "${1}+=\\${2}"\
14514 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14515 && mv -f "$cfgfile.tmp" "$cfgfile" \
14516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14517 test 0 -eq $? || _lt_function_replace_fail=:
14518
14519
14520 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14521 func_append_quoted ()\
14522 {\
14523 \ func_quote_for_eval "${2}"\
14524 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14525 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14526 && mv -f "$cfgfile.tmp" "$cfgfile" \
14527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14528 test 0 -eq $? || _lt_function_replace_fail=:
14529
14530
14531 # Save a `func_append' function call where possible by direct use of '+='
14532 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14533 && mv -f "$cfgfile.tmp" "$cfgfile" \
14534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14535 test 0 -eq $? || _lt_function_replace_fail=:
14536 else
14537 # Save a `func_append' function call even when '+=' is not available
14538 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14539 && mv -f "$cfgfile.tmp" "$cfgfile" \
14540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14541 test 0 -eq $? || _lt_function_replace_fail=:
14542 fi
14543
14544 if test x"$_lt_function_replace_fail" = x":"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14546 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14547 fi
14548
14549
14550 mv -f "$cfgfile" "$ofile" ||
14551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14552 chmod +x "$ofile"
14553
14554 ;;
14555
14556 esac
14557 done # for ac_tag
14558
14559
14560 as_fn_exit 0
14561 _ACEOF
14562 ac_clean_files=$ac_clean_files_save
14563
14564 test $ac_write_fail = 0 ||
14565 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14566
14567
14568 # configure is writing to config.log, and then calls config.status.
14569 # config.status does its own redirection, appending to config.log.
14570 # Unfortunately, on DOS this fails, as config.log is still kept open
14571 # by configure, so config.status won't be able to write to it; its
14572 # output is simply discarded. So we exec the FD to /dev/null,
14573 # effectively closing config.log, so it can be properly (re)opened and
14574 # appended to by config.status. When coming back to configure, we
14575 # need to make the FD available again.
14576 if test "$no_create" != yes; then
14577 ac_cs_success=:
14578 ac_config_status_args=
14579 test "$silent" = yes &&
14580 ac_config_status_args="$ac_config_status_args --quiet"
14581 exec 5>/dev/null
14582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14583 exec 5>>config.log
14584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14585 # would make configure fail if this is the last instruction.
14586 $ac_cs_success || as_fn_exit 1
14587 fi
14588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14590 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14591 fi
14592