More cleanup ...
[deb_shairplay.git] / configure
CommitLineData
15c988f7
JB
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
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
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
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
244fi; }
245IFS=$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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
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
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_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.
316as_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 "$as_dir" as a directory, including parents if necessary.
326as_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.
374as_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.
384if (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 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # 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 $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_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
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_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.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_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
511ECHO_C= ECHO_N= ECHO_T=
512case `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';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (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
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_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.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 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.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='shairplay'
592PACKAGE_TARNAME='shairplay'
593PACKAGE_VERSION='0.9.0'
594PACKAGE_STRING='shairplay 0.9.0'
595PACKAGE_BUGREPORT='juhovh@iki.fi'
596PACKAGE_URL=''
597
598ac_unique_file="src/shairplay.c"
599# Factoring default headers for most tests.
600ac_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
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_LIBAO_FALSE
640HAVE_LIBAO_TRUE
641libao_LIBS
642libao_CFLAGS
643PKG_CONFIG
644OS_FREEBSD_FALSE
645OS_FREEBSD_TRUE
646OS_GNU_FALSE
647OS_GNU_TRUE
648OS_LINUX_FALSE
649OS_LINUX_TRUE
650OS_UNIX_FALSE
651OS_UNIX_TRUE
652OS_WIN32_FALSE
653OS_WIN32_TRUE
654LIBM
655LIBADD_DL
656LT_DLPREOPEN
657LIBADD_DLD_LINK
658LIBADD_SHL_LOAD
659LIBADD_DLOPEN
660LT_DLLOADERS
661CPP
662OTOOL64
663OTOOL
664LIPO
665NMEDIT
666DSYMUTIL
667MANIFEST_TOOL
668RANLIB
669ac_ct_AR
670AR
15c988f7
JB
671LN_S
672NM
673ac_ct_DUMPBIN
674DUMPBIN
675LD
676FGREP
677EGREP
678GREP
679SED
3899877d
JB
680LIBTOOL
681OBJDUMP
682DLLTOOL
683AS
15c988f7
JB
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
15c988f7
JB
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__quote
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_dependency_tracking
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_gnu_ld
779with_sysroot
780enable_libtool_lock
781'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CPP
791PKG_CONFIG
792libao_CFLAGS
793libao_LIBS'
794
795
796# Initialize some variables set by options.
797ac_init_help=
798ac_init_version=false
799ac_unrecognized_opts=
800ac_unrecognized_sep=
801# The variables have the same names as the options, with
802# dashes changed to underlines.
803cache_file=/dev/null
804exec_prefix=NONE
805no_create=
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
814verbose=
815x_includes=NONE
816x_libraries=NONE
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
823# (The list follows the same order as the GNU Coding Standards.)
824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
832includedir='${prefix}/include'
833oldincludedir='/usr/include'
834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
843
844ac_prev=
845ac_dashdash=
846for ac_option
847do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908"enable_$ac_useropt"
909"*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154"with_$ac_useropt"
1155"*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207fi
1208
1209if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215fi
1216
1217# Check all directory arguments for consistency.
1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1222do
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236done
1237
1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
1240# FIXME: To remove some day.
1241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
1245# FIXME: To remove some day.
1246if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252fi
1253
1254ac_tool_prefix=
1255test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257test "$silent" = yes && exec 6>/dev/null
1258
1259
1260ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261ac_ls_di=`ls -di .` &&
1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268# Find the source files, if location was not specified.
1269if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277$as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1298 fi
1299else
1300 ac_srcdir_defaulted=no
1301fi
1302if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305fi
1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310# When building in place, set srcdir=.
1311if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313fi
1314# Remove unnecessary trailing slashes from srcdir.
1315# Double slashes in file names in object file debugging info
1316# mess up M-x gdb in Emacs.
1317case $srcdir in
1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319esac
1320for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325done
1326
1327#
1328# Report the --help message.
1329#
1330if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334\`configure' configures shairplay 0.9.0 to adapt to many kinds of systems.
1335
1336Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341Defaults for the options are specified in brackets.
1342
1343Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
1354Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1359
1360By default, \`make install' will install all the files in
1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363for instance \`--prefix=\$HOME'.
1364
1365For better control, use the options below.
1366
1367Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/shairplay]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387_ACEOF
1388
1389 cat <<\_ACEOF
1390
1391Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395
1396System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399_ACEOF
1400fi
1401
1402if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of shairplay 0.9.0:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
1428
1429Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438 PKG_CONFIG path to pkg-config utility
1439 libao_CFLAGS
1440 C compiler flags for libao, overriding pkg-config
1441 libao_LIBS linker flags for libao, overriding pkg-config
1442
1443Use these variables to override the choices made by `configure' or to help
1444it to find libraries and programs with nonstandard names/locations.
1445
1446Report bugs to <juhovh@iki.fi>.
1447_ACEOF
1448ac_status=$?
1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
1474
1475case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488esac
1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504fi
1505
1506test -n "$ac_init_help" && exit $ac_status
1507if $ac_init_version; then
1508 cat <<\_ACEOF
1509shairplay configure 0.9.0
1510generated by GNU Autoconf 2.69
1511
1512Copyright (C) 2012 Free Software Foundation, Inc.
1513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
1516 exit
1517fi
1518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_c_try_link LINENO
1562# -----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_link ()
1565{
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_link
1606
1607# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608# -------------------------------------------------------
1609# Tests whether HEADER exists and can be compiled using the include files in
1610# INCLUDES, setting the cache variable VAR accordingly.
1611ac_fn_c_check_header_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
1616if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h. */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626else
1627 eval "$3=no"
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630fi
1631eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_c_check_header_compile
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664else
1665 $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_func LINENO FUNC VAR
1718# ----------------------------------
1719# Tests whether FUNC exists, setting the cache variable VAR accordingly
1720ac_fn_c_check_func ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732#define $2 innocuous_$2
1733
1734/* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1738
1739#ifdef __STDC__
1740# include <limits.h>
1741#else
1742# include <assert.h>
1743#endif
1744
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 ();
1754/* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main ()
1763{
1764return $2 ();
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"; then :
1770 eval "$3=yes"
1771else
1772 eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783
1784# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1785# ---------------------------------------------
1786# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1787# accordingly.
1788ac_fn_c_check_decl ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 as_decl_name=`echo $2|sed 's/ *(.*//'`
1792 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1794$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1795if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801int
1802main ()
1803{
1804#ifndef $as_decl_name
1805#ifdef __cplusplus
1806 (void) $as_decl_use;
1807#else
1808 (void) $as_decl_name;
1809#endif
1810#endif
1811
1812 ;
1813 return 0;
1814}
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818else
1819 eval "$3=no"
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_c_check_decl
1829cat >config.log <<_ACEOF
1830This file contains any messages produced by compilers while
1831running configure, to aid debugging if configure makes a mistake.
1832
1833It was created by shairplay $as_me 0.9.0, which was
1834generated by GNU Autoconf 2.69. Invocation command line was
1835
1836 $ $0 $@
1837
1838_ACEOF
1839exec 5>>config.log
1840{
1841cat <<_ASUNAME
1842## --------- ##
1843## Platform. ##
1844## --------- ##
1845
1846hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1847uname -m = `(uname -m) 2>/dev/null || echo unknown`
1848uname -r = `(uname -r) 2>/dev/null || echo unknown`
1849uname -s = `(uname -s) 2>/dev/null || echo unknown`
1850uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851
1852/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1853/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1854
1855/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1856/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1857/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1858/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1859/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1860/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1861/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1862
1863_ASUNAME
1864
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 $as_echo "PATH: $as_dir"
1871 done
1872IFS=$as_save_IFS
1873
1874} >&5
1875
1876cat >&5 <<_ACEOF
1877
1878
1879## ----------- ##
1880## Core tests. ##
1881## ----------- ##
1882
1883_ACEOF
1884
1885
1886# Keep a trace of the command line.
1887# Strip out --no-create and --no-recursion so they do not pile up.
1888# Strip out --silent because we don't want to record it for future runs.
1889# Also quote any args containing shell meta-characters.
1890# Make two passes to allow for proper duplicate-argument suppression.
1891ac_configure_args=
1892ac_configure_args0=
1893ac_configure_args1=
1894ac_must_keep_next=false
1895for ac_pass in 1 2
1896do
1897 for ac_arg
1898 do
1899 case $ac_arg in
1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1902 | -silent | --silent | --silen | --sile | --sil)
1903 continue ;;
1904 *\'*)
1905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 esac
1907 case $ac_pass in
1908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1909 2)
1910 as_fn_append ac_configure_args1 " '$ac_arg'"
1911 if test $ac_must_keep_next = true; then
1912 ac_must_keep_next=false # Got value, back to normal.
1913 else
1914 case $ac_arg in
1915 *=* | --config-cache | -C | -disable-* | --disable-* \
1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1918 | -with-* | --with-* | -without-* | --without-* | --x)
1919 case "$ac_configure_args0 " in
1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1921 esac
1922 ;;
1923 -* ) ac_must_keep_next=true ;;
1924 esac
1925 fi
1926 as_fn_append ac_configure_args " '$ac_arg'"
1927 ;;
1928 esac
1929 done
1930done
1931{ ac_configure_args0=; unset ac_configure_args0;}
1932{ ac_configure_args1=; unset ac_configure_args1;}
1933
1934# When interrupted or exit'd, cleanup temporary files, and complete
1935# config.log. We remove comments because anyway the quotes in there
1936# would cause problems or look ugly.
1937# WARNING: Use '\'' to represent an apostrophe within the trap.
1938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1939trap 'exit_status=$?
1940 # Save into config.log some information that might help in debugging.
1941 {
1942 echo
1943
1944 $as_echo "## ---------------- ##
1945## Cache variables. ##
1946## ---------------- ##"
1947 echo
1948 # The following way of writing the cache mishandles newlines in values,
1949(
1950 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in #(
1953 *${as_nl}*)
1954 case $ac_var in #(
1955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1957 esac
1958 case $ac_var in #(
1959 _ | IFS | as_nl) ;; #(
1960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1961 *) { eval $ac_var=; unset $ac_var;} ;;
1962 esac ;;
1963 esac
1964 done
1965 (set) 2>&1 |
1966 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1967 *${as_nl}ac_space=\ *)
1968 sed -n \
1969 "s/'\''/'\''\\\\'\'''\''/g;
1970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1971 ;; #(
1972 *)
1973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1974 ;;
1975 esac |
1976 sort
1977)
1978 echo
1979
1980 $as_echo "## ----------------- ##
1981## Output variables. ##
1982## ----------------- ##"
1983 echo
1984 for ac_var in $ac_subst_vars
1985 do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1993
1994 if test -n "$ac_subst_files"; then
1995 $as_echo "## ------------------- ##
1996## File substitutions. ##
1997## ------------------- ##"
1998 echo
1999 for ac_var in $ac_subst_files
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008 fi
2009
2010 if test -s confdefs.h; then
2011 $as_echo "## ----------- ##
2012## confdefs.h. ##
2013## ----------- ##"
2014 echo
2015 cat confdefs.h
2016 echo
2017 fi
2018 test "$ac_signal" != 0 &&
2019 $as_echo "$as_me: caught signal $ac_signal"
2020 $as_echo "$as_me: exit $exit_status"
2021 } >&5
2022 rm -f core *.core core.conftest.* &&
2023 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2024 exit $exit_status
2025' 0
2026for ac_signal in 1 2 13 15; do
2027 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2028done
2029ac_signal=0
2030
2031# confdefs.h avoids OS command line length limits that DEFS can exceed.
2032rm -f -r conftest* confdefs.h
2033
2034$as_echo "/* confdefs.h */" > confdefs.h
2035
2036# Predefined preprocessor variables.
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_NAME "$PACKAGE_NAME"
2040_ACEOF
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_VERSION "$PACKAGE_VERSION"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_STRING "$PACKAGE_STRING"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_URL "$PACKAGE_URL"
2060_ACEOF
2061
2062
2063# Let the site file select an alternate cache file if it wants to.
2064# Prefer an explicitly selected file to automatically selected ones.
2065ac_site_file1=NONE
2066ac_site_file2=NONE
2067if test -n "$CONFIG_SITE"; then
2068 # We do not want a PATH search for config.site.
2069 case $CONFIG_SITE in #((
2070 -*) ac_site_file1=./$CONFIG_SITE;;
2071 */*) ac_site_file1=$CONFIG_SITE;;
2072 *) ac_site_file1=./$CONFIG_SITE;;
2073 esac
2074elif test "x$prefix" != xNONE; then
2075 ac_site_file1=$prefix/share/config.site
2076 ac_site_file2=$prefix/etc/config.site
2077else
2078 ac_site_file1=$ac_default_prefix/share/config.site
2079 ac_site_file2=$ac_default_prefix/etc/config.site
2080fi
2081for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2082do
2083 test "x$ac_site_file" = xNONE && continue
2084 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2086$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2087 sed 's/^/| /' "$ac_site_file" >&5
2088 . "$ac_site_file" \
2089 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2091as_fn_error $? "failed to load site script $ac_site_file
2092See \`config.log' for more details" "$LINENO" 5; }
2093 fi
2094done
2095
2096if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special files
2098 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2099 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2101$as_echo "$as_me: loading cache $cache_file" >&6;}
2102 case $cache_file in
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2105 esac
2106 fi
2107else
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2109$as_echo "$as_me: creating cache $cache_file" >&6;}
2110 >$cache_file
2111fi
2112
2113# Check that the precious variables saved in the cache have kept the same
2114# value.
2115ac_cache_corrupted=false
2116for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2122 set,)
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2126 ,set)
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2128$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2130 ,);;
2131 *)
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 # differences in whitespace do not lead to failure.
2134 ac_old_val_w=`echo x $ac_old_val`
2135 ac_new_val_w=`echo x $ac_new_val`
2136 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2138$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139 ac_cache_corrupted=:
2140 else
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2142$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2143 eval $ac_var=\$ac_old_val
2144 fi
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2146$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2148$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2149 fi;;
2150 esac
2151 # Pass precious variables to config.status.
2152 if test "$ac_new_set" = set; then
2153 case $ac_new_val in
2154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 *) ac_arg=$ac_var=$ac_new_val ;;
2156 esac
2157 case " $ac_configure_args " in
2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2159 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2160 esac
2161 fi
2162done
2163if $ac_cache_corrupted; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2167$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2169fi
2170## -------------------- ##
2171## Main body of script. ##
2172## -------------------- ##
2173
2174ac_ext=c
2175ac_cpp='$CPP $CPPFLAGS'
2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179
2180
2181
2182
2183ac_config_headers="$ac_config_headers config.h"
2184
2185am__api_version='1.11'
2186
2187ac_aux_dir=
2188for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189 if test -f "$ac_dir/install-sh"; then
2190 ac_aux_dir=$ac_dir
2191 ac_install_sh="$ac_aux_dir/install-sh -c"
2192 break
2193 elif test -f "$ac_dir/install.sh"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/install.sh -c"
2196 break
2197 elif test -f "$ac_dir/shtool"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/shtool install -c"
2200 break
2201 fi
2202done
2203if test -z "$ac_aux_dir"; then
2204 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2205fi
2206
2207# These three variables are undocumented and unsupported,
2208# and are intended to be withdrawn in a future Autoconf release.
2209# They can cause serious problems if a builder's source tree is in a directory
2210# whose full name contains unusual characters.
2211ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2212ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2213ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2214
2215
2216# Find a good install program. We prefer a C program (faster),
2217# so one script is as good as another. But avoid the broken or
2218# incompatible versions:
2219# SysV /etc/install, /usr/sbin/install
2220# SunOS /usr/etc/install
2221# IRIX /sbin/install
2222# AIX /bin/install
2223# AmigaOS /C/install, which installs bootblocks on floppy discs
2224# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2225# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2226# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2227# OS/2's system install, which has a completely different semantic
2228# ./install, which can be erroneously created by make from ./install.sh.
2229# Reject install programs that cannot install multiple files.
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2231$as_echo_n "checking for a BSD-compatible install... " >&6; }
2232if test -z "$INSTALL"; then
2233if ${ac_cv_path_install+:} false; then :
2234 $as_echo_n "(cached) " >&6
2235else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 # Account for people who put trailing slashes in PATH elements.
2242case $as_dir/ in #((
2243 ./ | .// | /[cC]/* | \
2244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2245 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2246 /usr/ucb/* ) ;;
2247 *)
2248 # OSF1 and SCO ODT 3.0 have their own names for install.
2249 # Don't use installbsd from OSF since it installs stuff as root
2250 # by default.
2251 for ac_prog in ginstall scoinst install; do
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2254 if test $ac_prog = install &&
2255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256 # AIX install. It has an incompatible calling convention.
2257 :
2258 elif test $ac_prog = install &&
2259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # program-specific install script used by HP pwplus--don't use.
2261 :
2262 else
2263 rm -rf conftest.one conftest.two conftest.dir
2264 echo one > conftest.one
2265 echo two > conftest.two
2266 mkdir conftest.dir
2267 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2268 test -s conftest.one && test -s conftest.two &&
2269 test -s conftest.dir/conftest.one &&
2270 test -s conftest.dir/conftest.two
2271 then
2272 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2273 break 3
2274 fi
2275 fi
2276 fi
2277 done
2278 done
2279 ;;
2280esac
2281
2282 done
2283IFS=$as_save_IFS
2284
2285rm -rf conftest.one conftest.two conftest.dir
2286
2287fi
2288 if test "${ac_cv_path_install+set}" = set; then
2289 INSTALL=$ac_cv_path_install
2290 else
2291 # As a last resort, use the slow shell script. Don't cache a
2292 # value for INSTALL within a source directory, because that will
2293 # break other packages using the cache if that directory is
2294 # removed, or if the value is a relative name.
2295 INSTALL=$ac_install_sh
2296 fi
2297fi
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2299$as_echo "$INSTALL" >&6; }
2300
2301# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2302# It thinks the first close brace ends the variable substitution.
2303test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2304
2305test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2306
2307test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2308
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2310$as_echo_n "checking whether build environment is sane... " >&6; }
2311# Just in case
2312sleep 1
2313echo timestamp > conftest.file
2314# Reject unsafe characters in $srcdir or the absolute working directory
2315# name. Accept space and tab only in the latter.
2316am_lf='
2317'
2318case `pwd` in
2319 *[\\\"\#\$\&\'\`$am_lf]*)
2320 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2321esac
2322case $srcdir in
2323 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2324 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2325esac
2326
2327# Do `set' in a subshell so we don't clobber the current shell's
2328# arguments. Must try -L first in case configure is actually a
2329# symlink; some systems play weird games with the mod time of symlinks
2330# (eg FreeBSD returns the mod time of the symlink's containing
2331# directory).
2332if (
2333 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2334 if test "$*" = "X"; then
2335 # -L didn't work.
2336 set X `ls -t "$srcdir/configure" conftest.file`
2337 fi
2338 rm -f conftest.file
2339 if test "$*" != "X $srcdir/configure conftest.file" \
2340 && test "$*" != "X conftest.file $srcdir/configure"; then
2341
2342 # If neither matched, then we have a broken ls. This can happen
2343 # if, for instance, CONFIG_SHELL is bash and it inherits a
2344 # broken ls alias from the environment. This has actually
2345 # happened. Such a system could not be considered "sane".
2346 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2347alias in your environment" "$LINENO" 5
2348 fi
2349
2350 test "$2" = conftest.file
2351 )
2352then
2353 # Ok.
2354 :
2355else
2356 as_fn_error $? "newly created file is older than distributed files!
2357Check your system clock" "$LINENO" 5
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2360$as_echo "yes" >&6; }
2361test "$program_prefix" != NONE &&
2362 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2363# Use a double $ so make ignores it.
2364test "$program_suffix" != NONE &&
2365 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2366# Double any \ or $.
2367# By default was `s,x,x', remove it if useless.
2368ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2369program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2370
2371# expand $ac_aux_dir to an absolute path
2372am_aux_dir=`cd $ac_aux_dir && pwd`
2373
2374if test x"${MISSING+set}" != xset; then
2375 case $am_aux_dir in
2376 *\ * | *\ *)
2377 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2378 *)
2379 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2380 esac
2381fi
2382# Use eval to expand $SHELL
2383if eval "$MISSING --run true"; then
2384 am_missing_run="$MISSING --run "
2385else
2386 am_missing_run=
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2388$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2389fi
2390
2391if test x"${install_sh}" != xset; then
2392 case $am_aux_dir in
2393 *\ * | *\ *)
2394 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2395 *)
2396 install_sh="\${SHELL} $am_aux_dir/install-sh"
2397 esac
2398fi
2399
2400# Installed binaries are usually stripped using `strip' when the user
2401# run `make install-strip'. However `strip' might not be the right
2402# tool to use in cross-compilation environments, therefore Automake
2403# will honor the `STRIP' environment variable to overrule this program.
2404if test "$cross_compiling" != no; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2407set dummy ${ac_tool_prefix}strip; ac_word=$2
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409$as_echo_n "checking for $ac_word... " >&6; }
2410if ${ac_cv_prog_STRIP+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412else
2413 if test -n "$STRIP"; then
2414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427done
2428 done
2429IFS=$as_save_IFS
2430
2431fi
2432fi
2433STRIP=$ac_cv_prog_STRIP
2434if test -n "$STRIP"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2436$as_echo "$STRIP" >&6; }
2437else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439$as_echo "no" >&6; }
2440fi
2441
2442
2443fi
2444if test -z "$ac_cv_prog_STRIP"; then
2445 ac_ct_STRIP=$STRIP
2446 # Extract the first word of "strip", so it can be a program name with args.
2447set dummy strip; ac_word=$2
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449$as_echo_n "checking for $ac_word... " >&6; }
2450if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452else
2453 if test -n "$ac_ct_STRIP"; then
2454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_ac_ct_STRIP="strip"
2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467done
2468 done
2469IFS=$as_save_IFS
2470
2471fi
2472fi
2473ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2474if test -n "$ac_ct_STRIP"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2476$as_echo "$ac_ct_STRIP" >&6; }
2477else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479$as_echo "no" >&6; }
2480fi
2481
2482 if test "x$ac_ct_STRIP" = x; then
2483 STRIP=":"
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486yes:)
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2489ac_tool_warned=yes ;;
2490esac
2491 STRIP=$ac_ct_STRIP
2492 fi
2493else
2494 STRIP="$ac_cv_prog_STRIP"
2495fi
2496
2497fi
2498INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2499
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2501$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2502if test -z "$MKDIR_P"; then
2503 if ${ac_cv_path_mkdir+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_prog in mkdir gmkdir; do
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2514 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2515 'mkdir (GNU coreutils) '* | \
2516 'mkdir (coreutils) '* | \
2517 'mkdir (fileutils) '4.1*)
2518 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2519 break 3;;
2520 esac
2521 done
2522 done
2523 done
2524IFS=$as_save_IFS
2525
2526fi
2527
2528 test -d ./--version && rmdir ./--version
2529 if test "${ac_cv_path_mkdir+set}" = set; then
2530 MKDIR_P="$ac_cv_path_mkdir -p"
2531 else
2532 # As a last resort, use the slow shell script. Don't cache a
2533 # value for MKDIR_P within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the value is a relative name.
2536 MKDIR_P="$ac_install_sh -d"
2537 fi
2538fi
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2540$as_echo "$MKDIR_P" >&6; }
2541
2542mkdir_p="$MKDIR_P"
2543case $mkdir_p in
2544 [\\/$]* | ?:[\\/]*) ;;
2545 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2546esac
2547
2548for ac_prog in gawk mawk nawk awk
2549do
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551set dummy $ac_prog; ac_word=$2
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553$as_echo_n "checking for $ac_word... " >&6; }
2554if ${ac_cv_prog_AWK+:} false; then :
2555 $as_echo_n "(cached) " >&6
2556else
2557 if test -n "$AWK"; then
2558 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_AWK="$ac_prog"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571done
2572 done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577AWK=$ac_cv_prog_AWK
2578if test -n "$AWK"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2580$as_echo "$AWK" >&6; }
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
2584fi
2585
2586
2587 test -n "$AWK" && break
2588done
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2591$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2592set x ${MAKE-make}
2593ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2594if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 cat >conftest.make <<\_ACEOF
2598SHELL = /bin/sh
2599all:
2600 @echo '@@@%%%=$(MAKE)=@@@%%%'
2601_ACEOF
2602# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2603case `${MAKE-make} -f conftest.make 2>/dev/null` in
2604 *@@@%%%=?*=@@@%%%*)
2605 eval ac_cv_prog_make_${ac_make}_set=yes;;
2606 *)
2607 eval ac_cv_prog_make_${ac_make}_set=no;;
2608esac
2609rm -f conftest.make
2610fi
2611if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2613$as_echo "yes" >&6; }
2614 SET_MAKE=
2615else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618 SET_MAKE="MAKE=${MAKE-make}"
2619fi
2620
2621rm -rf .tst 2>/dev/null
2622mkdir .tst 2>/dev/null
2623if test -d .tst; then
2624 am__leading_dot=.
2625else
2626 am__leading_dot=_
2627fi
2628rmdir .tst 2>/dev/null
2629
2630if test "`cd $srcdir && pwd`" != "`pwd`"; then
2631 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2632 # is not polluted with repeated "-I."
2633 am__isrc=' -I$(srcdir)'
2634 # test to see if srcdir already configured
2635 if test -f $srcdir/config.status; then
2636 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2637 fi
2638fi
2639
2640# test whether we have cygpath
2641if test -z "$CYGPATH_W"; then
2642 if (cygpath --version) >/dev/null 2>/dev/null; then
2643 CYGPATH_W='cygpath -w'
2644 else
2645 CYGPATH_W=echo
2646 fi
2647fi
2648
2649
2650# Define the identity of the package.
2651 PACKAGE='shairplay'
2652 VERSION='0.9.0'
2653
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE "$PACKAGE"
2657_ACEOF
2658
2659
2660cat >>confdefs.h <<_ACEOF
2661#define VERSION "$VERSION"
2662_ACEOF
2663
2664# Some tools Automake needs.
2665
2666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2667
2668
2669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2670
2671
2672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2673
2674
2675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2676
2677
2678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2679
2680# We need awk for the "check" target. The system "awk" is bad on
2681# some platforms.
2682# Always define AMTAR for backward compatibility. Yes, it's still used
2683# in the wild :-( We should find a proper way to deprecate it ...
2684AMTAR='$${TAR-tar}'
2685
2686am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2687
2688
2689
2690
2691
2692
2693# Checks for programs.
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2704if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722 done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727CC=$ac_cv_prog_CC
2728if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730$as_echo "$CC" >&6; }
2731else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736
2737fi
2738if test -z "$ac_cv_prog_CC"; then
2739 ac_ct_CC=$CC
2740 # Extract the first word of "gcc", so it can be a program name with args.
2741set dummy gcc; ac_word=$2
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743$as_echo_n "checking for $ac_word... " >&6; }
2744if ${ac_cv_prog_ac_ct_CC+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746else
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_ac_ct_CC="gcc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761done
2762 done
2763IFS=$as_save_IFS
2764
2765fi
2766fi
2767ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770$as_echo "$ac_ct_CC" >&6; }
2771else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773$as_echo "no" >&6; }
2774fi
2775
2776 if test "x$ac_ct_CC" = x; then
2777 CC=""
2778 else
2779 case $cross_compiling:$ac_tool_warned in
2780yes:)
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783ac_tool_warned=yes ;;
2784esac
2785 CC=$ac_ct_CC
2786 fi
2787else
2788 CC="$ac_cv_prog_CC"
2789fi
2790
2791if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794set dummy ${ac_tool_prefix}cc; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_CC="${ac_tool_prefix}cc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814done
2815 done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823$as_echo "$CC" >&6; }
2824else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830 fi
2831fi
2832if test -z "$CC"; then
2833 # Extract the first word of "cc", so it can be a program name with args.
2834set dummy cc; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842else
2843 ac_prog_rejected=no
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2852 ac_prog_rejected=yes
2853 continue
2854 fi
2855 ac_cv_prog_CC="cc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859done
2860 done
2861IFS=$as_save_IFS
2862
2863if test $ac_prog_rejected = yes; then
2864 # We found a bogon in the path, so make sure we never use it.
2865 set dummy $ac_cv_prog_CC
2866 shift
2867 if test $# != 0; then
2868 # We chose a different compiler from the bogus one.
2869 # However, it has the same basename, so the bogon will be chosen
2870 # first if we set CC to just the basename; use the full file name.
2871 shift
2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2873 fi
2874fi
2875fi
2876fi
2877CC=$ac_cv_prog_CC
2878if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880$as_echo "$CC" >&6; }
2881else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886
2887fi
2888if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in cl.exe
2891 do
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914 done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919CC=$ac_cv_prog_CC
2920if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922$as_echo "$CC" >&6; }
2923else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929 test -n "$CC" && break
2930 done
2931fi
2932if test -z "$CC"; then
2933 ac_ct_CC=$CC
2934 for ac_prog in cl.exe
2935do
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937set dummy $ac_prog; ac_word=$2
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939$as_echo_n "checking for $ac_word... " >&6; }
2940if ${ac_cv_prog_ac_ct_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942else
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_ac_ct_CC="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957done
2958 done
2959IFS=$as_save_IFS
2960
2961fi
2962fi
2963ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964if test -n "$ac_ct_CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966$as_echo "$ac_ct_CC" >&6; }
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970fi
2971
2972
2973 test -n "$ac_ct_CC" && break
2974done
2975
2976 if test "x$ac_ct_CC" = x; then
2977 CC=""
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980yes:)
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983ac_tool_warned=yes ;;
2984esac
2985 CC=$ac_ct_CC
2986 fi
2987fi
2988
2989fi
2990
2991
2992test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994as_fn_error $? "no acceptable C compiler found in \$PATH
2995See \`config.log' for more details" "$LINENO" 5; }
2996
2997# Provide some information about the compiler.
2998$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2999set X $ac_compile
3000ac_compiler=$2
3001for ac_option in --version -v -V -qversion; do
3002 { { ac_try="$ac_compiler $ac_option >&5"
3003case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008$as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010 ac_status=$?
3011 if test -s conftest.err; then
3012 sed '10a\
3013... rest of stderr output deleted ...
3014 10q' conftest.err >conftest.er1
3015 cat conftest.er1 >&5
3016 fi
3017 rm -f conftest.er1 conftest.err
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }
3020done
3021
3022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024
3025int
3026main ()
3027{
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033ac_clean_files_save=$ac_clean_files
3034ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3035# Try to create an executable without -o first, disregard a.out.
3036# It will help us diagnose broken compilers, and finding out an intuition
3037# of exeext.
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3039$as_echo_n "checking whether the C compiler works... " >&6; }
3040ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3041
3042# The possible output files:
3043ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3044
3045ac_rmfiles=
3046for ac_file in $ac_files
3047do
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3051 esac
3052done
3053rm -f $ac_rmfiles
3054
3055if { { ac_try="$ac_link_default"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link_default") 2>&5
3063 ac_status=$?
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; then :
3066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068# in a Makefile. We should not override ac_cv_exeext if it was cached,
3069# so that the user can short-circuit this test for compilers unknown to
3070# Autoconf.
3071for ac_file in $ac_files ''
3072do
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3076 ;;
3077 [ab].out )
3078 # We found the default executable, but exeext='' is most
3079 # certainly right.
3080 break;;
3081 *.* )
3082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3083 then :; else
3084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 fi
3086 # We set ac_cv_exeext here because the later test for it is not
3087 # safe: cross compilers may not add the suffix if given an `-o'
3088 # argument, so we may need to know it at that point already.
3089 # Even if this section looks crufty: it has the advantage of
3090 # actually working.
3091 break;;
3092 * )
3093 break;;
3094 esac
3095done
3096test "$ac_cv_exeext" = no && ac_cv_exeext=
3097
3098else
3099 ac_file=''
3100fi
3101if test -z "$ac_file"; then :
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104$as_echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109as_fn_error 77 "C compiler cannot create executables
3110See \`config.log' for more details" "$LINENO" 5; }
3111else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113$as_echo "yes" >&6; }
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3116$as_echo_n "checking for C compiler default output file name... " >&6; }
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118$as_echo "$ac_file" >&6; }
3119ac_exeext=$ac_cv_exeext
3120
3121rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122ac_clean_files=$ac_clean_files_save
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124$as_echo_n "checking for suffix of executables... " >&6; }
3125if { { ac_try="$ac_link"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131$as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3138# work properly (i.e., refer to `conftest.exe'), while it won't with
3139# `rm'.
3140for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 break;;
3146 * ) break;;
3147 esac
3148done
3149else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153See \`config.log' for more details" "$LINENO" 5; }
3154fi
3155rm -f conftest conftest$ac_cv_exeext
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157$as_echo "$ac_cv_exeext" >&6; }
3158
3159rm -f conftest.$ac_ext
3160EXEEXT=$ac_cv_exeext
3161ac_exeext=$EXEEXT
3162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h. */
3164#include <stdio.h>
3165int
3166main ()
3167{
3168FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175ac_clean_files="$ac_clean_files conftest.out"
3176# Check that the compiler produces executables we can run. If not, either
3177# the compiler is broken, or we cross compile.
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179$as_echo_n "checking whether we are cross compiling... " >&6; }
3180if test "$cross_compiling" != yes; then
3181 { { ac_try="$ac_link"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 if { ac_try='./conftest$ac_cv_exeext'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3203 cross_compiling=no
3204 else
3205 if test "$cross_compiling" = maybe; then
3206 cross_compiling=yes
3207 else
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "cannot run C compiled programs.
3211If you meant to cross compile, use \`--host'.
3212See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 fi
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217$as_echo "$cross_compiling" >&6; }
3218
3219rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3220ac_clean_files=$ac_clean_files_save
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222$as_echo_n "checking for suffix of object files... " >&6; }
3223if ${ac_cv_objext+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225else
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227/* end confdefs.h. */
3228
3229int
3230main ()
3231{
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.o conftest.obj
3238if { { ac_try="$ac_compile"
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254 break;;
3255 esac
3256done
3257else
3258 $as_echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263as_fn_error $? "cannot compute suffix of object files: cannot compile
3264See \`config.log' for more details" "$LINENO" 5; }
3265fi
3266rm -f conftest.$ac_cv_objext conftest.$ac_ext
3267fi
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269$as_echo "$ac_cv_objext" >&6; }
3270OBJEXT=$ac_cv_objext
3271ac_objext=$OBJEXT
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3273$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3274if ${ac_cv_c_compiler_gnu+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283#ifndef __GNUC__
3284 choke me
3285#endif
3286
3287 ;
3288 return 0;
3289}
3290_ACEOF
3291if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_compiler_gnu=yes
3293else
3294 ac_compiler_gnu=no
3295fi
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297ac_cv_c_compiler_gnu=$ac_compiler_gnu
3298
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3301$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302if test $ac_compiler_gnu = yes; then
3303 GCC=yes
3304else
3305 GCC=
3306fi
3307ac_test_CFLAGS=${CFLAGS+set}
3308ac_save_CFLAGS=$CFLAGS
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3310$as_echo_n "checking whether $CC accepts -g... " >&6; }
3311if ${ac_cv_prog_cc_g+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313else
3314 ac_save_c_werror_flag=$ac_c_werror_flag
3315 ac_c_werror_flag=yes
3316 ac_cv_prog_cc_g=no
3317 CFLAGS="-g"
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319/* end confdefs.h. */
3320
3321int
3322main ()
3323{
3324
3325 ;
3326 return 0;
3327}
3328_ACEOF
3329if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_prog_cc_g=yes
3331else
3332 CFLAGS=""
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334/* end confdefs.h. */
3335
3336int
3337main ()
3338{
3339
3340 ;
3341 return 0;
3342}
3343_ACEOF
3344if ac_fn_c_try_compile "$LINENO"; then :
3345
3346else
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 CFLAGS="-g"
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h. */
3351
3352int
3353main ()
3354{
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_cv_prog_cc_g=yes
3362fi
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366fi
3367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371$as_echo "$ac_cv_prog_cc_g" >&6; }
3372if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3376 CFLAGS="-g -O2"
3377 else
3378 CFLAGS="-g"
3379 fi
3380else
3381 if test "$GCC" = yes; then
3382 CFLAGS="-O2"
3383 else
3384 CFLAGS=
3385 fi
3386fi
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3388$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3389if ${ac_cv_prog_cc_c89+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391else
3392 ac_cv_prog_cc_c89=no
3393ac_save_CC=$CC
3394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395/* end confdefs.h. */
3396#include <stdarg.h>
3397#include <stdio.h>
3398struct stat;
3399/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400struct buf { int x; };
3401FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402static char *e (p, i)
3403 char **p;
3404 int i;
3405{
3406 return p[i];
3407}
3408static char *f (char * (*g) (char **, int), char **p, ...)
3409{
3410 char *s;
3411 va_list v;
3412 va_start (v,p);
3413 s = g (p, va_arg (v,int));
3414 va_end (v);
3415 return s;
3416}
3417
3418/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
3421 as 'x'. The following induces an error, until -std is added to get
3422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
3424 that's true only with -std. */
3425int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426
3427/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3428 inside strings and character constants. */
3429#define FOO(x) 'x'
3430int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431
3432int test (int i, double x);
3433struct s1 {int (*f) (int a);};
3434struct s2 {int (*f) (double a);};
3435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436int argc;
3437char **argv;
3438int
3439main ()
3440{
3441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3442 ;
3443 return 0;
3444}
3445_ACEOF
3446for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3447 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448do
3449 CC="$ac_save_CC $ac_arg"
3450 if ac_fn_c_try_compile "$LINENO"; then :
3451 ac_cv_prog_cc_c89=$ac_arg
3452fi
3453rm -f core conftest.err conftest.$ac_objext
3454 test "x$ac_cv_prog_cc_c89" != "xno" && break
3455done
3456rm -f conftest.$ac_ext
3457CC=$ac_save_CC
3458
3459fi
3460# AC_CACHE_VAL
3461case "x$ac_cv_prog_cc_c89" in
3462 x)
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3464$as_echo "none needed" >&6; } ;;
3465 xno)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3467$as_echo "unsupported" >&6; } ;;
3468 *)
3469 CC="$CC $ac_cv_prog_cc_c89"
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3471$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3472esac
3473if test "x$ac_cv_prog_cc_c89" != xno; then :
3474
3475fi
3476
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482DEPDIR="${am__leading_dot}deps"
3483
3484ac_config_commands="$ac_config_commands depfiles"
3485
3486
3487am_make=${MAKE-make}
3488cat > confinc << 'END'
3489am__doit:
3490 @echo this is the am__doit target
3491.PHONY: am__doit
3492END
3493# If we don't find an include directive, just comment out the code.
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3495$as_echo_n "checking for style of include used by $am_make... " >&6; }
3496am__include="#"
3497am__quote=
3498_am_result=none
3499# First try GNU make style include.
3500echo "include confinc" > confmf
3501# Ignore all kinds of additional output from `make'.
3502case `$am_make -s -f confmf 2> /dev/null` in #(
3503*the\ am__doit\ target*)
3504 am__include=include
3505 am__quote=
3506 _am_result=GNU
3507 ;;
3508esac
3509# Now try BSD make style include.
3510if test "$am__include" = "#"; then
3511 echo '.include "confinc"' > confmf
3512 case `$am_make -s -f confmf 2> /dev/null` in #(
3513 *the\ am__doit\ target*)
3514 am__include=.include
3515 am__quote="\""
3516 _am_result=BSD
3517 ;;
3518 esac
3519fi
3520
3521
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3523$as_echo "$_am_result" >&6; }
3524rm -f confinc confmf
3525
3526# Check whether --enable-dependency-tracking was given.
3527if test "${enable_dependency_tracking+set}" = set; then :
3528 enableval=$enable_dependency_tracking;
3529fi
3530
3531if test "x$enable_dependency_tracking" != xno; then
3532 am_depcomp="$ac_aux_dir/depcomp"
3533 AMDEPBACKSLASH='\'
3534 am__nodep='_no'
3535fi
3536 if test "x$enable_dependency_tracking" != xno; then
3537 AMDEP_TRUE=
3538 AMDEP_FALSE='#'
3539else
3540 AMDEP_TRUE='#'
3541 AMDEP_FALSE=
3542fi
3543
3544
3545
3546depcc="$CC" am_compiler_list=
3547
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3549$as_echo_n "checking dependency style of $depcc... " >&6; }
3550if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552else
3553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3554 # We make a subdir and do the tests there. Otherwise we can end up
3555 # making bogus files that we don't know about and never remove. For
3556 # instance it was reported that on HP-UX the gcc test will end up
3557 # making a dummy file named `D' -- because `-MD' means `put the output
3558 # in D'.
3559 rm -rf conftest.dir
3560 mkdir conftest.dir
3561 # Copy depcomp to subdir because otherwise we won't find it if we're
3562 # using a relative directory.
3563 cp "$am_depcomp" conftest.dir
3564 cd conftest.dir
3565 # We will build objects and dependencies in a subdirectory because
3566 # it helps to detect inapplicable dependency modes. For instance
3567 # both Tru64's cc and ICC support -MD to output dependencies as a
3568 # side effect of compilation, but ICC will put the dependencies in
3569 # the current directory while Tru64 will put them in the object
3570 # directory.
3571 mkdir sub
3572
3573 am_cv_CC_dependencies_compiler_type=none
3574 if test "$am_compiler_list" = ""; then
3575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576 fi
3577 am__universal=false
3578 case " $depcc " in #(
3579 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3580 esac
3581
3582 for depmode in $am_compiler_list; do
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this. Also, some Intel
3602 # versions had trouble with output in subdirs
3603 am__obj=sub/conftest.${OBJEXT-o}
3604 am__minus_obj="-o $am__obj"
3605 case $depmode in
3606 gcc)
3607 # This depmode causes a compiler race in universal mode.
3608 test "$am__universal" = false || continue
3609 ;;
3610 nosideeffect)
3611 # after this tag, mechanisms are not by side-effect, so they'll
3612 # only be used when explicitly requested
3613 if test "x$enable_dependency_tracking" = xyes; then
3614 continue
3615 else
3616 break
3617 fi
3618 ;;
3619 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3620 # This compiler won't grok `-c -o', but also, the minuso test has
3621 # not run yet. These depmodes are late enough in the game, and
3622 # so weak that their functioning should not be impacted.
3623 am__obj=conftest.${OBJEXT-o}
3624 am__minus_obj=
3625 ;;
3626 none) break ;;
3627 esac
3628 if depmode=$depmode \
3629 source=sub/conftest.c object=$am__obj \
3630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3632 >/dev/null 2>conftest.err &&
3633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3637 # icc doesn't choke on unknown options, it will just issue warnings
3638 # or remarks (even with -Werror). So we grep stderr for any message
3639 # that says an option was ignored or not supported.
3640 # When given -MP, icc 7.0 and 7.1 complain thusly:
3641 # icc: Command line warning: ignoring option '-M'; no argument required
3642 # The diagnosis changed in icc 8.0:
3643 # icc: Command line remark: option '-MP' not supported
3644 if (grep 'ignoring option' conftest.err ||
3645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3646 am_cv_CC_dependencies_compiler_type=$depmode
3647 break
3648 fi
3649 fi
3650 done
3651
3652 cd ..
3653 rm -rf conftest.dir
3654else
3655 am_cv_CC_dependencies_compiler_type=none
3656fi
3657
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3660$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3661CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3662
3663 if
3664 test "x$enable_dependency_tracking" != xno \
3665 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3666 am__fastdepCC_TRUE=
3667 am__fastdepCC_FALSE='#'
3668else
3669 am__fastdepCC_TRUE='#'
3670 am__fastdepCC_FALSE=
3671fi
3672
3673
15c988f7
JB
3674# Make sure we can run config.sub.
3675$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3677
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3679$as_echo_n "checking build system type... " >&6; }
3680if ${ac_cv_build+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682else
3683 ac_build_alias=$build_alias
3684test "x$ac_build_alias" = x &&
3685 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3686test "x$ac_build_alias" = x &&
3687 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3688ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3689 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3690
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3693$as_echo "$ac_cv_build" >&6; }
3694case $ac_cv_build in
3695*-*-*) ;;
3696*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3697esac
3698build=$ac_cv_build
3699ac_save_IFS=$IFS; IFS='-'
3700set x $ac_cv_build
3701shift
3702build_cpu=$1
3703build_vendor=$2
3704shift; shift
3705# Remember, the first character of IFS is used to create $*,
3706# except with old shells:
3707build_os=$*
3708IFS=$ac_save_IFS
3709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3710
3711
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3713$as_echo_n "checking host system type... " >&6; }
3714if ${ac_cv_host+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716else
3717 if test "x$host_alias" = x; then
3718 ac_cv_host=$ac_cv_build
3719else
3720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3721 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3722fi
3723
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3726$as_echo "$ac_cv_host" >&6; }
3727case $ac_cv_host in
3728*-*-*) ;;
3729*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3730esac
3731host=$ac_cv_host
3732ac_save_IFS=$IFS; IFS='-'
3733set x $ac_cv_host
3734shift
3735host_cpu=$1
3736host_vendor=$2
3737shift; shift
3738# Remember, the first character of IFS is used to create $*,
3739# except with old shells:
3740host_os=$*
3741IFS=$ac_save_IFS
3742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3743
3744
3899877d
JB
3745enable_win32_dll=yes
3746
3747case $host in
3748*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3749 if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3751set dummy ${ac_tool_prefix}as; ac_word=$2
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753$as_echo_n "checking for $ac_word... " >&6; }
3754if ${ac_cv_prog_AS+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756else
3757 if test -n "$AS"; then
3758 ac_cv_prog_AS="$AS" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_AS="${ac_tool_prefix}as"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771done
3772 done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777AS=$ac_cv_prog_AS
3778if test -n "$AS"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3780$as_echo "$AS" >&6; }
3781else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783$as_echo "no" >&6; }
3784fi
3785
3786
3787fi
3788if test -z "$ac_cv_prog_AS"; then
3789 ac_ct_AS=$AS
3790 # Extract the first word of "as", so it can be a program name with args.
3791set dummy as; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
3794if ${ac_cv_prog_ac_ct_AS+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796else
3797 if test -n "$ac_ct_AS"; then
3798 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_ac_ct_AS="as"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3810 fi
3811done
3812 done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817ac_ct_AS=$ac_cv_prog_ac_ct_AS
3818if test -n "$ac_ct_AS"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3820$as_echo "$ac_ct_AS" >&6; }
3821else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
3824fi
3825
3826 if test "x$ac_ct_AS" = x; then
3827 AS="false"
3828 else
3829 case $cross_compiling:$ac_tool_warned in
3830yes:)
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833ac_tool_warned=yes ;;
3834esac
3835 AS=$ac_ct_AS
3836 fi
3837else
3838 AS="$ac_cv_prog_AS"
3839fi
3840
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if ${ac_cv_prog_DLLTOOL+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848else
3849 if test -n "$DLLTOOL"; then
3850 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864 done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869DLLTOOL=$ac_cv_prog_DLLTOOL
3870if test -n "$DLLTOOL"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3872$as_echo "$DLLTOOL" >&6; }
3873else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878
3879fi
3880if test -z "$ac_cv_prog_DLLTOOL"; then
3881 ac_ct_DLLTOOL=$DLLTOOL
3882 # Extract the first word of "dlltool", so it can be a program name with args.
3883set dummy dlltool; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888else
3889 if test -n "$ac_ct_DLLTOOL"; then
3890 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903done
3904 done
3905IFS=$as_save_IFS
3906
3907fi
3908fi
3909ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3910if test -n "$ac_ct_DLLTOOL"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3912$as_echo "$ac_ct_DLLTOOL" >&6; }
3913else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917
3918 if test "x$ac_ct_DLLTOOL" = x; then
3919 DLLTOOL="false"
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922yes:)
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925ac_tool_warned=yes ;;
3926esac
3927 DLLTOOL=$ac_ct_DLLTOOL
3928 fi
3929else
3930 DLLTOOL="$ac_cv_prog_DLLTOOL"
3931fi
3932
3933 if test -n "$ac_tool_prefix"; then
3934 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3935set dummy ${ac_tool_prefix}objdump; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
3938if ${ac_cv_prog_OBJDUMP+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 if test -n "$OBJDUMP"; then
3942 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956 done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961OBJDUMP=$ac_cv_prog_OBJDUMP
3962if test -n "$OBJDUMP"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3964$as_echo "$OBJDUMP" >&6; }
3965else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971fi
3972if test -z "$ac_cv_prog_OBJDUMP"; then
3973 ac_ct_OBJDUMP=$OBJDUMP
3974 # Extract the first word of "objdump", so it can be a program name with args.
3975set dummy objdump; ac_word=$2
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980else
3981 if test -n "$ac_ct_OBJDUMP"; then
3982 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995done
3996 done
3997IFS=$as_save_IFS
3998
3999fi
4000fi
4001ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4002if test -n "$ac_ct_OBJDUMP"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4004$as_echo "$ac_ct_OBJDUMP" >&6; }
4005else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
4008fi
4009
4010 if test "x$ac_ct_OBJDUMP" = x; then
4011 OBJDUMP="false"
4012 else
4013 case $cross_compiling:$ac_tool_warned in
4014yes:)
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017ac_tool_warned=yes ;;
4018esac
4019 OBJDUMP=$ac_ct_OBJDUMP
4020 fi
4021else
4022 OBJDUMP="$ac_cv_prog_OBJDUMP"
4023fi
4024
4025 ;;
4026esac
4027
4028test -z "$AS" && AS=as
4029
4030
4031
4032
4033
4034test -z "$DLLTOOL" && DLLTOOL=dlltool
4035
4036
4037
4038
4039
4040test -z "$OBJDUMP" && OBJDUMP=objdump
4041
4042
4043
4044
4045
4046
4047
4048case `pwd` in
4049 *\ * | *\ *)
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4051$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4052esac
4053
4054
4055
4056macro_version='2.4.2'
4057macro_revision='1.3337'
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071ltmain="$ac_aux_dir/ltmain.sh"
4072
15c988f7
JB
4073# Backslashify metacharacters that are still active within
4074# double-quoted strings.
4075sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4076
4077# Same as above, but do not quote variable references.
4078double_quote_subst='s/\(["`\\]\)/\\\1/g'
4079
4080# Sed substitution to delay expansion of an escaped shell variable in a
4081# double_quote_subst'ed string.
4082delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4083
4084# Sed substitution to delay expansion of an escaped single quote.
4085delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4086
4087# Sed substitution to avoid accidental globbing in evaled expressions
4088no_glob_subst='s/\*/\\\*/g'
4089
4090ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4091ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4092ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4093
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4095$as_echo_n "checking how to print strings... " >&6; }
4096# Test print first, because it will be a builtin if present.
4097if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4098 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4099 ECHO='print -r --'
4100elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4101 ECHO='printf %s\n'
4102else
4103 # Use this function as a fallback that always works.
4104 func_fallback_echo ()
4105 {
4106 eval 'cat <<_LTECHO_EOF
4107$1
4108_LTECHO_EOF'
4109 }
4110 ECHO='func_fallback_echo'
4111fi
4112
4113# func_echo_all arg...
4114# Invoke $ECHO with all args, space-separated.
4115func_echo_all ()
4116{
4117 $ECHO ""
4118}
4119
4120case "$ECHO" in
4121 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4122$as_echo "printf" >&6; } ;;
4123 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4124$as_echo "print -r" >&6; } ;;
4125 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4126$as_echo "cat" >&6; } ;;
4127esac
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4143$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4144if ${ac_cv_path_SED+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4148 for ac_i in 1 2 3 4 5 6 7; do
4149 ac_script="$ac_script$as_nl$ac_script"
4150 done
4151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4152 { ac_script=; unset ac_script;}
4153 if test -z "$SED"; then
4154 ac_path_SED_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in sed gsed; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4164 as_fn_executable_p "$ac_path_SED" || continue
4165# Check for GNU ac_path_SED and select it if it is found.
4166 # Check for GNU $ac_path_SED
4167case `"$ac_path_SED" --version 2>&1` in
4168*GNU*)
4169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4170*)
4171 ac_count=0
4172 $as_echo_n 0123456789 >"conftest.in"
4173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo '' >> "conftest.nl"
4179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
4182 if test $ac_count -gt ${ac_path_SED_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_SED="$ac_path_SED"
4185 ac_path_SED_max=$ac_count
4186 fi
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191esac
4192
4193 $ac_path_SED_found && break 3
4194 done
4195 done
4196 done
4197IFS=$as_save_IFS
4198 if test -z "$ac_cv_path_SED"; then
4199 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4200 fi
4201else
4202 ac_cv_path_SED=$SED
4203fi
4204
4205fi
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4207$as_echo "$ac_cv_path_SED" >&6; }
4208 SED="$ac_cv_path_SED"
4209 rm -f conftest.sed
4210
4211test -z "$SED" && SED=sed
4212Xsed="$SED -e 1s/^X//"
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4225$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4226if ${ac_cv_path_GREP+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 if test -z "$GREP"; then
4230 ac_path_GREP_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in grep ggrep; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4240 as_fn_executable_p "$ac_path_GREP" || continue
4241# Check for GNU ac_path_GREP and select it if it is found.
4242 # Check for GNU $ac_path_GREP
4243case `"$ac_path_GREP" --version 2>&1` in
4244*GNU*)
4245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4246*)
4247 ac_count=0
4248 $as_echo_n 0123456789 >"conftest.in"
4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo 'GREP' >> "conftest.nl"
4255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 as_fn_arith $ac_count + 1 && ac_count=$as_val
4258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_GREP="$ac_path_GREP"
4261 ac_path_GREP_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267esac
4268
4269 $ac_path_GREP_found && break 3
4270 done
4271 done
4272 done
4273IFS=$as_save_IFS
4274 if test -z "$ac_cv_path_GREP"; then
4275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4276 fi
4277else
4278 ac_cv_path_GREP=$GREP
4279fi
4280
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4283$as_echo "$ac_cv_path_GREP" >&6; }
4284 GREP="$ac_cv_path_GREP"
4285
4286
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4288$as_echo_n "checking for egrep... " >&6; }
4289if ${ac_cv_path_EGREP+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291else
4292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4293 then ac_cv_path_EGREP="$GREP -E"
4294 else
4295 if test -z "$EGREP"; then
4296 ac_path_EGREP_found=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_prog in egrep; do
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4306 as_fn_executable_p "$ac_path_EGREP" || continue
4307# Check for GNU ac_path_EGREP and select it if it is found.
4308 # Check for GNU $ac_path_EGREP
4309case `"$ac_path_EGREP" --version 2>&1` in
4310*GNU*)
4311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4312*)
4313 ac_count=0
4314 $as_echo_n 0123456789 >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo 'EGREP' >> "conftest.nl"
4321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323 as_fn_arith $ac_count + 1 && ac_count=$as_val
4324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_EGREP="$ac_path_EGREP"
4327 ac_path_EGREP_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333esac
4334
4335 $ac_path_EGREP_found && break 3
4336 done
4337 done
4338 done
4339IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_EGREP"; then
4341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342 fi
4343else
4344 ac_cv_path_EGREP=$EGREP
4345fi
4346
4347 fi
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4350$as_echo "$ac_cv_path_EGREP" >&6; }
4351 EGREP="$ac_cv_path_EGREP"
4352
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4355$as_echo_n "checking for fgrep... " >&6; }
4356if ${ac_cv_path_FGREP+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358else
4359 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4360 then ac_cv_path_FGREP="$GREP -F"
4361 else
4362 if test -z "$FGREP"; then
4363 ac_path_FGREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in fgrep; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4373 as_fn_executable_p "$ac_path_FGREP" || continue
4374# Check for GNU ac_path_FGREP and select it if it is found.
4375 # Check for GNU $ac_path_FGREP
4376case `"$ac_path_FGREP" --version 2>&1` in
4377*GNU*)
4378 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4379*)
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4383 do
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo 'FGREP' >> "conftest.nl"
4388 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
4391 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_FGREP="$ac_path_FGREP"
4394 ac_path_FGREP_max=$ac_count
4395 fi
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400esac
4401
4402 $ac_path_FGREP_found && break 3
4403 done
4404 done
4405 done
4406IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_FGREP"; then
4408 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4409 fi
4410else
4411 ac_cv_path_FGREP=$FGREP
4412fi
4413
4414 fi
4415fi
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4417$as_echo "$ac_cv_path_FGREP" >&6; }
4418 FGREP="$ac_cv_path_FGREP"
4419
4420
4421test -z "$GREP" && GREP=grep
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441# Check whether --with-gnu-ld was given.
4442if test "${with_gnu_ld+set}" = set; then :
4443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4444else
4445 with_gnu_ld=no
4446fi
4447
4448ac_prog=ld
4449if test "$GCC" = yes; then
4450 # Check if gcc -print-prog-name=ld gives a path.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4452$as_echo_n "checking for ld used by $CC... " >&6; }
4453 case $host in
4454 *-*-mingw*)
4455 # gcc leaves a trailing carriage return which upsets mingw
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4457 *)
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 esac
4460 case $ac_prog in
4461 # Accept absolute paths.
4462 [\\/]* | ?:[\\/]*)
4463 re_direlt='/[^/][^/]*/\.\./'
4464 # Canonicalize the pathname of ld
4465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4468 done
4469 test -z "$LD" && LD="$ac_prog"
4470 ;;
4471 "")
4472 # If it fails, then pretend we aren't using GCC.
4473 ac_prog=ld
4474 ;;
4475 *)
4476 # If it is relative, then search for the first ld in PATH.
4477 with_gnu_ld=unknown
4478 ;;
4479 esac
4480elif test "$with_gnu_ld" = yes; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4482$as_echo_n "checking for GNU ld... " >&6; }
4483else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4485$as_echo_n "checking for non-GNU ld... " >&6; }
4486fi
4487if ${lt_cv_path_LD+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489else
4490 if test -z "$LD"; then
4491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4492 for ac_dir in $PATH; do
4493 IFS="$lt_save_ifs"
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4496 lt_cv_path_LD="$ac_dir/$ac_prog"
4497 # Check to see if the program is GNU ld. I'd rather use --version,
4498 # but apparently some variants of GNU ld only accept -v.
4499 # Break only if it was the GNU/non-GNU ld that we prefer.
4500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4501 *GNU* | *'with BFD'*)
4502 test "$with_gnu_ld" != no && break
4503 ;;
4504 *)
4505 test "$with_gnu_ld" != yes && break
4506 ;;
4507 esac
4508 fi
4509 done
4510 IFS="$lt_save_ifs"
4511else
4512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4513fi
4514fi
4515
4516LD="$lt_cv_path_LD"
4517if test -n "$LD"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4519$as_echo "$LD" >&6; }
4520else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522$as_echo "no" >&6; }
4523fi
4524test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4526$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4527if ${lt_cv_prog_gnu_ld+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529else
4530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4531case `$LD -v 2>&1 </dev/null` in
4532*GNU* | *'with BFD'*)
4533 lt_cv_prog_gnu_ld=yes
4534 ;;
4535*)
4536 lt_cv_prog_gnu_ld=no
4537 ;;
4538esac
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4541$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4542with_gnu_ld=$lt_cv_prog_gnu_ld
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4553$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4554if ${lt_cv_path_NM+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 if test -n "$NM"; then
4558 # Let the user override the test.
4559 lt_cv_path_NM="$NM"
4560else
4561 lt_nm_to_check="${ac_tool_prefix}nm"
4562 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4563 lt_nm_to_check="$lt_nm_to_check nm"
4564 fi
4565 for lt_tmp_nm in $lt_nm_to_check; do
4566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4567 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4568 IFS="$lt_save_ifs"
4569 test -z "$ac_dir" && ac_dir=.
4570 tmp_nm="$ac_dir/$lt_tmp_nm"
4571 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4572 # Check to see if the nm accepts a BSD-compat flag.
4573 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4574 # nm: unknown option "B" ignored
4575 # Tru64's nm complains that /dev/null is an invalid object file
4576 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4577 */dev/null* | *'Invalid file or object type'*)
4578 lt_cv_path_NM="$tmp_nm -B"
4579 break
4580 ;;
4581 *)
4582 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4583 */dev/null*)
4584 lt_cv_path_NM="$tmp_nm -p"
4585 break
4586 ;;
4587 *)
4588 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4589 continue # so that we can try to find one that supports BSD flags
4590 ;;
4591 esac
4592 ;;
4593 esac
4594 fi
4595 done
4596 IFS="$lt_save_ifs"
4597 done
4598 : ${lt_cv_path_NM=no}
4599fi
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4602$as_echo "$lt_cv_path_NM" >&6; }
4603if test "$lt_cv_path_NM" != "no"; then
4604 NM="$lt_cv_path_NM"
4605else
4606 # Didn't find any BSD compatible name lister, look for dumpbin.
4607 if test -n "$DUMPBIN"; then :
4608 # Let the user override the test.
4609 else
4610 if test -n "$ac_tool_prefix"; then
4611 for ac_prog in dumpbin "link -dump"
4612 do
4613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if ${ac_cv_prog_DUMPBIN+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619else
4620 if test -n "$DUMPBIN"; then
4621 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634done
4635 done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640DUMPBIN=$ac_cv_prog_DUMPBIN
4641if test -n "$DUMPBIN"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4643$as_echo "$DUMPBIN" >&6; }
4644else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650 test -n "$DUMPBIN" && break
4651 done
4652fi
4653if test -z "$DUMPBIN"; then
4654 ac_ct_DUMPBIN=$DUMPBIN
4655 for ac_prog in dumpbin "link -dump"
4656do
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658set dummy $ac_prog; ac_word=$2
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
4661if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663else
4664 if test -n "$ac_ct_DUMPBIN"; then
4665 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678done
4679 done
4680IFS=$as_save_IFS
4681
4682fi
4683fi
4684ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4685if test -n "$ac_ct_DUMPBIN"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4687$as_echo "$ac_ct_DUMPBIN" >&6; }
4688else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
4691fi
4692
4693
4694 test -n "$ac_ct_DUMPBIN" && break
4695done
4696
4697 if test "x$ac_ct_DUMPBIN" = x; then
4698 DUMPBIN=":"
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701yes:)
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704ac_tool_warned=yes ;;
4705esac
4706 DUMPBIN=$ac_ct_DUMPBIN
4707 fi
4708fi
4709
4710 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4711 *COFF*)
4712 DUMPBIN="$DUMPBIN -symbols"
4713 ;;
4714 *)
4715 DUMPBIN=:
4716 ;;
4717 esac
4718 fi
4719
4720 if test "$DUMPBIN" != ":"; then
4721 NM="$DUMPBIN"
4722 fi
4723fi
4724test -z "$NM" && NM=nm
4725
4726
4727
4728
4729
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4732$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4733if ${lt_cv_nm_interface+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735else
4736 lt_cv_nm_interface="BSD nm"
4737 echo "int some_variable = 0;" > conftest.$ac_ext
4738 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4739 (eval "$ac_compile" 2>conftest.err)
4740 cat conftest.err >&5
4741 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4742 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4743 cat conftest.err >&5
4744 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4745 cat conftest.out >&5
4746 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4747 lt_cv_nm_interface="MS dumpbin"
4748 fi
4749 rm -f conftest*
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4752$as_echo "$lt_cv_nm_interface" >&6; }
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4755$as_echo_n "checking whether ln -s works... " >&6; }
4756LN_S=$as_ln_s
4757if test "$LN_S" = "ln -s"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4759$as_echo "yes" >&6; }
4760else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4762$as_echo "no, using $LN_S" >&6; }
4763fi
4764
4765# find the maximum length of command line arguments
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4767$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4768if ${lt_cv_sys_max_cmd_len+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 i=0
4772 teststring="ABCD"
4773
4774 case $build_os in
4775 msdosdjgpp*)
4776 # On DJGPP, this test can blow up pretty badly due to problems in libc
4777 # (any single argument exceeding 2000 bytes causes a buffer overrun
4778 # during glob expansion). Even if it were fixed, the result of this
4779 # check would be larger than it should be.
4780 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4781 ;;
4782
4783 gnu*)
4784 # Under GNU Hurd, this test is not required because there is
4785 # no limit to the length of command line arguments.
4786 # Libtool will interpret -1 as no limit whatsoever
4787 lt_cv_sys_max_cmd_len=-1;
4788 ;;
4789
4790 cygwin* | mingw* | cegcc*)
4791 # On Win9x/ME, this test blows up -- it succeeds, but takes
4792 # about 5 minutes as the teststring grows exponentially.
4793 # Worse, since 9x/ME are not pre-emptively multitasking,
4794 # you end up with a "frozen" computer, even though with patience
4795 # the test eventually succeeds (with a max line length of 256k).
4796 # Instead, let's just punt: use the minimum linelength reported by
4797 # all of the supported platforms: 8192 (on NT/2K/XP).
4798 lt_cv_sys_max_cmd_len=8192;
4799 ;;
4800
4801 mint*)
4802 # On MiNT this can take a long time and run out of memory.
4803 lt_cv_sys_max_cmd_len=8192;
4804 ;;
4805
4806 amigaos*)
4807 # On AmigaOS with pdksh, this test takes hours, literally.
4808 # So we just punt and use a minimum line length of 8192.
4809 lt_cv_sys_max_cmd_len=8192;
4810 ;;
4811
4812 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4813 # This has been around since 386BSD, at least. Likely further.
4814 if test -x /sbin/sysctl; then
4815 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4816 elif test -x /usr/sbin/sysctl; then
4817 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4818 else
4819 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4820 fi
4821 # And add a safety zone
4822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4824 ;;
4825
4826 interix*)
4827 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4828 lt_cv_sys_max_cmd_len=196608
4829 ;;
4830
4831 os2*)
4832 # The test takes a long time on OS/2.
4833 lt_cv_sys_max_cmd_len=8192
4834 ;;
4835
4836 osf*)
4837 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4838 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4839 # nice to cause kernel panics so lets avoid the loop below.
4840 # First set a reasonable default.
4841 lt_cv_sys_max_cmd_len=16384
4842 #
4843 if test -x /sbin/sysconfig; then
4844 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4845 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4846 esac
4847 fi
4848 ;;
4849 sco3.2v5*)
4850 lt_cv_sys_max_cmd_len=102400
4851 ;;
4852 sysv5* | sco5v6* | sysv4.2uw2*)
4853 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4854 if test -n "$kargmax"; then
4855 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4856 else
4857 lt_cv_sys_max_cmd_len=32768
4858 fi
4859 ;;
4860 *)
4861 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4862 if test -n "$lt_cv_sys_max_cmd_len"; then
4863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4865 else
4866 # Make teststring a little bigger before we do anything with it.
4867 # a 1K string should be a reasonable start.
4868 for i in 1 2 3 4 5 6 7 8 ; do
4869 teststring=$teststring$teststring
4870 done
4871 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4872 # If test is not a shell built-in, we'll probably end up computing a
4873 # maximum length that is only half of the actual maximum length, but
4874 # we can't tell.
4875 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4876 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4877 test $i != 17 # 1/2 MB should be enough
4878 do
4879 i=`expr $i + 1`
4880 teststring=$teststring$teststring
4881 done
4882 # Only check the string length outside the loop.
4883 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4884 teststring=
4885 # Add a significant safety factor because C++ compilers can tack on
4886 # massive amounts of additional arguments before passing them to the
4887 # linker. It appears as though 1/2 is a usable value.
4888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4889 fi
4890 ;;
4891 esac
4892
4893fi
4894
4895if test -n $lt_cv_sys_max_cmd_len ; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4897$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4898else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4900$as_echo "none" >&6; }
4901fi
4902max_cmd_len=$lt_cv_sys_max_cmd_len
4903
4904
4905
4906
4907
4908
4909: ${CP="cp -f"}
4910: ${MV="mv -f"}
4911: ${RM="rm -f"}
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4914$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4915# Try some XSI features
4916xsi_shell=no
4917( _lt_dummy="a/b/c"
4918 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4919 = c,a/b,b/c, \
4920 && eval 'test $(( 1 + 1 )) -eq 2 \
4921 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4922 && xsi_shell=yes
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4924$as_echo "$xsi_shell" >&6; }
4925
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4928$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4929lt_shell_append=no
4930( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4931 >/dev/null 2>&1 \
4932 && lt_shell_append=yes
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4934$as_echo "$lt_shell_append" >&6; }
4935
4936
4937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4938 lt_unset=unset
4939else
4940 lt_unset=false
4941fi
4942
4943
4944
4945
4946
4947# test EBCDIC or ASCII
4948case `echo X|tr X '\101'` in
4949 A) # ASCII based system
4950 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4951 lt_SP2NL='tr \040 \012'
4952 lt_NL2SP='tr \015\012 \040\040'
4953 ;;
4954 *) # EBCDIC based system
4955 lt_SP2NL='tr \100 \n'
4956 lt_NL2SP='tr \r\n \100\100'
4957 ;;
4958esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4969$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4970if ${lt_cv_to_host_file_cmd+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972else
4973 case $host in
4974 *-*-mingw* )
4975 case $build in
4976 *-*-mingw* ) # actually msys
4977 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4978 ;;
4979 *-*-cygwin* )
4980 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4981 ;;
4982 * ) # otherwise, assume *nix
4983 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4984 ;;
4985 esac
4986 ;;
4987 *-*-cygwin* )
4988 case $build in
4989 *-*-mingw* ) # actually msys
4990 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4991 ;;
4992 *-*-cygwin* )
4993 lt_cv_to_host_file_cmd=func_convert_file_noop
4994 ;;
4995 * ) # otherwise, assume *nix
4996 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4997 ;;
4998 esac
4999 ;;
5000 * ) # unhandled hosts (and "normal" native builds)
5001 lt_cv_to_host_file_cmd=func_convert_file_noop
5002 ;;
5003esac
5004
5005fi
5006
5007to_host_file_cmd=$lt_cv_to_host_file_cmd
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5009$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5010
5011
5012
5013
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5016$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5017if ${lt_cv_to_tool_file_cmd+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 #assume ordinary cross tools, or native build.
5021lt_cv_to_tool_file_cmd=func_convert_file_noop
5022case $host in
5023 *-*-mingw* )
5024 case $build in
5025 *-*-mingw* ) # actually msys
5026 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5027 ;;
5028 esac
5029 ;;
5030esac
5031
5032fi
5033
5034to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5036$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5037
5038
5039
5040
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5043$as_echo_n "checking for $LD option to reload object files... " >&6; }
5044if ${lt_cv_ld_reload_flag+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046else
5047 lt_cv_ld_reload_flag='-r'
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5050$as_echo "$lt_cv_ld_reload_flag" >&6; }
5051reload_flag=$lt_cv_ld_reload_flag
5052case $reload_flag in
5053"" | " "*) ;;
5054*) reload_flag=" $reload_flag" ;;
5055esac
5056reload_cmds='$LD$reload_flag -o $output$reload_objs'
5057case $host_os in
5058 cygwin* | mingw* | pw32* | cegcc*)
5059 if test "$GCC" != yes; then
5060 reload_cmds=false
5061 fi
5062 ;;
5063 darwin*)
5064 if test "$GCC" = yes; then
5065 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5066 else
5067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068 fi
5069 ;;
5070esac
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5082set dummy ${ac_tool_prefix}objdump; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if ${ac_cv_prog_OBJDUMP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087else
5088 if test -n "$OBJDUMP"; then
5089 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102done
5103 done
5104IFS=$as_save_IFS
5105
5106fi
5107fi
5108OBJDUMP=$ac_cv_prog_OBJDUMP
5109if test -n "$OBJDUMP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5111$as_echo "$OBJDUMP" >&6; }
5112else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116
5117
5118fi
5119if test -z "$ac_cv_prog_OBJDUMP"; then
5120 ac_ct_OBJDUMP=$OBJDUMP
5121 # Extract the first word of "objdump", so it can be a program name with args.
5122set dummy objdump; ac_word=$2
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127else
5128 if test -n "$ac_ct_OBJDUMP"; then
5129 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142done
5143 done
5144IFS=$as_save_IFS
5145
5146fi
5147fi
5148ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5149if test -n "$ac_ct_OBJDUMP"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5151$as_echo "$ac_ct_OBJDUMP" >&6; }
5152else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156
5157 if test "x$ac_ct_OBJDUMP" = x; then
5158 OBJDUMP="false"
5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161yes:)
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164ac_tool_warned=yes ;;
5165esac
5166 OBJDUMP=$ac_ct_OBJDUMP
5167 fi
5168else
5169 OBJDUMP="$ac_cv_prog_OBJDUMP"
5170fi
5171
5172test -z "$OBJDUMP" && OBJDUMP=objdump
5173
5174
5175
5176
5177
5178
15c988f7
JB
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5180$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5181if ${lt_cv_deplibs_check_method+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183else
5184 lt_cv_file_magic_cmd='$MAGIC_CMD'
5185lt_cv_file_magic_test_file=
5186lt_cv_deplibs_check_method='unknown'
5187# Need to set the preceding variable on all platforms that support
5188# interlibrary dependencies.
5189# 'none' -- dependencies not supported.
5190# `unknown' -- same as none, but documents that we really don't know.
5191# 'pass_all' -- all dependencies passed with no checks.
5192# 'test_compile' -- check by making test program.
5193# 'file_magic [[regex]]' -- check by looking for files in library path
5194# which responds to the $file_magic_cmd with a given extended regex.
5195# If you have `file' or equivalent on your system and you're not sure
5196# whether `pass_all' will *always* work, you probably want this one.
5197
5198case $host_os in
5199aix[4-9]*)
5200 lt_cv_deplibs_check_method=pass_all
5201 ;;
5202
5203beos*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207bsdi[45]*)
5208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5209 lt_cv_file_magic_cmd='/usr/bin/file -L'
5210 lt_cv_file_magic_test_file=/shlib/libc.so
5211 ;;
5212
5213cygwin*)
5214 # func_win32_libid is a shell function defined in ltmain.sh
5215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5216 lt_cv_file_magic_cmd='func_win32_libid'
5217 ;;
5218
5219mingw* | pw32*)
5220 # Base MSYS/MinGW do not provide the 'file' command needed by
5221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5222 # unless we find 'file', for example because we are cross-compiling.
5223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5226 lt_cv_file_magic_cmd='func_win32_libid'
5227 else
5228 # Keep this pattern in sync with the one in func_win32_libid.
5229 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5230 lt_cv_file_magic_cmd='$OBJDUMP -f'
5231 fi
5232 ;;
5233
5234cegcc*)
5235 # use the weaker test based on 'objdump'. See mingw*.
5236 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5237 lt_cv_file_magic_cmd='$OBJDUMP -f'
5238 ;;
5239
5240darwin* | rhapsody*)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244freebsd* | dragonfly*)
5245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5246 case $host_cpu in
5247 i*86 )
5248 # Not sure whether the presence of OpenBSD here was a mistake.
5249 # Let's accept both of them until this is cleared up.
5250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5251 lt_cv_file_magic_cmd=/usr/bin/file
5252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5253 ;;
5254 esac
5255 else
5256 lt_cv_deplibs_check_method=pass_all
5257 fi
5258 ;;
5259
5260gnu*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264haiku*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267
5268hpux10.20* | hpux11*)
5269 lt_cv_file_magic_cmd=/usr/bin/file
5270 case $host_cpu in
5271 ia64*)
5272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5274 ;;
5275 hppa*64*)
5276 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]'
5277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5278 ;;
5279 *)
5280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5281 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5282 ;;
5283 esac
5284 ;;
5285
5286interix[3-9]*)
5287 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5289 ;;
5290
5291irix5* | irix6* | nonstopux*)
5292 case $LD in
5293 *-32|*"-32 ") libmagic=32-bit;;
5294 *-n32|*"-n32 ") libmagic=N32;;
5295 *-64|*"-64 ") libmagic=64-bit;;
5296 *) libmagic=never-match;;
5297 esac
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300
5301# This must be glibc/ELF.
5302linux* | k*bsd*-gnu | kopensolaris*-gnu)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306netbsd* | netbsdelf*-gnu)
5307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5309 else
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5311 fi
5312 ;;
5313
5314newos6*)
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5316 lt_cv_file_magic_cmd=/usr/bin/file
5317 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5318 ;;
5319
5320*nto* | *qnx*)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323
5324openbsd*)
5325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5327 else
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5329 fi
5330 ;;
5331
5332osf3* | osf4* | osf5*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336rdos*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340solaris*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348sysv4 | sysv4.3*)
5349 case $host_vendor in
5350 motorola)
5351 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]'
5352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5353 ;;
5354 ncr)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357 sequent)
5358 lt_cv_file_magic_cmd='/bin/file'
5359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5360 ;;
5361 sni)
5362 lt_cv_file_magic_cmd='/bin/file'
5363 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5364 lt_cv_file_magic_test_file=/lib/libc.so
5365 ;;
5366 siemens)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369 pc)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372 esac
5373 ;;
5374
5375tpf*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378esac
5379
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5382$as_echo "$lt_cv_deplibs_check_method" >&6; }
5383
5384file_magic_glob=
5385want_nocaseglob=no
5386if test "$build" = "$host"; then
5387 case $host_os in
5388 mingw* | pw32*)
5389 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5390 want_nocaseglob=yes
5391 else
5392 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5393 fi
5394 ;;
5395 esac
5396fi
5397
5398file_magic_cmd=$lt_cv_file_magic_cmd
5399deplibs_check_method=$lt_cv_deplibs_check_method
5400test -z "$deplibs_check_method" && deplibs_check_method=unknown
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5425set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
5428if ${ac_cv_prog_DLLTOOL+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 if test -n "$DLLTOOL"; then
5432 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445done
5446 done
5447IFS=$as_save_IFS
5448
5449fi
5450fi
5451DLLTOOL=$ac_cv_prog_DLLTOOL
5452if test -n "$DLLTOOL"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5454$as_echo "$DLLTOOL" >&6; }
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458fi
5459
5460
5461fi
5462if test -z "$ac_cv_prog_DLLTOOL"; then
5463 ac_ct_DLLTOOL=$DLLTOOL
5464 # Extract the first word of "dlltool", so it can be a program name with args.
5465set dummy dlltool; ac_word=$2
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
5468if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470else
5471 if test -n "$ac_ct_DLLTOOL"; then
5472 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5484 fi
5485done
5486 done
5487IFS=$as_save_IFS
5488
5489fi
5490fi
5491ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5492if test -n "$ac_ct_DLLTOOL"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5494$as_echo "$ac_ct_DLLTOOL" >&6; }
5495else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
5498fi
5499
5500 if test "x$ac_ct_DLLTOOL" = x; then
5501 DLLTOOL="false"
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504yes:)
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507ac_tool_warned=yes ;;
5508esac
5509 DLLTOOL=$ac_ct_DLLTOOL
5510 fi
5511else
5512 DLLTOOL="$ac_cv_prog_DLLTOOL"
5513fi
5514
5515test -z "$DLLTOOL" && DLLTOOL=dlltool
5516
5517
5518
5519
5520
5521
5522
15c988f7
JB
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5524$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5525if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527else
5528 lt_cv_sharedlib_from_linklib_cmd='unknown'
5529
5530case $host_os in
5531cygwin* | mingw* | pw32* | cegcc*)
5532 # two different shell functions defined in ltmain.sh
5533 # decide which to use based on capabilities of $DLLTOOL
5534 case `$DLLTOOL --help 2>&1` in
5535 *--identify-strict*)
5536 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5537 ;;
5538 *)
5539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5540 ;;
5541 esac
5542 ;;
5543*)
5544 # fallback: assume linklib IS sharedlib
5545 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5546 ;;
5547esac
5548
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5551$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5552sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5553test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5554
5555
5556
5557
5558
5559
5560
5561
5562if test -n "$ac_tool_prefix"; then
5563 for ac_prog in ar
5564 do
5565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
5569if ${ac_cv_prog_AR+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571else
5572 if test -n "$AR"; then
5573 ac_cv_prog_AR="$AR" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586done
5587 done
5588IFS=$as_save_IFS
5589
5590fi
5591fi
5592AR=$ac_cv_prog_AR
5593if test -n "$AR"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5595$as_echo "$AR" >&6; }
5596else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598$as_echo "no" >&6; }
5599fi
5600
5601
5602 test -n "$AR" && break
5603 done
5604fi
5605if test -z "$AR"; then
5606 ac_ct_AR=$AR
5607 for ac_prog in ar
5608do
5609 # Extract the first word of "$ac_prog", so it can be a program name with args.
5610set dummy $ac_prog; ac_word=$2
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612$as_echo_n "checking for $ac_word... " >&6; }
5613if ${ac_cv_prog_ac_ct_AR+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615else
5616 if test -n "$ac_ct_AR"; then
5617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_AR="$ac_prog"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630done
5631 done
5632IFS=$as_save_IFS
5633
5634fi
5635fi
5636ac_ct_AR=$ac_cv_prog_ac_ct_AR
5637if test -n "$ac_ct_AR"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5639$as_echo "$ac_ct_AR" >&6; }
5640else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
5643fi
5644
5645
5646 test -n "$ac_ct_AR" && break
5647done
5648
5649 if test "x$ac_ct_AR" = x; then
5650 AR="false"
5651 else
5652 case $cross_compiling:$ac_tool_warned in
5653yes:)
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656ac_tool_warned=yes ;;
5657esac
5658 AR=$ac_ct_AR
5659 fi
5660fi
5661
5662: ${AR=ar}
5663: ${AR_FLAGS=cru}
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5676$as_echo_n "checking for archiver @FILE support... " >&6; }
5677if ${lt_cv_ar_at_file+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 lt_cv_ar_at_file=no
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h. */
5683
5684int
5685main ()
5686{
5687
5688 ;
5689 return 0;
5690}
5691_ACEOF
5692if ac_fn_c_try_compile "$LINENO"; then :
5693 echo conftest.$ac_objext > conftest.lst
5694 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5696 (eval $lt_ar_try) 2>&5
5697 ac_status=$?
5698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5699 test $ac_status = 0; }
5700 if test "$ac_status" -eq 0; then
5701 # Ensure the archiver fails upon bogus file names.
5702 rm -f conftest.$ac_objext libconftest.a
5703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5704 (eval $lt_ar_try) 2>&5
5705 ac_status=$?
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; }
5708 if test "$ac_status" -ne 0; then
5709 lt_cv_ar_at_file=@
5710 fi
5711 fi
5712 rm -f conftest.* libconftest.a
5713
5714fi
5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5719$as_echo "$lt_cv_ar_at_file" >&6; }
5720
5721if test "x$lt_cv_ar_at_file" = xno; then
5722 archiver_list_spec=
5723else
5724 archiver_list_spec=$lt_cv_ar_at_file
5725fi
5726
5727
5728
5729
5730
5731
5732
5733if test -n "$ac_tool_prefix"; then
5734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5735set dummy ${ac_tool_prefix}strip; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if ${ac_cv_prog_STRIP+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 if test -n "$STRIP"; then
5742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755done
5756 done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761STRIP=$ac_cv_prog_STRIP
5762if test -n "$STRIP"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5764$as_echo "$STRIP" >&6; }
5765else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768fi
5769
5770
5771fi
5772if test -z "$ac_cv_prog_STRIP"; then
5773 ac_ct_STRIP=$STRIP
5774 # Extract the first word of "strip", so it can be a program name with args.
5775set dummy strip; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780else
5781 if test -n "$ac_ct_STRIP"; then
5782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_ac_ct_STRIP="strip"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795done
5796 done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5802if test -n "$ac_ct_STRIP"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5804$as_echo "$ac_ct_STRIP" >&6; }
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810 if test "x$ac_ct_STRIP" = x; then
5811 STRIP=":"
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819 STRIP=$ac_ct_STRIP
5820 fi
5821else
5822 STRIP="$ac_cv_prog_STRIP"
5823fi
5824
5825test -z "$STRIP" && STRIP=:
5826
5827
5828
5829
5830
5831
5832if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if ${ac_cv_prog_RANLIB+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839else
5840 if test -n "$RANLIB"; then
5841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855 done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
5860RANLIB=$ac_cv_prog_RANLIB
5861if test -n "$RANLIB"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5863$as_echo "$RANLIB" >&6; }
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
5869
5870fi
5871if test -z "$ac_cv_prog_RANLIB"; then
5872 ac_ct_RANLIB=$RANLIB
5873 # Extract the first word of "ranlib", so it can be a program name with args.
5874set dummy ranlib; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
5877if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$ac_ct_RANLIB"; then
5881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_RANLIB="ranlib"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5901if test -n "$ac_ct_RANLIB"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5903$as_echo "$ac_ct_RANLIB" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909 if test "x$ac_ct_RANLIB" = x; then
5910 RANLIB=":"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913yes:)
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916ac_tool_warned=yes ;;
5917esac
5918 RANLIB=$ac_ct_RANLIB
5919 fi
5920else
5921 RANLIB="$ac_cv_prog_RANLIB"
5922fi
5923
5924test -z "$RANLIB" && RANLIB=:
5925
5926
5927
5928
5929
5930
5931# Determine commands to create old-style static archives.
5932old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5933old_postinstall_cmds='chmod 644 $oldlib'
5934old_postuninstall_cmds=
5935
5936if test -n "$RANLIB"; then
5937 case $host_os in
5938 openbsd*)
5939 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5940 ;;
5941 *)
5942 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5943 ;;
5944 esac
5945 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5946fi
5947
5948case $host_os in
5949 darwin*)
5950 lock_old_archive_extraction=yes ;;
5951 *)
5952 lock_old_archive_extraction=no ;;
5953esac
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
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993# If no C compiler was specified, use CC.
5994LTCC=${LTCC-"$CC"}
5995
5996# If no C compiler flags were specified, use CFLAGS.
5997LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5998
5999# Allow CC to be a program name with arguments.
6000compiler=$CC
6001
6002
6003# Check for command to grab the raw symbol name followed by C symbol from nm.
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6005$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6006if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008else
6009
6010# These are sane defaults that work on at least a few old systems.
6011# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6012
6013# Character class describing NM global symbol codes.
6014symcode='[BCDEGRST]'
6015
6016# Regexp to match symbols that can be accessed directly from C.
6017sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6018
6019# Define system-specific variables.
6020case $host_os in
6021aix*)
6022 symcode='[BCDT]'
6023 ;;
6024cygwin* | mingw* | pw32* | cegcc*)
6025 symcode='[ABCDGISTW]'
6026 ;;
6027hpux*)
6028 if test "$host_cpu" = ia64; then
6029 symcode='[ABCDEGRST]'
6030 fi
6031 ;;
6032irix* | nonstopux*)
6033 symcode='[BCDEGRST]'
6034 ;;
6035osf*)
6036 symcode='[BCDEGQRST]'
6037 ;;
6038solaris*)
6039 symcode='[BDRT]'
6040 ;;
6041sco3.2v5*)
6042 symcode='[DT]'
6043 ;;
6044sysv4.2uw2*)
6045 symcode='[DT]'
6046 ;;
6047sysv5* | sco5v6* | unixware* | OpenUNIX*)
6048 symcode='[ABDT]'
6049 ;;
6050sysv4)
6051 symcode='[DFNSTU]'
6052 ;;
6053esac
6054
6055# If we're using GNU nm, then use its standard symbol codes.
6056case `$NM -V 2>&1` in
6057*GNU* | *'with BFD'*)
6058 symcode='[ABCDGIRSTW]' ;;
6059esac
6060
6061# Transform an extracted symbol line into a proper C declaration.
6062# Some systems (esp. on ia64) link data and code symbols differently,
6063# so use this general approach.
6064lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6065
6066# Transform an extracted symbol line into symbol name and symbol address
6067lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6068lt_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'"
6069
6070# Handle CRLF in mingw tool chain
6071opt_cr=
6072case $build_os in
6073mingw*)
6074 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6075 ;;
6076esac
6077
6078# Try without a prefix underscore, then with it.
6079for ac_symprfx in "" "_"; do
6080
6081 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6082 symxfrm="\\1 $ac_symprfx\\2 \\2"
6083
6084 # Write the raw and C identifiers.
6085 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6086 # Fake it for dumpbin and say T for any non-static function
6087 # and D for any global variable.
6088 # Also find C++ and __fastcall symbols from MSVC++,
6089 # which start with @ or ?.
6090 lt_cv_sys_global_symbol_pipe="$AWK '"\
6091" {last_section=section; section=\$ 3};"\
6092" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6093" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6094" \$ 0!~/External *\|/{next};"\
6095" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6096" {if(hide[section]) next};"\
6097" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6098" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6099" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6100" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6101" ' prfx=^$ac_symprfx"
6102 else
6103 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6104 fi
6105 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6106
6107 # Check to see that the pipe works correctly.
6108 pipe_works=no
6109
6110 rm -f conftest*
6111 cat > conftest.$ac_ext <<_LT_EOF
6112#ifdef __cplusplus
6113extern "C" {
6114#endif
6115char nm_test_var;
6116void nm_test_func(void);
6117void nm_test_func(void){}
6118#ifdef __cplusplus
6119}
6120#endif
6121int main(){nm_test_var='a';nm_test_func();return(0);}
6122_LT_EOF
6123
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125 (eval $ac_compile) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; then
6129 # Now try to grab the symbols.
6130 nlist=conftest.nm
6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6132 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6133 ac_status=$?
6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; } && test -s "$nlist"; then
6136 # Try sorting and uniquifying the output.
6137 if sort "$nlist" | uniq > "$nlist"T; then
6138 mv -f "$nlist"T "$nlist"
6139 else
6140 rm -f "$nlist"T
6141 fi
6142
6143 # Make sure that we snagged all the symbols we need.
6144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6146 cat <<_LT_EOF > conftest.$ac_ext
6147/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6148#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6149/* DATA imports from DLLs on WIN32 con't be const, because runtime
6150 relocations are performed -- see ld's documentation on pseudo-relocs. */
6151# define LT_DLSYM_CONST
6152#elif defined(__osf__)
6153/* This system does not cope well with relocations in const data. */
6154# define LT_DLSYM_CONST
6155#else
6156# define LT_DLSYM_CONST const
6157#endif
6158
6159#ifdef __cplusplus
6160extern "C" {
6161#endif
6162
6163_LT_EOF
6164 # Now generate the symbol file.
6165 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6166
6167 cat <<_LT_EOF >> conftest.$ac_ext
6168
6169/* The mapping between symbol names and symbols. */
6170LT_DLSYM_CONST struct {
6171 const char *name;
6172 void *address;
6173}
6174lt__PROGRAM__LTX_preloaded_symbols[] =
6175{
6176 { "@PROGRAM@", (void *) 0 },
6177_LT_EOF
6178 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6179 cat <<\_LT_EOF >> conftest.$ac_ext
6180 {0, (void *) 0}
6181};
6182
6183/* This works around a problem in FreeBSD linker */
6184#ifdef FREEBSD_WORKAROUND
6185static const void *lt_preloaded_setup() {
6186 return lt__PROGRAM__LTX_preloaded_symbols;
6187}
6188#endif
6189
6190#ifdef __cplusplus
6191}
6192#endif
6193_LT_EOF
6194 # Now try linking the two files.
6195 mv conftest.$ac_objext conftstm.$ac_objext
6196 lt_globsym_save_LIBS=$LIBS
6197 lt_globsym_save_CFLAGS=$CFLAGS
6198 LIBS="conftstm.$ac_objext"
6199 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6201 (eval $ac_link) 2>&5
6202 ac_status=$?
6203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6205 pipe_works=yes
6206 fi
6207 LIBS=$lt_globsym_save_LIBS
6208 CFLAGS=$lt_globsym_save_CFLAGS
6209 else
6210 echo "cannot find nm_test_func in $nlist" >&5
6211 fi
6212 else
6213 echo "cannot find nm_test_var in $nlist" >&5
6214 fi
6215 else
6216 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6217 fi
6218 else
6219 echo "$progname: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 fi
6222 rm -rf conftest* conftst*
6223
6224 # Do not use the global_symbol_pipe unless it works.
6225 if test "$pipe_works" = yes; then
6226 break
6227 else
6228 lt_cv_sys_global_symbol_pipe=
6229 fi
6230done
6231
6232fi
6233
6234if test -z "$lt_cv_sys_global_symbol_pipe"; then
6235 lt_cv_sys_global_symbol_to_cdecl=
6236fi
6237if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6239$as_echo "failed" >&6; }
6240else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6242$as_echo "ok" >&6; }
6243fi
6244
6245# Response file support.
6246if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6247 nm_file_list_spec='@'
6248elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6249 nm_file_list_spec='@'
6250fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6279$as_echo_n "checking for sysroot... " >&6; }
6280
6281# Check whether --with-sysroot was given.
6282if test "${with_sysroot+set}" = set; then :
6283 withval=$with_sysroot;
6284else
6285 with_sysroot=no
6286fi
6287
6288
6289lt_sysroot=
6290case ${with_sysroot} in #(
6291 yes)
6292 if test "$GCC" = yes; then
6293 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6294 fi
6295 ;; #(
6296 /*)
6297 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6298 ;; #(
6299 no|'')
6300 ;; #(
6301 *)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6303$as_echo "${with_sysroot}" >&6; }
6304 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6305 ;;
6306esac
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6309$as_echo "${lt_sysroot:-no}" >&6; }
6310
6311
6312
6313
6314
6315# Check whether --enable-libtool-lock was given.
6316if test "${enable_libtool_lock+set}" = set; then :
6317 enableval=$enable_libtool_lock;
6318fi
6319
6320test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6321
6322# Some flags need to be propagated to the compiler or linker for good
6323# libtool support.
6324case $host in
6325ia64-*-hpux*)
6326 # Find out which ABI we are using.
6327 echo 'int i;' > conftest.$ac_ext
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
6333 case `/usr/bin/file conftest.$ac_objext` in
6334 *ELF-32*)
6335 HPUX_IA64_MODE="32"
6336 ;;
6337 *ELF-64*)
6338 HPUX_IA64_MODE="64"
6339 ;;
6340 esac
6341 fi
6342 rm -rf conftest*
6343 ;;
6344*-*-irix6*)
6345 # Find out which ABI we are using.
6346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
6352 if test "$lt_cv_prog_gnu_ld" = yes; then
6353 case `/usr/bin/file conftest.$ac_objext` in
6354 *32-bit*)
6355 LD="${LD-ld} -melf32bsmip"
6356 ;;
6357 *N32*)
6358 LD="${LD-ld} -melf32bmipn32"
6359 ;;
6360 *64-bit*)
6361 LD="${LD-ld} -melf64bmip"
6362 ;;
6363 esac
6364 else
6365 case `/usr/bin/file conftest.$ac_objext` in
6366 *32-bit*)
6367 LD="${LD-ld} -32"
6368 ;;
6369 *N32*)
6370 LD="${LD-ld} -n32"
6371 ;;
6372 *64-bit*)
6373 LD="${LD-ld} -64"
6374 ;;
6375 esac
6376 fi
6377 fi
6378 rm -rf conftest*
6379 ;;
6380
6381x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6382s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6383 # Find out which ABI we are using.
6384 echo 'int i;' > conftest.$ac_ext
6385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386 (eval $ac_compile) 2>&5
6387 ac_status=$?
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; }; then
6390 case `/usr/bin/file conftest.o` in
6391 *32-bit*)
6392 case $host in
6393 x86_64-*kfreebsd*-gnu)
6394 LD="${LD-ld} -m elf_i386_fbsd"
6395 ;;
6396 x86_64-*linux*)
6397 LD="${LD-ld} -m elf_i386"
6398 ;;
6399 ppc64-*linux*|powerpc64-*linux*)
6400 LD="${LD-ld} -m elf32ppclinux"
6401 ;;
6402 s390x-*linux*)
6403 LD="${LD-ld} -m elf_s390"
6404 ;;
6405 sparc64-*linux*)
6406 LD="${LD-ld} -m elf32_sparc"
6407 ;;
6408 esac
6409 ;;
6410 *64-bit*)
6411 case $host in
6412 x86_64-*kfreebsd*-gnu)
6413 LD="${LD-ld} -m elf_x86_64_fbsd"
6414 ;;
6415 x86_64-*linux*)
6416 LD="${LD-ld} -m elf_x86_64"
6417 ;;
6418 ppc*-*linux*|powerpc*-*linux*)
6419 LD="${LD-ld} -m elf64ppc"
6420 ;;
6421 s390*-*linux*|s390*-*tpf*)
6422 LD="${LD-ld} -m elf64_s390"
6423 ;;
6424 sparc*-*linux*)
6425 LD="${LD-ld} -m elf64_sparc"
6426 ;;
6427 esac
6428 ;;
6429 esac
6430 fi
6431 rm -rf conftest*
6432 ;;
6433
6434*-*-sco3.2v5*)
6435 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6436 SAVE_CFLAGS="$CFLAGS"
6437 CFLAGS="$CFLAGS -belf"
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6439$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6440if ${lt_cv_cc_needs_belf+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442else
6443 ac_ext=c
6444ac_cpp='$CPP $CPPFLAGS'
6445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450/* end confdefs.h. */
6451
6452int
6453main ()
6454{
6455
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460if ac_fn_c_try_link "$LINENO"; then :
6461 lt_cv_cc_needs_belf=yes
6462else
6463 lt_cv_cc_needs_belf=no
6464fi
6465rm -f core conftest.err conftest.$ac_objext \
6466 conftest$ac_exeext conftest.$ac_ext
6467 ac_ext=c
6468ac_cpp='$CPP $CPPFLAGS'
6469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6475$as_echo "$lt_cv_cc_needs_belf" >&6; }
6476 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6477 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6478 CFLAGS="$SAVE_CFLAGS"
6479 fi
6480 ;;
6481*-*solaris*)
6482 # Find out which ABI we are using.
6483 echo 'int i;' > conftest.$ac_ext
6484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488 test $ac_status = 0; }; then
6489 case `/usr/bin/file conftest.o` in
6490 *64-bit*)
6491 case $lt_cv_prog_gnu_ld in
6492 yes*)
6493 case $host in
6494 i?86-*-solaris*)
6495 LD="${LD-ld} -m elf_x86_64"
6496 ;;
6497 sparc*-*-solaris*)
6498 LD="${LD-ld} -m elf64_sparc"
6499 ;;
6500 esac
6501 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6502 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6503 LD="${LD-ld}_sol2"
6504 fi
6505 ;;
6506 *)
6507 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6508 LD="${LD-ld} -64"
6509 fi
6510 ;;
6511 esac
6512 ;;
6513 esac
6514 fi
6515 rm -rf conftest*
6516 ;;
6517esac
6518
6519need_locks="$enable_libtool_lock"
6520
6521if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6523set dummy ${ac_tool_prefix}mt; ac_word=$2
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525$as_echo_n "checking for $ac_word... " >&6; }
6526if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528else
6529 if test -n "$MANIFEST_TOOL"; then
6530 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543done
6544 done
6545IFS=$as_save_IFS
6546
6547fi
6548fi
6549MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6550if test -n "$MANIFEST_TOOL"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6552$as_echo "$MANIFEST_TOOL" >&6; }
6553else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558
6559fi
6560if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6561 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6562 # Extract the first word of "mt", so it can be a program name with args.
6563set dummy mt; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
6566if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568else
6569 if test -n "$ac_ct_MANIFEST_TOOL"; then
6570 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583done
6584 done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6590if test -n "$ac_ct_MANIFEST_TOOL"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6592$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6593else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6599 MANIFEST_TOOL=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602yes:)
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605ac_tool_warned=yes ;;
6606esac
6607 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6608 fi
6609else
6610 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6611fi
6612
6613test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6615$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6616if ${lt_cv_path_mainfest_tool+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 lt_cv_path_mainfest_tool=no
6620 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6621 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6622 cat conftest.err >&5
6623 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6624 lt_cv_path_mainfest_tool=yes
6625 fi
6626 rm -f conftest*
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6629$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6630if test "x$lt_cv_path_mainfest_tool" != xyes; then
6631 MANIFEST_TOOL=:
6632fi
6633
6634
6635
6636
6637
6638
6639 case $host_os in
6640 rhapsody* | darwin*)
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6643set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if ${ac_cv_prog_DSYMUTIL+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648else
6649 if test -n "$DSYMUTIL"; then
6650 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664 done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669DSYMUTIL=$ac_cv_prog_DSYMUTIL
6670if test -n "$DSYMUTIL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6672$as_echo "$DSYMUTIL" >&6; }
6673else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678
6679fi
6680if test -z "$ac_cv_prog_DSYMUTIL"; then
6681 ac_ct_DSYMUTIL=$DSYMUTIL
6682 # Extract the first word of "dsymutil", so it can be a program name with args.
6683set dummy dsymutil; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 if test -n "$ac_ct_DSYMUTIL"; then
6690 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704 done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6710if test -n "$ac_ct_DSYMUTIL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6712$as_echo "$ac_ct_DSYMUTIL" >&6; }
6713else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718 if test "x$ac_ct_DSYMUTIL" = x; then
6719 DSYMUTIL=":"
6720 else
6721 case $cross_compiling:$ac_tool_warned in
6722yes:)
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725ac_tool_warned=yes ;;
6726esac
6727 DSYMUTIL=$ac_ct_DSYMUTIL
6728 fi
6729else
6730 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6731fi
6732
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6735set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737$as_echo_n "checking for $ac_word... " >&6; }
6738if ${ac_cv_prog_NMEDIT+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740else
6741 if test -n "$NMEDIT"; then
6742 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755done
6756 done
6757IFS=$as_save_IFS
6758
6759fi
6760fi
6761NMEDIT=$ac_cv_prog_NMEDIT
6762if test -n "$NMEDIT"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6764$as_echo "$NMEDIT" >&6; }
6765else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770
6771fi
6772if test -z "$ac_cv_prog_NMEDIT"; then
6773 ac_ct_NMEDIT=$NMEDIT
6774 # Extract the first word of "nmedit", so it can be a program name with args.
6775set dummy nmedit; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780else
6781 if test -n "$ac_ct_NMEDIT"; then
6782 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795done
6796 done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6802if test -n "$ac_ct_NMEDIT"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6804$as_echo "$ac_ct_NMEDIT" >&6; }
6805else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810 if test "x$ac_ct_NMEDIT" = x; then
6811 NMEDIT=":"
6812 else
6813 case $cross_compiling:$ac_tool_warned in
6814yes:)
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817ac_tool_warned=yes ;;
6818esac
6819 NMEDIT=$ac_ct_NMEDIT
6820 fi
6821else
6822 NMEDIT="$ac_cv_prog_NMEDIT"
6823fi
6824
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6827set dummy ${ac_tool_prefix}lipo; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if ${ac_cv_prog_LIPO+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832else
6833 if test -n "$LIPO"; then
6834 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847done
6848 done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853LIPO=$ac_cv_prog_LIPO
6854if test -n "$LIPO"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6856$as_echo "$LIPO" >&6; }
6857else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862
6863fi
6864if test -z "$ac_cv_prog_LIPO"; then
6865 ac_ct_LIPO=$LIPO
6866 # Extract the first word of "lipo", so it can be a program name with args.
6867set dummy lipo; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872else
6873 if test -n "$ac_ct_LIPO"; then
6874 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_LIPO="lipo"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887done
6888 done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6894if test -n "$ac_ct_LIPO"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6896$as_echo "$ac_ct_LIPO" >&6; }
6897else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902 if test "x$ac_ct_LIPO" = x; then
6903 LIPO=":"
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906yes:)
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909ac_tool_warned=yes ;;
6910esac
6911 LIPO=$ac_ct_LIPO
6912 fi
6913else
6914 LIPO="$ac_cv_prog_LIPO"
6915fi
6916
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6919set dummy ${ac_tool_prefix}otool; ac_word=$2
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
6922if ${ac_cv_prog_OTOOL+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924else
6925 if test -n "$OTOOL"; then
6926 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939done
6940 done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945OTOOL=$ac_cv_prog_OTOOL
6946if test -n "$OTOOL"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6948$as_echo "$OTOOL" >&6; }
6949else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953
6954
6955fi
6956if test -z "$ac_cv_prog_OTOOL"; then
6957 ac_ct_OTOOL=$OTOOL
6958 # Extract the first word of "otool", so it can be a program name with args.
6959set dummy otool; ac_word=$2
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961$as_echo_n "checking for $ac_word... " >&6; }
6962if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964else
6965 if test -n "$ac_ct_OTOOL"; then
6966 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_OTOOL="otool"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980 done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6986if test -n "$ac_ct_OTOOL"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6988$as_echo "$ac_ct_OTOOL" >&6; }
6989else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993
6994 if test "x$ac_ct_OTOOL" = x; then
6995 OTOOL=":"
6996 else
6997 case $cross_compiling:$ac_tool_warned in
6998yes:)
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001ac_tool_warned=yes ;;
7002esac
7003 OTOOL=$ac_ct_OTOOL
7004 fi
7005else
7006 OTOOL="$ac_cv_prog_OTOOL"
7007fi
7008
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7011set dummy ${ac_tool_prefix}otool64; ac_word=$2
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013$as_echo_n "checking for $ac_word... " >&6; }
7014if ${ac_cv_prog_OTOOL64+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016else
7017 if test -n "$OTOOL64"; then
7018 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031done
7032 done
7033IFS=$as_save_IFS
7034
7035fi
7036fi
7037OTOOL64=$ac_cv_prog_OTOOL64
7038if test -n "$OTOOL64"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7040$as_echo "$OTOOL64" >&6; }
7041else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043$as_echo "no" >&6; }
7044fi
7045
7046
7047fi
7048if test -z "$ac_cv_prog_OTOOL64"; then
7049 ac_ct_OTOOL64=$OTOOL64
7050 # Extract the first word of "otool64", so it can be a program name with args.
7051set dummy otool64; ac_word=$2
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053$as_echo_n "checking for $ac_word... " >&6; }
7054if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056else
7057 if test -n "$ac_ct_OTOOL64"; then
7058 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7059else
7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_ac_ct_OTOOL64="otool64"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071done
7072 done
7073IFS=$as_save_IFS
7074
7075fi
7076fi
7077ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7078if test -n "$ac_ct_OTOOL64"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7080$as_echo "$ac_ct_OTOOL64" >&6; }
7081else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083$as_echo "no" >&6; }
7084fi
7085
7086 if test "x$ac_ct_OTOOL64" = x; then
7087 OTOOL64=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090yes:)
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093ac_tool_warned=yes ;;
7094esac
7095 OTOOL64=$ac_ct_OTOOL64
7096 fi
7097else
7098 OTOOL64="$ac_cv_prog_OTOOL64"
7099fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7128$as_echo_n "checking for -single_module linker flag... " >&6; }
7129if ${lt_cv_apple_cc_single_mod+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131else
7132 lt_cv_apple_cc_single_mod=no
7133 if test -z "${LT_MULTI_MODULE}"; then
7134 # By default we will add the -single_module flag. You can override
7135 # by either setting the environment variable LT_MULTI_MODULE
7136 # non-empty at configure time, or by adding -multi_module to the
7137 # link flags.
7138 rm -rf libconftest.dylib*
7139 echo "int foo(void){return 1;}" > conftest.c
7140 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7141-dynamiclib -Wl,-single_module conftest.c" >&5
7142 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7143 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7144 _lt_result=$?
7145 # If there is a non-empty error log, and "single_module"
7146 # appears in it, assume the flag caused a linker warning
7147 if test -s conftest.err && $GREP single_module conftest.err; then
7148 cat conftest.err >&5
7149 # Otherwise, if the output was created with a 0 exit code from
7150 # the compiler, it worked.
7151 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7152 lt_cv_apple_cc_single_mod=yes
7153 else
7154 cat conftest.err >&5
7155 fi
7156 rm -rf libconftest.dylib*
7157 rm -f conftest.*
7158 fi
7159fi
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7161$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7162
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7164$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7165if ${lt_cv_ld_exported_symbols_list+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167else
7168 lt_cv_ld_exported_symbols_list=no
7169 save_LDFLAGS=$LDFLAGS
7170 echo "_main" > conftest.sym
7171 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174
7175int
7176main ()
7177{
7178
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183if ac_fn_c_try_link "$LINENO"; then :
7184 lt_cv_ld_exported_symbols_list=yes
7185else
7186 lt_cv_ld_exported_symbols_list=no
7187fi
7188rm -f core conftest.err conftest.$ac_objext \
7189 conftest$ac_exeext conftest.$ac_ext
7190 LDFLAGS="$save_LDFLAGS"
7191
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7194$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7197$as_echo_n "checking for -force_load linker flag... " >&6; }
7198if ${lt_cv_ld_force_load+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200else
7201 lt_cv_ld_force_load=no
7202 cat > conftest.c << _LT_EOF
7203int forced_loaded() { return 2;}
7204_LT_EOF
7205 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7206 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7207 echo "$AR cru libconftest.a conftest.o" >&5
7208 $AR cru libconftest.a conftest.o 2>&5
7209 echo "$RANLIB libconftest.a" >&5
7210 $RANLIB libconftest.a 2>&5
7211 cat > conftest.c << _LT_EOF
7212int main() { return 0;}
7213_LT_EOF
7214 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7215 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7216 _lt_result=$?
7217 if test -s conftest.err && $GREP force_load conftest.err; then
7218 cat conftest.err >&5
7219 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7220 lt_cv_ld_force_load=yes
7221 else
7222 cat conftest.err >&5
7223 fi
7224 rm -f conftest.err libconftest.a conftest conftest.c
7225 rm -rf conftest.dSYM
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7229$as_echo "$lt_cv_ld_force_load" >&6; }
7230 case $host_os in
7231 rhapsody* | darwin1.[012])
7232 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7233 darwin1.*)
7234 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7235 darwin*) # darwin 5.x on
7236 # if running on 10.5 or later, the deployment target defaults
7237 # to the OS version, if on x86, and 10.4, the deployment
7238 # target defaults to 10.4. Don't you love it?
7239 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7240 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7241 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7242 10.[012]*)
7243 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7244 10.*)
7245 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7246 esac
7247 ;;
7248 esac
7249 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7250 _lt_dar_single_mod='$single_module'
7251 fi
7252 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7253 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7254 else
7255 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7256 fi
7257 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7258 _lt_dsymutil='~$DSYMUTIL $lib || :'
7259 else
7260 _lt_dsymutil=
7261 fi
7262 ;;
7263 esac
7264
7265ac_ext=c
7266ac_cpp='$CPP $CPPFLAGS'
7267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7271$as_echo_n "checking how to run the C preprocessor... " >&6; }
7272# On Suns, sometimes $CPP names a directory.
7273if test -n "$CPP" && test -d "$CPP"; then
7274 CPP=
7275fi
7276if test -z "$CPP"; then
7277 if ${ac_cv_prog_CPP+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279else
7280 # Double quotes because CPP needs to be expanded
7281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7282 do
7283 ac_preproc_ok=false
7284for ac_c_preproc_warn_flag in '' yes
7285do
7286 # Use a header file that comes with gcc, so configuring glibc
7287 # with a fresh cross-compiler works.
7288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289 # <limits.h> exists even on freestanding compilers.
7290 # On the NeXT, cc -E runs the code through the compiler's parser,
7291 # not just through cpp. "Syntax error" is here to catch this case.
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h. */
7294#ifdef __STDC__
7295# include <limits.h>
7296#else
7297# include <assert.h>
7298#endif
7299 Syntax error
7300_ACEOF
7301if ac_fn_c_try_cpp "$LINENO"; then :
7302
7303else
7304 # Broken: fails on valid input.
7305continue
7306fi
7307rm -f conftest.err conftest.i conftest.$ac_ext
7308
7309 # OK, works on sane cases. Now check whether nonexistent headers
7310 # can be detected and how.
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312/* end confdefs.h. */
7313#include <ac_nonexistent.h>
7314_ACEOF
7315if ac_fn_c_try_cpp "$LINENO"; then :
7316 # Broken: success on invalid input.
7317continue
7318else
7319 # Passes both tests.
7320ac_preproc_ok=:
7321break
7322fi
7323rm -f conftest.err conftest.i conftest.$ac_ext
7324
7325done
7326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7327rm -f conftest.i conftest.err conftest.$ac_ext
7328if $ac_preproc_ok; then :
7329 break
7330fi
7331
7332 done
7333 ac_cv_prog_CPP=$CPP
7334
7335fi
7336 CPP=$ac_cv_prog_CPP
7337else
7338 ac_cv_prog_CPP=$CPP
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7341$as_echo "$CPP" >&6; }
7342ac_preproc_ok=false
7343for ac_c_preproc_warn_flag in '' yes
7344do
7345 # Use a header file that comes with gcc, so configuring glibc
7346 # with a fresh cross-compiler works.
7347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348 # <limits.h> exists even on freestanding compilers.
7349 # On the NeXT, cc -E runs the code through the compiler's parser,
7350 # not just through cpp. "Syntax error" is here to catch this case.
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h. */
7353#ifdef __STDC__
7354# include <limits.h>
7355#else
7356# include <assert.h>
7357#endif
7358 Syntax error
7359_ACEOF
7360if ac_fn_c_try_cpp "$LINENO"; then :
7361
7362else
7363 # Broken: fails on valid input.
7364continue
7365fi
7366rm -f conftest.err conftest.i conftest.$ac_ext
7367
7368 # OK, works on sane cases. Now check whether nonexistent headers
7369 # can be detected and how.
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h. */
7372#include <ac_nonexistent.h>
7373_ACEOF
7374if ac_fn_c_try_cpp "$LINENO"; then :
7375 # Broken: success on invalid input.
7376continue
7377else
7378 # Passes both tests.
7379ac_preproc_ok=:
7380break
7381fi
7382rm -f conftest.err conftest.i conftest.$ac_ext
7383
7384done
7385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7386rm -f conftest.i conftest.err conftest.$ac_ext
7387if $ac_preproc_ok; then :
7388
7389else
7390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7392as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7393See \`config.log' for more details" "$LINENO" 5; }
7394fi
7395
7396ac_ext=c
7397ac_cpp='$CPP $CPPFLAGS'
7398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7404$as_echo_n "checking for ANSI C header files... " >&6; }
7405if ${ac_cv_header_stdc+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h. */
7410#include <stdlib.h>
7411#include <stdarg.h>
7412#include <string.h>
7413#include <float.h>
7414
7415int
7416main ()
7417{
7418
7419 ;
7420 return 0;
7421}
7422_ACEOF
7423if ac_fn_c_try_compile "$LINENO"; then :
7424 ac_cv_header_stdc=yes
7425else
7426 ac_cv_header_stdc=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429
7430if test $ac_cv_header_stdc = yes; then
7431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h. */
7434#include <string.h>
7435
7436_ACEOF
7437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7438 $EGREP "memchr" >/dev/null 2>&1; then :
7439
7440else
7441 ac_cv_header_stdc=no
7442fi
7443rm -f conftest*
7444
7445fi
7446
7447if test $ac_cv_header_stdc = yes; then
7448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h. */
7451#include <stdlib.h>
7452
7453_ACEOF
7454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7455 $EGREP "free" >/dev/null 2>&1; then :
7456
7457else
7458 ac_cv_header_stdc=no
7459fi
7460rm -f conftest*
7461
7462fi
7463
7464if test $ac_cv_header_stdc = yes; then
7465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7466 if test "$cross_compiling" = yes; then :
7467 :
7468else
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h. */
7471#include <ctype.h>
7472#include <stdlib.h>
7473#if ((' ' & 0x0FF) == 0x020)
7474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7476#else
7477# define ISLOWER(c) \
7478 (('a' <= (c) && (c) <= 'i') \
7479 || ('j' <= (c) && (c) <= 'r') \
7480 || ('s' <= (c) && (c) <= 'z'))
7481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7482#endif
7483
7484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7485int
7486main ()
7487{
7488 int i;
7489 for (i = 0; i < 256; i++)
7490 if (XOR (islower (i), ISLOWER (i))
7491 || toupper (i) != TOUPPER (i))
7492 return 2;
7493 return 0;
7494}
7495_ACEOF
7496if ac_fn_c_try_run "$LINENO"; then :
7497
7498else
7499 ac_cv_header_stdc=no
7500fi
7501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7502 conftest.$ac_objext conftest.beam conftest.$ac_ext
7503fi
7504
7505fi
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7508$as_echo "$ac_cv_header_stdc" >&6; }
7509if test $ac_cv_header_stdc = yes; then
7510
7511$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7512
7513fi
7514
7515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7516for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7517 inttypes.h stdint.h unistd.h
7518do :
7519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7520ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7521"
7522if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7523 cat >>confdefs.h <<_ACEOF
7524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7525_ACEOF
7526
7527fi
7528
7529done
7530
7531
7532for ac_header in dlfcn.h
7533do :
7534 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7535"
7536if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7537 cat >>confdefs.h <<_ACEOF
7538#define HAVE_DLFCN_H 1
7539_ACEOF
7540
7541fi
7542
7543done
7544
7545
7546
7547
7548
7549# Set options
7550
7551
7552
7553 enable_dlopen=no
7554
7555
15c988f7
JB
7556
7557 # Check whether --enable-shared was given.
7558if test "${enable_shared+set}" = set; then :
7559 enableval=$enable_shared; p=${PACKAGE-default}
7560 case $enableval in
7561 yes) enable_shared=yes ;;
7562 no) enable_shared=no ;;
7563 *)
7564 enable_shared=no
7565 # Look at the argument we got. We use all the common list separators.
7566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7567 for pkg in $enableval; do
7568 IFS="$lt_save_ifs"
7569 if test "X$pkg" = "X$p"; then
7570 enable_shared=yes
7571 fi
7572 done
7573 IFS="$lt_save_ifs"
7574 ;;
7575 esac
7576else
7577 enable_shared=yes
7578fi
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 # Check whether --enable-static was given.
7589if test "${enable_static+set}" = set; then :
7590 enableval=$enable_static; p=${PACKAGE-default}
7591 case $enableval in
7592 yes) enable_static=yes ;;
7593 no) enable_static=no ;;
7594 *)
7595 enable_static=no
7596 # Look at the argument we got. We use all the common list separators.
7597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7598 for pkg in $enableval; do
7599 IFS="$lt_save_ifs"
7600 if test "X$pkg" = "X$p"; then
7601 enable_static=yes
7602 fi
7603 done
7604 IFS="$lt_save_ifs"
7605 ;;
7606 esac
7607else
7608 enable_static=yes
7609fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620# Check whether --with-pic was given.
7621if test "${with_pic+set}" = set; then :
7622 withval=$with_pic; lt_p=${PACKAGE-default}
7623 case $withval in
7624 yes|no) pic_mode=$withval ;;
7625 *)
7626 pic_mode=default
7627 # Look at the argument we got. We use all the common list separators.
7628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629 for lt_pkg in $withval; do
7630 IFS="$lt_save_ifs"
7631 if test "X$lt_pkg" = "X$lt_p"; then
7632 pic_mode=yes
7633 fi
7634 done
7635 IFS="$lt_save_ifs"
7636 ;;
7637 esac
7638else
7639 pic_mode=default
7640fi
7641
7642
7643test -z "$pic_mode" && pic_mode=default
7644
7645
7646
7647
7648
7649
7650
7651 # Check whether --enable-fast-install was given.
7652if test "${enable_fast_install+set}" = set; then :
7653 enableval=$enable_fast_install; p=${PACKAGE-default}
7654 case $enableval in
7655 yes) enable_fast_install=yes ;;
7656 no) enable_fast_install=no ;;
7657 *)
7658 enable_fast_install=no
7659 # Look at the argument we got. We use all the common list separators.
7660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7661 for pkg in $enableval; do
7662 IFS="$lt_save_ifs"
7663 if test "X$pkg" = "X$p"; then
7664 enable_fast_install=yes
7665 fi
7666 done
7667 IFS="$lt_save_ifs"
7668 ;;
7669 esac
7670else
7671 enable_fast_install=yes
7672fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684# This can be used to rebuild libtool when needed
7685LIBTOOL_DEPS="$ltmain"
7686
7687# Always use our own libtool.
7688LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719test -z "$LN_S" && LN_S="ln -s"
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734if test -n "${ZSH_VERSION+set}" ; then
7735 setopt NO_GLOB_SUBST
7736fi
7737
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7739$as_echo_n "checking for objdir... " >&6; }
7740if ${lt_cv_objdir+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742else
7743 rm -f .libs 2>/dev/null
7744mkdir .libs 2>/dev/null
7745if test -d .libs; then
7746 lt_cv_objdir=.libs
7747else
7748 # MS-DOS does not allow filenames that begin with a dot.
7749 lt_cv_objdir=_libs
7750fi
7751rmdir .libs 2>/dev/null
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7754$as_echo "$lt_cv_objdir" >&6; }
7755objdir=$lt_cv_objdir
7756
7757
7758
7759
7760
7761cat >>confdefs.h <<_ACEOF
7762#define LT_OBJDIR "$lt_cv_objdir/"
7763_ACEOF
7764
7765
7766
7767
7768case $host_os in
7769aix3*)
7770 # AIX sometimes has problems with the GCC collect2 program. For some
7771 # reason, if we set the COLLECT_NAMES environment variable, the problems
7772 # vanish in a puff of smoke.
7773 if test "X${COLLECT_NAMES+set}" != Xset; then
7774 COLLECT_NAMES=
7775 export COLLECT_NAMES
7776 fi
7777 ;;
7778esac
7779
7780# Global variables:
7781ofile=libtool
7782can_build_shared=yes
7783
7784# All known linkers require a `.a' archive for static linking (except MSVC,
7785# which needs '.lib').
7786libext=a
7787
7788with_gnu_ld="$lt_cv_prog_gnu_ld"
7789
7790old_CC="$CC"
7791old_CFLAGS="$CFLAGS"
7792
7793# Set sane defaults for various variables
7794test -z "$CC" && CC=cc
7795test -z "$LTCC" && LTCC=$CC
7796test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7797test -z "$LD" && LD=ld
7798test -z "$ac_objext" && ac_objext=o
7799
7800for cc_temp in $compiler""; do
7801 case $cc_temp in
7802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7804 \-*) ;;
7805 *) break;;
7806 esac
7807done
7808cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7809
7810
7811# Only perform the check for file, if the check method requires it
7812test -z "$MAGIC_CMD" && MAGIC_CMD=file
7813case $deplibs_check_method in
7814file_magic*)
7815 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7817$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7818if ${lt_cv_path_MAGIC_CMD+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820else
7821 case $MAGIC_CMD in
7822[\\/*] | ?:[\\/]*)
7823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7824 ;;
7825*)
7826 lt_save_MAGIC_CMD="$MAGIC_CMD"
7827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7829 for ac_dir in $ac_dummy; do
7830 IFS="$lt_save_ifs"
7831 test -z "$ac_dir" && ac_dir=.
7832 if test -f $ac_dir/${ac_tool_prefix}file; then
7833 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7834 if test -n "$file_magic_test_file"; then
7835 case $deplibs_check_method in
7836 "file_magic "*)
7837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7840 $EGREP "$file_magic_regex" > /dev/null; then
7841 :
7842 else
7843 cat <<_LT_EOF 1>&2
7844
7845*** Warning: the command libtool uses to detect shared libraries,
7846*** $file_magic_cmd, produces output that libtool cannot recognize.
7847*** The result is that libtool may fail to recognize shared libraries
7848*** as such. This will affect the creation of libtool libraries that
7849*** depend on shared libraries, but programs linked with such libtool
7850*** libraries will work regardless of this problem. Nevertheless, you
7851*** may want to report the problem to your system manager and/or to
7852*** bug-libtool@gnu.org
7853
7854_LT_EOF
7855 fi ;;
7856 esac
7857 fi
7858 break
7859 fi
7860 done
7861 IFS="$lt_save_ifs"
7862 MAGIC_CMD="$lt_save_MAGIC_CMD"
7863 ;;
7864esac
7865fi
7866
7867MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7868if test -n "$MAGIC_CMD"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7870$as_echo "$MAGIC_CMD" >&6; }
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876
7877
7878
7879
7880if test -z "$lt_cv_path_MAGIC_CMD"; then
7881 if test -n "$ac_tool_prefix"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7883$as_echo_n "checking for file... " >&6; }
7884if ${lt_cv_path_MAGIC_CMD+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886else
7887 case $MAGIC_CMD in
7888[\\/*] | ?:[\\/]*)
7889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7890 ;;
7891*)
7892 lt_save_MAGIC_CMD="$MAGIC_CMD"
7893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7894 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7895 for ac_dir in $ac_dummy; do
7896 IFS="$lt_save_ifs"
7897 test -z "$ac_dir" && ac_dir=.
7898 if test -f $ac_dir/file; then
7899 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7900 if test -n "$file_magic_test_file"; then
7901 case $deplibs_check_method in
7902 "file_magic "*)
7903 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7906 $EGREP "$file_magic_regex" > /dev/null; then
7907 :
7908 else
7909 cat <<_LT_EOF 1>&2
7910
7911*** Warning: the command libtool uses to detect shared libraries,
7912*** $file_magic_cmd, produces output that libtool cannot recognize.
7913*** The result is that libtool may fail to recognize shared libraries
7914*** as such. This will affect the creation of libtool libraries that
7915*** depend on shared libraries, but programs linked with such libtool
7916*** libraries will work regardless of this problem. Nevertheless, you
7917*** may want to report the problem to your system manager and/or to
7918*** bug-libtool@gnu.org
7919
7920_LT_EOF
7921 fi ;;
7922 esac
7923 fi
7924 break
7925 fi
7926 done
7927 IFS="$lt_save_ifs"
7928 MAGIC_CMD="$lt_save_MAGIC_CMD"
7929 ;;
7930esac
7931fi
7932
7933MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934if test -n "$MAGIC_CMD"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7936$as_echo "$MAGIC_CMD" >&6; }
7937else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942
7943 else
7944 MAGIC_CMD=:
7945 fi
7946fi
7947
7948 fi
7949 ;;
7950esac
7951
7952# Use C for the default configuration in the libtool script
7953
7954lt_save_CC="$CC"
7955ac_ext=c
7956ac_cpp='$CPP $CPPFLAGS'
7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961
7962# Source file extension for C test sources.
7963ac_ext=c
7964
7965# Object file extension for compiled C test sources.
7966objext=o
7967objext=$objext
7968
7969# Code to be used in simple compile tests
7970lt_simple_compile_test_code="int some_variable = 0;"
7971
7972# Code to be used in simple link tests
7973lt_simple_link_test_code='int main(){return(0);}'
7974
7975
7976
7977
7978
7979
7980
7981# If no C compiler was specified, use CC.
7982LTCC=${LTCC-"$CC"}
7983
7984# If no C compiler flags were specified, use CFLAGS.
7985LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7986
7987# Allow CC to be a program name with arguments.
7988compiler=$CC
7989
7990# Save the default compiler, since it gets overwritten when the other
7991# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7992compiler_DEFAULT=$CC
7993
7994# save warnings/boilerplate of simple test code
7995ac_outfile=conftest.$ac_objext
7996echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7997eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7998_lt_compiler_boilerplate=`cat conftest.err`
7999$RM conftest*
8000
8001ac_outfile=conftest.$ac_objext
8002echo "$lt_simple_link_test_code" >conftest.$ac_ext
8003eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8004_lt_linker_boilerplate=`cat conftest.err`
8005$RM -r conftest*
8006
8007
8008## CAVEAT EMPTOR:
8009## There is no encapsulation within the following macros, do not change
8010## the running order or otherwise move them around unless you know exactly
8011## what you are doing...
8012if test -n "$compiler"; then
8013
8014lt_prog_compiler_no_builtin_flag=
8015
8016if test "$GCC" = yes; then
8017 case $cc_basename in
8018 nvcc*)
8019 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8020 *)
8021 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8022 esac
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8025$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8026if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028else
8029 lt_cv_prog_compiler_rtti_exceptions=no
8030 ac_outfile=conftest.$ac_objext
8031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032 lt_compiler_flag="-fno-rtti -fno-exceptions"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 # The option is referenced via a variable to avoid confusing sed.
8038 lt_compile=`echo "$ac_compile" | $SED \
8039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041 -e 's:$: $lt_compiler_flag:'`
8042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8043 (eval "$lt_compile" 2>conftest.err)
8044 ac_status=$?
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 if (exit $ac_status) && test -s "$ac_outfile"; then
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings other than the usual output.
8050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8053 lt_cv_prog_compiler_rtti_exceptions=yes
8054 fi
8055 fi
8056 $RM conftest*
8057
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8060$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8061
8062if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8063 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8064else
8065 :
8066fi
8067
8068fi
8069
8070
8071
8072
8073
8074
8075 lt_prog_compiler_wl=
8076lt_prog_compiler_pic=
8077lt_prog_compiler_static=
8078
8079
8080 if test "$GCC" = yes; then
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_static='-static'
8083
8084 case $host_os in
8085 aix*)
8086 # All AIX code is PIC.
8087 if test "$host_cpu" = ia64; then
8088 # AIX 5 now supports IA64 processor
8089 lt_prog_compiler_static='-Bstatic'
8090 fi
8091 ;;
8092
8093 amigaos*)
8094 case $host_cpu in
8095 powerpc)
8096 # see comment about AmigaOS4 .so support
8097 lt_prog_compiler_pic='-fPIC'
8098 ;;
8099 m68k)
8100 # FIXME: we need at least 68020 code to build shared libraries, but
8101 # adding the `-m68020' flag to GCC prevents building anything better,
8102 # like `-m68040'.
8103 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8104 ;;
8105 esac
8106 ;;
8107
8108 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8109 # PIC is the default for these OSes.
8110 ;;
8111
8112 mingw* | cygwin* | pw32* | os2* | cegcc*)
8113 # This hack is so that the source file can tell whether it is being
8114 # built for inclusion in a dll (and should export symbols for example).
8115 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8116 # (--disable-auto-import) libraries
8117 lt_prog_compiler_pic='-DDLL_EXPORT'
8118 ;;
8119
8120 darwin* | rhapsody*)
8121 # PIC is the default on this platform
8122 # Common symbols not allowed in MH_DYLIB files
8123 lt_prog_compiler_pic='-fno-common'
8124 ;;
8125
8126 haiku*)
8127 # PIC is the default for Haiku.
8128 # The "-static" flag exists, but is broken.
8129 lt_prog_compiler_static=
8130 ;;
8131
8132 hpux*)
8133 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8134 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8135 # sets the default TLS model and affects inlining.
8136 case $host_cpu in
8137 hppa*64*)
8138 # +Z the default
8139 ;;
8140 *)
8141 lt_prog_compiler_pic='-fPIC'
8142 ;;
8143 esac
8144 ;;
8145
8146 interix[3-9]*)
8147 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8148 # Instead, we relocate shared libraries at runtime.
8149 ;;
8150
8151 msdosdjgpp*)
8152 # Just because we use GCC doesn't mean we suddenly get shared libraries
8153 # on systems that don't support them.
8154 lt_prog_compiler_can_build_shared=no
8155 enable_shared=no
8156 ;;
8157
8158 *nto* | *qnx*)
8159 # QNX uses GNU C++, but need to define -shared option too, otherwise
8160 # it will coredump.
8161 lt_prog_compiler_pic='-fPIC -shared'
8162 ;;
8163
8164 sysv4*MP*)
8165 if test -d /usr/nec; then
8166 lt_prog_compiler_pic=-Kconform_pic
8167 fi
8168 ;;
8169
8170 *)
8171 lt_prog_compiler_pic='-fPIC'
8172 ;;
8173 esac
8174
8175 case $cc_basename in
8176 nvcc*) # Cuda Compiler Driver 2.2
8177 lt_prog_compiler_wl='-Xlinker '
8178 if test -n "$lt_prog_compiler_pic"; then
8179 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8180 fi
8181 ;;
8182 esac
8183 else
8184 # PORTME Check for flag to pass linker flags through the system compiler.
8185 case $host_os in
8186 aix*)
8187 lt_prog_compiler_wl='-Wl,'
8188 if test "$host_cpu" = ia64; then
8189 # AIX 5 now supports IA64 processor
8190 lt_prog_compiler_static='-Bstatic'
8191 else
8192 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8193 fi
8194 ;;
8195
8196 mingw* | cygwin* | pw32* | os2* | cegcc*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 lt_prog_compiler_pic='-DDLL_EXPORT'
8200 ;;
8201
8202 hpux9* | hpux10* | hpux11*)
8203 lt_prog_compiler_wl='-Wl,'
8204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8205 # not for PA HP-UX.
8206 case $host_cpu in
8207 hppa*64*|ia64*)
8208 # +Z the default
8209 ;;
8210 *)
8211 lt_prog_compiler_pic='+Z'
8212 ;;
8213 esac
8214 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8215 lt_prog_compiler_static='${wl}-a ${wl}archive'
8216 ;;
8217
8218 irix5* | irix6* | nonstopux*)
8219 lt_prog_compiler_wl='-Wl,'
8220 # PIC (with -KPIC) is the default.
8221 lt_prog_compiler_static='-non_shared'
8222 ;;
8223
8224 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8225 case $cc_basename in
8226 # old Intel for x86_64 which still supported -KPIC.
8227 ecc*)
8228 lt_prog_compiler_wl='-Wl,'
8229 lt_prog_compiler_pic='-KPIC'
8230 lt_prog_compiler_static='-static'
8231 ;;
8232 # icc used to be incompatible with GCC.
8233 # ICC 10 doesn't accept -KPIC any more.
8234 icc* | ifort*)
8235 lt_prog_compiler_wl='-Wl,'
8236 lt_prog_compiler_pic='-fPIC'
8237 lt_prog_compiler_static='-static'
8238 ;;
8239 # Lahey Fortran 8.1.
8240 lf95*)
8241 lt_prog_compiler_wl='-Wl,'
8242 lt_prog_compiler_pic='--shared'
8243 lt_prog_compiler_static='--static'
8244 ;;
8245 nagfor*)
8246 # NAG Fortran compiler
8247 lt_prog_compiler_wl='-Wl,-Wl,,'
8248 lt_prog_compiler_pic='-PIC'
8249 lt_prog_compiler_static='-Bstatic'
8250 ;;
8251 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8252 # Portland Group compilers (*not* the Pentium gcc compiler,
8253 # which looks to be a dead project)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-fpic'
8256 lt_prog_compiler_static='-Bstatic'
8257 ;;
8258 ccc*)
8259 lt_prog_compiler_wl='-Wl,'
8260 # All Alpha code is PIC.
8261 lt_prog_compiler_static='-non_shared'
8262 ;;
8263 xl* | bgxl* | bgf* | mpixl*)
8264 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8265 lt_prog_compiler_wl='-Wl,'
8266 lt_prog_compiler_pic='-qpic'
8267 lt_prog_compiler_static='-qstaticlink'
8268 ;;
8269 *)
8270 case `$CC -V 2>&1 | sed 5q` in
8271 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8272 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-Bstatic'
8275 lt_prog_compiler_wl=''
8276 ;;
8277 *Sun\ F* | *Sun*Fortran*)
8278 lt_prog_compiler_pic='-KPIC'
8279 lt_prog_compiler_static='-Bstatic'
8280 lt_prog_compiler_wl='-Qoption ld '
8281 ;;
8282 *Sun\ C*)
8283 # Sun C 5.9
8284 lt_prog_compiler_pic='-KPIC'
8285 lt_prog_compiler_static='-Bstatic'
8286 lt_prog_compiler_wl='-Wl,'
8287 ;;
8288 *Intel*\ [CF]*Compiler*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-fPIC'
8291 lt_prog_compiler_static='-static'
8292 ;;
8293 *Portland\ Group*)
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='-fpic'
8296 lt_prog_compiler_static='-Bstatic'
8297 ;;
8298 esac
8299 ;;
8300 esac
8301 ;;
8302
8303 newsos6)
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 ;;
8307
8308 *nto* | *qnx*)
8309 # QNX uses GNU C++, but need to define -shared option too, otherwise
8310 # it will coredump.
8311 lt_prog_compiler_pic='-fPIC -shared'
8312 ;;
8313
8314 osf3* | osf4* | osf5*)
8315 lt_prog_compiler_wl='-Wl,'
8316 # All OSF/1 code is PIC.
8317 lt_prog_compiler_static='-non_shared'
8318 ;;
8319
8320 rdos*)
8321 lt_prog_compiler_static='-non_shared'
8322 ;;
8323
8324 solaris*)
8325 lt_prog_compiler_pic='-KPIC'
8326 lt_prog_compiler_static='-Bstatic'
8327 case $cc_basename in
8328 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8329 lt_prog_compiler_wl='-Qoption ld ';;
8330 *)
8331 lt_prog_compiler_wl='-Wl,';;
8332 esac
8333 ;;
8334
8335 sunos4*)
8336 lt_prog_compiler_wl='-Qoption ld '
8337 lt_prog_compiler_pic='-PIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 ;;
8340
8341 sysv4 | sysv4.2uw2* | sysv4.3*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 ;;
8346
8347 sysv4*MP*)
8348 if test -d /usr/nec ;then
8349 lt_prog_compiler_pic='-Kconform_pic'
8350 lt_prog_compiler_static='-Bstatic'
8351 fi
8352 ;;
8353
8354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
8358 ;;
8359
8360 unicos*)
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_can_build_shared=no
8363 ;;
8364
8365 uts4*)
8366 lt_prog_compiler_pic='-pic'
8367 lt_prog_compiler_static='-Bstatic'
8368 ;;
8369
8370 *)
8371 lt_prog_compiler_can_build_shared=no
8372 ;;
8373 esac
8374 fi
8375
8376case $host_os in
8377 # For platforms which do not support PIC, -DPIC is meaningless:
8378 *djgpp*)
8379 lt_prog_compiler_pic=
8380 ;;
8381 *)
8382 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8383 ;;
8384esac
8385
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8387$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8388if ${lt_cv_prog_compiler_pic+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390else
8391 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8392fi
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8394$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8395lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8396
8397#
8398# Check to make sure the PIC flag actually works.
8399#
8400if test -n "$lt_prog_compiler_pic"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8402$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8403if ${lt_cv_prog_compiler_pic_works+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405else
8406 lt_cv_prog_compiler_pic_works=no
8407 ac_outfile=conftest.$ac_objext
8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8410 # Insert the option either (1) after the last *FLAGS variable, or
8411 # (2) before a word containing "conftest.", or (3) at the end.
8412 # Note that $ac_compile itself does not contain backslashes and begins
8413 # with a dollar sign (not a hyphen), so the echo should work correctly.
8414 # The option is referenced via a variable to avoid confusing sed.
8415 lt_compile=`echo "$ac_compile" | $SED \
8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418 -e 's:$: $lt_compiler_flag:'`
8419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8420 (eval "$lt_compile" 2>conftest.err)
8421 ac_status=$?
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 if (exit $ac_status) && test -s "$ac_outfile"; then
8425 # The compiler can only warn and ignore the option if not recognized
8426 # So say no if there are warnings other than the usual output.
8427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8430 lt_cv_prog_compiler_pic_works=yes
8431 fi
8432 fi
8433 $RM conftest*
8434
8435fi
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8437$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8438
8439if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8440 case $lt_prog_compiler_pic in
8441 "" | " "*) ;;
8442 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8443 esac
8444else
8445 lt_prog_compiler_pic=
8446 lt_prog_compiler_can_build_shared=no
8447fi
8448
8449fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461#
8462# Check to make sure the static flag actually works.
8463#
8464wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8466$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8467if ${lt_cv_prog_compiler_static_works+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469else
8470 lt_cv_prog_compiler_static_works=no
8471 save_LDFLAGS="$LDFLAGS"
8472 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8475 # The linker can only warn and ignore the option if not recognized
8476 # So say no if there are warnings
8477 if test -s conftest.err; then
8478 # Append any errors to the config.log.
8479 cat conftest.err 1>&5
8480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482 if diff conftest.exp conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_static_works=yes
8484 fi
8485 else
8486 lt_cv_prog_compiler_static_works=yes
8487 fi
8488 fi
8489 $RM -r conftest*
8490 LDFLAGS="$save_LDFLAGS"
8491
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8494$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8495
8496if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8497 :
8498else
8499 lt_prog_compiler_static=
8500fi
8501
8502
8503
8504
8505
8506
8507
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8509$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8510if ${lt_cv_prog_compiler_c_o+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512else
8513 lt_cv_prog_compiler_c_o=no
8514 $RM -r conftest 2>/dev/null
8515 mkdir conftest
8516 cd conftest
8517 mkdir out
8518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8519
8520 lt_compiler_flag="-o out/conftest2.$ac_objext"
8521 # Insert the option either (1) after the last *FLAGS variable, or
8522 # (2) before a word containing "conftest.", or (3) at the end.
8523 # Note that $ac_compile itself does not contain backslashes and begins
8524 # with a dollar sign (not a hyphen), so the echo should work correctly.
8525 lt_compile=`echo "$ac_compile" | $SED \
8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528 -e 's:$: $lt_compiler_flag:'`
8529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8530 (eval "$lt_compile" 2>out/conftest.err)
8531 ac_status=$?
8532 cat out/conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8535 then
8536 # The compiler can only warn and ignore the option if not recognized
8537 # So say no if there are warnings
8538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_c_o=yes
8542 fi
8543 fi
8544 chmod u+w . 2>&5
8545 $RM conftest*
8546 # SGI C++ compiler will create directory out/ii_files/ for
8547 # template instantiation
8548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8549 $RM out/* && rmdir out
8550 cd ..
8551 $RM -r conftest
8552 $RM conftest*
8553
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8556$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8557
8558
8559
8560
8561
8562
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8564$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8565if ${lt_cv_prog_compiler_c_o+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567else
8568 lt_cv_prog_compiler_c_o=no
8569 $RM -r conftest 2>/dev/null
8570 mkdir conftest
8571 cd conftest
8572 mkdir out
8573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574
8575 lt_compiler_flag="-o out/conftest2.$ac_objext"
8576 # Insert the option either (1) after the last *FLAGS variable, or
8577 # (2) before a word containing "conftest.", or (3) at the end.
8578 # Note that $ac_compile itself does not contain backslashes and begins
8579 # with a dollar sign (not a hyphen), so the echo should work correctly.
8580 lt_compile=`echo "$ac_compile" | $SED \
8581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583 -e 's:$: $lt_compiler_flag:'`
8584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8585 (eval "$lt_compile" 2>out/conftest.err)
8586 ac_status=$?
8587 cat out/conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8590 then
8591 # The compiler can only warn and ignore the option if not recognized
8592 # So say no if there are warnings
8593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8596 lt_cv_prog_compiler_c_o=yes
8597 fi
8598 fi
8599 chmod u+w . 2>&5
8600 $RM conftest*
8601 # SGI C++ compiler will create directory out/ii_files/ for
8602 # template instantiation
8603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8604 $RM out/* && rmdir out
8605 cd ..
8606 $RM -r conftest
8607 $RM conftest*
8608
8609fi
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8611$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8612
8613
8614
8615
8616hard_links="nottested"
8617if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8618 # do not overwrite the value of need_locks provided by the user
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8620$as_echo_n "checking if we can lock with hard links... " >&6; }
8621 hard_links=yes
8622 $RM conftest*
8623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8624 touch conftest.a
8625 ln conftest.a conftest.b 2>&5 || hard_links=no
8626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8628$as_echo "$hard_links" >&6; }
8629 if test "$hard_links" = no; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8631$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8632 need_locks=warn
8633 fi
8634else
8635 need_locks=no
8636fi
8637
8638
8639
8640
8641
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8644$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8645
8646 runpath_var=
8647 allow_undefined_flag=
8648 always_export_symbols=no
8649 archive_cmds=
8650 archive_expsym_cmds=
8651 compiler_needs_object=no
8652 enable_shared_with_static_runtimes=no
8653 export_dynamic_flag_spec=
8654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8655 hardcode_automatic=no
8656 hardcode_direct=no
8657 hardcode_direct_absolute=no
8658 hardcode_libdir_flag_spec=
8659 hardcode_libdir_separator=
8660 hardcode_minus_L=no
8661 hardcode_shlibpath_var=unsupported
8662 inherit_rpath=no
8663 link_all_deplibs=unknown
8664 module_cmds=
8665 module_expsym_cmds=
8666 old_archive_from_new_cmds=
8667 old_archive_from_expsyms_cmds=
8668 thread_safe_flag_spec=
8669 whole_archive_flag_spec=
8670 # include_expsyms should be a list of space-separated symbols to be *always*
8671 # included in the symbol list
8672 include_expsyms=
8673 # exclude_expsyms can be an extended regexp of symbols to exclude
8674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8676 # as well as any symbol that contains `d'.
8677 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8679 # platforms (ab)use it in PIC code, but their linkers get confused if
8680 # the symbol is explicitly referenced. Since portable code cannot
8681 # rely on this symbol name, it's probably fine to never include it in
8682 # preloaded symbol tables.
8683 # Exclude shared library initialization/finalization symbols.
8684 extract_expsyms_cmds=
8685
8686 case $host_os in
8687 cygwin* | mingw* | pw32* | cegcc*)
8688 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8689 # When not using gcc, we currently assume that we are using
8690 # Microsoft Visual C++.
8691 if test "$GCC" != yes; then
8692 with_gnu_ld=no
8693 fi
8694 ;;
8695 interix*)
8696 # we just hope/assume this is gcc and not c89 (= MSVC++)
8697 with_gnu_ld=yes
8698 ;;
8699 openbsd*)
8700 with_gnu_ld=no
8701 ;;
8702 linux* | k*bsd*-gnu | gnu*)
8703 link_all_deplibs=no
8704 ;;
8705 esac
8706
8707 ld_shlibs=yes
8708
8709 # On some targets, GNU ld is compatible enough with the native linker
8710 # that we're better off using the native interface for both.
8711 lt_use_gnu_ld_interface=no
8712 if test "$with_gnu_ld" = yes; then
8713 case $host_os in
8714 aix*)
8715 # The AIX port of GNU ld has always aspired to compatibility
8716 # with the native linker. However, as the warning in the GNU ld
8717 # block says, versions before 2.19.5* couldn't really create working
8718 # shared libraries, regardless of the interface used.
8719 case `$LD -v 2>&1` in
8720 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8721 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8722 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8723 *)
8724 lt_use_gnu_ld_interface=yes
8725 ;;
8726 esac
8727 ;;
8728 *)
8729 lt_use_gnu_ld_interface=yes
8730 ;;
8731 esac
8732 fi
8733
8734 if test "$lt_use_gnu_ld_interface" = yes; then
8735 # If archive_cmds runs LD, not CC, wlarc should be empty
8736 wlarc='${wl}'
8737
8738 # Set some defaults for GNU ld with shared library support. These
8739 # are reset later if shared libraries are not supported. Putting them
8740 # here allows them to be overridden if necessary.
8741 runpath_var=LD_RUN_PATH
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 export_dynamic_flag_spec='${wl}--export-dynamic'
8744 # ancient GNU ld didn't support --whole-archive et. al.
8745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8747 else
8748 whole_archive_flag_spec=
8749 fi
8750 supports_anon_versioning=no
8751 case `$LD -v 2>&1` in
8752 *GNU\ gold*) supports_anon_versioning=yes ;;
8753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8756 *\ 2.11.*) ;; # other 2.11 versions
8757 *) supports_anon_versioning=yes ;;
8758 esac
8759
8760 # See if GNU ld supports shared libraries.
8761 case $host_os in
8762 aix[3-9]*)
8763 # On AIX/PPC, the GNU linker is very broken
8764 if test "$host_cpu" != ia64; then
8765 ld_shlibs=no
8766 cat <<_LT_EOF 1>&2
8767
8768*** Warning: the GNU linker, at least up to release 2.19, is reported
8769*** to be unable to reliably create shared libraries on AIX.
8770*** Therefore, libtool is disabling shared libraries support. If you
8771*** really care for shared libraries, you may want to install binutils
8772*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8773*** You will then need to restart the configuration process.
8774
8775_LT_EOF
8776 fi
8777 ;;
8778
8779 amigaos*)
8780 case $host_cpu in
8781 powerpc)
8782 # see comment about AmigaOS4 .so support
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds=''
8785 ;;
8786 m68k)
8787 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)'
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_minus_L=yes
8790 ;;
8791 esac
8792 ;;
8793
8794 beos*)
8795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796 allow_undefined_flag=unsupported
8797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8798 # support --undefined. This deserves some investigation. FIXME
8799 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800 else
8801 ld_shlibs=no
8802 fi
8803 ;;
8804
8805 cygwin* | mingw* | pw32* | cegcc*)
8806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8807 # as there is no search path for DLLs.
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 export_dynamic_flag_spec='${wl}--export-all-symbols'
8810 allow_undefined_flag=unsupported
8811 always_export_symbols=no
8812 enable_shared_with_static_runtimes=yes
8813 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'
8814 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8815
8816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8818 # If the export-symbols file already is a .def file (1st line
8819 # is EXPORTS), use it as is; otherwise, prepend...
8820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8821 cp $export_symbols $output_objdir/$soname.def;
8822 else
8823 echo EXPORTS > $output_objdir/$soname.def;
8824 cat $export_symbols >> $output_objdir/$soname.def;
8825 fi~
8826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8827 else
8828 ld_shlibs=no
8829 fi
8830 ;;
8831
8832 haiku*)
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 link_all_deplibs=yes
8835 ;;
8836
8837 interix[3-9]*)
8838 hardcode_direct=no
8839 hardcode_shlibpath_var=no
8840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8841 export_dynamic_flag_spec='${wl}-E'
8842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8843 # Instead, shared libraries are loaded at an image base (0x10000000 by
8844 # default) and relocated if they conflict, which is a slow very memory
8845 # consuming and fragmenting process. To avoid this, we pick a random,
8846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8849 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'
8850 ;;
8851
8852 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8853 tmp_diet=no
8854 if test "$host_os" = linux-dietlibc; then
8855 case $cc_basename in
8856 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8857 esac
8858 fi
8859 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8860 && test "$tmp_diet" = no
8861 then
8862 tmp_addflag=' $pic_flag'
8863 tmp_sharedflag='-shared'
8864 case $cc_basename,$host_cpu in
8865 pgcc*) # Portland Group C compiler
8866 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'
8867 tmp_addflag=' $pic_flag'
8868 ;;
8869 pgf77* | pgf90* | pgf95* | pgfortran*)
8870 # Portland Group f77 and f90 compilers
8871 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'
8872 tmp_addflag=' $pic_flag -Mnomain' ;;
8873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8874 tmp_addflag=' -i_dynamic' ;;
8875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8876 tmp_addflag=' -i_dynamic -nofor_main' ;;
8877 ifc* | ifort*) # Intel Fortran compiler
8878 tmp_addflag=' -nofor_main' ;;
8879 lf95*) # Lahey Fortran 8.1
8880 whole_archive_flag_spec=
8881 tmp_sharedflag='--shared' ;;
8882 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8883 tmp_sharedflag='-qmkshrobj'
8884 tmp_addflag= ;;
8885 nvcc*) # Cuda Compiler Driver 2.2
8886 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'
8887 compiler_needs_object=yes
8888 ;;
8889 esac
8890 case `$CC -V 2>&1 | sed 5q` in
8891 *Sun\ C*) # Sun C 5.9
8892 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'
8893 compiler_needs_object=yes
8894 tmp_sharedflag='-G' ;;
8895 *Sun\ F*) # Sun Fortran 8.3
8896 tmp_sharedflag='-G' ;;
8897 esac
8898 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899
8900 if test "x$supports_anon_versioning" = xyes; then
8901 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8903 echo "local: *; };" >> $output_objdir/$libname.ver~
8904 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8905 fi
8906
8907 case $cc_basename in
8908 xlf* | bgf* | bgxlf* | mpixlf*)
8909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8912 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8913 if test "x$supports_anon_versioning" = xyes; then
8914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916 echo "local: *; };" >> $output_objdir/$libname.ver~
8917 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8918 fi
8919 ;;
8920 esac
8921 else
8922 ld_shlibs=no
8923 fi
8924 ;;
8925
8926 netbsd* | netbsdelf*-gnu)
8927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8929 wlarc=
8930 else
8931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8933 fi
8934 ;;
8935
8936 solaris*)
8937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8938 ld_shlibs=no
8939 cat <<_LT_EOF 1>&2
8940
8941*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8942*** create shared libraries on Solaris systems. Therefore, libtool
8943*** is disabling shared libraries support. We urge you to upgrade GNU
8944*** binutils to release 2.9.1 or newer. Another option is to modify
8945*** your PATH or compiler configuration so that the native linker is
8946*** used, and then restart.
8947
8948_LT_EOF
8949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8952 else
8953 ld_shlibs=no
8954 fi
8955 ;;
8956
8957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8958 case `$LD -v 2>&1` in
8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8960 ld_shlibs=no
8961 cat <<_LT_EOF 1>&2
8962
8963*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8964*** reliably create shared libraries on SCO systems. Therefore, libtool
8965*** is disabling shared libraries support. We urge you to upgrade GNU
8966*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8967*** your PATH or compiler configuration so that the native linker is
8968*** used, and then restart.
8969
8970_LT_EOF
8971 ;;
8972 *)
8973 # For security reasons, it is highly recommended that you always
8974 # use absolute paths for naming shared libraries, and exclude the
8975 # DT_RUNPATH tag from executables and libraries. But doing so
8976 # requires that you compile everything twice, which is a pain.
8977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 else
8982 ld_shlibs=no
8983 fi
8984 ;;
8985 esac
8986 ;;
8987
8988 sunos4*)
8989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8990 wlarc=
8991 hardcode_direct=yes
8992 hardcode_shlibpath_var=no
8993 ;;
8994
8995 *)
8996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003 esac
9004
9005 if test "$ld_shlibs" = no; then
9006 runpath_var=
9007 hardcode_libdir_flag_spec=
9008 export_dynamic_flag_spec=
9009 whole_archive_flag_spec=
9010 fi
9011 else
9012 # PORTME fill in a description of your system's linker (not GNU ld)
9013 case $host_os in
9014 aix3*)
9015 allow_undefined_flag=unsupported
9016 always_export_symbols=yes
9017 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'
9018 # Note: this linker hardcodes the directories in LIBPATH if there
9019 # are no directories specified by -L.
9020 hardcode_minus_L=yes
9021 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9022 # Neither direct hardcoding nor static linking is supported with a
9023 # broken collect2.
9024 hardcode_direct=unsupported
9025 fi
9026 ;;
9027
9028 aix[4-9]*)
9029 if test "$host_cpu" = ia64; then
9030 # On IA64, the linker does run time linking by default, so we don't
9031 # have to do anything special.
9032 aix_use_runtimelinking=no
9033 exp_sym_flag='-Bexport'
9034 no_entry_flag=""
9035 else
9036 # If we're using GNU nm, then we don't want the "-C" option.
9037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9038 # Also, AIX nm treats weak defined symbols like other global
9039 # defined symbols, whereas GNU nm marks them as "W".
9040 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9041 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'
9042 else
9043 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'
9044 fi
9045 aix_use_runtimelinking=no
9046
9047 # Test if we are trying to use run time linking or normal
9048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9049 # need to do runtime linking.
9050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9051 for ld_flag in $LDFLAGS; do
9052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9053 aix_use_runtimelinking=yes
9054 break
9055 fi
9056 done
9057 ;;
9058 esac
9059
9060 exp_sym_flag='-bexport'
9061 no_entry_flag='-bnoentry'
9062 fi
9063
9064 # When large executables or shared objects are built, AIX ld can
9065 # have problems creating the table of contents. If linking a library
9066 # or program results in "error TOC overflow" add -mminimal-toc to
9067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9069
9070 archive_cmds=''
9071 hardcode_direct=yes
9072 hardcode_direct_absolute=yes
9073 hardcode_libdir_separator=':'
9074 link_all_deplibs=yes
9075 file_list_spec='${wl}-f,'
9076
9077 if test "$GCC" = yes; then
9078 case $host_os in aix4.[012]|aix4.[012].*)
9079 # We only want to do this on AIX 4.2 and lower, the check
9080 # below for broken collect2 doesn't work under 4.3+
9081 collect2name=`${CC} -print-prog-name=collect2`
9082 if test -f "$collect2name" &&
9083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9084 then
9085 # We have reworked collect2
9086 :
9087 else
9088 # We have old collect2
9089 hardcode_direct=unsupported
9090 # It fails to find uninstalled libraries when the uninstalled
9091 # path is not listed in the libpath. Setting hardcode_minus_L
9092 # to unsupported forces relinking
9093 hardcode_minus_L=yes
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_libdir_separator=
9096 fi
9097 ;;
9098 esac
9099 shared_flag='-shared'
9100 if test "$aix_use_runtimelinking" = yes; then
9101 shared_flag="$shared_flag "'${wl}-G'
9102 fi
9103 link_all_deplibs=no
9104 else
9105 # not using gcc
9106 if test "$host_cpu" = ia64; then
9107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9108 # chokes on -Wl,-G. The following line is correct:
9109 shared_flag='-G'
9110 else
9111 if test "$aix_use_runtimelinking" = yes; then
9112 shared_flag='${wl}-G'
9113 else
9114 shared_flag='${wl}-bM:SRE'
9115 fi
9116 fi
9117 fi
9118
9119 export_dynamic_flag_spec='${wl}-bexpall'
9120 # It seems that -bexpall does not export symbols beginning with
9121 # underscore (_), so it is better to generate a list of symbols to export.
9122 always_export_symbols=yes
9123 if test "$aix_use_runtimelinking" = yes; then
9124 # Warning - without using the other runtime loading flags (-brtl),
9125 # -berok will link without error, but may produce a broken library.
9126 allow_undefined_flag='-berok'
9127 # Determine the default libpath from the value encoded in an
9128 # empty executable.
9129 if test "${lt_cv_aix_libpath+set}" = set; then
9130 aix_libpath=$lt_cv_aix_libpath
9131else
9132 if ${lt_cv_aix_libpath_+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134else
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136/* end confdefs.h. */
9137
9138int
9139main ()
9140{
9141
9142 ;
9143 return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_link "$LINENO"; then :
9147
9148 lt_aix_libpath_sed='
9149 /Import File Strings/,/^$/ {
9150 /^0/ {
9151 s/^0 *\([^ ]*\) *$/\1/
9152 p
9153 }
9154 }'
9155 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9156 # Check for a 64-bit object if we didn't find anything.
9157 if test -z "$lt_cv_aix_libpath_"; then
9158 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9159 fi
9160fi
9161rm -f core conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 if test -z "$lt_cv_aix_libpath_"; then
9164 lt_cv_aix_libpath_="/usr/lib:/lib"
9165 fi
9166
9167fi
9168
9169 aix_libpath=$lt_cv_aix_libpath_
9170fi
9171
9172 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9173 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"
9174 else
9175 if test "$host_cpu" = ia64; then
9176 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9177 allow_undefined_flag="-z nodefs"
9178 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"
9179 else
9180 # Determine the default libpath from the value encoded in an
9181 # empty executable.
9182 if test "${lt_cv_aix_libpath+set}" = set; then
9183 aix_libpath=$lt_cv_aix_libpath
9184else
9185 if ${lt_cv_aix_libpath_+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187else
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h. */
9190
9191int
9192main ()
9193{
9194
9195 ;
9196 return 0;
9197}
9198_ACEOF
9199if ac_fn_c_try_link "$LINENO"; then :
9200
9201 lt_aix_libpath_sed='
9202 /Import File Strings/,/^$/ {
9203 /^0/ {
9204 s/^0 *\([^ ]*\) *$/\1/
9205 p
9206 }
9207 }'
9208 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209 # Check for a 64-bit object if we didn't find anything.
9210 if test -z "$lt_cv_aix_libpath_"; then
9211 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212 fi
9213fi
9214rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 if test -z "$lt_cv_aix_libpath_"; then
9217 lt_cv_aix_libpath_="/usr/lib:/lib"
9218 fi
9219
9220fi
9221
9222 aix_libpath=$lt_cv_aix_libpath_
9223fi
9224
9225 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9226 # Warning - without using the other run time loading flags,
9227 # -berok will link without error, but may produce a broken library.
9228 no_undefined_flag=' ${wl}-bernotok'
9229 allow_undefined_flag=' ${wl}-berok'
9230 if test "$with_gnu_ld" = yes; then
9231 # We only use this code for GNU lds that support --whole-archive.
9232 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9233 else
9234 # Exported symbols can be pulled into shared objects from archives
9235 whole_archive_flag_spec='$convenience'
9236 fi
9237 archive_cmds_need_lc=yes
9238 # This is similar to how AIX traditionally builds its shared libraries.
9239 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'
9240 fi
9241 fi
9242 ;;
9243
9244 amigaos*)
9245 case $host_cpu in
9246 powerpc)
9247 # see comment about AmigaOS4 .so support
9248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249 archive_expsym_cmds=''
9250 ;;
9251 m68k)
9252 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)'
9253 hardcode_libdir_flag_spec='-L$libdir'
9254 hardcode_minus_L=yes
9255 ;;
9256 esac
9257 ;;
9258
9259 bsdi[45]*)
9260 export_dynamic_flag_spec=-rdynamic
9261 ;;
9262
9263 cygwin* | mingw* | pw32* | cegcc*)
9264 # When not using gcc, we currently assume that we are using
9265 # Microsoft Visual C++.
9266 # hardcode_libdir_flag_spec is actually meaningless, as there is
9267 # no search path for DLLs.
9268 case $cc_basename in
9269 cl*)
9270 # Native MSVC
9271 hardcode_libdir_flag_spec=' '
9272 allow_undefined_flag=unsupported
9273 always_export_symbols=yes
9274 file_list_spec='@'
9275 # Tell ltmain to make .lib files, not .a files.
9276 libext=lib
9277 # Tell ltmain to make .dll files, not .so files.
9278 shrext_cmds=".dll"
9279 # FIXME: Setting linknames here is a bad hack.
9280 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9281 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9282 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9283 else
9284 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9285 fi~
9286 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9287 linknames='
9288 # The linker will not automatically build a static lib if we build a DLL.
9289 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9290 enable_shared_with_static_runtimes=yes
9291 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9293 # Don't use ranlib
9294 old_postinstall_cmds='chmod 644 $oldlib'
9295 postlink_cmds='lt_outputfile="@OUTPUT@"~
9296 lt_tool_outputfile="@TOOL_OUTPUT@"~
9297 case $lt_outputfile in
9298 *.exe|*.EXE) ;;
9299 *)
9300 lt_outputfile="$lt_outputfile.exe"
9301 lt_tool_outputfile="$lt_tool_outputfile.exe"
9302 ;;
9303 esac~
9304 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9306 $RM "$lt_outputfile.manifest";
9307 fi'
9308 ;;
9309 *)
9310 # Assume MSVC wrapper
9311 hardcode_libdir_flag_spec=' '
9312 allow_undefined_flag=unsupported
9313 # Tell ltmain to make .lib files, not .a files.
9314 libext=lib
9315 # Tell ltmain to make .dll files, not .so files.
9316 shrext_cmds=".dll"
9317 # FIXME: Setting linknames here is a bad hack.
9318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9319 # The linker will automatically build a .lib file if we build a DLL.
9320 old_archive_from_new_cmds='true'
9321 # FIXME: Should let the user specify the lib program.
9322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9323 enable_shared_with_static_runtimes=yes
9324 ;;
9325 esac
9326 ;;
9327
9328 darwin* | rhapsody*)
9329
9330
9331 archive_cmds_need_lc=no
9332 hardcode_direct=no
9333 hardcode_automatic=yes
9334 hardcode_shlibpath_var=unsupported
9335 if test "$lt_cv_ld_force_load" = "yes"; then
9336 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\"`'
9337
9338 else
9339 whole_archive_flag_spec=''
9340 fi
9341 link_all_deplibs=yes
9342 allow_undefined_flag="$_lt_dar_allow_undefined"
9343 case $cc_basename in
9344 ifort*) _lt_dar_can_shared=yes ;;
9345 *) _lt_dar_can_shared=$GCC ;;
9346 esac
9347 if test "$_lt_dar_can_shared" = "yes"; then
9348 output_verbose_link_cmd=func_echo_all
9349 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9350 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9351 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}"
9352 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}"
9353
9354 else
9355 ld_shlibs=no
9356 fi
9357
9358 ;;
9359
9360 dgux*)
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_shlibpath_var=no
9364 ;;
9365
9366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9367 # support. Future versions do this automatically, but an explicit c++rt0.o
9368 # does not break anything, and helps significantly (at the cost of a little
9369 # extra space).
9370 freebsd2.2*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9378 freebsd2.*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=yes
9381 hardcode_minus_L=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9386 freebsd* | dragonfly*)
9387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 hpux9*)
9394 if test "$GCC" = yes; then
9395 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'
9396 else
9397 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'
9398 fi
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_separator=:
9401 hardcode_direct=yes
9402
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 export_dynamic_flag_spec='${wl}-E'
9407 ;;
9408
9409 hpux10*)
9410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9411 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9414 fi
9415 if test "$with_gnu_ld" = no; then
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_separator=:
9418 hardcode_direct=yes
9419 hardcode_direct_absolute=yes
9420 export_dynamic_flag_spec='${wl}-E'
9421 # hardcode_minus_L: Not really in the search PATH,
9422 # but as the default location of the library.
9423 hardcode_minus_L=yes
9424 fi
9425 ;;
9426
9427 hpux11*)
9428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9429 case $host_cpu in
9430 hppa*64*)
9431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 ;;
9433 ia64*)
9434 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435 ;;
9436 *)
9437 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9438 ;;
9439 esac
9440 else
9441 case $host_cpu in
9442 hppa*64*)
9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9444 ;;
9445 ia64*)
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9447 ;;
9448 *)
9449
9450 # Older versions of the 11.00 compiler do not understand -b yet
9451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9453$as_echo_n "checking if $CC understands -b... " >&6; }
9454if ${lt_cv_prog_compiler__b+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456else
9457 lt_cv_prog_compiler__b=no
9458 save_LDFLAGS="$LDFLAGS"
9459 LDFLAGS="$LDFLAGS -b"
9460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9462 # The linker can only warn and ignore the option if not recognized
9463 # So say no if there are warnings
9464 if test -s conftest.err; then
9465 # Append any errors to the config.log.
9466 cat conftest.err 1>&5
9467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9469 if diff conftest.exp conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler__b=yes
9471 fi
9472 else
9473 lt_cv_prog_compiler__b=yes
9474 fi
9475 fi
9476 $RM -r conftest*
9477 LDFLAGS="$save_LDFLAGS"
9478
9479fi
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9481$as_echo "$lt_cv_prog_compiler__b" >&6; }
9482
9483if test x"$lt_cv_prog_compiler__b" = xyes; then
9484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9485else
9486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9487fi
9488
9489 ;;
9490 esac
9491 fi
9492 if test "$with_gnu_ld" = no; then
9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9494 hardcode_libdir_separator=:
9495
9496 case $host_cpu in
9497 hppa*64*|ia64*)
9498 hardcode_direct=no
9499 hardcode_shlibpath_var=no
9500 ;;
9501 *)
9502 hardcode_direct=yes
9503 hardcode_direct_absolute=yes
9504 export_dynamic_flag_spec='${wl}-E'
9505
9506 # hardcode_minus_L: Not really in the search PATH,
9507 # but as the default location of the library.
9508 hardcode_minus_L=yes
9509 ;;
9510 esac
9511 fi
9512 ;;
9513
9514 irix5* | irix6* | nonstopux*)
9515 if test "$GCC" = yes; then
9516 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'
9517 # Try to use the -exported_symbol ld option, if it does not
9518 # work, assume that -exports_file does not work either and
9519 # implicitly export all symbols.
9520 # This should be the same for all languages, so no per-tag cache variable.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9522$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9523if ${lt_cv_irix_exported_symbol+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525else
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h. */
9530int foo (void) { return 0; }
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533 lt_cv_irix_exported_symbol=yes
9534else
9535 lt_cv_irix_exported_symbol=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LDFLAGS="$save_LDFLAGS"
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9542$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9543 if test "$lt_cv_irix_exported_symbol" = yes; then
9544 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'
9545 fi
9546 else
9547 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'
9548 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'
9549 fi
9550 archive_cmds_need_lc='no'
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 inherit_rpath=yes
9554 link_all_deplibs=yes
9555 ;;
9556
9557 netbsd* | netbsdelf*-gnu)
9558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9560 else
9561 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9562 fi
9563 hardcode_libdir_flag_spec='-R$libdir'
9564 hardcode_direct=yes
9565 hardcode_shlibpath_var=no
9566 ;;
9567
9568 newsos6)
9569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_direct=yes
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 hardcode_libdir_separator=:
9573 hardcode_shlibpath_var=no
9574 ;;
9575
9576 *nto* | *qnx*)
9577 ;;
9578
9579 openbsd*)
9580 if test -f /usr/libexec/ld.so; then
9581 hardcode_direct=yes
9582 hardcode_shlibpath_var=no
9583 hardcode_direct_absolute=yes
9584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9586 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9588 export_dynamic_flag_spec='${wl}-E'
9589 else
9590 case $host_os in
9591 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_libdir_flag_spec='-R$libdir'
9594 ;;
9595 *)
9596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9598 ;;
9599 esac
9600 fi
9601 else
9602 ld_shlibs=no
9603 fi
9604 ;;
9605
9606 os2*)
9607 hardcode_libdir_flag_spec='-L$libdir'
9608 hardcode_minus_L=yes
9609 allow_undefined_flag=unsupported
9610 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'
9611 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9612 ;;
9613
9614 osf3*)
9615 if test "$GCC" = yes; then
9616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9617 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'
9618 else
9619 allow_undefined_flag=' -expect_unresolved \*'
9620 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'
9621 fi
9622 archive_cmds_need_lc='no'
9623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624 hardcode_libdir_separator=:
9625 ;;
9626
9627 osf4* | osf5*) # as osf3* with the addition of -msym flag
9628 if test "$GCC" = yes; then
9629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9630 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'
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 else
9633 allow_undefined_flag=' -expect_unresolved \*'
9634 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'
9635 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~
9636 $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'
9637
9638 # Both c and cxx compiler support -rpath directly
9639 hardcode_libdir_flag_spec='-rpath $libdir'
9640 fi
9641 archive_cmds_need_lc='no'
9642 hardcode_libdir_separator=:
9643 ;;
9644
9645 solaris*)
9646 no_undefined_flag=' -z defs'
9647 if test "$GCC" = yes; then
9648 wlarc='${wl}'
9649 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $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'
9652 else
9653 case `$CC -V 2>&1` in
9654 *"Compilers 5.0"*)
9655 wlarc=''
9656 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9659 ;;
9660 *)
9661 wlarc='${wl}'
9662 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9664 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9665 ;;
9666 esac
9667 fi
9668 hardcode_libdir_flag_spec='-R$libdir'
9669 hardcode_shlibpath_var=no
9670 case $host_os in
9671 solaris2.[0-5] | solaris2.[0-5].*) ;;
9672 *)
9673 # The compiler driver will combine and reorder linker options,
9674 # but understands `-z linker_flag'. GCC discards it without `$wl',
9675 # but is careful enough not to reorder.
9676 # Supported since Solaris 2.6 (maybe 2.5.1?)
9677 if test "$GCC" = yes; then
9678 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9679 else
9680 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9681 fi
9682 ;;
9683 esac
9684 link_all_deplibs=yes
9685 ;;
9686
9687 sunos4*)
9688 if test "x$host_vendor" = xsequent; then
9689 # Use $CC to link under sequent, because it throws in some extra .o
9690 # files that make .init and .fini sections work.
9691 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9692 else
9693 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9694 fi
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_direct=yes
9697 hardcode_minus_L=yes
9698 hardcode_shlibpath_var=no
9699 ;;
9700
9701 sysv4)
9702 case $host_vendor in
9703 sni)
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_direct=yes # is this really true???
9706 ;;
9707 siemens)
9708 ## LD is ld it makes a PLAMLIB
9709 ## CC just makes a GrossModule.
9710 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9711 reload_cmds='$CC -r -o $output$reload_objs'
9712 hardcode_direct=no
9713 ;;
9714 motorola)
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9717 ;;
9718 esac
9719 runpath_var='LD_RUN_PATH'
9720 hardcode_shlibpath_var=no
9721 ;;
9722
9723 sysv4.3*)
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 export_dynamic_flag_spec='-Bexport'
9727 ;;
9728
9729 sysv4*MP*)
9730 if test -d /usr/nec; then
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_shlibpath_var=no
9733 runpath_var=LD_RUN_PATH
9734 hardcode_runpath_var=yes
9735 ld_shlibs=yes
9736 fi
9737 ;;
9738
9739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9740 no_undefined_flag='${wl}-z,text'
9741 archive_cmds_need_lc=no
9742 hardcode_shlibpath_var=no
9743 runpath_var='LD_RUN_PATH'
9744
9745 if test "$GCC" = yes; then
9746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 else
9749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 fi
9752 ;;
9753
9754 sysv5* | sco3.2v5* | sco5v6*)
9755 # Note: We can NOT use -z defs as we might desire, because we do not
9756 # link with -lc, and that would cause any symbols used from libc to
9757 # always be unresolved, which means just about no library would
9758 # ever link correctly. If we're not using GNU ld we use -z text
9759 # though, which does catch some bad symbols but isn't as heavy-handed
9760 # as -z defs.
9761 no_undefined_flag='${wl}-z,text'
9762 allow_undefined_flag='${wl}-z,nodefs'
9763 archive_cmds_need_lc=no
9764 hardcode_shlibpath_var=no
9765 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9766 hardcode_libdir_separator=':'
9767 link_all_deplibs=yes
9768 export_dynamic_flag_spec='${wl}-Bexport'
9769 runpath_var='LD_RUN_PATH'
9770
9771 if test "$GCC" = yes; then
9772 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 else
9775 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 fi
9778 ;;
9779
9780 uts4*)
9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_shlibpath_var=no
9784 ;;
9785
9786 *)
9787 ld_shlibs=no
9788 ;;
9789 esac
9790
9791 if test x$host_vendor = xsni; then
9792 case $host in
9793 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9794 export_dynamic_flag_spec='${wl}-Blargedynsym'
9795 ;;
9796 esac
9797 fi
9798 fi
9799
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9801$as_echo "$ld_shlibs" >&6; }
9802test "$ld_shlibs" = no && can_build_shared=no
9803
9804with_gnu_ld=$with_gnu_ld
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820#
9821# Do we need to explicitly link libc?
9822#
9823case "x$archive_cmds_need_lc" in
9824x|xyes)
9825 # Assume -lc should be added
9826 archive_cmds_need_lc=yes
9827
9828 if test "$enable_shared" = yes && test "$GCC" = yes; then
9829 case $archive_cmds in
9830 *'~'*)
9831 # FIXME: we may have to deal with multi-command sequences.
9832 ;;
9833 '$CC '*)
9834 # Test whether the compiler implicitly links with -lc since on some
9835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9836 # to ld, don't add -lc before -lgcc.
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9838$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9839if ${lt_cv_archive_cmds_need_lc+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841else
9842 $RM conftest*
9843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9844
9845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9846 (eval $ac_compile) 2>&5
9847 ac_status=$?
9848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9849 test $ac_status = 0; } 2>conftest.err; then
9850 soname=conftest
9851 lib=conftest
9852 libobjs=conftest.$ac_objext
9853 deplibs=
9854 wl=$lt_prog_compiler_wl
9855 pic_flag=$lt_prog_compiler_pic
9856 compiler_flags=-v
9857 linker_flags=-v
9858 verstring=
9859 output_objdir=.
9860 libname=conftest
9861 lt_save_allow_undefined_flag=$allow_undefined_flag
9862 allow_undefined_flag=
9863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9864 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9865 ac_status=$?
9866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867 test $ac_status = 0; }
9868 then
9869 lt_cv_archive_cmds_need_lc=no
9870 else
9871 lt_cv_archive_cmds_need_lc=yes
9872 fi
9873 allow_undefined_flag=$lt_save_allow_undefined_flag
9874 else
9875 cat conftest.err 1>&5
9876 fi
9877 $RM conftest*
9878
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9881$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9882 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9883 ;;
9884 esac
9885 fi
9886 ;;
9887esac
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10041$as_echo_n "checking dynamic linker characteristics... " >&6; }
10042
10043if test "$GCC" = yes; then
10044 case $host_os in
10045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10046 *) lt_awk_arg="/^libraries:/" ;;
10047 esac
10048 case $host_os in
10049 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10050 *) lt_sed_strip_eq="s,=/,/,g" ;;
10051 esac
10052 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10053 case $lt_search_path_spec in
10054 *\;*)
10055 # if the path contains ";" then we assume it to be the separator
10056 # otherwise default to the standard path separator (i.e. ":") - it is
10057 # assumed that no part of a normal pathname contains ";" but that should
10058 # okay in the real world where ";" in dirpaths is itself problematic.
10059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10060 ;;
10061 *)
10062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10063 ;;
10064 esac
10065 # Ok, now we have the path, separated by spaces, we can step through it
10066 # and add multilib dir if necessary.
10067 lt_tmp_lt_search_path_spec=
10068 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10069 for lt_sys_path in $lt_search_path_spec; do
10070 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10071 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10072 else
10073 test -d "$lt_sys_path" && \
10074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10075 fi
10076 done
10077 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10078BEGIN {RS=" "; FS="/|\n";} {
10079 lt_foo="";
10080 lt_count=0;
10081 for (lt_i = NF; lt_i > 0; lt_i--) {
10082 if ($lt_i != "" && $lt_i != ".") {
10083 if ($lt_i == "..") {
10084 lt_count++;
10085 } else {
10086 if (lt_count == 0) {
10087 lt_foo="/" $lt_i lt_foo;
10088 } else {
10089 lt_count--;
10090 }
10091 }
10092 }
10093 }
10094 if (lt_foo != "") { lt_freq[lt_foo]++; }
10095 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10096}'`
10097 # AWK program above erroneously prepends '/' to C:/dos/paths
10098 # for these hosts.
10099 case $host_os in
10100 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10101 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10102 esac
10103 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10104else
10105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10106fi
10107library_names_spec=
10108libname_spec='lib$name'
10109soname_spec=
10110shrext_cmds=".so"
10111postinstall_cmds=
10112postuninstall_cmds=
10113finish_cmds=
10114finish_eval=
10115shlibpath_var=
10116shlibpath_overrides_runpath=unknown
10117version_type=none
10118dynamic_linker="$host_os ld.so"
10119sys_lib_dlsearch_path_spec="/lib /usr/lib"
10120need_lib_prefix=unknown
10121hardcode_into_libs=no
10122
10123# when you set need_version to no, make sure it does not cause -set_version
10124# flags to be left without arguments
10125need_version=unknown
10126
10127case $host_os in
10128aix3*)
10129 version_type=linux # correct to gnu/linux during the next big refactor
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10131 shlibpath_var=LIBPATH
10132
10133 # AIX 3 has no versioning support, so we append a major version to the name.
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 ;;
10136
10137aix[4-9]*)
10138 version_type=linux # correct to gnu/linux during the next big refactor
10139 need_lib_prefix=no
10140 need_version=no
10141 hardcode_into_libs=yes
10142 if test "$host_cpu" = ia64; then
10143 # AIX 5 supports IA64
10144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 else
10147 # With GCC up to 2.95.x, collect2 would create an import file
10148 # for dependence libraries. The import file would start with
10149 # the line `#! .'. This would cause the generated library to
10150 # depend on `.', always an invalid library. This was fixed in
10151 # development snapshots of GCC prior to 3.0.
10152 case $host_os in
10153 aix4 | aix4.[01] | aix4.[01].*)
10154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10155 echo ' yes '
10156 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10157 :
10158 else
10159 can_build_shared=no
10160 fi
10161 ;;
10162 esac
10163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10164 # soname into executable. Probably we can add versioning support to
10165 # collect2, so additional links can be useful in future.
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10168 # instead of lib<name>.a to let people know that these are not
10169 # typical AIX shared libraries.
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 else
10172 # We preserve .a as extension for shared libraries through AIX4.2
10173 # and later when we are not doing run time linking.
10174 library_names_spec='${libname}${release}.a $libname.a'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 fi
10177 shlibpath_var=LIBPATH
10178 fi
10179 ;;
10180
10181amigaos*)
10182 case $host_cpu in
10183 powerpc)
10184 # Since July 2007 AmigaOS4 officially supports .so libraries.
10185 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 ;;
10188 m68k)
10189 library_names_spec='$libname.ixlibrary $libname.a'
10190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10191 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'
10192 ;;
10193 esac
10194 ;;
10195
10196beos*)
10197 library_names_spec='${libname}${shared_ext}'
10198 dynamic_linker="$host_os ld.so"
10199 shlibpath_var=LIBRARY_PATH
10200 ;;
10201
10202bsdi[45]*)
10203 version_type=linux # correct to gnu/linux during the next big refactor
10204 need_version=no
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10211 # the default ld.so.conf also contains /usr/contrib/lib and
10212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10213 # libtool to hard-code these into programs
10214 ;;
10215
10216cygwin* | mingw* | pw32* | cegcc*)
10217 version_type=windows
10218 shrext_cmds=".dll"
10219 need_version=no
10220 need_lib_prefix=no
10221
10222 case $GCC,$cc_basename in
10223 yes,*)
10224 # gcc
10225 library_names_spec='$libname.dll.a'
10226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10227 postinstall_cmds='base_file=`basename \${file}`~
10228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10229 dldir=$destdir/`dirname \$dlpath`~
10230 test -d \$dldir || mkdir -p \$dldir~
10231 $install_prog $dir/$dlname \$dldir/$dlname~
10232 chmod a+x \$dldir/$dlname~
10233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10235 fi'
10236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10237 dlpath=$dir/\$dldll~
10238 $RM \$dlpath'
10239 shlibpath_overrides_runpath=yes
10240
10241 case $host_os in
10242 cygwin*)
10243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245
10246 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10247 ;;
10248 mingw* | cegcc*)
10249 # MinGW DLLs use traditional 'lib' prefix
10250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10251 ;;
10252 pw32*)
10253 # pw32 DLLs use 'pw' prefix rather than 'lib'
10254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255 ;;
10256 esac
10257 dynamic_linker='Win32 ld.exe'
10258 ;;
10259
10260 *,cl*)
10261 # Native MSVC
10262 libname_spec='$name'
10263 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10264 library_names_spec='${libname}.dll.lib'
10265
10266 case $build_os in
10267 mingw*)
10268 sys_lib_search_path_spec=
10269 lt_save_ifs=$IFS
10270 IFS=';'
10271 for lt_path in $LIB
10272 do
10273 IFS=$lt_save_ifs
10274 # Let DOS variable expansion print the short 8.3 style file name.
10275 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10276 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10277 done
10278 IFS=$lt_save_ifs
10279 # Convert to MSYS style.
10280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10281 ;;
10282 cygwin*)
10283 # Convert to unix form, then to dos form, then back to unix form
10284 # but this time dos style (no spaces!) so that the unix form looks
10285 # like /cygdrive/c/PROGRA~1:/cygdr...
10286 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10287 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10288 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10289 ;;
10290 *)
10291 sys_lib_search_path_spec="$LIB"
10292 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10293 # It is most probably a Windows format PATH.
10294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10295 else
10296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10297 fi
10298 # FIXME: find the short name or the path components, as spaces are
10299 # common. (e.g. "Program Files" -> "PROGRA~1")
10300 ;;
10301 esac
10302
10303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10304 postinstall_cmds='base_file=`basename \${file}`~
10305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10306 dldir=$destdir/`dirname \$dlpath`~
10307 test -d \$dldir || mkdir -p \$dldir~
10308 $install_prog $dir/$dlname \$dldir/$dlname'
10309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10310 dlpath=$dir/\$dldll~
10311 $RM \$dlpath'
10312 shlibpath_overrides_runpath=yes
10313 dynamic_linker='Win32 link.exe'
10314 ;;
10315
10316 *)
10317 # Assume MSVC wrapper
10318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10319 dynamic_linker='Win32 ld.exe'
10320 ;;
10321 esac
10322 # FIXME: first we should search . and the directory the executable is in
10323 shlibpath_var=PATH
10324 ;;
10325
10326darwin* | rhapsody*)
10327 dynamic_linker="$host_os dyld"
10328 version_type=darwin
10329 need_lib_prefix=no
10330 need_version=no
10331 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10332 soname_spec='${libname}${release}${major}$shared_ext'
10333 shlibpath_overrides_runpath=yes
10334 shlibpath_var=DYLD_LIBRARY_PATH
10335 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10336
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10339 ;;
10340
10341dgux*)
10342 version_type=linux # correct to gnu/linux during the next big refactor
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 ;;
10349
10350freebsd* | dragonfly*)
10351 # DragonFly does not have aout. When/if they implement a new
10352 # versioning mechanism, adjust this.
10353 if test -x /usr/bin/objformat; then
10354 objformat=`/usr/bin/objformat`
10355 else
10356 case $host_os in
10357 freebsd[23].*) objformat=aout ;;
10358 *) objformat=elf ;;
10359 esac
10360 fi
10361 version_type=freebsd-$objformat
10362 case $version_type in
10363 freebsd-elf*)
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 need_version=no
10366 need_lib_prefix=no
10367 ;;
10368 freebsd-*)
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10370 need_version=yes
10371 ;;
10372 esac
10373 shlibpath_var=LD_LIBRARY_PATH
10374 case $host_os in
10375 freebsd2.*)
10376 shlibpath_overrides_runpath=yes
10377 ;;
10378 freebsd3.[01]* | freebsdelf3.[01]*)
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10381 ;;
10382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10384 shlibpath_overrides_runpath=no
10385 hardcode_into_libs=yes
10386 ;;
10387 *) # from 4.6 on, and DragonFly
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 ;;
10391 esac
10392 ;;
10393
10394gnu*)
10395 version_type=linux # correct to gnu/linux during the next big refactor
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=no
10402 hardcode_into_libs=yes
10403 ;;
10404
10405haiku*)
10406 version_type=linux # correct to gnu/linux during the next big refactor
10407 need_lib_prefix=no
10408 need_version=no
10409 dynamic_linker="$host_os runtime_loader"
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LIBRARY_PATH
10413 shlibpath_overrides_runpath=yes
10414 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10415 hardcode_into_libs=yes
10416 ;;
10417
10418hpux9* | hpux10* | hpux11*)
10419 # Give a soname corresponding to the major version so that dld.sl refuses to
10420 # link against other versions.
10421 version_type=sunos
10422 need_lib_prefix=no
10423 need_version=no
10424 case $host_cpu in
10425 ia64*)
10426 shrext_cmds='.so'
10427 hardcode_into_libs=yes
10428 dynamic_linker="$host_os dld.so"
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 if test "X$HPUX_IA64_MODE" = X32; then
10434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10435 else
10436 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10437 fi
10438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10439 ;;
10440 hppa*64*)
10441 shrext_cmds='.sl'
10442 hardcode_into_libs=yes
10443 dynamic_linker="$host_os dld.sl"
10444 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10450 ;;
10451 *)
10452 shrext_cmds='.sl'
10453 dynamic_linker="$host_os dld.sl"
10454 shlibpath_var=SHLIB_PATH
10455 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 ;;
10459 esac
10460 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10461 postinstall_cmds='chmod 555 $lib'
10462 # or fails outright, so override atomically:
10463 install_override_mode=555
10464 ;;
10465
10466interix[3-9]*)
10467 version_type=linux # correct to gnu/linux during the next big refactor
10468 need_lib_prefix=no
10469 need_version=no
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=no
10475 hardcode_into_libs=yes
10476 ;;
10477
10478irix5* | irix6* | nonstopux*)
10479 case $host_os in
10480 nonstopux*) version_type=nonstopux ;;
10481 *)
10482 if test "$lt_cv_prog_gnu_ld" = yes; then
10483 version_type=linux # correct to gnu/linux during the next big refactor
10484 else
10485 version_type=irix
10486 fi ;;
10487 esac
10488 need_lib_prefix=no
10489 need_version=no
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10492 case $host_os in
10493 irix5* | nonstopux*)
10494 libsuff= shlibsuff=
10495 ;;
10496 *)
10497 case $LD in # libtool.m4 will add one of these switches to LD
10498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10499 libsuff= shlibsuff= libmagic=32-bit;;
10500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10501 libsuff=32 shlibsuff=N32 libmagic=N32;;
10502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10504 *) libsuff= shlibsuff= libmagic=never-match;;
10505 esac
10506 ;;
10507 esac
10508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10509 shlibpath_overrides_runpath=no
10510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10512 hardcode_into_libs=yes
10513 ;;
10514
10515# No shared lib support for Linux oldld, aout, or coff.
10516linux*oldld* | linux*aout* | linux*coff*)
10517 dynamic_linker=no
10518 ;;
10519
10520# This must be glibc/ELF.
10521linux* | k*bsd*-gnu | kopensolaris*-gnu)
10522 version_type=linux # correct to gnu/linux during the next big refactor
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=no
10530
10531 # Some binutils ld are patched to set DT_RUNPATH
10532 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534else
10535 lt_cv_shlibpath_overrides_runpath=no
10536 save_LDFLAGS=$LDFLAGS
10537 save_libdir=$libdir
10538 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10539 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h. */
10542
10543int
10544main ()
10545{
10546
10547 ;
10548 return 0;
10549}
10550_ACEOF
10551if ac_fn_c_try_link "$LINENO"; then :
10552 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10553 lt_cv_shlibpath_overrides_runpath=yes
10554fi
10555fi
10556rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LDFLAGS=$save_LDFLAGS
10559 libdir=$save_libdir
10560
10561fi
10562
10563 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10564
10565 # This implies no fast_install, which is unacceptable.
10566 # Some rework will be needed to allow for fast_install
10567 # before this can be enabled.
10568 hardcode_into_libs=yes
10569
10570 # Append ld.so.conf contents to the search path
10571 if test -f /etc/ld.so.conf; then
10572 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' ' '`
10573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10574 fi
10575
10576 # We used to test for /lib/ld.so.1 and disable shared libraries on
10577 # powerpc, because MkLinux only supported shared libraries with the
10578 # GNU dynamic linker. Since this was broken with cross compilers,
10579 # most powerpc-linux boxes support dynamic linking these days and
10580 # people can always --disable-shared, the test was removed, and we
10581 # assume the GNU/Linux dynamic linker is in use.
10582 dynamic_linker='GNU/Linux ld.so'
10583 ;;
10584
10585netbsdelf*-gnu)
10586 version_type=linux
10587 need_lib_prefix=no
10588 need_version=no
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=no
10593 hardcode_into_libs=yes
10594 dynamic_linker='NetBSD ld.elf_so'
10595 ;;
10596
10597netbsd*)
10598 version_type=sunos
10599 need_lib_prefix=no
10600 need_version=no
10601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10604 dynamic_linker='NetBSD (a.out) ld.so'
10605 else
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 dynamic_linker='NetBSD ld.elf_so'
10609 fi
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 ;;
10614
10615newsos6)
10616 version_type=linux # correct to gnu/linux during the next big refactor
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 ;;
10621
10622*nto* | *qnx*)
10623 version_type=qnx
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=no
10630 hardcode_into_libs=yes
10631 dynamic_linker='ldqnx.so'
10632 ;;
10633
10634openbsd*)
10635 version_type=sunos
10636 sys_lib_dlsearch_path_spec="/usr/lib"
10637 need_lib_prefix=no
10638 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10639 case $host_os in
10640 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10641 *) need_version=no ;;
10642 esac
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10647 case $host_os in
10648 openbsd2.[89] | openbsd2.[89].*)
10649 shlibpath_overrides_runpath=no
10650 ;;
10651 *)
10652 shlibpath_overrides_runpath=yes
10653 ;;
10654 esac
10655 else
10656 shlibpath_overrides_runpath=yes
10657 fi
10658 ;;
10659
10660os2*)
10661 libname_spec='$name'
10662 shrext_cmds=".dll"
10663 need_lib_prefix=no
10664 library_names_spec='$libname${shared_ext} $libname.a'
10665 dynamic_linker='OS/2 ld.exe'
10666 shlibpath_var=LIBPATH
10667 ;;
10668
10669osf3* | osf4* | osf5*)
10670 version_type=osf
10671 need_lib_prefix=no
10672 need_version=no
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10678 ;;
10679
10680rdos*)
10681 dynamic_linker=no
10682 ;;
10683
10684solaris*)
10685 version_type=linux # correct to gnu/linux during the next big refactor
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath=yes
10692 hardcode_into_libs=yes
10693 # ldd complains unless libraries are executable
10694 postinstall_cmds='chmod +x $lib'
10695 ;;
10696
10697sunos4*)
10698 version_type=sunos
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath=yes
10703 if test "$with_gnu_ld" = yes; then
10704 need_lib_prefix=no
10705 fi
10706 need_version=yes
10707 ;;
10708
10709sysv4 | sysv4.3*)
10710 version_type=linux # correct to gnu/linux during the next big refactor
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 case $host_vendor in
10715 sni)
10716 shlibpath_overrides_runpath=no
10717 need_lib_prefix=no
10718 runpath_var=LD_RUN_PATH
10719 ;;
10720 siemens)
10721 need_lib_prefix=no
10722 ;;
10723 motorola)
10724 need_lib_prefix=no
10725 need_version=no
10726 shlibpath_overrides_runpath=no
10727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10728 ;;
10729 esac
10730 ;;
10731
10732sysv4*MP*)
10733 if test -d /usr/nec ;then
10734 version_type=linux # correct to gnu/linux during the next big refactor
10735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10736 soname_spec='$libname${shared_ext}.$major'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 fi
10739 ;;
10740
10741sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10742 version_type=freebsd-elf
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10750 if test "$with_gnu_ld" = yes; then
10751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10752 else
10753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10754 case $host_os in
10755 sco3.2v5*)
10756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10757 ;;
10758 esac
10759 fi
10760 sys_lib_dlsearch_path_spec='/usr/lib'
10761 ;;
10762
10763tpf*)
10764 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10765 version_type=linux # correct to gnu/linux during the next big refactor
10766 need_lib_prefix=no
10767 need_version=no
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=no
10771 hardcode_into_libs=yes
10772 ;;
10773
10774uts4*)
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 ;;
10780
10781*)
10782 dynamic_linker=no
10783 ;;
10784esac
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10786$as_echo "$dynamic_linker" >&6; }
10787test "$dynamic_linker" = no && can_build_shared=no
10788
10789variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10790if test "$GCC" = yes; then
10791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10792fi
10793
10794if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10796fi
10797if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10799fi
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10893$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10894hardcode_action=
10895if test -n "$hardcode_libdir_flag_spec" ||
10896 test -n "$runpath_var" ||
10897 test "X$hardcode_automatic" = "Xyes" ; then
10898
10899 # We can hardcode non-existent directories.
10900 if test "$hardcode_direct" != no &&
10901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10902 # have to relink, otherwise we might link with an installed library
10903 # when we should be linking with a yet-to-be-installed one
10904 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10905 test "$hardcode_minus_L" != no; then
10906 # Linking always hardcodes the temporary library directory.
10907 hardcode_action=relink
10908 else
10909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10910 hardcode_action=immediate
10911 fi
10912else
10913 # We cannot hardcode anything, or else we can only hardcode existing
10914 # directories.
10915 hardcode_action=unsupported
10916fi
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10918$as_echo "$hardcode_action" >&6; }
10919
10920if test "$hardcode_action" = relink ||
10921 test "$inherit_rpath" = yes; then
10922 # Fast installation is not supported
10923 enable_fast_install=no
10924elif test "$shlibpath_overrides_runpath" = yes ||
10925 test "$enable_shared" = no; then
10926 # Fast installation is not necessary
10927 enable_fast_install=needless
10928fi
10929
10930
10931
10932
10933
10934
10935 if test "x$enable_dlopen" != xyes; then
10936 enable_dlopen=unknown
10937 enable_dlopen_self=unknown
10938 enable_dlopen_self_static=unknown
10939else
10940 lt_cv_dlopen=no
10941 lt_cv_dlopen_libs=
10942
10943 case $host_os in
10944 beos*)
10945 lt_cv_dlopen="load_add_on"
10946 lt_cv_dlopen_libs=
10947 lt_cv_dlopen_self=yes
10948 ;;
10949
10950 mingw* | pw32* | cegcc*)
10951 lt_cv_dlopen="LoadLibrary"
10952 lt_cv_dlopen_libs=
10953 ;;
10954
10955 cygwin*)
10956 lt_cv_dlopen="dlopen"
10957 lt_cv_dlopen_libs=
10958 ;;
10959
10960 darwin*)
10961 # if libdl is installed we need to link against it
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10963$as_echo_n "checking for dlopen in -ldl... " >&6; }
10964if ${ac_cv_lib_dl_dlopen+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966else
10967 ac_check_lib_save_LIBS=$LIBS
10968LIBS="-ldl $LIBS"
10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h. */
10971
10972/* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978char dlopen ();
10979int
10980main ()
10981{
10982return dlopen ();
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_lib_dl_dlopen=yes
10989else
10990 ac_cv_lib_dl_dlopen=no
10991fi
10992rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994LIBS=$ac_check_lib_save_LIBS
10995fi
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10997$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10998if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11000else
11001
11002 lt_cv_dlopen="dyld"
11003 lt_cv_dlopen_libs=
11004 lt_cv_dlopen_self=yes
11005
11006fi
11007
11008 ;;
11009
11010 *)
11011 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11012if test "x$ac_cv_func_shl_load" = xyes; then :
11013 lt_cv_dlopen="shl_load"
11014else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11016$as_echo_n "checking for shl_load in -ldld... " >&6; }
11017if ${ac_cv_lib_dld_shl_load+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019else
11020 ac_check_lib_save_LIBS=$LIBS
11021LIBS="-ldld $LIBS"
11022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023/* end confdefs.h. */
11024
11025/* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11028#ifdef __cplusplus
11029extern "C"
11030#endif
11031char shl_load ();
11032int
11033main ()
11034{
11035return shl_load ();
11036 ;
11037 return 0;
11038}
11039_ACEOF
11040if ac_fn_c_try_link "$LINENO"; then :
11041 ac_cv_lib_dld_shl_load=yes
11042else
11043 ac_cv_lib_dld_shl_load=no
11044fi
11045rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047LIBS=$ac_check_lib_save_LIBS
11048fi
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11050$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11051if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11052 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11053else
11054 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11055if test "x$ac_cv_func_dlopen" = xyes; then :
11056 lt_cv_dlopen="dlopen"
11057else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11059$as_echo_n "checking for dlopen in -ldl... " >&6; }
11060if ${ac_cv_lib_dl_dlopen+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062else
11063 ac_check_lib_save_LIBS=$LIBS
11064LIBS="-ldl $LIBS"
11065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h. */
11067
11068/* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11071#ifdef __cplusplus
11072extern "C"
11073#endif
11074char dlopen ();
11075int
11076main ()
11077{
11078return dlopen ();
11079 ;
11080 return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_dl_dlopen=yes
11085else
11086 ac_cv_lib_dl_dlopen=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090LIBS=$ac_check_lib_save_LIBS
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11093$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11094if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11098$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11099if ${ac_cv_lib_svld_dlopen+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 ac_check_lib_save_LIBS=$LIBS
11103LIBS="-lsvld $LIBS"
11104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h. */
11106
11107/* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113char dlopen ();
11114int
11115main ()
11116{
11117return dlopen ();
11118 ;
11119 return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"; then :
11123 ac_cv_lib_svld_dlopen=yes
11124else
11125 ac_cv_lib_svld_dlopen=no
11126fi
11127rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129LIBS=$ac_check_lib_save_LIBS
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11132$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11133if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11135else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11137$as_echo_n "checking for dld_link in -ldld... " >&6; }
11138if ${ac_cv_lib_dld_dld_link+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140else
11141 ac_check_lib_save_LIBS=$LIBS
11142LIBS="-ldld $LIBS"
11143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h. */
11145
11146/* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149#ifdef __cplusplus
11150extern "C"
11151#endif
11152char dld_link ();
11153int
11154main ()
11155{
11156return dld_link ();
11157 ;
11158 return 0;
11159}
11160_ACEOF
11161if ac_fn_c_try_link "$LINENO"; then :
11162 ac_cv_lib_dld_dld_link=yes
11163else
11164 ac_cv_lib_dld_dld_link=no
11165fi
11166rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168LIBS=$ac_check_lib_save_LIBS
11169fi
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11171$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11172if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11174fi
11175
11176
11177fi
11178
11179
11180fi
11181
11182
11183fi
11184
11185
11186fi
11187
11188
11189fi
11190
11191 ;;
11192 esac
11193
11194 if test "x$lt_cv_dlopen" != xno; then
11195 enable_dlopen=yes
11196 else
11197 enable_dlopen=no
11198 fi
11199
11200 case $lt_cv_dlopen in
11201 dlopen)
11202 save_CPPFLAGS="$CPPFLAGS"
11203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11204
11205 save_LDFLAGS="$LDFLAGS"
11206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11207
11208 save_LIBS="$LIBS"
11209 LIBS="$lt_cv_dlopen_libs $LIBS"
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11212$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11213if ${lt_cv_dlopen_self+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215else
11216 if test "$cross_compiling" = yes; then :
11217 lt_cv_dlopen_self=cross
11218else
11219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11220 lt_status=$lt_dlunknown
11221 cat > conftest.$ac_ext <<_LT_EOF
11222#line $LINENO "configure"
11223#include "confdefs.h"
11224
11225#if HAVE_DLFCN_H
11226#include <dlfcn.h>
11227#endif
11228
11229#include <stdio.h>
11230
11231#ifdef RTLD_GLOBAL
11232# define LT_DLGLOBAL RTLD_GLOBAL
11233#else
11234# ifdef DL_GLOBAL
11235# define LT_DLGLOBAL DL_GLOBAL
11236# else
11237# define LT_DLGLOBAL 0
11238# endif
11239#endif
11240
11241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11242 find out it does not work in some platform. */
11243#ifndef LT_DLLAZY_OR_NOW
11244# ifdef RTLD_LAZY
11245# define LT_DLLAZY_OR_NOW RTLD_LAZY
11246# else
11247# ifdef DL_LAZY
11248# define LT_DLLAZY_OR_NOW DL_LAZY
11249# else
11250# ifdef RTLD_NOW
11251# define LT_DLLAZY_OR_NOW RTLD_NOW
11252# else
11253# ifdef DL_NOW
11254# define LT_DLLAZY_OR_NOW DL_NOW
11255# else
11256# define LT_DLLAZY_OR_NOW 0
11257# endif
11258# endif
11259# endif
11260# endif
11261#endif
11262
11263/* When -fvisbility=hidden is used, assume the code has been annotated
11264 correspondingly for the symbols needed. */
11265#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11266int fnord () __attribute__((visibility("default")));
11267#endif
11268
11269int fnord () { return 42; }
11270int main ()
11271{
11272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11273 int status = $lt_dlunknown;
11274
11275 if (self)
11276 {
11277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11278 else
11279 {
11280 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11281 else puts (dlerror ());
11282 }
11283 /* dlclose (self); */
11284 }
11285 else
11286 puts (dlerror ());
11287
11288 return status;
11289}
11290_LT_EOF
11291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11292 (eval $ac_link) 2>&5
11293 ac_status=$?
11294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11296 (./conftest; exit; ) >&5 2>/dev/null
11297 lt_status=$?
11298 case x$lt_status in
11299 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11300 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11301 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11302 esac
11303 else :
11304 # compilation failed
11305 lt_cv_dlopen_self=no
11306 fi
11307fi
11308rm -fr conftest*
11309
11310
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11313$as_echo "$lt_cv_dlopen_self" >&6; }
11314
11315 if test "x$lt_cv_dlopen_self" = xyes; then
11316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11318$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11319if ${lt_cv_dlopen_self_static+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321else
11322 if test "$cross_compiling" = yes; then :
11323 lt_cv_dlopen_self_static=cross
11324else
11325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11326 lt_status=$lt_dlunknown
11327 cat > conftest.$ac_ext <<_LT_EOF
11328#line $LINENO "configure"
11329#include "confdefs.h"
11330
11331#if HAVE_DLFCN_H
11332#include <dlfcn.h>
11333#endif
11334
11335#include <stdio.h>
11336
11337#ifdef RTLD_GLOBAL
11338# define LT_DLGLOBAL RTLD_GLOBAL
11339#else
11340# ifdef DL_GLOBAL
11341# define LT_DLGLOBAL DL_GLOBAL
11342# else
11343# define LT_DLGLOBAL 0
11344# endif
11345#endif
11346
11347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11348 find out it does not work in some platform. */
11349#ifndef LT_DLLAZY_OR_NOW
11350# ifdef RTLD_LAZY
11351# define LT_DLLAZY_OR_NOW RTLD_LAZY
11352# else
11353# ifdef DL_LAZY
11354# define LT_DLLAZY_OR_NOW DL_LAZY
11355# else
11356# ifdef RTLD_NOW
11357# define LT_DLLAZY_OR_NOW RTLD_NOW
11358# else
11359# ifdef DL_NOW
11360# define LT_DLLAZY_OR_NOW DL_NOW
11361# else
11362# define LT_DLLAZY_OR_NOW 0
11363# endif
11364# endif
11365# endif
11366# endif
11367#endif
11368
11369/* When -fvisbility=hidden is used, assume the code has been annotated
11370 correspondingly for the symbols needed. */
11371#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11372int fnord () __attribute__((visibility("default")));
11373#endif
11374
11375int fnord () { return 42; }
11376int main ()
11377{
11378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11379 int status = $lt_dlunknown;
11380
11381 if (self)
11382 {
11383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11384 else
11385 {
11386 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11387 else puts (dlerror ());
11388 }
11389 /* dlclose (self); */
11390 }
11391 else
11392 puts (dlerror ());
11393
11394 return status;
11395}
11396_LT_EOF
11397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11398 (eval $ac_link) 2>&5
11399 ac_status=$?
11400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11401 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11402 (./conftest; exit; ) >&5 2>/dev/null
11403 lt_status=$?
11404 case x$lt_status in
11405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11408 esac
11409 else :
11410 # compilation failed
11411 lt_cv_dlopen_self_static=no
11412 fi
11413fi
11414rm -fr conftest*
11415
11416
11417fi
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11419$as_echo "$lt_cv_dlopen_self_static" >&6; }
11420 fi
11421
11422 CPPFLAGS="$save_CPPFLAGS"
11423 LDFLAGS="$save_LDFLAGS"
11424 LIBS="$save_LIBS"
11425 ;;
11426 esac
11427
11428 case $lt_cv_dlopen_self in
11429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430 *) enable_dlopen_self=unknown ;;
11431 esac
11432
11433 case $lt_cv_dlopen_self_static in
11434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435 *) enable_dlopen_self_static=unknown ;;
11436 esac
11437fi
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455striplib=
11456old_striplib=
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11458$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11459if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11460 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11461 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463$as_echo "yes" >&6; }
11464else
11465# FIXME - insert some real tests, host_os isn't really good enough
11466 case $host_os in
11467 darwin*)
11468 if test -n "$STRIP" ; then
11469 striplib="$STRIP -x"
11470 old_striplib="$STRIP -S"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472$as_echo "yes" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475$as_echo "no" >&6; }
11476 fi
11477 ;;
11478 *)
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
11481 ;;
11482 esac
11483fi
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496 # Report which library types will actually be built
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11498$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11500$as_echo "$can_build_shared" >&6; }
11501
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11503$as_echo_n "checking whether to build shared libraries... " >&6; }
11504 test "$can_build_shared" = "no" && enable_shared=no
11505
11506 # On AIX, shared libraries and static libraries use the same namespace, and
11507 # are all built from PIC.
11508 case $host_os in
11509 aix3*)
11510 test "$enable_shared" = yes && enable_static=no
11511 if test -n "$RANLIB"; then
11512 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11513 postinstall_cmds='$RANLIB $lib'
11514 fi
11515 ;;
11516
11517 aix[4-9]*)
11518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11519 test "$enable_shared" = yes && enable_static=no
11520 fi
11521 ;;
11522 esac
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11524$as_echo "$enable_shared" >&6; }
11525
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11527$as_echo_n "checking whether to build static libraries... " >&6; }
11528 # Make sure either enable_shared or enable_static is yes.
11529 test "$enable_shared" = yes || enable_static=yes
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11531$as_echo "$enable_static" >&6; }
11532
11533
11534
11535
11536fi
11537ac_ext=c
11538ac_cpp='$CPP $CPPFLAGS'
11539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542
11543CC="$lt_save_CC"
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559 ac_config_commands="$ac_config_commands libtool"
11560
11561
11562
11563
11564# Only expand once:
11565
11566
11567
11568# Checks for libraries.
11569
11570LT_DLLOADERS=
11571
11572
11573ac_ext=c
11574ac_cpp='$CPP $CPPFLAGS'
11575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578
11579
11580LIBADD_DLOPEN=
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11582$as_echo_n "checking for library containing dlopen... " >&6; }
11583if ${ac_cv_search_dlopen+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585else
11586 ac_func_search_save_LIBS=$LIBS
11587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588/* end confdefs.h. */
11589
11590/* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593#ifdef __cplusplus
11594extern "C"
11595#endif
11596char dlopen ();
11597int
11598main ()
11599{
11600return dlopen ();
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605for ac_lib in '' dl; do
11606 if test -z "$ac_lib"; then
11607 ac_res="none required"
11608 else
11609 ac_res=-l$ac_lib
11610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11611 fi
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_search_dlopen=$ac_res
11614fi
11615rm -f core conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext
11617 if ${ac_cv_search_dlopen+:} false; then :
11618 break
11619fi
11620done
11621if ${ac_cv_search_dlopen+:} false; then :
11622
11623else
11624 ac_cv_search_dlopen=no
11625fi
11626rm conftest.$ac_ext
11627LIBS=$ac_func_search_save_LIBS
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11630$as_echo "$ac_cv_search_dlopen" >&6; }
11631ac_res=$ac_cv_search_dlopen
11632if test "$ac_res" != no; then :
11633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11634
11635$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11636
11637 if test "$ac_cv_search_dlopen" != "none required" ; then
11638 LIBADD_DLOPEN="-ldl"
11639 fi
11640 libltdl_cv_lib_dl_dlopen="yes"
11641 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11642else
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644/* end confdefs.h. */
11645#if HAVE_DLFCN_H
11646# include <dlfcn.h>
11647#endif
11648
11649int
11650main ()
11651{
11652dlopen(0, 0);
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657if ac_fn_c_try_link "$LINENO"; then :
11658
11659$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11660
11661 libltdl_cv_func_dlopen="yes"
11662 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11663else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11665$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11666if ${ac_cv_lib_svld_dlopen+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668else
11669 ac_check_lib_save_LIBS=$LIBS
11670LIBS="-lsvld $LIBS"
11671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672/* end confdefs.h. */
11673
11674/* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11677#ifdef __cplusplus
11678extern "C"
11679#endif
11680char dlopen ();
11681int
11682main ()
11683{
11684return dlopen ();
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689if ac_fn_c_try_link "$LINENO"; then :
11690 ac_cv_lib_svld_dlopen=yes
11691else
11692 ac_cv_lib_svld_dlopen=no
11693fi
11694rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696LIBS=$ac_check_lib_save_LIBS
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11699$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11700if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11701
11702$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11703
11704 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11705 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11706fi
11707
11708fi
11709rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711fi
11712
11713if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11714then
11715 lt_save_LIBS="$LIBS"
11716 LIBS="$LIBS $LIBADD_DLOPEN"
11717 for ac_func in dlerror
11718do :
11719 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11720if test "x$ac_cv_func_dlerror" = xyes; then :
11721 cat >>confdefs.h <<_ACEOF
11722#define HAVE_DLERROR 1
11723_ACEOF
11724
11725fi
11726done
11727
11728 LIBS="$lt_save_LIBS"
11729fi
11730
11731
11732LIBADD_SHL_LOAD=
11733ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11734if test "x$ac_cv_func_shl_load" = xyes; then :
11735
11736$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11737
11738 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11739else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11741$as_echo_n "checking for shl_load in -ldld... " >&6; }
11742if ${ac_cv_lib_dld_shl_load+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744else
11745 ac_check_lib_save_LIBS=$LIBS
11746LIBS="-ldld $LIBS"
11747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748/* end confdefs.h. */
11749
11750/* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753#ifdef __cplusplus
11754extern "C"
11755#endif
11756char shl_load ();
11757int
11758main ()
11759{
11760return shl_load ();
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765if ac_fn_c_try_link "$LINENO"; then :
11766 ac_cv_lib_dld_shl_load=yes
11767else
11768 ac_cv_lib_dld_shl_load=no
11769fi
11770rm -f core conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772LIBS=$ac_check_lib_save_LIBS
11773fi
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11775$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11776if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11777
11778$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11779
11780 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11781 LIBADD_SHL_LOAD="-ldld"
11782fi
11783
11784fi
11785
11786
11787
11788case $host_os in
11789darwin[1567].*)
11790# We only want this for pre-Mac OS X 10.4.
11791 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11792if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11793
11794$as_echo "#define HAVE_DYLD 1" >>confdefs.h
11795
11796 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11797fi
11798
11799 ;;
11800beos*)
11801 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11802 ;;
11803cygwin* | mingw* | os2* | pw32*)
11804 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11805"
11806if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11807 ac_have_decl=1
11808else
11809 ac_have_decl=0
11810fi
11811
11812cat >>confdefs.h <<_ACEOF
11813#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11814_ACEOF
11815
11816 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11817 ;;
11818esac
11819
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11821$as_echo_n "checking for dld_link in -ldld... " >&6; }
11822if ${ac_cv_lib_dld_dld_link+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824else
11825 ac_check_lib_save_LIBS=$LIBS
11826LIBS="-ldld $LIBS"
11827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h. */
11829
11830/* Override any GCC internal prototype to avoid an error.
11831 Use char because int might match the return type of a GCC
11832 builtin and then its argument prototype would still apply. */
11833#ifdef __cplusplus
11834extern "C"
11835#endif
11836char dld_link ();
11837int
11838main ()
11839{
11840return dld_link ();
11841 ;
11842 return 0;
11843}
11844_ACEOF
11845if ac_fn_c_try_link "$LINENO"; then :
11846 ac_cv_lib_dld_dld_link=yes
11847else
11848 ac_cv_lib_dld_dld_link=no
11849fi
11850rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852LIBS=$ac_check_lib_save_LIBS
11853fi
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11855$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11856if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11857
11858$as_echo "#define HAVE_DLD 1" >>confdefs.h
11859
11860 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11861fi
11862
11863
11864
11865
11866LT_DLPREOPEN=
11867if test -n "$LT_DLLOADERS"
11868then
11869 for lt_loader in $LT_DLLOADERS; do
11870 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11871 done
11872
11873$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11874
11875fi
11876
11877
11878LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11879
11880
11881ac_ext=c
11882ac_cpp='$CPP $CPPFLAGS'
11883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11885ac_compiler_gnu=$ac_cv_c_compiler_gnu
11886
11887
11888LIBM=
11889case $host in
11890*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11891 # These system don't have libm, or don't need it
11892 ;;
11893*-ncr-sysv4.3*)
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11895$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11896if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898else
11899 ac_check_lib_save_LIBS=$LIBS
11900LIBS="-lmw $LIBS"
11901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902/* end confdefs.h. */
11903
11904/* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907#ifdef __cplusplus
11908extern "C"
11909#endif
11910char _mwvalidcheckl ();
11911int
11912main ()
11913{
11914return _mwvalidcheckl ();
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919if ac_fn_c_try_link "$LINENO"; then :
11920 ac_cv_lib_mw__mwvalidcheckl=yes
11921else
11922 ac_cv_lib_mw__mwvalidcheckl=no
11923fi
11924rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926LIBS=$ac_check_lib_save_LIBS
11927fi
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11929$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11930if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11931 LIBM="-lmw"
11932fi
11933
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11935$as_echo_n "checking for cos in -lm... " >&6; }
11936if ${ac_cv_lib_m_cos+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938else
11939 ac_check_lib_save_LIBS=$LIBS
11940LIBS="-lm $LIBS"
11941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942/* end confdefs.h. */
11943
11944/* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947#ifdef __cplusplus
11948extern "C"
11949#endif
11950char cos ();
11951int
11952main ()
11953{
11954return cos ();
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959if ac_fn_c_try_link "$LINENO"; then :
11960 ac_cv_lib_m_cos=yes
11961else
11962 ac_cv_lib_m_cos=no
11963fi
11964rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966LIBS=$ac_check_lib_save_LIBS
11967fi
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11969$as_echo "$ac_cv_lib_m_cos" >&6; }
11970if test "x$ac_cv_lib_m_cos" = xyes; then :
11971 LIBM="$LIBM -lm"
11972fi
11973
11974 ;;
11975*)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11977$as_echo_n "checking for cos in -lm... " >&6; }
11978if ${ac_cv_lib_m_cos+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980else
11981 ac_check_lib_save_LIBS=$LIBS
11982LIBS="-lm $LIBS"
11983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h. */
11985
11986/* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989#ifdef __cplusplus
11990extern "C"
11991#endif
11992char cos ();
11993int
11994main ()
11995{
11996return cos ();
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_lib_m_cos=yes
12003else
12004 ac_cv_lib_m_cos=no
12005fi
12006rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008LIBS=$ac_check_lib_save_LIBS
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12011$as_echo "$ac_cv_lib_m_cos" >&6; }
12012if test "x$ac_cv_lib_m_cos" = xyes; then :
12013 LIBM="-lm"
12014fi
12015
12016 ;;
12017esac
12018
12019
12020
12021# Checks for header files.
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12023$as_echo_n "checking for ANSI C header files... " >&6; }
12024if ${ac_cv_header_stdc+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026else
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h. */
12029#include <stdlib.h>
12030#include <stdarg.h>
12031#include <string.h>
12032#include <float.h>
12033
12034int
12035main ()
12036{
12037
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_compile "$LINENO"; then :
12043 ac_cv_header_stdc=yes
12044else
12045 ac_cv_header_stdc=no
12046fi
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048
12049if test $ac_cv_header_stdc = yes; then
12050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h. */
12053#include <string.h>
12054
12055_ACEOF
12056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12057 $EGREP "memchr" >/dev/null 2>&1; then :
12058
12059else
12060 ac_cv_header_stdc=no
12061fi
12062rm -f conftest*
12063
12064fi
12065
12066if test $ac_cv_header_stdc = yes; then
12067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h. */
12070#include <stdlib.h>
12071
12072_ACEOF
12073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12074 $EGREP "free" >/dev/null 2>&1; then :
12075
12076else
12077 ac_cv_header_stdc=no
12078fi
12079rm -f conftest*
12080
12081fi
12082
12083if test $ac_cv_header_stdc = yes; then
12084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12085 if test "$cross_compiling" = yes; then :
12086 :
12087else
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h. */
12090#include <ctype.h>
12091#include <stdlib.h>
12092#if ((' ' & 0x0FF) == 0x020)
12093# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12094# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12095#else
12096# define ISLOWER(c) \
12097 (('a' <= (c) && (c) <= 'i') \
12098 || ('j' <= (c) && (c) <= 'r') \
12099 || ('s' <= (c) && (c) <= 'z'))
12100# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12101#endif
12102
12103#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12104int
12105main ()
12106{
12107 int i;
12108 for (i = 0; i < 256; i++)
12109 if (XOR (islower (i), ISLOWER (i))
12110 || toupper (i) != TOUPPER (i))
12111 return 2;
12112 return 0;
12113}
12114_ACEOF
12115if ac_fn_c_try_run "$LINENO"; then :
12116
12117else
12118 ac_cv_header_stdc=no
12119fi
12120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12121 conftest.$ac_objext conftest.beam conftest.$ac_ext
12122fi
12123
12124fi
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12127$as_echo "$ac_cv_header_stdc" >&6; }
12128if test $ac_cv_header_stdc = yes; then
12129
12130$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12131
12132fi
12133
12134
12135# Checks for typedefs, structures, and compiler characteristics.
12136
12137# Checks for library functions.
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12139$as_echo_n "checking for connect in -lsocket... " >&6; }
12140if ${ac_cv_lib_socket_connect+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142else
12143 ac_check_lib_save_LIBS=$LIBS
12144LIBS="-lsocket $LIBS"
12145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h. */
12147
12148/* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12151#ifdef __cplusplus
12152extern "C"
12153#endif
12154char connect ();
12155int
12156main ()
12157{
12158return connect ();
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163if ac_fn_c_try_link "$LINENO"; then :
12164 ac_cv_lib_socket_connect=yes
12165else
12166 ac_cv_lib_socket_connect=no
12167fi
12168rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170LIBS=$ac_check_lib_save_LIBS
12171fi
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12173$as_echo "$ac_cv_lib_socket_connect" >&6; }
12174if test "x$ac_cv_lib_socket_connect" = xyes; then :
12175 cat >>confdefs.h <<_ACEOF
12176#define HAVE_LIBSOCKET 1
12177_ACEOF
12178
12179 LIBS="-lsocket $LIBS"
12180
12181fi
12182
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12184$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12185if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12186 $as_echo_n "(cached) " >&6
12187else
12188 ac_check_lib_save_LIBS=$LIBS
12189LIBS="-lpthread $LIBS"
12190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191/* end confdefs.h. */
12192
12193/* Override any GCC internal prototype to avoid an error.
12194 Use char because int might match the return type of a GCC
12195 builtin and then its argument prototype would still apply. */
12196#ifdef __cplusplus
12197extern "C"
12198#endif
12199char pthread_create ();
12200int
12201main ()
12202{
12203return pthread_create ();
12204 ;
12205 return 0;
12206}
12207_ACEOF
12208if ac_fn_c_try_link "$LINENO"; then :
12209 ac_cv_lib_pthread_pthread_create=yes
12210else
12211 ac_cv_lib_pthread_pthread_create=no
12212fi
12213rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215LIBS=$ac_check_lib_save_LIBS
12216fi
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12218$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12219if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12220 cat >>confdefs.h <<_ACEOF
12221#define HAVE_LIBPTHREAD 1
12222_ACEOF
12223
12224 LIBS="-lpthread $LIBS"
12225
12226fi
12227
12228
12229
12230# Custom check for os, similar to webkit
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
12232$as_echo_n "checking for native Win32... " >&6; }
12233case "$host" in
12234 *-*-mingw*)
12235 os_win32=yes
12236 ;;
12237 *)
12238 os_win32=no
12239 ;;
12240esac
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
12242$as_echo "$os_win32" >&6; }
12243
12244case "$host" in
12245 *-*-linux*)
12246 os_linux=yes
12247 ;;
12248 *-*-freebsd*)
12249 os_freebsd=yes
12250 ;;
12251 *-*-darwin*)
12252 os_darwin=yes
12253 ;;
12254esac
12255
12256case "$host_os" in
12257 gnu* | linux* | k*bsd*-gnu)
12258 os_gnu=yes
12259 ;;
12260 *)
12261 os_gnu=no
12262 ;;
12263esac
12264
12265# OS conditionals
12266 if test "$os_win32" = "yes"; then
12267 OS_WIN32_TRUE=
12268 OS_WIN32_FALSE='#'
12269else
12270 OS_WIN32_TRUE='#'
12271 OS_WIN32_FALSE=
12272fi
12273
12274 if test "$os_win32" = "no"; then
12275 OS_UNIX_TRUE=
12276 OS_UNIX_FALSE='#'
12277else
12278 OS_UNIX_TRUE='#'
12279 OS_UNIX_FALSE=
12280fi
12281
12282 if test "$os_linux" = "yes"; then
12283 OS_LINUX_TRUE=
12284 OS_LINUX_FALSE='#'
12285else
12286 OS_LINUX_TRUE='#'
12287 OS_LINUX_FALSE=
12288fi
12289
12290 if test "$os_gnu" = "yes"; then
12291 OS_GNU_TRUE=
12292 OS_GNU_FALSE='#'
12293else
12294 OS_GNU_TRUE='#'
12295 OS_GNU_FALSE=
12296fi
12297
12298 if test "$os_freebsd" = "yes"; then
12299 OS_FREEBSD_TRUE=
12300 OS_FREEBSD_FALSE='#'
12301else
12302 OS_FREEBSD_TRUE='#'
12303 OS_FREEBSD_FALSE=
12304fi
12305
12306
12307# Custom check for libao
12308
12309
12310if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12311 if test -n "$ac_tool_prefix"; then
12312 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12313set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
12316if ${ac_cv_path_PKG_CONFIG+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318else
12319 case $PKG_CONFIG in
12320 [\\/]* | ?:[\\/]*)
12321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12322 ;;
12323 *)
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325for as_dir in $PATH
12326do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335done
12336 done
12337IFS=$as_save_IFS
12338
12339 ;;
12340esac
12341fi
12342PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12343if test -n "$PKG_CONFIG"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12345$as_echo "$PKG_CONFIG" >&6; }
12346else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351
12352fi
12353if test -z "$ac_cv_path_PKG_CONFIG"; then
12354 ac_pt_PKG_CONFIG=$PKG_CONFIG
12355 # Extract the first word of "pkg-config", so it can be a program name with args.
12356set dummy pkg-config; ac_word=$2
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
12359if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361else
12362 case $ac_pt_PKG_CONFIG in
12363 [\\/]* | ?:[\\/]*)
12364 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12365 ;;
12366 *)
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12377 fi
12378done
12379 done
12380IFS=$as_save_IFS
12381
12382 ;;
12383esac
12384fi
12385ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12386if test -n "$ac_pt_PKG_CONFIG"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12388$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12389else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392fi
12393
12394 if test "x$ac_pt_PKG_CONFIG" = x; then
12395 PKG_CONFIG=""
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398yes:)
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401ac_tool_warned=yes ;;
12402esac
12403 PKG_CONFIG=$ac_pt_PKG_CONFIG
12404 fi
12405else
12406 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12407fi
12408
12409fi
12410if test -n "$PKG_CONFIG"; then
12411 _pkg_min_version=0.9.0
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12413$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12414 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416$as_echo "yes" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420 PKG_CONFIG=""
12421 fi
12422
12423fi
12424
12425pkg_failed=no
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libao" >&5
12427$as_echo_n "checking for libao... " >&6; }
12428
12429if test -n "$libao_CFLAGS"; then
12430 pkg_cv_libao_CFLAGS="$libao_CFLAGS"
12431 elif test -n "$PKG_CONFIG"; then
12432 if test -n "$PKG_CONFIG" && \
12433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 1.1.0\""; } >&5
12434 ($PKG_CONFIG --exists --print-errors "ao >= 1.1.0") 2>&5
12435 ac_status=$?
12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437 test $ac_status = 0; }; then
12438 pkg_cv_libao_CFLAGS=`$PKG_CONFIG --cflags "ao >= 1.1.0" 2>/dev/null`
12439else
12440 pkg_failed=yes
12441fi
12442 else
12443 pkg_failed=untried
12444fi
12445if test -n "$libao_LIBS"; then
12446 pkg_cv_libao_LIBS="$libao_LIBS"
12447 elif test -n "$PKG_CONFIG"; then
12448 if test -n "$PKG_CONFIG" && \
12449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 1.1.0\""; } >&5
12450 ($PKG_CONFIG --exists --print-errors "ao >= 1.1.0") 2>&5
12451 ac_status=$?
12452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453 test $ac_status = 0; }; then
12454 pkg_cv_libao_LIBS=`$PKG_CONFIG --libs "ao >= 1.1.0" 2>/dev/null`
12455else
12456 pkg_failed=yes
12457fi
12458 else
12459 pkg_failed=untried
12460fi
12461
12462
12463
12464if test $pkg_failed = yes; then
12465
12466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12467 _pkg_short_errors_supported=yes
12468else
12469 _pkg_short_errors_supported=no
12470fi
12471 if test $_pkg_short_errors_supported = yes; then
12472 libao_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ao >= 1.1.0" 2>&1`
12473 else
12474 libao_PKG_ERRORS=`$PKG_CONFIG --print-errors "ao >= 1.1.0" 2>&1`
12475 fi
12476 # Put the nasty error message in config.log where it belongs
12477 echo "$libao_PKG_ERRORS" >&5
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481 have_libao=0
12482elif test $pkg_failed = untried; then
12483 have_libao=0
12484else
12485 libao_CFLAGS=$pkg_cv_libao_CFLAGS
12486 libao_LIBS=$pkg_cv_libao_LIBS
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12488$as_echo "yes" >&6; }
12489 have_libao=1
12490fi
12491 if test "$have_libao" -eq 1; then
12492 HAVE_LIBAO_TRUE=
12493 HAVE_LIBAO_FALSE='#'
12494else
12495 HAVE_LIBAO_TRUE='#'
12496 HAVE_LIBAO_FALSE=
12497fi
12498
12499
12500
12501
12502ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/lib/alac/Makefile src/lib/crypto/Makefile"
12503
12504cat >confcache <<\_ACEOF
12505# This file is a shell script that caches the results of configure
12506# tests run on this system so they can be shared between configure
12507# scripts and configure runs, see configure's option --config-cache.
12508# It is not useful on other systems. If it contains results you don't
12509# want to keep, you may remove or edit it.
12510#
12511# config.status only pays attention to the cache file if you give it
12512# the --recheck option to rerun configure.
12513#
12514# `ac_cv_env_foo' variables (set or unset) will be overridden when
12515# loading this file, other *unset* `ac_cv_foo' will be assigned the
12516# following values.
12517
12518_ACEOF
12519
12520# The following way of writing the cache mishandles newlines in values,
12521# but we know of no workaround that is simple, portable, and efficient.
12522# So, we kill variables containing newlines.
12523# Ultrix sh set writes to stderr and can't be redirected directly,
12524# and sets the high bit in the cache file unless we assign to the vars.
12525(
12526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12527 eval ac_val=\$$ac_var
12528 case $ac_val in #(
12529 *${as_nl}*)
12530 case $ac_var in #(
12531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12532$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12533 esac
12534 case $ac_var in #(
12535 _ | IFS | as_nl) ;; #(
12536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12537 *) { eval $ac_var=; unset $ac_var;} ;;
12538 esac ;;
12539 esac
12540 done
12541
12542 (set) 2>&1 |
12543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12544 *${as_nl}ac_space=\ *)
12545 # `set' does not quote correctly, so add quotes: double-quote
12546 # substitution turns \\\\ into \\, and sed turns \\ into \.
12547 sed -n \
12548 "s/'/'\\\\''/g;
12549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12550 ;; #(
12551 *)
12552 # `set' quotes correctly as required by POSIX, so do not add quotes.
12553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12554 ;;
12555 esac |
12556 sort
12557) |
12558 sed '
12559 /^ac_cv_env_/b end
12560 t clear
12561 :clear
12562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12563 t end
12564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12565 :end' >>confcache
12566if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12567 if test -w "$cache_file"; then
12568 if test "x$cache_file" != "x/dev/null"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12570$as_echo "$as_me: updating cache $cache_file" >&6;}
12571 if test ! -f "$cache_file" || test -h "$cache_file"; then
12572 cat confcache >"$cache_file"
12573 else
12574 case $cache_file in #(
12575 */* | ?:*)
12576 mv -f confcache "$cache_file"$$ &&
12577 mv -f "$cache_file"$$ "$cache_file" ;; #(
12578 *)
12579 mv -f confcache "$cache_file" ;;
12580 esac
12581 fi
12582 fi
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12585$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12586 fi
12587fi
12588rm -f confcache
12589
12590test "x$prefix" = xNONE && prefix=$ac_default_prefix
12591# Let make expand exec_prefix.
12592test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12593
12594DEFS=-DHAVE_CONFIG_H
12595
12596ac_libobjs=
12597ac_ltlibobjs=
12598U=
12599for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12600 # 1. Remove the extension, and $U if already installed.
12601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12602 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12604 # will be set to the directory where LIBOBJS objects are built.
12605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12607done
12608LIBOBJS=$ac_libobjs
12609
12610LTLIBOBJS=$ac_ltlibobjs
12611
12612
12613 if test -n "$EXEEXT"; then
12614 am__EXEEXT_TRUE=
12615 am__EXEEXT_FALSE='#'
12616else
12617 am__EXEEXT_TRUE='#'
12618 am__EXEEXT_FALSE=
12619fi
12620
12621if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12622 as_fn_error $? "conditional \"AMDEP\" was never defined.
12623Usually this means the macro was only invoked conditionally." "$LINENO" 5
12624fi
12625if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12626 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12627Usually this means the macro was only invoked conditionally." "$LINENO" 5
12628fi
12629if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
12630 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
12631Usually this means the macro was only invoked conditionally." "$LINENO" 5
12632fi
12633if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
12634 as_fn_error $? "conditional \"OS_UNIX\" was never defined.
12635Usually this means the macro was only invoked conditionally." "$LINENO" 5
12636fi
12637if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
12638 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
12639Usually this means the macro was only invoked conditionally." "$LINENO" 5
12640fi
12641if test -z "${OS_GNU_TRUE}" && test -z "${OS_GNU_FALSE}"; then
12642 as_fn_error $? "conditional \"OS_GNU\" was never defined.
12643Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644fi
12645if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
12646 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
12647Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648fi
12649if test -z "${HAVE_LIBAO_TRUE}" && test -z "${HAVE_LIBAO_FALSE}"; then
12650 as_fn_error $? "conditional \"HAVE_LIBAO\" was never defined.
12651Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652fi
12653
12654: "${CONFIG_STATUS=./config.status}"
12655ac_write_fail=0
12656ac_clean_files_save=$ac_clean_files
12657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12659$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12660as_write_fail=0
12661cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12662#! $SHELL
12663# Generated by $as_me.
12664# Run this file to recreate the current configuration.
12665# Compiler output produced by configure, useful for debugging
12666# configure, is in config.log if it exists.
12667
12668debug=false
12669ac_cs_recheck=false
12670ac_cs_silent=false
12671
12672SHELL=\${CONFIG_SHELL-$SHELL}
12673export SHELL
12674_ASEOF
12675cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12676## -------------------- ##
12677## M4sh Initialization. ##
12678## -------------------- ##
12679
12680# Be more Bourne compatible
12681DUALCASE=1; export DUALCASE # for MKS sh
12682if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12683 emulate sh
12684 NULLCMD=:
12685 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12686 # is contrary to our usage. Disable this feature.
12687 alias -g '${1+"$@"}'='"$@"'
12688 setopt NO_GLOB_SUBST
12689else
12690 case `(set -o) 2>/dev/null` in #(
12691 *posix*) :
12692 set -o posix ;; #(
12693 *) :
12694 ;;
12695esac
12696fi
12697
12698
12699as_nl='
12700'
12701export as_nl
12702# Printing a long string crashes Solaris 7 /usr/bin/printf.
12703as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12704as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12705as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12706# Prefer a ksh shell builtin over an external printf program on Solaris,
12707# but without wasting forks for bash or zsh.
12708if test -z "$BASH_VERSION$ZSH_VERSION" \
12709 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12710 as_echo='print -r --'
12711 as_echo_n='print -rn --'
12712elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12713 as_echo='printf %s\n'
12714 as_echo_n='printf %s'
12715else
12716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12718 as_echo_n='/usr/ucb/echo -n'
12719 else
12720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12721 as_echo_n_body='eval
12722 arg=$1;
12723 case $arg in #(
12724 *"$as_nl"*)
12725 expr "X$arg" : "X\\(.*\\)$as_nl";
12726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12727 esac;
12728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12729 '
12730 export as_echo_n_body
12731 as_echo_n='sh -c $as_echo_n_body as_echo'
12732 fi
12733 export as_echo_body
12734 as_echo='sh -c $as_echo_body as_echo'
12735fi
12736
12737# The user is always right.
12738if test "${PATH_SEPARATOR+set}" != set; then
12739 PATH_SEPARATOR=:
12740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12742 PATH_SEPARATOR=';'
12743 }
12744fi
12745
12746
12747# IFS
12748# We need space, tab and new line, in precisely that order. Quoting is
12749# there to prevent editors from complaining about space-tab.
12750# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12751# splitting by setting IFS to empty value.)
12752IFS=" "" $as_nl"
12753
12754# Find who we are. Look in the path if we contain no directory separator.
12755as_myself=
12756case $0 in #((
12757 *[\\/]* ) as_myself=$0 ;;
12758 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12764 done
12765IFS=$as_save_IFS
12766
12767 ;;
12768esac
12769# We did not find ourselves, most probably we were run as `sh COMMAND'
12770# in which case we are not to be found in the path.
12771if test "x$as_myself" = x; then
12772 as_myself=$0
12773fi
12774if test ! -f "$as_myself"; then
12775 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12776 exit 1
12777fi
12778
12779# Unset variables that we do not need and which cause bugs (e.g. in
12780# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12781# suppresses any "Segmentation fault" message there. '((' could
12782# trigger a bug in pdksh 5.2.14.
12783for as_var in BASH_ENV ENV MAIL MAILPATH
12784do eval test x\${$as_var+set} = xset \
12785 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12786done
12787PS1='$ '
12788PS2='> '
12789PS4='+ '
12790
12791# NLS nuisances.
12792LC_ALL=C
12793export LC_ALL
12794LANGUAGE=C
12795export LANGUAGE
12796
12797# CDPATH.
12798(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12799
12800
12801# as_fn_error STATUS ERROR [LINENO LOG_FD]
12802# ----------------------------------------
12803# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12804# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12805# script with STATUS, using 1 if that was 0.
12806as_fn_error ()
12807{
12808 as_status=$1; test $as_status -eq 0 && as_status=1
12809 if test "$4"; then
12810 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12811 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12812 fi
12813 $as_echo "$as_me: error: $2" >&2
12814 as_fn_exit $as_status
12815} # as_fn_error
12816
12817
12818# as_fn_set_status STATUS
12819# -----------------------
12820# Set $? to STATUS, without forking.
12821as_fn_set_status ()
12822{
12823 return $1
12824} # as_fn_set_status
12825
12826# as_fn_exit STATUS
12827# -----------------
12828# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12829as_fn_exit ()
12830{
12831 set +e
12832 as_fn_set_status $1
12833 exit $1
12834} # as_fn_exit
12835
12836# as_fn_unset VAR
12837# ---------------
12838# Portably unset VAR.
12839as_fn_unset ()
12840{
12841 { eval $1=; unset $1;}
12842}
12843as_unset=as_fn_unset
12844# as_fn_append VAR VALUE
12845# ----------------------
12846# Append the text in VALUE to the end of the definition contained in VAR. Take
12847# advantage of any shell optimizations that allow amortized linear growth over
12848# repeated appends, instead of the typical quadratic growth present in naive
12849# implementations.
12850if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12851 eval 'as_fn_append ()
12852 {
12853 eval $1+=\$2
12854 }'
12855else
12856 as_fn_append ()
12857 {
12858 eval $1=\$$1\$2
12859 }
12860fi # as_fn_append
12861
12862# as_fn_arith ARG...
12863# ------------------
12864# Perform arithmetic evaluation on the ARGs, and store the result in the
12865# global $as_val. Take advantage of shells that can avoid forks. The arguments
12866# must be portable across $(()) and expr.
12867if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12868 eval 'as_fn_arith ()
12869 {
12870 as_val=$(( $* ))
12871 }'
12872else
12873 as_fn_arith ()
12874 {
12875 as_val=`expr "$@" || test $? -eq 1`
12876 }
12877fi # as_fn_arith
12878
12879
12880if expr a : '\(a\)' >/dev/null 2>&1 &&
12881 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12882 as_expr=expr
12883else
12884 as_expr=false
12885fi
12886
12887if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12888 as_basename=basename
12889else
12890 as_basename=false
12891fi
12892
12893if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12894 as_dirname=dirname
12895else
12896 as_dirname=false
12897fi
12898
12899as_me=`$as_basename -- "$0" ||
12900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12901 X"$0" : 'X\(//\)$' \| \
12902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12903$as_echo X/"$0" |
12904 sed '/^.*\/\([^/][^/]*\)\/*$/{
12905 s//\1/
12906 q
12907 }
12908 /^X\/\(\/\/\)$/{
12909 s//\1/
12910 q
12911 }
12912 /^X\/\(\/\).*/{
12913 s//\1/
12914 q
12915 }
12916 s/.*/./; q'`
12917
12918# Avoid depending upon Character Ranges.
12919as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12920as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12921as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12922as_cr_digits='0123456789'
12923as_cr_alnum=$as_cr_Letters$as_cr_digits
12924
12925ECHO_C= ECHO_N= ECHO_T=
12926case `echo -n x` in #(((((
12927-n*)
12928 case `echo 'xy\c'` in
12929 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12930 xy) ECHO_C='\c';;
12931 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12932 ECHO_T=' ';;
12933 esac;;
12934*)
12935 ECHO_N='-n';;
12936esac
12937
12938rm -f conf$$ conf$$.exe conf$$.file
12939if test -d conf$$.dir; then
12940 rm -f conf$$.dir/conf$$.file
12941else
12942 rm -f conf$$.dir
12943 mkdir conf$$.dir 2>/dev/null
12944fi
12945if (echo >conf$$.file) 2>/dev/null; then
12946 if ln -s conf$$.file conf$$ 2>/dev/null; then
12947 as_ln_s='ln -s'
12948 # ... but there are two gotchas:
12949 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12950 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12951 # In both cases, we have to default to `cp -pR'.
12952 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12953 as_ln_s='cp -pR'
12954 elif ln conf$$.file conf$$ 2>/dev/null; then
12955 as_ln_s=ln
12956 else
12957 as_ln_s='cp -pR'
12958 fi
12959else
12960 as_ln_s='cp -pR'
12961fi
12962rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12963rmdir conf$$.dir 2>/dev/null
12964
12965
12966# as_fn_mkdir_p
12967# -------------
12968# Create "$as_dir" as a directory, including parents if necessary.
12969as_fn_mkdir_p ()
12970{
12971
12972 case $as_dir in #(
12973 -*) as_dir=./$as_dir;;
12974 esac
12975 test -d "$as_dir" || eval $as_mkdir_p || {
12976 as_dirs=
12977 while :; do
12978 case $as_dir in #(
12979 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12980 *) as_qdir=$as_dir;;
12981 esac
12982 as_dirs="'$as_qdir' $as_dirs"
12983 as_dir=`$as_dirname -- "$as_dir" ||
12984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12985 X"$as_dir" : 'X\(//\)[^/]' \| \
12986 X"$as_dir" : 'X\(//\)$' \| \
12987 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12988$as_echo X"$as_dir" |
12989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12990 s//\1/
12991 q
12992 }
12993 /^X\(\/\/\)[^/].*/{
12994 s//\1/
12995 q
12996 }
12997 /^X\(\/\/\)$/{
12998 s//\1/
12999 q
13000 }
13001 /^X\(\/\).*/{
13002 s//\1/
13003 q
13004 }
13005 s/.*/./; q'`
13006 test -d "$as_dir" && break
13007 done
13008 test -z "$as_dirs" || eval "mkdir $as_dirs"
13009 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13010
13011
13012} # as_fn_mkdir_p
13013if mkdir -p . 2>/dev/null; then
13014 as_mkdir_p='mkdir -p "$as_dir"'
13015else
13016 test -d ./-p && rmdir ./-p
13017 as_mkdir_p=false
13018fi
13019
13020
13021# as_fn_executable_p FILE
13022# -----------------------
13023# Test if FILE is an executable regular file.
13024as_fn_executable_p ()
13025{
13026 test -f "$1" && test -x "$1"
13027} # as_fn_executable_p
13028as_test_x='test -x'
13029as_executable_p=as_fn_executable_p
13030
13031# Sed expression to map a string onto a valid CPP name.
13032as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13033
13034# Sed expression to map a string onto a valid variable name.
13035as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13036
13037
13038exec 6>&1
13039## ----------------------------------- ##
13040## Main body of $CONFIG_STATUS script. ##
13041## ----------------------------------- ##
13042_ASEOF
13043test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13044
13045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046# Save the log message, to keep $0 and so on meaningful, and to
13047# report actual input values of CONFIG_FILES etc. instead of their
13048# values after options handling.
13049ac_log="
13050This file was extended by shairplay $as_me 0.9.0, which was
13051generated by GNU Autoconf 2.69. Invocation command line was
13052
13053 CONFIG_FILES = $CONFIG_FILES
13054 CONFIG_HEADERS = $CONFIG_HEADERS
13055 CONFIG_LINKS = $CONFIG_LINKS
13056 CONFIG_COMMANDS = $CONFIG_COMMANDS
13057 $ $0 $@
13058
13059on `(hostname || uname -n) 2>/dev/null | sed 1q`
13060"
13061
13062_ACEOF
13063
13064case $ac_config_files in *"
13065"*) set x $ac_config_files; shift; ac_config_files=$*;;
13066esac
13067
13068case $ac_config_headers in *"
13069"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13070esac
13071
13072
13073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074# Files that config.status was made for.
13075config_files="$ac_config_files"
13076config_headers="$ac_config_headers"
13077config_commands="$ac_config_commands"
13078
13079_ACEOF
13080
13081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082ac_cs_usage="\
13083\`$as_me' instantiates files and other configuration actions
13084from templates according to the current configuration. Unless the files
13085and actions are specified as TAGs, all are instantiated by default.
13086
13087Usage: $0 [OPTION]... [TAG]...
13088
13089 -h, --help print this help, then exit
13090 -V, --version print version number and configuration settings, then exit
13091 --config print configuration, then exit
13092 -q, --quiet, --silent
13093 do not print progress messages
13094 -d, --debug don't remove temporary files
13095 --recheck update $as_me by reconfiguring in the same conditions
13096 --file=FILE[:TEMPLATE]
13097 instantiate the configuration file FILE
13098 --header=FILE[:TEMPLATE]
13099 instantiate the configuration header FILE
13100
13101Configuration files:
13102$config_files
13103
13104Configuration headers:
13105$config_headers
13106
13107Configuration commands:
13108$config_commands
13109
13110Report bugs to <juhovh@iki.fi>."
13111
13112_ACEOF
13113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13114ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13115ac_cs_version="\\
13116shairplay config.status 0.9.0
13117configured by $0, generated by GNU Autoconf 2.69,
13118 with options \\"\$ac_cs_config\\"
13119
13120Copyright (C) 2012 Free Software Foundation, Inc.
13121This config.status script is free software; the Free Software Foundation
13122gives unlimited permission to copy, distribute and modify it."
13123
13124ac_pwd='$ac_pwd'
13125srcdir='$srcdir'
13126INSTALL='$INSTALL'
13127MKDIR_P='$MKDIR_P'
13128AWK='$AWK'
13129test -n "\$AWK" || AWK=awk
13130_ACEOF
13131
13132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13133# The default lists apply if the user does not specify any file.
13134ac_need_defaults=:
13135while test $# != 0
13136do
13137 case $1 in
13138 --*=?*)
13139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13141 ac_shift=:
13142 ;;
13143 --*=)
13144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13145 ac_optarg=
13146 ac_shift=:
13147 ;;
13148 *)
13149 ac_option=$1
13150 ac_optarg=$2
13151 ac_shift=shift
13152 ;;
13153 esac
13154
13155 case $ac_option in
13156 # Handling of the options.
13157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13158 ac_cs_recheck=: ;;
13159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13160 $as_echo "$ac_cs_version"; exit ;;
13161 --config | --confi | --conf | --con | --co | --c )
13162 $as_echo "$ac_cs_config"; exit ;;
13163 --debug | --debu | --deb | --de | --d | -d )
13164 debug=: ;;
13165 --file | --fil | --fi | --f )
13166 $ac_shift
13167 case $ac_optarg in
13168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13169 '') as_fn_error $? "missing file argument" ;;
13170 esac
13171 as_fn_append CONFIG_FILES " '$ac_optarg'"
13172 ac_need_defaults=false;;
13173 --header | --heade | --head | --hea )
13174 $ac_shift
13175 case $ac_optarg in
13176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177 esac
13178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13179 ac_need_defaults=false;;
13180 --he | --h)
13181 # Conflict between --help and --header
13182 as_fn_error $? "ambiguous option: \`$1'
13183Try \`$0 --help' for more information.";;
13184 --help | --hel | -h )
13185 $as_echo "$ac_cs_usage"; exit ;;
13186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13188 ac_cs_silent=: ;;
13189
13190 # This is an error.
13191 -*) as_fn_error $? "unrecognized option: \`$1'
13192Try \`$0 --help' for more information." ;;
13193
13194 *) as_fn_append ac_config_targets " $1"
13195 ac_need_defaults=false ;;
13196
13197 esac
13198 shift
13199done
13200
13201ac_configure_extra_args=
13202
13203if $ac_cs_silent; then
13204 exec 6>/dev/null
13205 ac_configure_extra_args="$ac_configure_extra_args --silent"
13206fi
13207
13208_ACEOF
13209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210if \$ac_cs_recheck; then
13211 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13212 shift
13213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13214 CONFIG_SHELL='$SHELL'
13215 export CONFIG_SHELL
13216 exec "\$@"
13217fi
13218
13219_ACEOF
13220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221exec 5>>config.log
13222{
13223 echo
13224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13225## Running $as_me. ##
13226_ASBOX
13227 $as_echo "$ac_log"
13228} >&5
13229
13230_ACEOF
13231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232#
13233# INIT-COMMANDS
13234#
13235AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13236
13237
13238# The HP-UX ksh and POSIX shell print the target directory to stdout
13239# if CDPATH is set.
13240(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13241
13242sed_quote_subst='$sed_quote_subst'
13243double_quote_subst='$double_quote_subst'
13244delay_variable_subst='$delay_variable_subst'
3899877d
JB
13245AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13246DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13247OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15c988f7
JB
13248macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13249macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13250enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13251enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13252pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13253enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13254SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13255ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13256PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13257host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13258host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13259host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13260build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13261build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13262build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13263SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13264Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13265GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13266EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13267FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13268LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13269NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13270LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13271max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13272ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13273exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13274lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13275lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13276lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13277lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13278lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13279reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13280reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15c988f7
JB
13281deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13282file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13283file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13284want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15c988f7
JB
13285sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13286AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13287AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13288archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13289STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13290RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13291old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13292old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13293old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13294lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13295CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13296CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13297compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13298GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13299lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13300lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13301lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13302lt_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"`'
13303nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13304lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13305objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13306MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13307lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13308lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13309lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13310lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13311lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13312need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13313MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13314DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13315NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13316LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13317OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13318OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13319libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13320shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13321extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13322archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13323enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13324export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13325whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13326compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13327old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13328old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13329archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13330archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13331module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13332module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13333with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13334allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13335no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13336hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13337hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13338hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13339hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13340hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13341hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13342hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13343inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13344link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13345always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13346export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13347exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13348include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13349prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13350postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13351file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13352variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13353need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13354need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13355version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13356runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13357shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13358shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13359libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13360library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13361soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13362install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13363postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13364postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13365finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13366finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13367hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13368sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13369sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13370hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13371enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13372enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13373enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13374old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13375striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13376
13377LTCC='$LTCC'
13378LTCFLAGS='$LTCFLAGS'
13379compiler='$compiler_DEFAULT'
13380
13381# A function that is used when there is no print builtin or printf.
13382func_fallback_echo ()
13383{
13384 eval 'cat <<_LTECHO_EOF
13385\$1
13386_LTECHO_EOF'
13387}
13388
13389# Quote evaled strings.
3899877d
JB
13390for var in AS \
13391DLLTOOL \
13392OBJDUMP \
13393SHELL \
15c988f7
JB
13394ECHO \
13395PATH_SEPARATOR \
13396SED \
13397GREP \
13398EGREP \
13399FGREP \
13400LD \
13401NM \
13402LN_S \
13403lt_SP2NL \
13404lt_NL2SP \
13405reload_flag \
15c988f7
JB
13406deplibs_check_method \
13407file_magic_cmd \
13408file_magic_glob \
13409want_nocaseglob \
15c988f7
JB
13410sharedlib_from_linklib_cmd \
13411AR \
13412AR_FLAGS \
13413archiver_list_spec \
13414STRIP \
13415RANLIB \
13416CC \
13417CFLAGS \
13418compiler \
13419lt_cv_sys_global_symbol_pipe \
13420lt_cv_sys_global_symbol_to_cdecl \
13421lt_cv_sys_global_symbol_to_c_name_address \
13422lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13423nm_file_list_spec \
13424lt_prog_compiler_no_builtin_flag \
13425lt_prog_compiler_pic \
13426lt_prog_compiler_wl \
13427lt_prog_compiler_static \
13428lt_cv_prog_compiler_c_o \
13429need_locks \
13430MANIFEST_TOOL \
13431DSYMUTIL \
13432NMEDIT \
13433LIPO \
13434OTOOL \
13435OTOOL64 \
13436shrext_cmds \
13437export_dynamic_flag_spec \
13438whole_archive_flag_spec \
13439compiler_needs_object \
13440with_gnu_ld \
13441allow_undefined_flag \
13442no_undefined_flag \
13443hardcode_libdir_flag_spec \
13444hardcode_libdir_separator \
13445exclude_expsyms \
13446include_expsyms \
13447file_list_spec \
13448variables_saved_for_relink \
13449libname_spec \
13450library_names_spec \
13451soname_spec \
13452install_override_mode \
13453finish_eval \
13454old_striplib \
13455striplib; do
13456 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13457 *[\\\\\\\`\\"\\\$]*)
13458 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13459 ;;
13460 *)
13461 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13462 ;;
13463 esac
13464done
13465
13466# Double-quote double-evaled strings.
13467for var in reload_cmds \
13468old_postinstall_cmds \
13469old_postuninstall_cmds \
13470old_archive_cmds \
13471extract_expsyms_cmds \
13472old_archive_from_new_cmds \
13473old_archive_from_expsyms_cmds \
13474archive_cmds \
13475archive_expsym_cmds \
13476module_cmds \
13477module_expsym_cmds \
13478export_symbols_cmds \
13479prelink_cmds \
13480postlink_cmds \
13481postinstall_cmds \
13482postuninstall_cmds \
13483finish_cmds \
13484sys_lib_search_path_spec \
13485sys_lib_dlsearch_path_spec; do
13486 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13487 *[\\\\\\\`\\"\\\$]*)
13488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13489 ;;
13490 *)
13491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13492 ;;
13493 esac
13494done
13495
13496ac_aux_dir='$ac_aux_dir'
13497xsi_shell='$xsi_shell'
13498lt_shell_append='$lt_shell_append'
13499
13500# See if we are running on zsh, and set the options which allow our
13501# commands through without removal of \ escapes INIT.
13502if test -n "\${ZSH_VERSION+set}" ; then
13503 setopt NO_GLOB_SUBST
13504fi
13505
13506
13507 PACKAGE='$PACKAGE'
13508 VERSION='$VERSION'
13509 TIMESTAMP='$TIMESTAMP'
13510 RM='$RM'
13511 ofile='$ofile'
13512
13513
13514
13515
13516_ACEOF
13517
13518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519
13520# Handling of arguments.
13521for ac_config_target in $ac_config_targets
13522do
13523 case $ac_config_target in
13524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13525 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13526 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13527 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13528 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13529 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13530 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
13531 "src/lib/alac/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/alac/Makefile" ;;
13532 "src/lib/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/crypto/Makefile" ;;
13533
13534 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13535 esac
13536done
13537
13538
13539# If the user did not use the arguments to specify the items to instantiate,
13540# then the envvar interface is used. Set only those that are not.
13541# We use the long form for the default assignment because of an extremely
13542# bizarre bug on SunOS 4.1.3.
13543if $ac_need_defaults; then
13544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13547fi
13548
13549# Have a temporary directory for convenience. Make it in the build tree
13550# simply because there is no reason against having it here, and in addition,
13551# creating and moving files from /tmp can sometimes cause problems.
13552# Hook for its removal unless debugging.
13553# Note that there is a small window in which the directory will not be cleaned:
13554# after its creation but before its name has been assigned to `$tmp'.
13555$debug ||
13556{
13557 tmp= ac_tmp=
13558 trap 'exit_status=$?
13559 : "${ac_tmp:=$tmp}"
13560 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13561' 0
13562 trap 'as_fn_exit 1' 1 2 13 15
13563}
13564# Create a (secure) tmp directory for tmp files.
13565
13566{
13567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13568 test -d "$tmp"
13569} ||
13570{
13571 tmp=./conf$$-$RANDOM
13572 (umask 077 && mkdir "$tmp")
13573} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13574ac_tmp=$tmp
13575
13576# Set up the scripts for CONFIG_FILES section.
13577# No need to generate them if there are no CONFIG_FILES.
13578# This happens for instance with `./config.status config.h'.
13579if test -n "$CONFIG_FILES"; then
13580
13581
13582ac_cr=`echo X | tr X '\015'`
13583# On cygwin, bash can eat \r inside `` if the user requested igncr.
13584# But we know of no other shell where ac_cr would be empty at this
13585# point, so we can use a bashism as a fallback.
13586if test "x$ac_cr" = x; then
13587 eval ac_cr=\$\'\\r\'
13588fi
13589ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13590if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13591 ac_cs_awk_cr='\\r'
13592else
13593 ac_cs_awk_cr=$ac_cr
13594fi
13595
13596echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13597_ACEOF
13598
13599
13600{
13601 echo "cat >conf$$subs.awk <<_ACEOF" &&
13602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13603 echo "_ACEOF"
13604} >conf$$subs.sh ||
13605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13606ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13607ac_delim='%!_!# '
13608for ac_last_try in false false false false false :; do
13609 . ./conf$$subs.sh ||
13610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13611
13612 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13613 if test $ac_delim_n = $ac_delim_num; then
13614 break
13615 elif $ac_last_try; then
13616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13617 else
13618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13619 fi
13620done
13621rm -f conf$$subs.sh
13622
13623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13624cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13625_ACEOF
13626sed -n '
13627h
13628s/^/S["/; s/!.*/"]=/
13629p
13630g
13631s/^[^!]*!//
13632:repl
13633t repl
13634s/'"$ac_delim"'$//
13635t delim
13636:nl
13637h
13638s/\(.\{148\}\)..*/\1/
13639t more1
13640s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13641p
13642n
13643b repl
13644:more1
13645s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13646p
13647g
13648s/.\{148\}//
13649t nl
13650:delim
13651h
13652s/\(.\{148\}\)..*/\1/
13653t more2
13654s/["\\]/\\&/g; s/^/"/; s/$/"/
13655p
13656b
13657:more2
13658s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13659p
13660g
13661s/.\{148\}//
13662t delim
13663' <conf$$subs.awk | sed '
13664/^[^""]/{
13665 N
13666 s/\n//
13667}
13668' >>$CONFIG_STATUS || ac_write_fail=1
13669rm -f conf$$subs.awk
13670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671_ACAWK
13672cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13673 for (key in S) S_is_set[key] = 1
13674 FS = "\a"
13675
13676}
13677{
13678 line = $ 0
13679 nfields = split(line, field, "@")
13680 substed = 0
13681 len = length(field[1])
13682 for (i = 2; i < nfields; i++) {
13683 key = field[i]
13684 keylen = length(key)
13685 if (S_is_set[key]) {
13686 value = S[key]
13687 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13688 len += length(value) + length(field[++i])
13689 substed = 1
13690 } else
13691 len += 1 + keylen
13692 }
13693
13694 print line
13695}
13696
13697_ACAWK
13698_ACEOF
13699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13700if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13701 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13702else
13703 cat
13704fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13705 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13706_ACEOF
13707
13708# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13709# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13710# trailing colons and then remove the whole line if VPATH becomes empty
13711# (actually we leave an empty line to preserve line numbers).
13712if test "x$srcdir" = x.; then
13713 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13714h
13715s///
13716s/^/:/
13717s/[ ]*$/:/
13718s/:\$(srcdir):/:/g
13719s/:\${srcdir}:/:/g
13720s/:@srcdir@:/:/g
13721s/^:*//
13722s/:*$//
13723x
13724s/\(=[ ]*\).*/\1/
13725G
13726s/\n//
13727s/^[^=]*=[ ]*$//
13728}'
13729fi
13730
13731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13732fi # test -n "$CONFIG_FILES"
13733
13734# Set up the scripts for CONFIG_HEADERS section.
13735# No need to generate them if there are no CONFIG_HEADERS.
13736# This happens for instance with `./config.status Makefile'.
13737if test -n "$CONFIG_HEADERS"; then
13738cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13739BEGIN {
13740_ACEOF
13741
13742# Transform confdefs.h into an awk script `defines.awk', embedded as
13743# here-document in config.status, that substitutes the proper values into
13744# config.h.in to produce config.h.
13745
13746# Create a delimiter string that does not exist in confdefs.h, to ease
13747# handling of long lines.
13748ac_delim='%!_!# '
13749for ac_last_try in false false :; do
13750 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13751 if test -z "$ac_tt"; then
13752 break
13753 elif $ac_last_try; then
13754 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13755 else
13756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13757 fi
13758done
13759
13760# For the awk script, D is an array of macro values keyed by name,
13761# likewise P contains macro parameters if any. Preserve backslash
13762# newline sequences.
13763
13764ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13765sed -n '
13766s/.\{148\}/&'"$ac_delim"'/g
13767t rset
13768:rset
13769s/^[ ]*#[ ]*define[ ][ ]*/ /
13770t def
13771d
13772:def
13773s/\\$//
13774t bsnl
13775s/["\\]/\\&/g
13776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13777D["\1"]=" \3"/p
13778s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13779d
13780:bsnl
13781s/["\\]/\\&/g
13782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13783D["\1"]=" \3\\\\\\n"\\/p
13784t cont
13785s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13786t cont
13787d
13788:cont
13789n
13790s/.\{148\}/&'"$ac_delim"'/g
13791t clear
13792:clear
13793s/\\$//
13794t bsnlc
13795s/["\\]/\\&/g; s/^/"/; s/$/"/p
13796d
13797:bsnlc
13798s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13799b cont
13800' <confdefs.h | sed '
13801s/'"$ac_delim"'/"\\\
13802"/g' >>$CONFIG_STATUS || ac_write_fail=1
13803
13804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13805 for (key in D) D_is_set[key] = 1
13806 FS = "\a"
13807}
13808/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13809 line = \$ 0
13810 split(line, arg, " ")
13811 if (arg[1] == "#") {
13812 defundef = arg[2]
13813 mac1 = arg[3]
13814 } else {
13815 defundef = substr(arg[1], 2)
13816 mac1 = arg[2]
13817 }
13818 split(mac1, mac2, "(") #)
13819 macro = mac2[1]
13820 prefix = substr(line, 1, index(line, defundef) - 1)
13821 if (D_is_set[macro]) {
13822 # Preserve the white space surrounding the "#".
13823 print prefix "define", macro P[macro] D[macro]
13824 next
13825 } else {
13826 # Replace #undef with comments. This is necessary, for example,
13827 # in the case of _POSIX_SOURCE, which is predefined and required
13828 # on some systems where configure will not decide to define it.
13829 if (defundef == "undef") {
13830 print "/*", prefix defundef, macro, "*/"
13831 next
13832 }
13833 }
13834}
13835{ print }
13836_ACAWK
13837_ACEOF
13838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13840fi # test -n "$CONFIG_HEADERS"
13841
13842
13843eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13844shift
13845for ac_tag
13846do
13847 case $ac_tag in
13848 :[FHLC]) ac_mode=$ac_tag; continue;;
13849 esac
13850 case $ac_mode$ac_tag in
13851 :[FHL]*:*);;
13852 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13853 :[FH]-) ac_tag=-:-;;
13854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13855 esac
13856 ac_save_IFS=$IFS
13857 IFS=:
13858 set x $ac_tag
13859 IFS=$ac_save_IFS
13860 shift
13861 ac_file=$1
13862 shift
13863
13864 case $ac_mode in
13865 :L) ac_source=$1;;
13866 :[FH])
13867 ac_file_inputs=
13868 for ac_f
13869 do
13870 case $ac_f in
13871 -) ac_f="$ac_tmp/stdin";;
13872 *) # Look for the file first in the build tree, then in the source tree
13873 # (if the path is not absolute). The absolute path cannot be DOS-style,
13874 # because $ac_f cannot contain `:'.
13875 test -f "$ac_f" ||
13876 case $ac_f in
13877 [\\/$]*) false;;
13878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13879 esac ||
13880 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13881 esac
13882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13883 as_fn_append ac_file_inputs " '$ac_f'"
13884 done
13885
13886 # Let's still pretend it is `configure' which instantiates (i.e., don't
13887 # use $as_me), people would be surprised to read:
13888 # /* config.h. Generated by config.status. */
13889 configure_input='Generated from '`
13890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13891 `' by configure.'
13892 if test x"$ac_file" != x-; then
13893 configure_input="$ac_file. $configure_input"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13895$as_echo "$as_me: creating $ac_file" >&6;}
13896 fi
13897 # Neutralize special characters interpreted by sed in replacement strings.
13898 case $configure_input in #(
13899 *\&* | *\|* | *\\* )
13900 ac_sed_conf_input=`$as_echo "$configure_input" |
13901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13902 *) ac_sed_conf_input=$configure_input;;
13903 esac
13904
13905 case $ac_tag in
13906 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13908 esac
13909 ;;
13910 esac
13911
13912 ac_dir=`$as_dirname -- "$ac_file" ||
13913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13914 X"$ac_file" : 'X\(//\)[^/]' \| \
13915 X"$ac_file" : 'X\(//\)$' \| \
13916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13917$as_echo X"$ac_file" |
13918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13919 s//\1/
13920 q
13921 }
13922 /^X\(\/\/\)[^/].*/{
13923 s//\1/
13924 q
13925 }
13926 /^X\(\/\/\)$/{
13927 s//\1/
13928 q
13929 }
13930 /^X\(\/\).*/{
13931 s//\1/
13932 q
13933 }
13934 s/.*/./; q'`
13935 as_dir="$ac_dir"; as_fn_mkdir_p
13936 ac_builddir=.
13937
13938case "$ac_dir" in
13939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13940*)
13941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13942 # A ".." for each directory in $ac_dir_suffix.
13943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13944 case $ac_top_builddir_sub in
13945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13947 esac ;;
13948esac
13949ac_abs_top_builddir=$ac_pwd
13950ac_abs_builddir=$ac_pwd$ac_dir_suffix
13951# for backward compatibility:
13952ac_top_builddir=$ac_top_build_prefix
13953
13954case $srcdir in
13955 .) # We are building in place.
13956 ac_srcdir=.
13957 ac_top_srcdir=$ac_top_builddir_sub
13958 ac_abs_top_srcdir=$ac_pwd ;;
13959 [\\/]* | ?:[\\/]* ) # Absolute name.
13960 ac_srcdir=$srcdir$ac_dir_suffix;
13961 ac_top_srcdir=$srcdir
13962 ac_abs_top_srcdir=$srcdir ;;
13963 *) # Relative name.
13964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13965 ac_top_srcdir=$ac_top_build_prefix$srcdir
13966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13967esac
13968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13969
13970
13971 case $ac_mode in
13972 :F)
13973 #
13974 # CONFIG_FILE
13975 #
13976
13977 case $INSTALL in
13978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13980 esac
13981 ac_MKDIR_P=$MKDIR_P
13982 case $MKDIR_P in
13983 [\\/$]* | ?:[\\/]* ) ;;
13984 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13985 esac
13986_ACEOF
13987
13988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13989# If the template does not know about datarootdir, expand it.
13990# FIXME: This hack should be removed a few years after 2.60.
13991ac_datarootdir_hack=; ac_datarootdir_seen=
13992ac_sed_dataroot='
13993/datarootdir/ {
13994 p
13995 q
13996}
13997/@datadir@/p
13998/@docdir@/p
13999/@infodir@/p
14000/@localedir@/p
14001/@mandir@/p'
14002case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14003*datarootdir*) ac_datarootdir_seen=yes;;
14004*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14006$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14007_ACEOF
14008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 ac_datarootdir_hack='
14010 s&@datadir@&$datadir&g
14011 s&@docdir@&$docdir&g
14012 s&@infodir@&$infodir&g
14013 s&@localedir@&$localedir&g
14014 s&@mandir@&$mandir&g
14015 s&\\\${datarootdir}&$datarootdir&g' ;;
14016esac
14017_ACEOF
14018
14019# Neutralize VPATH when `$srcdir' = `.'.
14020# Shell code in configure.ac might set extrasub.
14021# FIXME: do we really want to maintain this feature?
14022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14023ac_sed_extra="$ac_vpsub
14024$extrasub
14025_ACEOF
14026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027:t
14028/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14029s|@configure_input@|$ac_sed_conf_input|;t t
14030s&@top_builddir@&$ac_top_builddir_sub&;t t
14031s&@top_build_prefix@&$ac_top_build_prefix&;t t
14032s&@srcdir@&$ac_srcdir&;t t
14033s&@abs_srcdir@&$ac_abs_srcdir&;t t
14034s&@top_srcdir@&$ac_top_srcdir&;t t
14035s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14036s&@builddir@&$ac_builddir&;t t
14037s&@abs_builddir@&$ac_abs_builddir&;t t
14038s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14039s&@INSTALL@&$ac_INSTALL&;t t
14040s&@MKDIR_P@&$ac_MKDIR_P&;t t
14041$ac_datarootdir_hack
14042"
14043eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14044 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14045
14046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14047 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14049 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14051which seems to be undefined. Please make sure it is defined" >&5
14052$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14053which seems to be undefined. Please make sure it is defined" >&2;}
14054
14055 rm -f "$ac_tmp/stdin"
14056 case $ac_file in
14057 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14058 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14059 esac \
14060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14061 ;;
14062 :H)
14063 #
14064 # CONFIG_HEADER
14065 #
14066 if test x"$ac_file" != x-; then
14067 {
14068 $as_echo "/* $configure_input */" \
14069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14070 } >"$ac_tmp/config.h" \
14071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14072 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14074$as_echo "$as_me: $ac_file is unchanged" >&6;}
14075 else
14076 rm -f "$ac_file"
14077 mv "$ac_tmp/config.h" "$ac_file" \
14078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14079 fi
14080 else
14081 $as_echo "/* $configure_input */" \
14082 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14083 || as_fn_error $? "could not create -" "$LINENO" 5
14084 fi
14085# Compute "$ac_file"'s index in $config_headers.
14086_am_arg="$ac_file"
14087_am_stamp_count=1
14088for _am_header in $config_headers :; do
14089 case $_am_header in
14090 $_am_arg | $_am_arg:* )
14091 break ;;
14092 * )
14093 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14094 esac
14095done
14096echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14097$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14098 X"$_am_arg" : 'X\(//\)[^/]' \| \
14099 X"$_am_arg" : 'X\(//\)$' \| \
14100 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14101$as_echo X"$_am_arg" |
14102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14103 s//\1/
14104 q
14105 }
14106 /^X\(\/\/\)[^/].*/{
14107 s//\1/
14108 q
14109 }
14110 /^X\(\/\/\)$/{
14111 s//\1/
14112 q
14113 }
14114 /^X\(\/\).*/{
14115 s//\1/
14116 q
14117 }
14118 s/.*/./; q'`/stamp-h$_am_stamp_count
14119 ;;
14120
14121 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14122$as_echo "$as_me: executing $ac_file commands" >&6;}
14123 ;;
14124 esac
14125
14126
14127 case $ac_file$ac_mode in
14128 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14129 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14130 # are listed without --file. Let's play safe and only enable the eval
14131 # if we detect the quoting.
14132 case $CONFIG_FILES in
14133 *\'*) eval set x "$CONFIG_FILES" ;;
14134 *) set x $CONFIG_FILES ;;
14135 esac
14136 shift
14137 for mf
14138 do
14139 # Strip MF so we end up with the name of the file.
14140 mf=`echo "$mf" | sed -e 's/:.*$//'`
14141 # Check whether this is an Automake generated Makefile or not.
14142 # We used to match only the files named `Makefile.in', but
14143 # some people rename them; so instead we look at the file content.
14144 # Grep'ing the first line is not enough: some people post-process
14145 # each Makefile.in and add a new line on top of each file to say so.
14146 # Grep'ing the whole file is not good either: AIX grep has a line
14147 # limit of 2048, but all sed's we know have understand at least 4000.
14148 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14149 dirpart=`$as_dirname -- "$mf" ||
14150$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14151 X"$mf" : 'X\(//\)[^/]' \| \
14152 X"$mf" : 'X\(//\)$' \| \
14153 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14154$as_echo X"$mf" |
14155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14156 s//\1/
14157 q
14158 }
14159 /^X\(\/\/\)[^/].*/{
14160 s//\1/
14161 q
14162 }
14163 /^X\(\/\/\)$/{
14164 s//\1/
14165 q
14166 }
14167 /^X\(\/\).*/{
14168 s//\1/
14169 q
14170 }
14171 s/.*/./; q'`
14172 else
14173 continue
14174 fi
14175 # Extract the definition of DEPDIR, am__include, and am__quote
14176 # from the Makefile without running `make'.
14177 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14178 test -z "$DEPDIR" && continue
14179 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14180 test -z "am__include" && continue
14181 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14182 # When using ansi2knr, U may be empty or an underscore; expand it
14183 U=`sed -n 's/^U = //p' < "$mf"`
14184 # Find all dependency output files, they are included files with
14185 # $(DEPDIR) in their names. We invoke sed twice because it is the
14186 # simplest approach to changing $(DEPDIR) to its actual value in the
14187 # expansion.
14188 for file in `sed -n "
14189 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14191 # Make sure the directory exists.
14192 test -f "$dirpart/$file" && continue
14193 fdir=`$as_dirname -- "$file" ||
14194$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14195 X"$file" : 'X\(//\)[^/]' \| \
14196 X"$file" : 'X\(//\)$' \| \
14197 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14198$as_echo X"$file" |
14199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14200 s//\1/
14201 q
14202 }
14203 /^X\(\/\/\)[^/].*/{
14204 s//\1/
14205 q
14206 }
14207 /^X\(\/\/\)$/{
14208 s//\1/
14209 q
14210 }
14211 /^X\(\/\).*/{
14212 s//\1/
14213 q
14214 }
14215 s/.*/./; q'`
14216 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14217 # echo "creating $dirpart/$file"
14218 echo '# dummy' > "$dirpart/$file"
14219 done
14220 done
14221}
14222 ;;
14223 "libtool":C)
14224
14225 # See if we are running on zsh, and set the options which allow our
14226 # commands through without removal of \ escapes.
14227 if test -n "${ZSH_VERSION+set}" ; then
14228 setopt NO_GLOB_SUBST
14229 fi
14230
14231 cfgfile="${ofile}T"
14232 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14233 $RM "$cfgfile"
14234
14235 cat <<_LT_EOF >> "$cfgfile"
14236#! $SHELL
14237
14238# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14239# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14240# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14241# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14242#
14243# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14244# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14245# Foundation, Inc.
14246# Written by Gordon Matzigkeit, 1996
14247#
14248# This file is part of GNU Libtool.
14249#
14250# GNU Libtool is free software; you can redistribute it and/or
14251# modify it under the terms of the GNU General Public License as
14252# published by the Free Software Foundation; either version 2 of
14253# the License, or (at your option) any later version.
14254#
14255# As a special exception to the GNU General Public License,
14256# if you distribute this file as part of a program or library that
14257# is built using GNU Libtool, you may include this file under the
14258# same distribution terms that you use for the rest of that program.
14259#
14260# GNU Libtool is distributed in the hope that it will be useful,
14261# but WITHOUT ANY WARRANTY; without even the implied warranty of
14262# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14263# GNU General Public License for more details.
14264#
14265# You should have received a copy of the GNU General Public License
14266# along with GNU Libtool; see the file COPYING. If not, a copy
14267# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14268# obtained by writing to the Free Software Foundation, Inc.,
14269# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14270
14271
14272# The names of the tagged configurations supported by this script.
14273available_tags=""
14274
14275# ### BEGIN LIBTOOL CONFIG
14276
3899877d
JB
14277# Assembler program.
14278AS=$lt_AS
14279
14280# DLL creation program.
14281DLLTOOL=$lt_DLLTOOL
14282
14283# Object dumper program.
14284OBJDUMP=$lt_OBJDUMP
14285
15c988f7
JB
14286# Which release of libtool.m4 was used?
14287macro_version=$macro_version
14288macro_revision=$macro_revision
14289
14290# Whether or not to build shared libraries.
14291build_libtool_libs=$enable_shared
14292
14293# Whether or not to build static libraries.
14294build_old_libs=$enable_static
14295
14296# What type of objects to build.
14297pic_mode=$pic_mode
14298
14299# Whether or not to optimize for fast installation.
14300fast_install=$enable_fast_install
14301
14302# Shell to use when invoking shell scripts.
14303SHELL=$lt_SHELL
14304
14305# An echo program that protects backslashes.
14306ECHO=$lt_ECHO
14307
14308# The PATH separator for the build system.
14309PATH_SEPARATOR=$lt_PATH_SEPARATOR
14310
14311# The host system.
14312host_alias=$host_alias
14313host=$host
14314host_os=$host_os
14315
14316# The build system.
14317build_alias=$build_alias
14318build=$build
14319build_os=$build_os
14320
14321# A sed program that does not truncate output.
14322SED=$lt_SED
14323
14324# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14325Xsed="\$SED -e 1s/^X//"
14326
14327# A grep program that handles long lines.
14328GREP=$lt_GREP
14329
14330# An ERE matcher.
14331EGREP=$lt_EGREP
14332
14333# A literal string matcher.
14334FGREP=$lt_FGREP
14335
14336# A BSD- or MS-compatible name lister.
14337NM=$lt_NM
14338
14339# Whether we need soft or hard links.
14340LN_S=$lt_LN_S
14341
14342# What is the maximum length of a command?
14343max_cmd_len=$max_cmd_len
14344
14345# Object file suffix (normally "o").
14346objext=$ac_objext
14347
14348# Executable file suffix (normally "").
14349exeext=$exeext
14350
14351# whether the shell understands "unset".
14352lt_unset=$lt_unset
14353
14354# turn spaces into newlines.
14355SP2NL=$lt_lt_SP2NL
14356
14357# turn newlines into spaces.
14358NL2SP=$lt_lt_NL2SP
14359
14360# convert \$build file names to \$host format.
14361to_host_file_cmd=$lt_cv_to_host_file_cmd
14362
14363# convert \$build files to toolchain format.
14364to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14365
15c988f7
JB
14366# Method to check whether dependent libraries are shared objects.
14367deplibs_check_method=$lt_deplibs_check_method
14368
14369# Command to use when deplibs_check_method = "file_magic".
14370file_magic_cmd=$lt_file_magic_cmd
14371
14372# How to find potential files when deplibs_check_method = "file_magic".
14373file_magic_glob=$lt_file_magic_glob
14374
14375# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14376want_nocaseglob=$lt_want_nocaseglob
14377
15c988f7
JB
14378# Command to associate shared and link libraries.
14379sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14380
14381# The archiver.
14382AR=$lt_AR
14383
14384# Flags to create an archive.
14385AR_FLAGS=$lt_AR_FLAGS
14386
14387# How to feed a file listing to the archiver.
14388archiver_list_spec=$lt_archiver_list_spec
14389
14390# A symbol stripping program.
14391STRIP=$lt_STRIP
14392
14393# Commands used to install an old-style archive.
14394RANLIB=$lt_RANLIB
14395old_postinstall_cmds=$lt_old_postinstall_cmds
14396old_postuninstall_cmds=$lt_old_postuninstall_cmds
14397
14398# Whether to use a lock for old archive extraction.
14399lock_old_archive_extraction=$lock_old_archive_extraction
14400
14401# A C compiler.
14402LTCC=$lt_CC
14403
14404# LTCC compiler flags.
14405LTCFLAGS=$lt_CFLAGS
14406
14407# Take the output of nm and produce a listing of raw symbols and C names.
14408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14409
14410# Transform the output of nm in a proper C declaration.
14411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14412
14413# Transform the output of nm in a C name address pair.
14414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14415
14416# Transform the output of nm in a C name address pair when lib prefix is needed.
14417global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14418
14419# Specify filename containing input files for \$NM.
14420nm_file_list_spec=$lt_nm_file_list_spec
14421
14422# The root where to search for dependent libraries,and in which our libraries should be installed.
14423lt_sysroot=$lt_sysroot
14424
14425# The name of the directory that contains temporary libtool files.
14426objdir=$objdir
14427
14428# Used to examine libraries when file_magic_cmd begins with "file".
14429MAGIC_CMD=$MAGIC_CMD
14430
14431# Must we lock files when doing compilation?
14432need_locks=$lt_need_locks
14433
14434# Manifest tool.
14435MANIFEST_TOOL=$lt_MANIFEST_TOOL
14436
14437# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14438DSYMUTIL=$lt_DSYMUTIL
14439
14440# Tool to change global to local symbols on Mac OS X.
14441NMEDIT=$lt_NMEDIT
14442
14443# Tool to manipulate fat objects and archives on Mac OS X.
14444LIPO=$lt_LIPO
14445
14446# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14447OTOOL=$lt_OTOOL
14448
14449# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14450OTOOL64=$lt_OTOOL64
14451
14452# Old archive suffix (normally "a").
14453libext=$libext
14454
14455# Shared library suffix (normally ".so").
14456shrext_cmds=$lt_shrext_cmds
14457
14458# The commands to extract the exported symbol list from a shared archive.
14459extract_expsyms_cmds=$lt_extract_expsyms_cmds
14460
14461# Variables whose values should be saved in libtool wrapper scripts and
14462# restored at link time.
14463variables_saved_for_relink=$lt_variables_saved_for_relink
14464
14465# Do we need the "lib" prefix for modules?
14466need_lib_prefix=$need_lib_prefix
14467
14468# Do we need a version for libraries?
14469need_version=$need_version
14470
14471# Library versioning type.
14472version_type=$version_type
14473
14474# Shared library runtime path variable.
14475runpath_var=$runpath_var
14476
14477# Shared library path variable.
14478shlibpath_var=$shlibpath_var
14479
14480# Is shlibpath searched before the hard-coded library search path?
14481shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14482
14483# Format of library name prefix.
14484libname_spec=$lt_libname_spec
14485
14486# List of archive names. First name is the real one, the rest are links.
14487# The last name is the one that the linker finds with -lNAME
14488library_names_spec=$lt_library_names_spec
14489
14490# The coded name of the library, if different from the real name.
14491soname_spec=$lt_soname_spec
14492
14493# Permission mode override for installation of shared libraries.
14494install_override_mode=$lt_install_override_mode
14495
14496# Command to use after installation of a shared archive.
14497postinstall_cmds=$lt_postinstall_cmds
14498
14499# Command to use after uninstallation of a shared archive.
14500postuninstall_cmds=$lt_postuninstall_cmds
14501
14502# Commands used to finish a libtool library installation in a directory.
14503finish_cmds=$lt_finish_cmds
14504
14505# As "finish_cmds", except a single script fragment to be evaled but
14506# not shown.
14507finish_eval=$lt_finish_eval
14508
14509# Whether we should hardcode library paths into libraries.
14510hardcode_into_libs=$hardcode_into_libs
14511
14512# Compile-time system search path for libraries.
14513sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14514
14515# Run-time system search path for libraries.
14516sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14517
14518# Whether dlopen is supported.
14519dlopen_support=$enable_dlopen
14520
14521# Whether dlopen of programs is supported.
14522dlopen_self=$enable_dlopen_self
14523
14524# Whether dlopen of statically linked programs is supported.
14525dlopen_self_static=$enable_dlopen_self_static
14526
14527# Commands to strip libraries.
14528old_striplib=$lt_old_striplib
14529striplib=$lt_striplib
14530
14531
14532# The linker used to build libraries.
14533LD=$lt_LD
14534
14535# How to create reloadable object files.
14536reload_flag=$lt_reload_flag
14537reload_cmds=$lt_reload_cmds
14538
14539# Commands used to build an old-style archive.
14540old_archive_cmds=$lt_old_archive_cmds
14541
14542# A language specific compiler.
14543CC=$lt_compiler
14544
14545# Is the compiler the GNU compiler?
14546with_gcc=$GCC
14547
14548# Compiler flag to turn off builtin functions.
14549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14550
14551# Additional compiler flags for building library objects.
14552pic_flag=$lt_lt_prog_compiler_pic
14553
14554# How to pass a linker flag through the compiler.
14555wl=$lt_lt_prog_compiler_wl
14556
14557# Compiler flag to prevent dynamic linking.
14558link_static_flag=$lt_lt_prog_compiler_static
14559
14560# Does compiler simultaneously support -c and -o options?
14561compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14562
14563# Whether or not to add -lc for building shared libraries.
14564build_libtool_need_lc=$archive_cmds_need_lc
14565
14566# Whether or not to disallow shared libs when runtime libs are static.
14567allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14568
14569# Compiler flag to allow reflexive dlopens.
14570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14571
14572# Compiler flag to generate shared objects directly from archives.
14573whole_archive_flag_spec=$lt_whole_archive_flag_spec
14574
14575# Whether the compiler copes with passing no objects directly.
14576compiler_needs_object=$lt_compiler_needs_object
14577
14578# Create an old-style archive from a shared archive.
14579old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14580
14581# Create a temporary old-style archive to link instead of a shared archive.
14582old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14583
14584# Commands used to build a shared archive.
14585archive_cmds=$lt_archive_cmds
14586archive_expsym_cmds=$lt_archive_expsym_cmds
14587
14588# Commands used to build a loadable module if different from building
14589# a shared archive.
14590module_cmds=$lt_module_cmds
14591module_expsym_cmds=$lt_module_expsym_cmds
14592
14593# Whether we are building with GNU ld or not.
14594with_gnu_ld=$lt_with_gnu_ld
14595
14596# Flag that allows shared libraries with undefined symbols to be built.
14597allow_undefined_flag=$lt_allow_undefined_flag
14598
14599# Flag that enforces no undefined symbols.
14600no_undefined_flag=$lt_no_undefined_flag
14601
14602# Flag to hardcode \$libdir into a binary during linking.
14603# This must work even if \$libdir does not exist
14604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14605
14606# Whether we need a single "-rpath" flag with a separated argument.
14607hardcode_libdir_separator=$lt_hardcode_libdir_separator
14608
14609# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14610# DIR into the resulting binary.
14611hardcode_direct=$hardcode_direct
14612
14613# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14614# DIR into the resulting binary and the resulting library dependency is
14615# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14616# library is relocated.
14617hardcode_direct_absolute=$hardcode_direct_absolute
14618
14619# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14620# into the resulting binary.
14621hardcode_minus_L=$hardcode_minus_L
14622
14623# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14624# into the resulting binary.
14625hardcode_shlibpath_var=$hardcode_shlibpath_var
14626
14627# Set to "yes" if building a shared library automatically hardcodes DIR
14628# into the library and all subsequent libraries and executables linked
14629# against it.
14630hardcode_automatic=$hardcode_automatic
14631
14632# Set to yes if linker adds runtime paths of dependent libraries
14633# to runtime path list.
14634inherit_rpath=$inherit_rpath
14635
14636# Whether libtool must link a program against all its dependency libraries.
14637link_all_deplibs=$link_all_deplibs
14638
14639# Set to "yes" if exported symbols are required.
14640always_export_symbols=$always_export_symbols
14641
14642# The commands to list exported symbols.
14643export_symbols_cmds=$lt_export_symbols_cmds
14644
14645# Symbols that should not be listed in the preloaded symbols.
14646exclude_expsyms=$lt_exclude_expsyms
14647
14648# Symbols that must always be exported.
14649include_expsyms=$lt_include_expsyms
14650
14651# Commands necessary for linking programs (against libraries) with templates.
14652prelink_cmds=$lt_prelink_cmds
14653
14654# Commands necessary for finishing linking programs.
14655postlink_cmds=$lt_postlink_cmds
14656
14657# Specify filename containing input files.
14658file_list_spec=$lt_file_list_spec
14659
14660# How to hardcode a shared library path into an executable.
14661hardcode_action=$hardcode_action
14662
14663# ### END LIBTOOL CONFIG
14664
14665_LT_EOF
14666
14667 case $host_os in
14668 aix3*)
14669 cat <<\_LT_EOF >> "$cfgfile"
14670# AIX sometimes has problems with the GCC collect2 program. For some
14671# reason, if we set the COLLECT_NAMES environment variable, the problems
14672# vanish in a puff of smoke.
14673if test "X${COLLECT_NAMES+set}" != Xset; then
14674 COLLECT_NAMES=
14675 export COLLECT_NAMES
14676fi
14677_LT_EOF
14678 ;;
14679 esac
14680
14681
14682ltmain="$ac_aux_dir/ltmain.sh"
14683
14684
14685 # We use sed instead of cat because bash on DJGPP gets confused if
14686 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14687 # text mode, it properly converts lines to CR/LF. This bash problem
14688 # is reportedly fixed, but why not run on old versions too?
14689 sed '$q' "$ltmain" >> "$cfgfile" \
14690 || (rm -f "$cfgfile"; exit 1)
14691
14692 if test x"$xsi_shell" = xyes; then
14693 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14694func_dirname ()\
14695{\
14696\ case ${1} in\
14697\ */*) func_dirname_result="${1%/*}${2}" ;;\
14698\ * ) func_dirname_result="${3}" ;;\
14699\ esac\
14700} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14701 && mv -f "$cfgfile.tmp" "$cfgfile" \
14702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14703test 0 -eq $? || _lt_function_replace_fail=:
14704
14705
14706 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14707func_basename ()\
14708{\
14709\ func_basename_result="${1##*/}"\
14710} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14711 && mv -f "$cfgfile.tmp" "$cfgfile" \
14712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14713test 0 -eq $? || _lt_function_replace_fail=:
14714
14715
14716 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14717func_dirname_and_basename ()\
14718{\
14719\ case ${1} in\
14720\ */*) func_dirname_result="${1%/*}${2}" ;;\
14721\ * ) func_dirname_result="${3}" ;;\
14722\ esac\
14723\ func_basename_result="${1##*/}"\
14724} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14725 && mv -f "$cfgfile.tmp" "$cfgfile" \
14726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14727test 0 -eq $? || _lt_function_replace_fail=:
14728
14729
14730 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14731func_stripname ()\
14732{\
14733\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14734\ # positional parameters, so assign one to ordinary parameter first.\
14735\ func_stripname_result=${3}\
14736\ func_stripname_result=${func_stripname_result#"${1}"}\
14737\ func_stripname_result=${func_stripname_result%"${2}"}\
14738} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14739 && mv -f "$cfgfile.tmp" "$cfgfile" \
14740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14741test 0 -eq $? || _lt_function_replace_fail=:
14742
14743
14744 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14745func_split_long_opt ()\
14746{\
14747\ func_split_long_opt_name=${1%%=*}\
14748\ func_split_long_opt_arg=${1#*=}\
14749} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14750 && mv -f "$cfgfile.tmp" "$cfgfile" \
14751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14752test 0 -eq $? || _lt_function_replace_fail=:
14753
14754
14755 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14756func_split_short_opt ()\
14757{\
14758\ func_split_short_opt_arg=${1#??}\
14759\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14760} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14761 && mv -f "$cfgfile.tmp" "$cfgfile" \
14762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14763test 0 -eq $? || _lt_function_replace_fail=:
14764
14765
14766 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14767func_lo2o ()\
14768{\
14769\ case ${1} in\
14770\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14771\ *) func_lo2o_result=${1} ;;\
14772\ esac\
14773} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14774 && mv -f "$cfgfile.tmp" "$cfgfile" \
14775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14776test 0 -eq $? || _lt_function_replace_fail=:
14777
14778
14779 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14780func_xform ()\
14781{\
14782 func_xform_result=${1%.*}.lo\
14783} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14784 && mv -f "$cfgfile.tmp" "$cfgfile" \
14785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14786test 0 -eq $? || _lt_function_replace_fail=:
14787
14788
14789 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14790func_arith ()\
14791{\
14792 func_arith_result=$(( $* ))\
14793} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14794 && mv -f "$cfgfile.tmp" "$cfgfile" \
14795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14796test 0 -eq $? || _lt_function_replace_fail=:
14797
14798
14799 sed -e '/^func_len ()$/,/^} # func_len /c\
14800func_len ()\
14801{\
14802 func_len_result=${#1}\
14803} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14804 && mv -f "$cfgfile.tmp" "$cfgfile" \
14805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14806test 0 -eq $? || _lt_function_replace_fail=:
14807
14808fi
14809
14810if test x"$lt_shell_append" = xyes; then
14811 sed -e '/^func_append ()$/,/^} # func_append /c\
14812func_append ()\
14813{\
14814 eval "${1}+=\\${2}"\
14815} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14816 && mv -f "$cfgfile.tmp" "$cfgfile" \
14817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818test 0 -eq $? || _lt_function_replace_fail=:
14819
14820
14821 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14822func_append_quoted ()\
14823{\
14824\ func_quote_for_eval "${2}"\
14825\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14826} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14827 && mv -f "$cfgfile.tmp" "$cfgfile" \
14828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14829test 0 -eq $? || _lt_function_replace_fail=:
14830
14831
14832 # Save a `func_append' function call where possible by direct use of '+='
14833 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14834 && mv -f "$cfgfile.tmp" "$cfgfile" \
14835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14836 test 0 -eq $? || _lt_function_replace_fail=:
14837else
14838 # Save a `func_append' function call even when '+=' is not available
14839 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14840 && mv -f "$cfgfile.tmp" "$cfgfile" \
14841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14842 test 0 -eq $? || _lt_function_replace_fail=:
14843fi
14844
14845if test x"$_lt_function_replace_fail" = x":"; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14847$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14848fi
14849
14850
14851 mv -f "$cfgfile" "$ofile" ||
14852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14853 chmod +x "$ofile"
14854
14855 ;;
14856
14857 esac
14858done # for ac_tag
14859
14860
14861as_fn_exit 0
14862_ACEOF
14863ac_clean_files=$ac_clean_files_save
14864
14865test $ac_write_fail = 0 ||
14866 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14867
14868
14869# configure is writing to config.log, and then calls config.status.
14870# config.status does its own redirection, appending to config.log.
14871# Unfortunately, on DOS this fails, as config.log is still kept open
14872# by configure, so config.status won't be able to write to it; its
14873# output is simply discarded. So we exec the FD to /dev/null,
14874# effectively closing config.log, so it can be properly (re)opened and
14875# appended to by config.status. When coming back to configure, we
14876# need to make the FD available again.
14877if test "$no_create" != yes; then
14878 ac_cs_success=:
14879 ac_config_status_args=
14880 test "$silent" = yes &&
14881 ac_config_status_args="$ac_config_status_args --quiet"
14882 exec 5>/dev/null
14883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14884 exec 5>>config.log
14885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14886 # would make configure fail if this is the last instruction.
14887 $ac_cs_success || as_fn_exit 1
14888fi
14889if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14891$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14892fi
14893