Update gupnp-dlna to 0.10.2 (34fee04)
[profile/ivi/GUPnP-DLNA.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gupnp-dlna 0.10.2.
4 #
5 # Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571   # Use only awk features that work with 7th edition Unix awk (1978).
572   # My, what an old awk you have, Mr. Solaris!
573   END {
574     while (length(v1) && length(v2)) {
575       # Set d1 to be the next thing to compare from v1, and likewise for d2.
576       # Normally this is a single character, but if v1 and v2 contain digits,
577       # compare them as integers and fractions as strverscmp does.
578       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579         # Split v1 and v2 into their leading digit string components d1 and d2,
580         # and advance v1 and v2 past the leading digit strings.
581         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585         if (d1 ~ /^0/) {
586           if (d2 ~ /^0/) {
587             # Compare two fractions.
588             while (d1 ~ /^0/ && d2 ~ /^0/) {
589               d1 = substr(d1, 2); len1--
590               d2 = substr(d2, 2); len2--
591             }
592             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593               # The two components differ in length, and the common prefix
594               # contains only leading zeros.  Consider the longer to be less.
595               d1 = -len1
596               d2 = -len2
597             } else {
598               # Otherwise, compare as strings.
599               d1 = "x" d1
600               d2 = "x" d2
601             }
602           } else {
603             # A fraction is less than an integer.
604             exit 1
605           }
606         } else {
607           if (d2 ~ /^0/) {
608             # An integer is greater than a fraction.
609             exit 2
610           } else {
611             # Compare two integers.
612             d1 += 0
613             d2 += 0
614           }
615         }
616       } else {
617         # The normal case, without worrying about digits.
618         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620       }
621       if (d1 < d2) exit 1
622       if (d1 > d2) exit 2
623     }
624     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625     # which mishandles some comparisons of empty strings to integers.
626     if (length(v2)) exit 1
627     if (length(v1)) exit 2
628   }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='gupnp-dlna'
653 PACKAGE_TARNAME='gupnp-dlna'
654 PACKAGE_VERSION='0.10.2'
655 PACKAGE_STRING='gupnp-dlna 0.10.2'
656 PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna'
657 PACKAGE_URL='http://www.gupnp.org/'
658
659 ac_unique_file="libgupnp-dlna/gupnp-dlna-profile.h"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 #  include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 #  include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 HAVE_XMLLINT_FALSE
701 HAVE_XMLLINT_TRUE
702 XMLLINT
703 GLIB_PREFIX
704 GTK_DOC_USE_REBASE_FALSE
705 GTK_DOC_USE_REBASE_TRUE
706 GTK_DOC_USE_LIBTOOL_FALSE
707 GTK_DOC_USE_LIBTOOL_TRUE
708 GTK_DOC_BUILD_PDF_FALSE
709 GTK_DOC_BUILD_PDF_TRUE
710 GTK_DOC_BUILD_HTML_FALSE
711 GTK_DOC_BUILD_HTML_TRUE
712 ENABLE_GTK_DOC_FALSE
713 ENABLE_GTK_DOC_TRUE
714 GTKDOC_DEPS_LIBS
715 GTKDOC_DEPS_CFLAGS
716 HTML_DIR
717 GTKDOC_MKPDF
718 GTKDOC_REBASE
719 GTKDOC_CHECK
720 HAVE_VAPIGEN_FALSE
721 HAVE_VAPIGEN_TRUE
722 VAPIGEN
723 HAVE_INTROSPECTION_FALSE
724 HAVE_INTROSPECTION_TRUE
725 INTROSPECTION_MAKEFILE
726 INTROSPECTION_LIBS
727 INTROSPECTION_CFLAGS
728 INTROSPECTION_TYPELIBDIR
729 INTROSPECTION_GIRDIR
730 INTROSPECTION_GENERATE
731 INTROSPECTION_COMPILER
732 INTROSPECTION_SCANNER
733 GMODULE_LIBS
734 GMODULE_CFLAGS
735 GOBJECT_LIBS
736 GOBJECT_CFLAGS
737 GLIB_LIBS
738 GLIB_CFLAGS
739 GUPNP_DLNA_METADATA_BACKEND_CFLAGS
740 METADATA_DIRECTORY
741 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE
742 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE
743 GST_LEGACY_MAJORMINOR
744 GST_PBU_LEGACY_LIBS
745 GST_PBU_LEGACY_CFLAGS
746 GST_LEGACY_LIBS
747 GST_LEGACY_CFLAGS
748 GSTREAMER_METADATA_BACKEND_ENABLED_FALSE
749 GSTREAMER_METADATA_BACKEND_ENABLED_TRUE
750 GST_MAJORMINOR
751 GST_PBU_LIBS
752 GST_PBU_CFLAGS
753 GST_LIBS
754 GST_CFLAGS
755 LIBXML_LIBS
756 LIBXML_CFLAGS
757 PKG_CONFIG_LIBDIR
758 PKG_CONFIG_PATH
759 PKG_CONFIG
760 OTOOL64
761 OTOOL
762 LIPO
763 NMEDIT
764 DSYMUTIL
765 MANIFEST_TOOL
766 RANLIB
767 ac_ct_AR
768 AR
769 LN_S
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 SED
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 LIBTOOL
785 OBJDUMP
786 DLLTOOL
787 AS
788 EGREP
789 GREP
790 CPP
791 am__fastdepCC_FALSE
792 am__fastdepCC_TRUE
793 CCDEPMODE
794 am__nodep
795 AMDEPBACKSLASH
796 AMDEP_FALSE
797 AMDEP_TRUE
798 am__quote
799 am__include
800 DEPDIR
801 OBJEXT
802 EXEEXT
803 ac_ct_CC
804 CPPFLAGS
805 LDFLAGS
806 CFLAGS
807 CC
808 GUPNP_DLNA_VERSION_INFO
809 AM_BACKSLASH
810 AM_DEFAULT_VERBOSITY
811 AM_DEFAULT_V
812 AM_V
813 MAINT
814 MAINTAINER_MODE_FALSE
815 MAINTAINER_MODE_TRUE
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_maintainer_mode
881 enable_silent_rules
882 enable_dependency_tracking
883 enable_shared
884 enable_static
885 with_pic
886 enable_fast_install
887 with_gnu_ld
888 with_sysroot
889 enable_libtool_lock
890 with_default_metadata_backend
891 enable_gstreamer_metadata_backend
892 enable_legacy_gstreamer_metadata_backend
893 with_default_metadata_backend_dir
894 enable_debug
895 enable_introspection
896 with_html_dir
897 enable_gtk_doc
898 enable_gtk_doc_html
899 enable_gtk_doc_pdf
900 '
901       ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 PKG_CONFIG
911 PKG_CONFIG_PATH
912 PKG_CONFIG_LIBDIR
913 LIBXML_CFLAGS
914 LIBXML_LIBS
915 GST_CFLAGS
916 GST_LIBS
917 GST_PBU_CFLAGS
918 GST_PBU_LIBS
919 GST_LEGACY_CFLAGS
920 GST_LEGACY_LIBS
921 GST_PBU_LEGACY_CFLAGS
922 GST_PBU_LEGACY_LIBS
923 GLIB_CFLAGS
924 GLIB_LIBS
925 GOBJECT_CFLAGS
926 GOBJECT_LIBS
927 GMODULE_CFLAGS
928 GMODULE_LIBS
929 GTKDOC_DEPS_CFLAGS
930 GTKDOC_DEPS_LIBS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
980
981 ac_prev=
982 ac_dashdash=
983 for ac_option
984 do
985   # If the previous option needs an argument, assign it.
986   if test -n "$ac_prev"; then
987     eval $ac_prev=\$ac_option
988     ac_prev=
989     continue
990   fi
991
992   case $ac_option in
993   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994   *=)   ac_optarg= ;;
995   *)    ac_optarg=yes ;;
996   esac
997
998   # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000   case $ac_dashdash$ac_option in
1001   --)
1002     ac_dashdash=yes ;;
1003
1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005     ac_prev=bindir ;;
1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007     bindir=$ac_optarg ;;
1008
1009   -build | --build | --buil | --bui | --bu)
1010     ac_prev=build_alias ;;
1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012     build_alias=$ac_optarg ;;
1013
1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016     ac_prev=cache_file ;;
1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019     cache_file=$ac_optarg ;;
1020
1021   --config-cache | -C)
1022     cache_file=config.cache ;;
1023
1024   -datadir | --datadir | --datadi | --datad)
1025     ac_prev=datadir ;;
1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027     datadir=$ac_optarg ;;
1028
1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030   | --dataroo | --dataro | --datar)
1031     ac_prev=datarootdir ;;
1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034     datarootdir=$ac_optarg ;;
1035
1036   -disable-* | --disable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       as_fn_error $? "invalid feature name: $ac_useropt"
1041     ac_useropt_orig=$ac_useropt
1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043     case $ac_user_opts in
1044       *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048          ac_unrecognized_sep=', ';;
1049     esac
1050     eval enable_$ac_useropt=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066       as_fn_error $? "invalid feature name: $ac_useropt"
1067     ac_useropt_orig=$ac_useropt
1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069     case $ac_user_opts in
1070       *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074          ac_unrecognized_sep=', ';;
1075     esac
1076     eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=\$ac_optarg ;;
1281
1282   -without-* | --without-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error $? "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=no ;;
1297
1298   --x)
1299     # Obsolete; use --with-x.
1300     with_x=yes ;;
1301
1302   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303   | --x-incl | --x-inc | --x-in | --x-i)
1304     ac_prev=x_includes ;;
1305   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307     x_includes=$ac_optarg ;;
1308
1309   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311     ac_prev=x_libraries ;;
1312   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314     x_libraries=$ac_optarg ;;
1315
1316   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information"
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     case $ac_envvar in #(
1324       '' | [0-9]* | *[!_$as_cr_alnum]* )
1325       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1326     esac
1327     eval $ac_envvar=\$ac_optarg
1328     export $ac_envvar ;;
1329
1330   *)
1331     # FIXME: should be removed in autoconf 3.0.
1332     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336     ;;
1337
1338   esac
1339 done
1340
1341 if test -n "$ac_prev"; then
1342   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343   as_fn_error $? "missing argument to $ac_option"
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347   case $enable_option_checking in
1348     no) ;;
1349     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351   esac
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   # Remove trailing slashes.
1362   case $ac_val in
1363     */ )
1364       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365       eval $ac_var=\$ac_val;;
1366   esac
1367   # Be sure to have absolute directory names.
1368   case $ac_val in
1369     [\\/$]* | ?:[\\/]* )  continue;;
1370     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371   esac
1372   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386   elif test "x$build_alias" != "x$host_alias"; then
1387     cross_compiling=yes
1388   fi
1389 fi
1390
1391 ac_tool_prefix=
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394 test "$silent" = yes && exec 6>/dev/null
1395
1396
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400   as_fn_error $? "working directory cannot be determined"
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402   as_fn_error $? "pwd does not report name of working directory"
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407   ac_srcdir_defaulted=yes
1408   # Try the directory containing this script, then the parent directory.
1409   ac_confdir=`$as_dirname -- "$as_myself" ||
1410 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411          X"$as_myself" : 'X\(//\)[^/]' \| \
1412          X"$as_myself" : 'X\(//\)$' \| \
1413          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414 $as_echo X"$as_myself" |
1415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)[^/].*/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\).*/{
1428             s//\1/
1429             q
1430           }
1431           s/.*/./; q'`
1432   srcdir=$ac_confdir
1433   if test ! -r "$srcdir/$ac_unique_file"; then
1434     srcdir=..
1435   fi
1436 else
1437   ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446         pwd)`
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449   srcdir=.
1450 fi
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1454 case $srcdir in
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 esac
1457 for ac_var in $ac_precious_vars; do
1458   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459   eval ac_env_${ac_var}_value=\$${ac_var}
1460   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 done
1463
1464 #
1465 # Report the --help message.
1466 #
1467 if test "$ac_init_help" = "long"; then
1468   # Omit some internal or obsolete options to make the list less imposing.
1469   # This message is too long to be a string in the A/UX 3.1 sh.
1470   cat <<_ACEOF
1471 \`configure' configures gupnp-dlna 0.10.2 to adapt to many kinds of systems.
1472
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE.  See below for descriptions of some of the useful variables.
1477
1478 Defaults for the options are specified in brackets.
1479
1480 Configuration:
1481   -h, --help              display this help and exit
1482       --help=short        display options specific to this package
1483       --help=recursive    display the short help of all the included packages
1484   -V, --version           display version information and exit
1485   -q, --quiet, --silent   do not print \`checking ...' messages
1486       --cache-file=FILE   cache test results in FILE [disabled]
1487   -C, --config-cache      alias for \`--cache-file=config.cache'
1488   -n, --no-create         do not create output files
1489       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1490
1491 Installation directories:
1492   --prefix=PREFIX         install architecture-independent files in PREFIX
1493                           [$ac_default_prefix]
1494   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1495                           [PREFIX]
1496
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1501
1502 For better control, use the options below.
1503
1504 Fine tuning of the installation directories:
1505   --bindir=DIR            user executables [EPREFIX/bin]
1506   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1507   --libexecdir=DIR        program executables [EPREFIX/libexec]
1508   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1509   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1510   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1511   --libdir=DIR            object code libraries [EPREFIX/lib]
1512   --includedir=DIR        C header files [PREFIX/include]
1513   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1514   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1515   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1516   --infodir=DIR           info documentation [DATAROOTDIR/info]
1517   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1518   --mandir=DIR            man documentation [DATAROOTDIR/man]
1519   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp-dlna]
1520   --htmldir=DIR           html documentation [DOCDIR]
1521   --dvidir=DIR            dvi documentation [DOCDIR]
1522   --pdfdir=DIR            pdf documentation [DOCDIR]
1523   --psdir=DIR             ps documentation [DOCDIR]
1524 _ACEOF
1525
1526   cat <<\_ACEOF
1527
1528 Program names:
1529   --program-prefix=PREFIX            prepend PREFIX to installed program names
1530   --program-suffix=SUFFIX            append SUFFIX to installed program names
1531   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1532
1533 System types:
1534   --build=BUILD     configure for building on BUILD [guessed]
1535   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1536 _ACEOF
1537 fi
1538
1539 if test -n "$ac_init_help"; then
1540   case $ac_init_help in
1541      short | recursive ) echo "Configuration of gupnp-dlna 0.10.2:";;
1542    esac
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-option-checking  ignore unrecognized --enable/--with options
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --disable-maintainer-mode  disable make rules and dependencies not useful
1550                           (and sometimes confusing) to the casual installer
1551   --enable-silent-rules          less verbose build output (undo: `make V=1')
1552   --disable-silent-rules         verbose build output (undo: `make V=0')
1553   --disable-dependency-tracking  speeds up one-time build
1554   --enable-dependency-tracking   do not reject slow dependency extractors
1555   --enable-shared[=PKGS]  build shared libraries [default=yes]
1556   --enable-static[=PKGS]  build static libraries [default=yes]
1557   --enable-fast-install[=PKGS]
1558                           optimize for fast installation [default=yes]
1559   --disable-libtool-lock  avoid locking (might break parallel builds)
1560   --enable-gstreamer-metadata-backend
1561                           build a GStreamer metadata backend [default=auto]
1562   --enable-legacy-gstreamer-metadata-backend
1563                           build a GStreamer 0.10 metadata backend [default=no]
1564   --enable-debug          enable debugging [default=no]
1565   --enable-introspection=[no/auto/yes]
1566                           Enable introspection for this build
1567   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1568   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1569   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1570
1571 Optional Packages:
1572   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1573   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1574   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1575                           both]
1576   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1577   --with-sysroot=DIR Search for dependent libraries within DIR
1578                         (or the compiler's sysroot if not specified).
1579   --with-default-metadata-backend=your_backend
1580                           set a default metadata backend [default=gstreamer]
1581   --with-default-metadata-backend-dir=your_directory
1582                           set a default metadata backend directory
1583                           [default=$libdir/$PACKAGE_NAME]
1584   --with-html-dir=PATH    path to installed docs
1585
1586 Some influential environment variables:
1587   CC          C compiler command
1588   CFLAGS      C compiler flags
1589   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1590               nonstandard directory <lib dir>
1591   LIBS        libraries to pass to the linker, e.g. -l<library>
1592   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593               you have headers in a nonstandard directory <include dir>
1594   CPP         C preprocessor
1595   PKG_CONFIG  path to pkg-config utility
1596   PKG_CONFIG_PATH
1597               directories to add to pkg-config's search path
1598   PKG_CONFIG_LIBDIR
1599               path overriding pkg-config's built-in search path
1600   LIBXML_CFLAGS
1601               C compiler flags for LIBXML, overriding pkg-config
1602   LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1603   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1604   GST_LIBS    linker flags for GST, overriding pkg-config
1605   GST_PBU_CFLAGS
1606               C compiler flags for GST_PBU, overriding pkg-config
1607   GST_PBU_LIBS
1608               linker flags for GST_PBU, overriding pkg-config
1609   GST_LEGACY_CFLAGS
1610               C compiler flags for GST_LEGACY, overriding pkg-config
1611   GST_LEGACY_LIBS
1612               linker flags for GST_LEGACY, overriding pkg-config
1613   GST_PBU_LEGACY_CFLAGS
1614               C compiler flags for GST_PBU_LEGACY, overriding pkg-config
1615   GST_PBU_LEGACY_LIBS
1616               linker flags for GST_PBU_LEGACY, overriding pkg-config
1617   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1618   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1619   GOBJECT_CFLAGS
1620               C compiler flags for GOBJECT, overriding pkg-config
1621   GOBJECT_LIBS
1622               linker flags for GOBJECT, overriding pkg-config
1623   GMODULE_CFLAGS
1624               C compiler flags for GMODULE, overriding pkg-config
1625   GMODULE_LIBS
1626               linker flags for GMODULE, overriding pkg-config
1627   GTKDOC_DEPS_CFLAGS
1628               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1629   GTKDOC_DEPS_LIBS
1630               linker flags for GTKDOC_DEPS, overriding pkg-config
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>.
1636 gupnp-dlna home page: <http://www.gupnp.org/>.
1637 _ACEOF
1638 ac_status=$?
1639 fi
1640
1641 if test "$ac_init_help" = "recursive"; then
1642   # If there are subdirs, report their specific --help.
1643   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644     test -d "$ac_dir" ||
1645       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646       continue
1647     ac_builddir=.
1648
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *)
1652   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653   # A ".." for each directory in $ac_dir_suffix.
1654   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655   case $ac_top_builddir_sub in
1656   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658   esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1664
1665 case $srcdir in
1666   .)  # We are building in place.
1667     ac_srcdir=.
1668     ac_top_srcdir=$ac_top_builddir_sub
1669     ac_abs_top_srcdir=$ac_pwd ;;
1670   [\\/]* | ?:[\\/]* )  # Absolute name.
1671     ac_srcdir=$srcdir$ac_dir_suffix;
1672     ac_top_srcdir=$srcdir
1673     ac_abs_top_srcdir=$srcdir ;;
1674   *) # Relative name.
1675     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676     ac_top_srcdir=$ac_top_build_prefix$srcdir
1677     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681     cd "$ac_dir" || { ac_status=$?; continue; }
1682     # Check for guested configure.
1683     if test -f "$ac_srcdir/configure.gnu"; then
1684       echo &&
1685       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686     elif test -f "$ac_srcdir/configure"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure" --help=recursive
1689     else
1690       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691     fi || ac_status=$?
1692     cd "$ac_pwd" || { ac_status=$?; break; }
1693   done
1694 fi
1695
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1698   cat <<\_ACEOF
1699 gupnp-dlna configure 0.10.2
1700 generated by GNU Autoconf 2.69
1701
1702 Copyright (C) 2012 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1705 _ACEOF
1706   exit
1707 fi
1708
1709 ## ------------------------ ##
1710 ## Autoconf initialization. ##
1711 ## ------------------------ ##
1712
1713 # ac_fn_c_try_compile LINENO
1714 # --------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_compile ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext
1720   if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_compile") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_c_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest.$ac_objext; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744         ac_retval=1
1745 fi
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_compile
1750
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } > conftest.i && {
1773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781     ac_retval=1
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798   *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802   (eval "$ac_link") 2>&5
1803   ac_status=$?
1804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806   { { case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_try") 2>&5
1813   ac_status=$?
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; }; }; then :
1816   ac_retval=0
1817 else
1818   $as_echo "$as_me: program exited with status $ac_status" >&5
1819        $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822        ac_retval=$ac_status
1823 fi
1824   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_try_link LINENO
1831 # -----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_link ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   rm -f conftest.$ac_objext conftest$ac_exeext
1837   if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_link") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } && {
1853          test -z "$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        } && test -s conftest$ac_exeext && {
1856          test "$cross_compiling" = yes ||
1857          test -x conftest$ac_exeext
1858        }; then :
1859   ac_retval=0
1860 else
1861   $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864         ac_retval=1
1865 fi
1866   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868   # interfere with the next link command; also delete a directory that is
1869   # left behind by Apple's compiler.  We do this before executing the actions.
1870   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_link
1875
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894   eval "$3=yes"
1895 else
1896   eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_header_compile
1906
1907 # ac_fn_c_check_func LINENO FUNC VAR
1908 # ----------------------------------
1909 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1910 ac_fn_c_check_func ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916   $as_echo_n "(cached) " >&6
1917 else
1918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1922 #define $2 innocuous_$2
1923
1924 /* System header to define __stub macros and hopefully few prototypes,
1925     which can conflict with char $2 (); below.
1926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927     <limits.h> exists even on freestanding compilers.  */
1928
1929 #ifdef __STDC__
1930 # include <limits.h>
1931 #else
1932 # include <assert.h>
1933 #endif
1934
1935 #undef $2
1936
1937 /* Override any GCC internal prototype to avoid an error.
1938    Use char because int might match the return type of a GCC
1939    builtin and then its argument prototype would still apply.  */
1940 #ifdef __cplusplus
1941 extern "C"
1942 #endif
1943 char $2 ();
1944 /* The GNU C library defines this for functions which it implements
1945     to always fail with ENOSYS.  Some functions are actually named
1946     something starting with __ and the normal name is an alias.  */
1947 #if defined __stub_$2 || defined __stub___$2
1948 choke me
1949 #endif
1950
1951 int
1952 main ()
1953 {
1954 return $2 ();
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_link "$LINENO"; then :
1960   eval "$3=yes"
1961 else
1962   eval "$3=no"
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext \
1965     conftest$ac_exeext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_func
1973 cat >config.log <<_ACEOF
1974 This file contains any messages produced by compilers while
1975 running configure, to aid debugging if configure makes a mistake.
1976
1977 It was created by gupnp-dlna $as_me 0.10.2, which was
1978 generated by GNU Autoconf 2.69.  Invocation command line was
1979
1980   $ $0 $@
1981
1982 _ACEOF
1983 exec 5>>config.log
1984 {
1985 cat <<_ASUNAME
1986 ## --------- ##
1987 ## Platform. ##
1988 ## --------- ##
1989
1990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1998
1999 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2000 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2003 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2004 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2005 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2006
2007 _ASUNAME
2008
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014     $as_echo "PATH: $as_dir"
2015   done
2016 IFS=$as_save_IFS
2017
2018 } >&5
2019
2020 cat >&5 <<_ACEOF
2021
2022
2023 ## ----------- ##
2024 ## Core tests. ##
2025 ## ----------- ##
2026
2027 _ACEOF
2028
2029
2030 # Keep a trace of the command line.
2031 # Strip out --no-create and --no-recursion so they do not pile up.
2032 # Strip out --silent because we don't want to record it for future runs.
2033 # Also quote any args containing shell meta-characters.
2034 # Make two passes to allow for proper duplicate-argument suppression.
2035 ac_configure_args=
2036 ac_configure_args0=
2037 ac_configure_args1=
2038 ac_must_keep_next=false
2039 for ac_pass in 1 2
2040 do
2041   for ac_arg
2042   do
2043     case $ac_arg in
2044     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046     | -silent | --silent | --silen | --sile | --sil)
2047       continue ;;
2048     *\'*)
2049       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050     esac
2051     case $ac_pass in
2052     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053     2)
2054       as_fn_append ac_configure_args1 " '$ac_arg'"
2055       if test $ac_must_keep_next = true; then
2056         ac_must_keep_next=false # Got value, back to normal.
2057       else
2058         case $ac_arg in
2059           *=* | --config-cache | -C | -disable-* | --disable-* \
2060           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062           | -with-* | --with-* | -without-* | --without-* | --x)
2063             case "$ac_configure_args0 " in
2064               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065             esac
2066             ;;
2067           -* ) ac_must_keep_next=true ;;
2068         esac
2069       fi
2070       as_fn_append ac_configure_args " '$ac_arg'"
2071       ;;
2072     esac
2073   done
2074 done
2075 { ac_configure_args0=; unset ac_configure_args0;}
2076 { ac_configure_args1=; unset ac_configure_args1;}
2077
2078 # When interrupted or exit'd, cleanup temporary files, and complete
2079 # config.log.  We remove comments because anyway the quotes in there
2080 # would cause problems or look ugly.
2081 # WARNING: Use '\'' to represent an apostrophe within the trap.
2082 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083 trap 'exit_status=$?
2084   # Save into config.log some information that might help in debugging.
2085   {
2086     echo
2087
2088     $as_echo "## ---------------- ##
2089 ## Cache variables. ##
2090 ## ---------------- ##"
2091     echo
2092     # The following way of writing the cache mishandles newlines in values,
2093 (
2094   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095     eval ac_val=\$$ac_var
2096     case $ac_val in #(
2097     *${as_nl}*)
2098       case $ac_var in #(
2099       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101       esac
2102       case $ac_var in #(
2103       _ | IFS | as_nl) ;; #(
2104       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105       *) { eval $ac_var=; unset $ac_var;} ;;
2106       esac ;;
2107     esac
2108   done
2109   (set) 2>&1 |
2110     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111     *${as_nl}ac_space=\ *)
2112       sed -n \
2113         "s/'\''/'\''\\\\'\'''\''/g;
2114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115       ;; #(
2116     *)
2117       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118       ;;
2119     esac |
2120     sort
2121 )
2122     echo
2123
2124     $as_echo "## ----------------- ##
2125 ## Output variables. ##
2126 ## ----------------- ##"
2127     echo
2128     for ac_var in $ac_subst_vars
2129     do
2130       eval ac_val=\$$ac_var
2131       case $ac_val in
2132       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133       esac
2134       $as_echo "$ac_var='\''$ac_val'\''"
2135     done | sort
2136     echo
2137
2138     if test -n "$ac_subst_files"; then
2139       $as_echo "## ------------------- ##
2140 ## File substitutions. ##
2141 ## ------------------- ##"
2142       echo
2143       for ac_var in $ac_subst_files
2144       do
2145         eval ac_val=\$$ac_var
2146         case $ac_val in
2147         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148         esac
2149         $as_echo "$ac_var='\''$ac_val'\''"
2150       done | sort
2151       echo
2152     fi
2153
2154     if test -s confdefs.h; then
2155       $as_echo "## ----------- ##
2156 ## confdefs.h. ##
2157 ## ----------- ##"
2158       echo
2159       cat confdefs.h
2160       echo
2161     fi
2162     test "$ac_signal" != 0 &&
2163       $as_echo "$as_me: caught signal $ac_signal"
2164     $as_echo "$as_me: exit $exit_status"
2165   } >&5
2166   rm -f core *.core core.conftest.* &&
2167     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168     exit $exit_status
2169 ' 0
2170 for ac_signal in 1 2 13 15; do
2171   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172 done
2173 ac_signal=0
2174
2175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2176 rm -f -r conftest* confdefs.h
2177
2178 $as_echo "/* confdefs.h */" > confdefs.h
2179
2180 # Predefined preprocessor variables.
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_NAME "$PACKAGE_NAME"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_STRING "$PACKAGE_STRING"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_URL "$PACKAGE_URL"
2204 _ACEOF
2205
2206
2207 # Let the site file select an alternate cache file if it wants to.
2208 # Prefer an explicitly selected file to automatically selected ones.
2209 ac_site_file1=NONE
2210 ac_site_file2=NONE
2211 if test -n "$CONFIG_SITE"; then
2212   # We do not want a PATH search for config.site.
2213   case $CONFIG_SITE in #((
2214     -*)  ac_site_file1=./$CONFIG_SITE;;
2215     */*) ac_site_file1=$CONFIG_SITE;;
2216     *)   ac_site_file1=./$CONFIG_SITE;;
2217   esac
2218 elif test "x$prefix" != xNONE; then
2219   ac_site_file1=$prefix/share/config.site
2220   ac_site_file2=$prefix/etc/config.site
2221 else
2222   ac_site_file1=$ac_default_prefix/share/config.site
2223   ac_site_file2=$ac_default_prefix/etc/config.site
2224 fi
2225 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226 do
2227   test "x$ac_site_file" = xNONE && continue
2228   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2229     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231     sed 's/^/| /' "$ac_site_file" >&5
2232     . "$ac_site_file" \
2233       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235 as_fn_error $? "failed to load site script $ac_site_file
2236 See \`config.log' for more details" "$LINENO" 5; }
2237   fi
2238 done
2239
2240 if test -r "$cache_file"; then
2241   # Some versions of bash will fail to source /dev/null (special files
2242   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2243   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2244     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2245 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246     case $cache_file in
2247       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2248       *)                      . "./$cache_file";;
2249     esac
2250   fi
2251 else
2252   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2253 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254   >$cache_file
2255 fi
2256
2257 # Check that the precious variables saved in the cache have kept the same
2258 # value.
2259 ac_cache_corrupted=false
2260 for ac_var in $ac_precious_vars; do
2261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262   eval ac_new_set=\$ac_env_${ac_var}_set
2263   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264   eval ac_new_val=\$ac_env_${ac_var}_value
2265   case $ac_old_set,$ac_new_set in
2266     set,)
2267       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269       ac_cache_corrupted=: ;;
2270     ,set)
2271       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273       ac_cache_corrupted=: ;;
2274     ,);;
2275     *)
2276       if test "x$ac_old_val" != "x$ac_new_val"; then
2277         # differences in whitespace do not lead to failure.
2278         ac_old_val_w=`echo x $ac_old_val`
2279         ac_new_val_w=`echo x $ac_new_val`
2280         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283           ac_cache_corrupted=:
2284         else
2285           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287           eval $ac_var=\$ac_old_val
2288         fi
2289         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2290 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2291         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2292 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2293       fi;;
2294   esac
2295   # Pass precious variables to config.status.
2296   if test "$ac_new_set" = set; then
2297     case $ac_new_val in
2298     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299     *) ac_arg=$ac_var=$ac_new_val ;;
2300     esac
2301     case " $ac_configure_args " in
2302       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2303       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304     esac
2305   fi
2306 done
2307 if $ac_cache_corrupted; then
2308   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 fi
2314 ## -------------------- ##
2315 ## Main body of script. ##
2316 ## -------------------- ##
2317
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324
2325
2326 ac_config_headers="$ac_config_headers config.h"
2327
2328
2329
2330 ac_aux_dir=
2331 for ac_dir in build-aux "$srcdir"/build-aux; do
2332   if test -f "$ac_dir/install-sh"; then
2333     ac_aux_dir=$ac_dir
2334     ac_install_sh="$ac_aux_dir/install-sh -c"
2335     break
2336   elif test -f "$ac_dir/install.sh"; then
2337     ac_aux_dir=$ac_dir
2338     ac_install_sh="$ac_aux_dir/install.sh -c"
2339     break
2340   elif test -f "$ac_dir/shtool"; then
2341     ac_aux_dir=$ac_dir
2342     ac_install_sh="$ac_aux_dir/shtool install -c"
2343     break
2344   fi
2345 done
2346 if test -z "$ac_aux_dir"; then
2347   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2348 fi
2349
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2356 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2357
2358
2359
2360 am__api_version='1.11'
2361
2362 # Find a good install program.  We prefer a C program (faster),
2363 # so one script is as good as another.  But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if ${ac_cv_path_install+:} false; then :
2380   $as_echo_n "(cached) " >&6
2381 else
2382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385   IFS=$as_save_IFS
2386   test -z "$as_dir" && as_dir=.
2387     # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389   ./ | .// | /[cC]/* | \
2390   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392   /usr/ucb/* ) ;;
2393   *)
2394     # OSF1 and SCO ODT 3.0 have their own names for install.
2395     # Don't use installbsd from OSF since it installs stuff as root
2396     # by default.
2397     for ac_prog in ginstall scoinst install; do
2398       for ac_exec_ext in '' $ac_executable_extensions; do
2399         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2400           if test $ac_prog = install &&
2401             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402             # AIX install.  It has an incompatible calling convention.
2403             :
2404           elif test $ac_prog = install &&
2405             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406             # program-specific install script used by HP pwplus--don't use.
2407             :
2408           else
2409             rm -rf conftest.one conftest.two conftest.dir
2410             echo one > conftest.one
2411             echo two > conftest.two
2412             mkdir conftest.dir
2413             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414               test -s conftest.one && test -s conftest.two &&
2415               test -s conftest.dir/conftest.one &&
2416               test -s conftest.dir/conftest.two
2417             then
2418               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419               break 3
2420             fi
2421           fi
2422         fi
2423       done
2424     done
2425     ;;
2426 esac
2427
2428   done
2429 IFS=$as_save_IFS
2430
2431 rm -rf conftest.one conftest.two conftest.dir
2432
2433 fi
2434   if test "${ac_cv_path_install+set}" = set; then
2435     INSTALL=$ac_cv_path_install
2436   else
2437     # As a last resort, use the slow shell script.  Don't cache a
2438     # value for INSTALL within a source directory, because that will
2439     # break other packages using the cache if that directory is
2440     # removed, or if the value is a relative name.
2441     INSTALL=$ac_install_sh
2442   fi
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2446
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2452
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2456 $as_echo_n "checking whether build environment is sane... " >&6; }
2457 # Just in case
2458 sleep 1
2459 echo timestamp > conftest.file
2460 # Reject unsafe characters in $srcdir or the absolute working directory
2461 # name.  Accept space and tab only in the latter.
2462 am_lf='
2463 '
2464 case `pwd` in
2465   *[\\\"\#\$\&\'\`$am_lf]*)
2466     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2467 esac
2468 case $srcdir in
2469   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2470     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2471 esac
2472
2473 # Do `set' in a subshell so we don't clobber the current shell's
2474 # arguments.  Must try -L first in case configure is actually a
2475 # symlink; some systems play weird games with the mod time of symlinks
2476 # (eg FreeBSD returns the mod time of the symlink's containing
2477 # directory).
2478 if (
2479    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2480    if test "$*" = "X"; then
2481       # -L didn't work.
2482       set X `ls -t "$srcdir/configure" conftest.file`
2483    fi
2484    rm -f conftest.file
2485    if test "$*" != "X $srcdir/configure conftest.file" \
2486       && test "$*" != "X conftest.file $srcdir/configure"; then
2487
2488       # If neither matched, then we have a broken ls.  This can happen
2489       # if, for instance, CONFIG_SHELL is bash and it inherits a
2490       # broken ls alias from the environment.  This has actually
2491       # happened.  Such a system could not be considered "sane".
2492       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2493 alias in your environment" "$LINENO" 5
2494    fi
2495
2496    test "$2" = conftest.file
2497    )
2498 then
2499    # Ok.
2500    :
2501 else
2502    as_fn_error $? "newly created file is older than distributed files!
2503 Check your system clock" "$LINENO" 5
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2506 $as_echo "yes" >&6; }
2507 test "$program_prefix" != NONE &&
2508   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2509 # Use a double $ so make ignores it.
2510 test "$program_suffix" != NONE &&
2511   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2512 # Double any \ or $.
2513 # By default was `s,x,x', remove it if useless.
2514 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2515 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2516
2517 # expand $ac_aux_dir to an absolute path
2518 am_aux_dir=`cd $ac_aux_dir && pwd`
2519
2520 if test x"${MISSING+set}" != xset; then
2521   case $am_aux_dir in
2522   *\ * | *\     *)
2523     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2524   *)
2525     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2526   esac
2527 fi
2528 # Use eval to expand $SHELL
2529 if eval "$MISSING --run true"; then
2530   am_missing_run="$MISSING --run "
2531 else
2532   am_missing_run=
2533   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2534 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2535 fi
2536
2537 if test x"${install_sh}" != xset; then
2538   case $am_aux_dir in
2539   *\ * | *\     *)
2540     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2541   *)
2542     install_sh="\${SHELL} $am_aux_dir/install-sh"
2543   esac
2544 fi
2545
2546 # Installed binaries are usually stripped using `strip' when the user
2547 # run `make install-strip'.  However `strip' might not be the right
2548 # tool to use in cross-compilation environments, therefore Automake
2549 # will honor the `STRIP' environment variable to overrule this program.
2550 if test "$cross_compiling" != no; then
2551   if test -n "$ac_tool_prefix"; then
2552   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}strip; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_STRIP+:} false; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   if test -n "$STRIP"; then
2560   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     for ac_exec_ext in '' $ac_executable_extensions; do
2568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574   done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 STRIP=$ac_cv_prog_STRIP
2580 if test -n "$STRIP"; then
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2582 $as_echo "$STRIP" >&6; }
2583 else
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$ac_cv_prog_STRIP"; then
2591   ac_ct_STRIP=$STRIP
2592   # Extract the first word of "strip", so it can be a program name with args.
2593 set dummy strip; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2597   $as_echo_n "(cached) " >&6
2598 else
2599   if test -n "$ac_ct_STRIP"; then
2600   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607     for ac_exec_ext in '' $ac_executable_extensions; do
2608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609     ac_cv_prog_ac_ct_STRIP="strip"
2610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614   done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2620 if test -n "$ac_ct_STRIP"; then
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2622 $as_echo "$ac_ct_STRIP" >&6; }
2623 else
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628   if test "x$ac_ct_STRIP" = x; then
2629     STRIP=":"
2630   else
2631     case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637     STRIP=$ac_ct_STRIP
2638   fi
2639 else
2640   STRIP="$ac_cv_prog_STRIP"
2641 fi
2642
2643 fi
2644 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2647 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2648 if test -z "$MKDIR_P"; then
2649   if ${ac_cv_path_mkdir+:} false; then :
2650   $as_echo_n "(cached) " >&6
2651 else
2652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657     for ac_prog in mkdir gmkdir; do
2658          for ac_exec_ext in '' $ac_executable_extensions; do
2659            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2660            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2661              'mkdir (GNU coreutils) '* | \
2662              'mkdir (coreutils) '* | \
2663              'mkdir (fileutils) '4.1*)
2664                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2665                break 3;;
2666            esac
2667          done
2668        done
2669   done
2670 IFS=$as_save_IFS
2671
2672 fi
2673
2674   test -d ./--version && rmdir ./--version
2675   if test "${ac_cv_path_mkdir+set}" = set; then
2676     MKDIR_P="$ac_cv_path_mkdir -p"
2677   else
2678     # As a last resort, use the slow shell script.  Don't cache a
2679     # value for MKDIR_P within a source directory, because that will
2680     # break other packages using the cache if that directory is
2681     # removed, or if the value is a relative name.
2682     MKDIR_P="$ac_install_sh -d"
2683   fi
2684 fi
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2686 $as_echo "$MKDIR_P" >&6; }
2687
2688 mkdir_p="$MKDIR_P"
2689 case $mkdir_p in
2690   [\\/$]* | ?:[\\/]*) ;;
2691   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2692 esac
2693
2694 for ac_prog in gawk mawk nawk awk
2695 do
2696   # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_AWK+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$AWK"; then
2704   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713     ac_cv_prog_AWK="$ac_prog"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 AWK=$ac_cv_prog_AWK
2724 if test -n "$AWK"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2726 $as_echo "$AWK" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   test -n "$AWK" && break
2734 done
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2738 set x ${MAKE-make}
2739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2740 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   cat >conftest.make <<\_ACEOF
2744 SHELL = /bin/sh
2745 all:
2746         @echo '@@@%%%=$(MAKE)=@@@%%%'
2747 _ACEOF
2748 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2750   *@@@%%%=?*=@@@%%%*)
2751     eval ac_cv_prog_make_${ac_make}_set=yes;;
2752   *)
2753     eval ac_cv_prog_make_${ac_make}_set=no;;
2754 esac
2755 rm -f conftest.make
2756 fi
2757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760   SET_MAKE=
2761 else
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764   SET_MAKE="MAKE=${MAKE-make}"
2765 fi
2766
2767 rm -rf .tst 2>/dev/null
2768 mkdir .tst 2>/dev/null
2769 if test -d .tst; then
2770   am__leading_dot=.
2771 else
2772   am__leading_dot=_
2773 fi
2774 rmdir .tst 2>/dev/null
2775
2776 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2777   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2778   # is not polluted with repeated "-I."
2779   am__isrc=' -I$(srcdir)'
2780   # test to see if srcdir already configured
2781   if test -f $srcdir/config.status; then
2782     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2783   fi
2784 fi
2785
2786 # test whether we have cygpath
2787 if test -z "$CYGPATH_W"; then
2788   if (cygpath --version) >/dev/null 2>/dev/null; then
2789     CYGPATH_W='cygpath -w'
2790   else
2791     CYGPATH_W=echo
2792   fi
2793 fi
2794
2795
2796 # Define the identity of the package.
2797  PACKAGE='gupnp-dlna'
2798  VERSION='0.10.2'
2799
2800
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE "$PACKAGE"
2803 _ACEOF
2804
2805
2806 cat >>confdefs.h <<_ACEOF
2807 #define VERSION "$VERSION"
2808 _ACEOF
2809
2810 # Some tools Automake needs.
2811
2812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2813
2814
2815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2816
2817
2818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2819
2820
2821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2822
2823
2824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2825
2826 # We need awk for the "check" target.  The system "awk" is bad on
2827 # some platforms.
2828 # Always define AMTAR for backward compatibility.  Yes, it's still used
2829 # in the wild :-(  We should find a proper way to deprecate it ...
2830 AMTAR='$${TAR-tar}'
2831
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2834 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2835 # Loop over all known methods to create a tar archive until one works.
2836 _am_tools='gnutar plaintar pax cpio none'
2837 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2838 # Do not fold the above two line into one, because Tru64 sh and
2839 # Solaris sh will not grok spaces in the rhs of `-'.
2840 for _am_tool in $_am_tools
2841 do
2842   case $_am_tool in
2843   gnutar)
2844     for _am_tar in tar gnutar gtar;
2845     do
2846       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2847    ($_am_tar --version) >&5 2>&5
2848    ac_status=$?
2849    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850    (exit $ac_status); } && break
2851     done
2852     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2853     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2854     am__untar="$_am_tar -xf -"
2855     ;;
2856   plaintar)
2857     # Must skip GNU tar: if it does not support --format= it doesn't create
2858     # ustar tarball either.
2859     (tar --version) >/dev/null 2>&1 && continue
2860     am__tar='tar chf - "$$tardir"'
2861     am__tar_='tar chf - "$tardir"'
2862     am__untar='tar xf -'
2863     ;;
2864   pax)
2865     am__tar='pax -L -x ustar -w "$$tardir"'
2866     am__tar_='pax -L -x ustar -w "$tardir"'
2867     am__untar='pax -r'
2868     ;;
2869   cpio)
2870     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2871     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2872     am__untar='cpio -i -H ustar -d'
2873     ;;
2874   none)
2875     am__tar=false
2876     am__tar_=false
2877     am__untar=false
2878     ;;
2879   esac
2880
2881   # If the value was cached, stop now.  We just wanted to have am__tar
2882   # and am__untar set.
2883   test -n "${am_cv_prog_tar_ustar}" && break
2884
2885   # tar/untar a dummy directory, and stop if the command works
2886   rm -rf conftest.dir
2887   mkdir conftest.dir
2888   echo GrepMe > conftest.dir/file
2889   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2890    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2891    ac_status=$?
2892    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893    (exit $ac_status); }
2894   rm -rf conftest.dir
2895   if test -s conftest.tar; then
2896     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2897    ($am__untar <conftest.tar) >&5 2>&5
2898    ac_status=$?
2899    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900    (exit $ac_status); }
2901     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2902   fi
2903 done
2904 rm -rf conftest.dir
2905
2906 if ${am_cv_prog_tar_ustar+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   am_cv_prog_tar_ustar=$_am_tool
2910 fi
2911
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2913 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2914
2915
2916
2917
2918
2919
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2921 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2922     # Check whether --enable-maintainer-mode was given.
2923 if test "${enable_maintainer_mode+set}" = set; then :
2924   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2925 else
2926   USE_MAINTAINER_MODE=yes
2927 fi
2928
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2930 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2931    if test $USE_MAINTAINER_MODE = yes; then
2932   MAINTAINER_MODE_TRUE=
2933   MAINTAINER_MODE_FALSE='#'
2934 else
2935   MAINTAINER_MODE_TRUE='#'
2936   MAINTAINER_MODE_FALSE=
2937 fi
2938
2939   MAINT=$MAINTAINER_MODE_TRUE
2940
2941
2942
2943 # Check whether --enable-silent-rules was given.
2944 if test "${enable_silent_rules+set}" = set; then :
2945   enableval=$enable_silent_rules;
2946 fi
2947
2948 case $enable_silent_rules in
2949 yes) AM_DEFAULT_VERBOSITY=0;;
2950 no)  AM_DEFAULT_VERBOSITY=1;;
2951 *)   AM_DEFAULT_VERBOSITY=0;;
2952 esac
2953 am_make=${MAKE-make}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2955 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2956 if ${am_cv_make_support_nested_variables+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if $as_echo 'TRUE=$(BAR$(V))
2960 BAR0=false
2961 BAR1=true
2962 V=1
2963 am__doit:
2964         @$(TRUE)
2965 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2966   am_cv_make_support_nested_variables=yes
2967 else
2968   am_cv_make_support_nested_variables=no
2969 fi
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2972 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2973 if test $am_cv_make_support_nested_variables = yes; then
2974     AM_V='$(V)'
2975   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2976 else
2977   AM_V=$AM_DEFAULT_VERBOSITY
2978   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2979 fi
2980 AM_BACKSLASH='\'
2981
2982
2983 GUPNP_DLNA_CURRENT=3
2984
2985 GUPNP_DLNA_REVISION=0
2986
2987 GUPNP_DLNA_AGE=0
2988
2989 GUPNP_DLNA_VERSION_INFO="$GUPNP_DLNA_CURRENT:$GUPNP_DLNA_REVISION:$GUPNP_DLNA_AGE"
2990
2991
2992 # Check for programs
2993 ac_ext=c
2994 ac_cpp='$CPP $CPPFLAGS'
2995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 if test -n "$ac_tool_prefix"; then
2999   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   if test -n "$CC"; then
3007   ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     for ac_exec_ext in '' $ac_executable_extensions; do
3015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021   done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035
3036 fi
3037 if test -z "$ac_cv_prog_CC"; then
3038   ac_ct_CC=$CC
3039   # Extract the first word of "gcc", so it can be a program name with args.
3040 set dummy gcc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$ac_ct_CC"; then
3047   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054     for ac_exec_ext in '' $ac_executable_extensions; do
3055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056     ac_cv_prog_ac_ct_CC="gcc"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3069 $as_echo "$ac_ct_CC" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075   if test "x$ac_ct_CC" = x; then
3076     CC=""
3077   else
3078     case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3083 esac
3084     CC=$ac_ct_CC
3085   fi
3086 else
3087   CC="$ac_cv_prog_CC"
3088 fi
3089
3090 if test -z "$CC"; then
3091           if test -n "$ac_tool_prefix"; then
3092     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3093 set dummy ${ac_tool_prefix}cc; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_CC+:} false; then :
3097   $as_echo_n "(cached) " >&6
3098 else
3099   if test -n "$CC"; then
3100   ac_cv_prog_CC="$CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105   IFS=$as_save_IFS
3106   test -z "$as_dir" && as_dir=.
3107     for ac_exec_ext in '' $ac_executable_extensions; do
3108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109     ac_cv_prog_CC="${ac_tool_prefix}cc"
3110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111     break 2
3112   fi
3113 done
3114   done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 CC=$ac_cv_prog_CC
3120 if test -n "$CC"; then
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122 $as_echo "$CC" >&6; }
3123 else
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129   fi
3130 fi
3131 if test -z "$CC"; then
3132   # Extract the first word of "cc", so it can be a program name with args.
3133 set dummy cc; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142   ac_prog_rejected=no
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3151        ac_prog_rejected=yes
3152        continue
3153      fi
3154     ac_cv_prog_CC="cc"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 if test $ac_prog_rejected = yes; then
3163   # We found a bogon in the path, so make sure we never use it.
3164   set dummy $ac_cv_prog_CC
3165   shift
3166   if test $# != 0; then
3167     # We chose a different compiler from the bogus one.
3168     # However, it has the same basename, so the bogon will be chosen
3169     # first if we set CC to just the basename; use the full file name.
3170     shift
3171     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172   fi
3173 fi
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$CC"; then
3188   if test -n "$ac_tool_prefix"; then
3189   for ac_prog in cl.exe
3190   do
3191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_CC+:} false; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$CC"; then
3199   ac_cv_prog_CC="$CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228     test -n "$CC" && break
3229   done
3230 fi
3231 if test -z "$CC"; then
3232   ac_ct_CC=$CC
3233   for ac_prog in cl.exe
3234 do
3235   # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   if test -n "$ac_ct_CC"; then
3243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248   IFS=$as_save_IFS
3249   test -z "$as_dir" && as_dir=.
3250     for ac_exec_ext in '' $ac_executable_extensions; do
3251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252     ac_cv_prog_ac_ct_CC="$ac_prog"
3253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254     break 2
3255   fi
3256 done
3257   done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263 if test -n "$ac_ct_CC"; then
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265 $as_echo "$ac_ct_CC" >&6; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272   test -n "$ac_ct_CC" && break
3273 done
3274
3275   if test "x$ac_ct_CC" = x; then
3276     CC=""
3277   else
3278     case $cross_compiling:$ac_tool_warned in
3279 yes:)
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282 ac_tool_warned=yes ;;
3283 esac
3284     CC=$ac_ct_CC
3285   fi
3286 fi
3287
3288 fi
3289
3290
3291 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "no acceptable C compiler found in \$PATH
3294 See \`config.log' for more details" "$LINENO" 5; }
3295
3296 # Provide some information about the compiler.
3297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3298 set X $ac_compile
3299 ac_compiler=$2
3300 for ac_option in --version -v -V -qversion; do
3301   { { ac_try="$ac_compiler $ac_option >&5"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3309   ac_status=$?
3310   if test -s conftest.err; then
3311     sed '10a\
3312 ... rest of stderr output deleted ...
3313          10q' conftest.err >conftest.er1
3314     cat conftest.er1 >&5
3315   fi
3316   rm -f conftest.er1 conftest.err
3317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318   test $ac_status = 0; }
3319 done
3320
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323
3324 int
3325 main ()
3326 {
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 ac_clean_files_save=$ac_clean_files
3333 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3334 # Try to create an executable without -o first, disregard a.out.
3335 # It will help us diagnose broken compilers, and finding out an intuition
3336 # of exeext.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3338 $as_echo_n "checking whether the C compiler works... " >&6; }
3339 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3340
3341 # The possible output files:
3342 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3343
3344 ac_rmfiles=
3345 for ac_file in $ac_files
3346 do
3347   case $ac_file in
3348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3349     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3350   esac
3351 done
3352 rm -f $ac_rmfiles
3353
3354 if { { ac_try="$ac_link_default"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361   (eval "$ac_link_default") 2>&5
3362   ac_status=$?
3363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364   test $ac_status = 0; }; then :
3365   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3366 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3367 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3368 # so that the user can short-circuit this test for compilers unknown to
3369 # Autoconf.
3370 for ac_file in $ac_files ''
3371 do
3372   test -f "$ac_file" || continue
3373   case $ac_file in
3374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3375         ;;
3376     [ab].out )
3377         # We found the default executable, but exeext='' is most
3378         # certainly right.
3379         break;;
3380     *.* )
3381         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3382         then :; else
3383            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384         fi
3385         # We set ac_cv_exeext here because the later test for it is not
3386         # safe: cross compilers may not add the suffix if given an `-o'
3387         # argument, so we may need to know it at that point already.
3388         # Even if this section looks crufty: it has the advantage of
3389         # actually working.
3390         break;;
3391     * )
3392         break;;
3393   esac
3394 done
3395 test "$ac_cv_exeext" = no && ac_cv_exeext=
3396
3397 else
3398   ac_file=''
3399 fi
3400 if test -z "$ac_file"; then :
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error 77 "C compiler cannot create executables
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 else
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3412 $as_echo "yes" >&6; }
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3415 $as_echo_n "checking for C compiler default output file name... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3417 $as_echo "$ac_file" >&6; }
3418 ac_exeext=$ac_cv_exeext
3419
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { { ac_try="$ac_link"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_link") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; }; then :
3435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 # `rm'.
3439 for ac_file in conftest.exe conftest conftest.*; do
3440   test -f "$ac_file" || continue
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444           break;;
3445     * ) break;;
3446   esac
3447 done
3448 else
3449   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details" "$LINENO" 5; }
3453 fi
3454 rm -f conftest conftest$ac_cv_exeext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3456 $as_echo "$ac_cv_exeext" >&6; }
3457
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3460 ac_exeext=$EXEEXT
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463 #include <stdio.h>
3464 int
3465 main ()
3466 {
3467 FILE *f = fopen ("conftest.out", "w");
3468  return ferror (f) || fclose (f) != 0;
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 ac_clean_files="$ac_clean_files conftest.out"
3475 # Check that the compiler produces executables we can run.  If not, either
3476 # the compiler is broken, or we cross compile.
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3478 $as_echo_n "checking whether we are cross compiling... " >&6; }
3479 if test "$cross_compiling" != yes; then
3480   { { ac_try="$ac_link"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487   (eval "$ac_link") 2>&5
3488   ac_status=$?
3489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490   test $ac_status = 0; }
3491   if { ac_try='./conftest$ac_cv_exeext'
3492   { { case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498   (eval "$ac_try") 2>&5
3499   ac_status=$?
3500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501   test $ac_status = 0; }; }; then
3502     cross_compiling=no
3503   else
3504     if test "$cross_compiling" = maybe; then
3505         cross_compiling=yes
3506     else
3507         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error $? "cannot run C compiled programs.
3510 If you meant to cross compile, use \`--host'.
3511 See \`config.log' for more details" "$LINENO" 5; }
3512     fi
3513   fi
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3517
3518 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3519 ac_clean_files=$ac_clean_files_save
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3521 $as_echo_n "checking for suffix of object files... " >&6; }
3522 if ${ac_cv_objext+:} false; then :
3523   $as_echo_n "(cached) " >&6
3524 else
3525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.o conftest.obj
3537 if { { ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544   (eval "$ac_compile") 2>&5
3545   ac_status=$?
3546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547   test $ac_status = 0; }; then :
3548   for ac_file in conftest.o conftest.obj conftest.*; do
3549   test -f "$ac_file" || continue;
3550   case $ac_file in
3551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3553        break;;
3554   esac
3555 done
3556 else
3557   $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 as_fn_error $? "cannot compute suffix of object files: cannot compile
3563 See \`config.log' for more details" "$LINENO" 5; }
3564 fi
3565 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3568 $as_echo "$ac_cv_objext" >&6; }
3569 OBJEXT=$ac_cv_objext
3570 ac_objext=$OBJEXT
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3572 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3573 if ${ac_cv_c_compiler_gnu+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582 #ifndef __GNUC__
3583        choke me
3584 #endif
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591   ac_compiler_gnu=yes
3592 else
3593   ac_compiler_gnu=no
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3597
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3600 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3601 if test $ac_compiler_gnu = yes; then
3602   GCC=yes
3603 else
3604   GCC=
3605 fi
3606 ac_test_CFLAGS=${CFLAGS+set}
3607 ac_save_CFLAGS=$CFLAGS
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3609 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3610 if ${ac_cv_prog_cc_g+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_save_c_werror_flag=$ac_c_werror_flag
3614    ac_c_werror_flag=yes
3615    ac_cv_prog_cc_g=no
3616    CFLAGS="-g"
3617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629   ac_cv_prog_cc_g=yes
3630 else
3631   CFLAGS=""
3632       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h.  */
3634
3635 int
3636 main ()
3637 {
3638
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644
3645 else
3646   ac_c_werror_flag=$ac_save_c_werror_flag
3647          CFLAGS="-g"
3648          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660   ac_cv_prog_cc_g=yes
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667    ac_c_werror_flag=$ac_save_c_werror_flag
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3670 $as_echo "$ac_cv_prog_cc_g" >&6; }
3671 if test "$ac_test_CFLAGS" = set; then
3672   CFLAGS=$ac_save_CFLAGS
3673 elif test $ac_cv_prog_cc_g = yes; then
3674   if test "$GCC" = yes; then
3675     CFLAGS="-g -O2"
3676   else
3677     CFLAGS="-g"
3678   fi
3679 else
3680   if test "$GCC" = yes; then
3681     CFLAGS="-O2"
3682   else
3683     CFLAGS=
3684   fi
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3687 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3688 if ${ac_cv_prog_cc_c89+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   ac_cv_prog_cc_c89=no
3692 ac_save_CC=$CC
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h.  */
3695 #include <stdarg.h>
3696 #include <stdio.h>
3697 struct stat;
3698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3699 struct buf { int x; };
3700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3701 static char *e (p, i)
3702      char **p;
3703      int i;
3704 {
3705   return p[i];
3706 }
3707 static char *f (char * (*g) (char **, int), char **p, ...)
3708 {
3709   char *s;
3710   va_list v;
3711   va_start (v,p);
3712   s = g (p, va_arg (v,int));
3713   va_end (v);
3714   return s;
3715 }
3716
3717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3718    function prototypes and stuff, but not '\xHH' hex character constants.
3719    These don't provoke an error unfortunately, instead are silently treated
3720    as 'x'.  The following induces an error, until -std is added to get
3721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3722    array size at least.  It's necessary to write '\x00'==0 to get something
3723    that's true only with -std.  */
3724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3725
3726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3727    inside strings and character constants.  */
3728 #define FOO(x) 'x'
3729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3730
3731 int test (int i, double x);
3732 struct s1 {int (*f) (int a);};
3733 struct s2 {int (*f) (double a);};
3734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3735 int argc;
3736 char **argv;
3737 int
3738 main ()
3739 {
3740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3747 do
3748   CC="$ac_save_CC $ac_arg"
3749   if ac_fn_c_try_compile "$LINENO"; then :
3750   ac_cv_prog_cc_c89=$ac_arg
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext
3753   test "x$ac_cv_prog_cc_c89" != "xno" && break
3754 done
3755 rm -f conftest.$ac_ext
3756 CC=$ac_save_CC
3757
3758 fi
3759 # AC_CACHE_VAL
3760 case "x$ac_cv_prog_cc_c89" in
3761   x)
3762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3763 $as_echo "none needed" >&6; } ;;
3764   xno)
3765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3766 $as_echo "unsupported" >&6; } ;;
3767   *)
3768     CC="$CC $ac_cv_prog_cc_c89"
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3771 esac
3772 if test "x$ac_cv_prog_cc_c89" != xno; then :
3773
3774 fi
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 DEPDIR="${am__leading_dot}deps"
3782
3783 ac_config_commands="$ac_config_commands depfiles"
3784
3785
3786 am_make=${MAKE-make}
3787 cat > confinc << 'END'
3788 am__doit:
3789         @echo this is the am__doit target
3790 .PHONY: am__doit
3791 END
3792 # If we don't find an include directive, just comment out the code.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3794 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3795 am__include="#"
3796 am__quote=
3797 _am_result=none
3798 # First try GNU make style include.
3799 echo "include confinc" > confmf
3800 # Ignore all kinds of additional output from `make'.
3801 case `$am_make -s -f confmf 2> /dev/null` in #(
3802 *the\ am__doit\ target*)
3803   am__include=include
3804   am__quote=
3805   _am_result=GNU
3806   ;;
3807 esac
3808 # Now try BSD make style include.
3809 if test "$am__include" = "#"; then
3810    echo '.include "confinc"' > confmf
3811    case `$am_make -s -f confmf 2> /dev/null` in #(
3812    *the\ am__doit\ target*)
3813      am__include=.include
3814      am__quote="\""
3815      _am_result=BSD
3816      ;;
3817    esac
3818 fi
3819
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3822 $as_echo "$_am_result" >&6; }
3823 rm -f confinc confmf
3824
3825 # Check whether --enable-dependency-tracking was given.
3826 if test "${enable_dependency_tracking+set}" = set; then :
3827   enableval=$enable_dependency_tracking;
3828 fi
3829
3830 if test "x$enable_dependency_tracking" != xno; then
3831   am_depcomp="$ac_aux_dir/depcomp"
3832   AMDEPBACKSLASH='\'
3833   am__nodep='_no'
3834 fi
3835  if test "x$enable_dependency_tracking" != xno; then
3836   AMDEP_TRUE=
3837   AMDEP_FALSE='#'
3838 else
3839   AMDEP_TRUE='#'
3840   AMDEP_FALSE=
3841 fi
3842
3843
3844
3845 depcc="$CC"   am_compiler_list=
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853   # We make a subdir and do the tests there.  Otherwise we can end up
3854   # making bogus files that we don't know about and never remove.  For
3855   # instance it was reported that on HP-UX the gcc test will end up
3856   # making a dummy file named `D' -- because `-MD' means `put the output
3857   # in D'.
3858   rm -rf conftest.dir
3859   mkdir conftest.dir
3860   # Copy depcomp to subdir because otherwise we won't find it if we're
3861   # using a relative directory.
3862   cp "$am_depcomp" conftest.dir
3863   cd conftest.dir
3864   # We will build objects and dependencies in a subdirectory because
3865   # it helps to detect inapplicable dependency modes.  For instance
3866   # both Tru64's cc and ICC support -MD to output dependencies as a
3867   # side effect of compilation, but ICC will put the dependencies in
3868   # the current directory while Tru64 will put them in the object
3869   # directory.
3870   mkdir sub
3871
3872   am_cv_CC_dependencies_compiler_type=none
3873   if test "$am_compiler_list" = ""; then
3874      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875   fi
3876   am__universal=false
3877   case " $depcc " in #(
3878      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3879      esac
3880
3881   for depmode in $am_compiler_list; do
3882     # Setup a source with many dependencies, because some compilers
3883     # like to wrap large dependency lists on column 80 (with \), and
3884     # we should not choose a depcomp mode which is confused by this.
3885     #
3886     # We need to recreate these files for each test, as the compiler may
3887     # overwrite some of them when testing with obscure command lines.
3888     # This happens at least with the AIX C compiler.
3889     : > sub/conftest.c
3890     for i in 1 2 3 4 5 6; do
3891       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3893       # Solaris 8's {/usr,}/bin/sh.
3894       touch sub/conftst$i.h
3895     done
3896     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897
3898     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3899     # mode.  It turns out that the SunPro C++ compiler does not properly
3900     # handle `-M -o', and we need to detect this.  Also, some Intel
3901     # versions had trouble with output in subdirs
3902     am__obj=sub/conftest.${OBJEXT-o}
3903     am__minus_obj="-o $am__obj"
3904     case $depmode in
3905     gcc)
3906       # This depmode causes a compiler race in universal mode.
3907       test "$am__universal" = false || continue
3908       ;;
3909     nosideeffect)
3910       # after this tag, mechanisms are not by side-effect, so they'll
3911       # only be used when explicitly requested
3912       if test "x$enable_dependency_tracking" = xyes; then
3913         continue
3914       else
3915         break
3916       fi
3917       ;;
3918     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3919       # This compiler won't grok `-c -o', but also, the minuso test has
3920       # not run yet.  These depmodes are late enough in the game, and
3921       # so weak that their functioning should not be impacted.
3922       am__obj=conftest.${OBJEXT-o}
3923       am__minus_obj=
3924       ;;
3925     none) break ;;
3926     esac
3927     if depmode=$depmode \
3928        source=sub/conftest.c object=$am__obj \
3929        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3931          >/dev/null 2>conftest.err &&
3932        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936       # icc doesn't choke on unknown options, it will just issue warnings
3937       # or remarks (even with -Werror).  So we grep stderr for any message
3938       # that says an option was ignored or not supported.
3939       # When given -MP, icc 7.0 and 7.1 complain thusly:
3940       #   icc: Command line warning: ignoring option '-M'; no argument required
3941       # The diagnosis changed in icc 8.0:
3942       #   icc: Command line remark: option '-MP' not supported
3943       if (grep 'ignoring option' conftest.err ||
3944           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945         am_cv_CC_dependencies_compiler_type=$depmode
3946         break
3947       fi
3948     fi
3949   done
3950
3951   cd ..
3952   rm -rf conftest.dir
3953 else
3954   am_cv_CC_dependencies_compiler_type=none
3955 fi
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3959 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3961
3962  if
3963   test "x$enable_dependency_tracking" != xno \
3964   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965   am__fastdepCC_TRUE=
3966   am__fastdepCC_FALSE='#'
3967 else
3968   am__fastdepCC_TRUE='#'
3969   am__fastdepCC_FALSE=
3970 fi
3971
3972
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3983   CPP=
3984 fi
3985 if test -z "$CPP"; then
3986   if ${ac_cv_prog_CPP+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989       # Double quotes because CPP needs to be expanded
3990     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991     do
3992       ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995   # Use a header file that comes with gcc, so configuring glibc
3996   # with a fresh cross-compiler works.
3997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998   # <limits.h> exists even on freestanding compilers.
3999   # On the NeXT, cc -E runs the code through the compiler's parser,
4000   # not just through cpp. "Syntax error" is here to catch this case.
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008                      Syntax error
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012 else
4013   # Broken: fails on valid input.
4014 continue
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018   # OK, works on sane cases.  Now check whether nonexistent headers
4019   # can be detected and how.
4020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h.  */
4022 #include <ac_nonexistent.h>
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025   # Broken: success on invalid input.
4026 continue
4027 else
4028   # Passes both tests.
4029 ac_preproc_ok=:
4030 break
4031 fi
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.i conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then :
4038   break
4039 fi
4040
4041     done
4042     ac_cv_prog_CPP=$CPP
4043
4044 fi
4045   CPP=$ac_cv_prog_CPP
4046 else
4047   ac_cv_prog_CPP=$CPP
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4050 $as_echo "$CPP" >&6; }
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4053 do
4054   # Use a header file that comes with gcc, so configuring glibc
4055   # with a fresh cross-compiler works.
4056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057   # <limits.h> exists even on freestanding compilers.
4058   # On the NeXT, cc -E runs the code through the compiler's parser,
4059   # not just through cpp. "Syntax error" is here to catch this case.
4060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067                      Syntax error
4068 _ACEOF
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4070
4071 else
4072   # Broken: fails on valid input.
4073 continue
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077   # OK, works on sane cases.  Now check whether nonexistent headers
4078   # can be detected and how.
4079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h.  */
4081 #include <ac_nonexistent.h>
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084   # Broken: success on invalid input.
4085 continue
4086 else
4087   # Passes both tests.
4088 ac_preproc_ok=:
4089 break
4090 fi
4091 rm -f conftest.err conftest.i conftest.$ac_ext
4092
4093 done
4094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095 rm -f conftest.i conftest.err conftest.$ac_ext
4096 if $ac_preproc_ok; then :
4097
4098 else
4099   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4102 See \`config.log' for more details" "$LINENO" 5; }
4103 fi
4104
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4114 if ${ac_cv_path_GREP+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if test -z "$GREP"; then
4118   ac_path_GREP_found=false
4119   # Loop through the user's path and test for each of PROGNAME-LIST
4120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_prog in grep ggrep; do
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4128       as_fn_executable_p "$ac_path_GREP" || continue
4129 # Check for GNU ac_path_GREP and select it if it is found.
4130   # Check for GNU $ac_path_GREP
4131 case `"$ac_path_GREP" --version 2>&1` in
4132 *GNU*)
4133   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 *)
4135   ac_count=0
4136   $as_echo_n 0123456789 >"conftest.in"
4137   while :
4138   do
4139     cat "conftest.in" "conftest.in" >"conftest.tmp"
4140     mv "conftest.tmp" "conftest.in"
4141     cp "conftest.in" "conftest.nl"
4142     $as_echo 'GREP' >> "conftest.nl"
4143     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145     as_fn_arith $ac_count + 1 && ac_count=$as_val
4146     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147       # Best one so far, save it but keep looking for a better one
4148       ac_cv_path_GREP="$ac_path_GREP"
4149       ac_path_GREP_max=$ac_count
4150     fi
4151     # 10*(2^10) chars as input seems more than enough
4152     test $ac_count -gt 10 && break
4153   done
4154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157       $ac_path_GREP_found && break 3
4158     done
4159   done
4160   done
4161 IFS=$as_save_IFS
4162   if test -z "$ac_cv_path_GREP"; then
4163     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164   fi
4165 else
4166   ac_cv_path_GREP=$GREP
4167 fi
4168
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4171 $as_echo "$ac_cv_path_GREP" >&6; }
4172  GREP="$ac_cv_path_GREP"
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4176 $as_echo_n "checking for egrep... " >&6; }
4177 if ${ac_cv_path_EGREP+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4181    then ac_cv_path_EGREP="$GREP -E"
4182    else
4183      if test -z "$EGREP"; then
4184   ac_path_EGREP_found=false
4185   # Loop through the user's path and test for each of PROGNAME-LIST
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191     for ac_prog in egrep; do
4192     for ac_exec_ext in '' $ac_executable_extensions; do
4193       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194       as_fn_executable_p "$ac_path_EGREP" || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196   # Check for GNU $ac_path_EGREP
4197 case `"$ac_path_EGREP" --version 2>&1` in
4198 *GNU*)
4199   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 *)
4201   ac_count=0
4202   $as_echo_n 0123456789 >"conftest.in"
4203   while :
4204   do
4205     cat "conftest.in" "conftest.in" >"conftest.tmp"
4206     mv "conftest.tmp" "conftest.in"
4207     cp "conftest.in" "conftest.nl"
4208     $as_echo 'EGREP' >> "conftest.nl"
4209     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211     as_fn_arith $ac_count + 1 && ac_count=$as_val
4212     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213       # Best one so far, save it but keep looking for a better one
4214       ac_cv_path_EGREP="$ac_path_EGREP"
4215       ac_path_EGREP_max=$ac_count
4216     fi
4217     # 10*(2^10) chars as input seems more than enough
4218     test $ac_count -gt 10 && break
4219   done
4220   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 esac
4222
4223       $ac_path_EGREP_found && break 3
4224     done
4225   done
4226   done
4227 IFS=$as_save_IFS
4228   if test -z "$ac_cv_path_EGREP"; then
4229     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230   fi
4231 else
4232   ac_cv_path_EGREP=$EGREP
4233 fi
4234
4235    fi
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4238 $as_echo "$ac_cv_path_EGREP" >&6; }
4239  EGREP="$ac_cv_path_EGREP"
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4243 $as_echo_n "checking for ANSI C header files... " >&6; }
4244 if ${ac_cv_header_stdc+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h.  */
4249 #include <stdlib.h>
4250 #include <stdarg.h>
4251 #include <string.h>
4252 #include <float.h>
4253
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263   ac_cv_header_stdc=yes
4264 else
4265   ac_cv_header_stdc=no
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268
4269 if test $ac_cv_header_stdc = yes; then
4270   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273 #include <string.h>
4274
4275 _ACEOF
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277   $EGREP "memchr" >/dev/null 2>&1; then :
4278
4279 else
4280   ac_cv_header_stdc=no
4281 fi
4282 rm -f conftest*
4283
4284 fi
4285
4286 if test $ac_cv_header_stdc = yes; then
4287   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290 #include <stdlib.h>
4291
4292 _ACEOF
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294   $EGREP "free" >/dev/null 2>&1; then :
4295
4296 else
4297   ac_cv_header_stdc=no
4298 fi
4299 rm -f conftest*
4300
4301 fi
4302
4303 if test $ac_cv_header_stdc = yes; then
4304   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4305   if test "$cross_compiling" = yes; then :
4306   :
4307 else
4308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h.  */
4310 #include <ctype.h>
4311 #include <stdlib.h>
4312 #if ((' ' & 0x0FF) == 0x020)
4313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4315 #else
4316 # define ISLOWER(c) \
4317                    (('a' <= (c) && (c) <= 'i') \
4318                      || ('j' <= (c) && (c) <= 'r') \
4319                      || ('s' <= (c) && (c) <= 'z'))
4320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4321 #endif
4322
4323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 int
4325 main ()
4326 {
4327   int i;
4328   for (i = 0; i < 256; i++)
4329     if (XOR (islower (i), ISLOWER (i))
4330         || toupper (i) != TOUPPER (i))
4331       return 2;
4332   return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_run "$LINENO"; then :
4336
4337 else
4338   ac_cv_header_stdc=no
4339 fi
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4341   conftest.$ac_objext conftest.beam conftest.$ac_ext
4342 fi
4343
4344 fi
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4347 $as_echo "$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4349
4350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4351
4352 fi
4353
4354
4355 # Initialize libtool
4356
4357 case `pwd` in
4358   *\ * | *\     *)
4359     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4360 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4361 esac
4362
4363
4364
4365 macro_version='2.4.2'
4366 macro_revision='1.3337'
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380 ltmain="$ac_aux_dir/ltmain.sh"
4381
4382 # Make sure we can run config.sub.
4383 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4384   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4385
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4387 $as_echo_n "checking build system type... " >&6; }
4388 if ${ac_cv_build+:} false; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   ac_build_alias=$build_alias
4392 test "x$ac_build_alias" = x &&
4393   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4394 test "x$ac_build_alias" = x &&
4395   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4396 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4397   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4401 $as_echo "$ac_cv_build" >&6; }
4402 case $ac_cv_build in
4403 *-*-*) ;;
4404 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4405 esac
4406 build=$ac_cv_build
4407 ac_save_IFS=$IFS; IFS='-'
4408 set x $ac_cv_build
4409 shift
4410 build_cpu=$1
4411 build_vendor=$2
4412 shift; shift
4413 # Remember, the first character of IFS is used to create $*,
4414 # except with old shells:
4415 build_os=$*
4416 IFS=$ac_save_IFS
4417 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4418
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4421 $as_echo_n "checking host system type... " >&6; }
4422 if ${ac_cv_host+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   if test "x$host_alias" = x; then
4426   ac_cv_host=$ac_cv_build
4427 else
4428   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4429     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4430 fi
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4434 $as_echo "$ac_cv_host" >&6; }
4435 case $ac_cv_host in
4436 *-*-*) ;;
4437 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4438 esac
4439 host=$ac_cv_host
4440 ac_save_IFS=$IFS; IFS='-'
4441 set x $ac_cv_host
4442 shift
4443 host_cpu=$1
4444 host_vendor=$2
4445 shift; shift
4446 # Remember, the first character of IFS is used to create $*,
4447 # except with old shells:
4448 host_os=$*
4449 IFS=$ac_save_IFS
4450 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4451
4452
4453 # Backslashify metacharacters that are still active within
4454 # double-quoted strings.
4455 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4456
4457 # Same as above, but do not quote variable references.
4458 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4459
4460 # Sed substitution to delay expansion of an escaped shell variable in a
4461 # double_quote_subst'ed string.
4462 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4463
4464 # Sed substitution to delay expansion of an escaped single quote.
4465 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4466
4467 # Sed substitution to avoid accidental globbing in evaled expressions
4468 no_glob_subst='s/\*/\\\*/g'
4469
4470 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4471 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4472 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4473
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4475 $as_echo_n "checking how to print strings... " >&6; }
4476 # Test print first, because it will be a builtin if present.
4477 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4478    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4479   ECHO='print -r --'
4480 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4481   ECHO='printf %s\n'
4482 else
4483   # Use this function as a fallback that always works.
4484   func_fallback_echo ()
4485   {
4486     eval 'cat <<_LTECHO_EOF
4487 $1
4488 _LTECHO_EOF'
4489   }
4490   ECHO='func_fallback_echo'
4491 fi
4492
4493 # func_echo_all arg...
4494 # Invoke $ECHO with all args, space-separated.
4495 func_echo_all ()
4496 {
4497     $ECHO ""
4498 }
4499
4500 case "$ECHO" in
4501   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4502 $as_echo "printf" >&6; } ;;
4503   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4504 $as_echo "print -r" >&6; } ;;
4505   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4506 $as_echo "cat" >&6; } ;;
4507 esac
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4523 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4524 if ${ac_cv_path_SED+:} false; then :
4525   $as_echo_n "(cached) " >&6
4526 else
4527             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4528      for ac_i in 1 2 3 4 5 6 7; do
4529        ac_script="$ac_script$as_nl$ac_script"
4530      done
4531      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4532      { ac_script=; unset ac_script;}
4533      if test -z "$SED"; then
4534   ac_path_SED_found=false
4535   # Loop through the user's path and test for each of PROGNAME-LIST
4536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541     for ac_prog in sed gsed; do
4542     for ac_exec_ext in '' $ac_executable_extensions; do
4543       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4544       as_fn_executable_p "$ac_path_SED" || continue
4545 # Check for GNU ac_path_SED and select it if it is found.
4546   # Check for GNU $ac_path_SED
4547 case `"$ac_path_SED" --version 2>&1` in
4548 *GNU*)
4549   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4550 *)
4551   ac_count=0
4552   $as_echo_n 0123456789 >"conftest.in"
4553   while :
4554   do
4555     cat "conftest.in" "conftest.in" >"conftest.tmp"
4556     mv "conftest.tmp" "conftest.in"
4557     cp "conftest.in" "conftest.nl"
4558     $as_echo '' >> "conftest.nl"
4559     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561     as_fn_arith $ac_count + 1 && ac_count=$as_val
4562     if test $ac_count -gt ${ac_path_SED_max-0}; then
4563       # Best one so far, save it but keep looking for a better one
4564       ac_cv_path_SED="$ac_path_SED"
4565       ac_path_SED_max=$ac_count
4566     fi
4567     # 10*(2^10) chars as input seems more than enough
4568     test $ac_count -gt 10 && break
4569   done
4570   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4572
4573       $ac_path_SED_found && break 3
4574     done
4575   done
4576   done
4577 IFS=$as_save_IFS
4578   if test -z "$ac_cv_path_SED"; then
4579     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4580   fi
4581 else
4582   ac_cv_path_SED=$SED
4583 fi
4584
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4587 $as_echo "$ac_cv_path_SED" >&6; }
4588  SED="$ac_cv_path_SED"
4589   rm -f conftest.sed
4590
4591 test -z "$SED" && SED=sed
4592 Xsed="$SED -e 1s/^X//"
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4605 $as_echo_n "checking for fgrep... " >&6; }
4606 if ${ac_cv_path_FGREP+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4610    then ac_cv_path_FGREP="$GREP -F"
4611    else
4612      if test -z "$FGREP"; then
4613   ac_path_FGREP_found=false
4614   # Loop through the user's path and test for each of PROGNAME-LIST
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620     for ac_prog in fgrep; do
4621     for ac_exec_ext in '' $ac_executable_extensions; do
4622       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4623       as_fn_executable_p "$ac_path_FGREP" || continue
4624 # Check for GNU ac_path_FGREP and select it if it is found.
4625   # Check for GNU $ac_path_FGREP
4626 case `"$ac_path_FGREP" --version 2>&1` in
4627 *GNU*)
4628   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4629 *)
4630   ac_count=0
4631   $as_echo_n 0123456789 >"conftest.in"
4632   while :
4633   do
4634     cat "conftest.in" "conftest.in" >"conftest.tmp"
4635     mv "conftest.tmp" "conftest.in"
4636     cp "conftest.in" "conftest.nl"
4637     $as_echo 'FGREP' >> "conftest.nl"
4638     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640     as_fn_arith $ac_count + 1 && ac_count=$as_val
4641     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4642       # Best one so far, save it but keep looking for a better one
4643       ac_cv_path_FGREP="$ac_path_FGREP"
4644       ac_path_FGREP_max=$ac_count
4645     fi
4646     # 10*(2^10) chars as input seems more than enough
4647     test $ac_count -gt 10 && break
4648   done
4649   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4651
4652       $ac_path_FGREP_found && break 3
4653     done
4654   done
4655   done
4656 IFS=$as_save_IFS
4657   if test -z "$ac_cv_path_FGREP"; then
4658     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659   fi
4660 else
4661   ac_cv_path_FGREP=$FGREP
4662 fi
4663
4664    fi
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4667 $as_echo "$ac_cv_path_FGREP" >&6; }
4668  FGREP="$ac_cv_path_FGREP"
4669
4670
4671 test -z "$GREP" && GREP=grep
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 # Check whether --with-gnu-ld was given.
4692 if test "${with_gnu_ld+set}" = set; then :
4693   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4694 else
4695   with_gnu_ld=no
4696 fi
4697
4698 ac_prog=ld
4699 if test "$GCC" = yes; then
4700   # Check if gcc -print-prog-name=ld gives a path.
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4702 $as_echo_n "checking for ld used by $CC... " >&6; }
4703   case $host in
4704   *-*-mingw*)
4705     # gcc leaves a trailing carriage return which upsets mingw
4706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4707   *)
4708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4709   esac
4710   case $ac_prog in
4711     # Accept absolute paths.
4712     [\\/]* | ?:[\\/]*)
4713       re_direlt='/[^/][^/]*/\.\./'
4714       # Canonicalize the pathname of ld
4715       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4716       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4717         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4718       done
4719       test -z "$LD" && LD="$ac_prog"
4720       ;;
4721   "")
4722     # If it fails, then pretend we aren't using GCC.
4723     ac_prog=ld
4724     ;;
4725   *)
4726     # If it is relative, then search for the first ld in PATH.
4727     with_gnu_ld=unknown
4728     ;;
4729   esac
4730 elif test "$with_gnu_ld" = yes; then
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4732 $as_echo_n "checking for GNU ld... " >&6; }
4733 else
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4735 $as_echo_n "checking for non-GNU ld... " >&6; }
4736 fi
4737 if ${lt_cv_path_LD+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   if test -z "$LD"; then
4741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4742   for ac_dir in $PATH; do
4743     IFS="$lt_save_ifs"
4744     test -z "$ac_dir" && ac_dir=.
4745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4746       lt_cv_path_LD="$ac_dir/$ac_prog"
4747       # Check to see if the program is GNU ld.  I'd rather use --version,
4748       # but apparently some variants of GNU ld only accept -v.
4749       # Break only if it was the GNU/non-GNU ld that we prefer.
4750       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4751       *GNU* | *'with BFD'*)
4752         test "$with_gnu_ld" != no && break
4753         ;;
4754       *)
4755         test "$with_gnu_ld" != yes && break
4756         ;;
4757       esac
4758     fi
4759   done
4760   IFS="$lt_save_ifs"
4761 else
4762   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4763 fi
4764 fi
4765
4766 LD="$lt_cv_path_LD"
4767 if test -n "$LD"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4769 $as_echo "$LD" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4776 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4777 if ${lt_cv_prog_gnu_ld+:} false; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4781 case `$LD -v 2>&1 </dev/null` in
4782 *GNU* | *'with BFD'*)
4783   lt_cv_prog_gnu_ld=yes
4784   ;;
4785 *)
4786   lt_cv_prog_gnu_ld=no
4787   ;;
4788 esac
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4791 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4792 with_gnu_ld=$lt_cv_prog_gnu_ld
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4803 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4804 if ${lt_cv_path_NM+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if test -n "$NM"; then
4808   # Let the user override the test.
4809   lt_cv_path_NM="$NM"
4810 else
4811   lt_nm_to_check="${ac_tool_prefix}nm"
4812   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4813     lt_nm_to_check="$lt_nm_to_check nm"
4814   fi
4815   for lt_tmp_nm in $lt_nm_to_check; do
4816     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4817     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4818       IFS="$lt_save_ifs"
4819       test -z "$ac_dir" && ac_dir=.
4820       tmp_nm="$ac_dir/$lt_tmp_nm"
4821       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4822         # Check to see if the nm accepts a BSD-compat flag.
4823         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4824         #   nm: unknown option "B" ignored
4825         # Tru64's nm complains that /dev/null is an invalid object file
4826         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4827         */dev/null* | *'Invalid file or object type'*)
4828           lt_cv_path_NM="$tmp_nm -B"
4829           break
4830           ;;
4831         *)
4832           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4833           */dev/null*)
4834             lt_cv_path_NM="$tmp_nm -p"
4835             break
4836             ;;
4837           *)
4838             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4839             continue # so that we can try to find one that supports BSD flags
4840             ;;
4841           esac
4842           ;;
4843         esac
4844       fi
4845     done
4846     IFS="$lt_save_ifs"
4847   done
4848   : ${lt_cv_path_NM=no}
4849 fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4852 $as_echo "$lt_cv_path_NM" >&6; }
4853 if test "$lt_cv_path_NM" != "no"; then
4854   NM="$lt_cv_path_NM"
4855 else
4856   # Didn't find any BSD compatible name lister, look for dumpbin.
4857   if test -n "$DUMPBIN"; then :
4858     # Let the user override the test.
4859   else
4860     if test -n "$ac_tool_prefix"; then
4861   for ac_prog in dumpbin "link -dump"
4862   do
4863     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_DUMPBIN+:} false; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   if test -n "$DUMPBIN"; then
4871   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878     for ac_exec_ext in '' $ac_executable_extensions; do
4879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885   done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 DUMPBIN=$ac_cv_prog_DUMPBIN
4891 if test -n "$DUMPBIN"; then
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4893 $as_echo "$DUMPBIN" >&6; }
4894 else
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900     test -n "$DUMPBIN" && break
4901   done
4902 fi
4903 if test -z "$DUMPBIN"; then
4904   ac_ct_DUMPBIN=$DUMPBIN
4905   for ac_prog in dumpbin "link -dump"
4906 do
4907   # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   if test -n "$ac_ct_DUMPBIN"; then
4915   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4935 if test -n "$ac_ct_DUMPBIN"; then
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4937 $as_echo "$ac_ct_DUMPBIN" >&6; }
4938 else
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944   test -n "$ac_ct_DUMPBIN" && break
4945 done
4946
4947   if test "x$ac_ct_DUMPBIN" = x; then
4948     DUMPBIN=":"
4949   else
4950     case $cross_compiling:$ac_tool_warned in
4951 yes:)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956     DUMPBIN=$ac_ct_DUMPBIN
4957   fi
4958 fi
4959
4960     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4961     *COFF*)
4962       DUMPBIN="$DUMPBIN -symbols"
4963       ;;
4964     *)
4965       DUMPBIN=:
4966       ;;
4967     esac
4968   fi
4969
4970   if test "$DUMPBIN" != ":"; then
4971     NM="$DUMPBIN"
4972   fi
4973 fi
4974 test -z "$NM" && NM=nm
4975
4976
4977
4978
4979
4980
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4982 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4983 if ${lt_cv_nm_interface+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   lt_cv_nm_interface="BSD nm"
4987   echo "int some_variable = 0;" > conftest.$ac_ext
4988   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4989   (eval "$ac_compile" 2>conftest.err)
4990   cat conftest.err >&5
4991   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4992   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4993   cat conftest.err >&5
4994   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4995   cat conftest.out >&5
4996   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4997     lt_cv_nm_interface="MS dumpbin"
4998   fi
4999   rm -f conftest*
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5002 $as_echo "$lt_cv_nm_interface" >&6; }
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5005 $as_echo_n "checking whether ln -s works... " >&6; }
5006 LN_S=$as_ln_s
5007 if test "$LN_S" = "ln -s"; then
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5009 $as_echo "yes" >&6; }
5010 else
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5012 $as_echo "no, using $LN_S" >&6; }
5013 fi
5014
5015 # find the maximum length of command line arguments
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5017 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5018 if ${lt_cv_sys_max_cmd_len+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021     i=0
5022   teststring="ABCD"
5023
5024   case $build_os in
5025   msdosdjgpp*)
5026     # On DJGPP, this test can blow up pretty badly due to problems in libc
5027     # (any single argument exceeding 2000 bytes causes a buffer overrun
5028     # during glob expansion).  Even if it were fixed, the result of this
5029     # check would be larger than it should be.
5030     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5031     ;;
5032
5033   gnu*)
5034     # Under GNU Hurd, this test is not required because there is
5035     # no limit to the length of command line arguments.
5036     # Libtool will interpret -1 as no limit whatsoever
5037     lt_cv_sys_max_cmd_len=-1;
5038     ;;
5039
5040   cygwin* | mingw* | cegcc*)
5041     # On Win9x/ME, this test blows up -- it succeeds, but takes
5042     # about 5 minutes as the teststring grows exponentially.
5043     # Worse, since 9x/ME are not pre-emptively multitasking,
5044     # you end up with a "frozen" computer, even though with patience
5045     # the test eventually succeeds (with a max line length of 256k).
5046     # Instead, let's just punt: use the minimum linelength reported by
5047     # all of the supported platforms: 8192 (on NT/2K/XP).
5048     lt_cv_sys_max_cmd_len=8192;
5049     ;;
5050
5051   mint*)
5052     # On MiNT this can take a long time and run out of memory.
5053     lt_cv_sys_max_cmd_len=8192;
5054     ;;
5055
5056   amigaos*)
5057     # On AmigaOS with pdksh, this test takes hours, literally.
5058     # So we just punt and use a minimum line length of 8192.
5059     lt_cv_sys_max_cmd_len=8192;
5060     ;;
5061
5062   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5063     # This has been around since 386BSD, at least.  Likely further.
5064     if test -x /sbin/sysctl; then
5065       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5066     elif test -x /usr/sbin/sysctl; then
5067       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5068     else
5069       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5070     fi
5071     # And add a safety zone
5072     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5073     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5074     ;;
5075
5076   interix*)
5077     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5078     lt_cv_sys_max_cmd_len=196608
5079     ;;
5080
5081   os2*)
5082     # The test takes a long time on OS/2.
5083     lt_cv_sys_max_cmd_len=8192
5084     ;;
5085
5086   osf*)
5087     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5088     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5089     # nice to cause kernel panics so lets avoid the loop below.
5090     # First set a reasonable default.
5091     lt_cv_sys_max_cmd_len=16384
5092     #
5093     if test -x /sbin/sysconfig; then
5094       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5095         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5096       esac
5097     fi
5098     ;;
5099   sco3.2v5*)
5100     lt_cv_sys_max_cmd_len=102400
5101     ;;
5102   sysv5* | sco5v6* | sysv4.2uw2*)
5103     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5104     if test -n "$kargmax"; then
5105       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5106     else
5107       lt_cv_sys_max_cmd_len=32768
5108     fi
5109     ;;
5110   *)
5111     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5112     if test -n "$lt_cv_sys_max_cmd_len"; then
5113       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5114       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5115     else
5116       # Make teststring a little bigger before we do anything with it.
5117       # a 1K string should be a reasonable start.
5118       for i in 1 2 3 4 5 6 7 8 ; do
5119         teststring=$teststring$teststring
5120       done
5121       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5122       # If test is not a shell built-in, we'll probably end up computing a
5123       # maximum length that is only half of the actual maximum length, but
5124       # we can't tell.
5125       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5126                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5127               test $i != 17 # 1/2 MB should be enough
5128       do
5129         i=`expr $i + 1`
5130         teststring=$teststring$teststring
5131       done
5132       # Only check the string length outside the loop.
5133       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5134       teststring=
5135       # Add a significant safety factor because C++ compilers can tack on
5136       # massive amounts of additional arguments before passing them to the
5137       # linker.  It appears as though 1/2 is a usable value.
5138       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5139     fi
5140     ;;
5141   esac
5142
5143 fi
5144
5145 if test -n $lt_cv_sys_max_cmd_len ; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5147 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5150 $as_echo "none" >&6; }
5151 fi
5152 max_cmd_len=$lt_cv_sys_max_cmd_len
5153
5154
5155
5156
5157
5158
5159 : ${CP="cp -f"}
5160 : ${MV="mv -f"}
5161 : ${RM="rm -f"}
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5164 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5165 # Try some XSI features
5166 xsi_shell=no
5167 ( _lt_dummy="a/b/c"
5168   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5169       = c,a/b,b/c, \
5170     && eval 'test $(( 1 + 1 )) -eq 2 \
5171     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5172   && xsi_shell=yes
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5174 $as_echo "$xsi_shell" >&6; }
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5178 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5179 lt_shell_append=no
5180 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5181     >/dev/null 2>&1 \
5182   && lt_shell_append=yes
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5184 $as_echo "$lt_shell_append" >&6; }
5185
5186
5187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5188   lt_unset=unset
5189 else
5190   lt_unset=false
5191 fi
5192
5193
5194
5195
5196
5197 # test EBCDIC or ASCII
5198 case `echo X|tr X '\101'` in
5199  A) # ASCII based system
5200     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5201   lt_SP2NL='tr \040 \012'
5202   lt_NL2SP='tr \015\012 \040\040'
5203   ;;
5204  *) # EBCDIC based system
5205   lt_SP2NL='tr \100 \n'
5206   lt_NL2SP='tr \r\n \100\100'
5207   ;;
5208 esac
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5219 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5220 if ${lt_cv_to_host_file_cmd+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   case $host in
5224   *-*-mingw* )
5225     case $build in
5226       *-*-mingw* ) # actually msys
5227         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5228         ;;
5229       *-*-cygwin* )
5230         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5231         ;;
5232       * ) # otherwise, assume *nix
5233         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5234         ;;
5235     esac
5236     ;;
5237   *-*-cygwin* )
5238     case $build in
5239       *-*-mingw* ) # actually msys
5240         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5241         ;;
5242       *-*-cygwin* )
5243         lt_cv_to_host_file_cmd=func_convert_file_noop
5244         ;;
5245       * ) # otherwise, assume *nix
5246         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5247         ;;
5248     esac
5249     ;;
5250   * ) # unhandled hosts (and "normal" native builds)
5251     lt_cv_to_host_file_cmd=func_convert_file_noop
5252     ;;
5253 esac
5254
5255 fi
5256
5257 to_host_file_cmd=$lt_cv_to_host_file_cmd
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5259 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5260
5261
5262
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5266 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5267 if ${lt_cv_to_tool_file_cmd+:} false; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   #assume ordinary cross tools, or native build.
5271 lt_cv_to_tool_file_cmd=func_convert_file_noop
5272 case $host in
5273   *-*-mingw* )
5274     case $build in
5275       *-*-mingw* ) # actually msys
5276         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5277         ;;
5278     esac
5279     ;;
5280 esac
5281
5282 fi
5283
5284 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5286 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5293 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5294 if ${lt_cv_ld_reload_flag+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   lt_cv_ld_reload_flag='-r'
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5300 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5301 reload_flag=$lt_cv_ld_reload_flag
5302 case $reload_flag in
5303 "" | " "*) ;;
5304 *) reload_flag=" $reload_flag" ;;
5305 esac
5306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5307 case $host_os in
5308   cygwin* | mingw* | pw32* | cegcc*)
5309     if test "$GCC" != yes; then
5310       reload_cmds=false
5311     fi
5312     ;;
5313   darwin*)
5314     if test "$GCC" = yes; then
5315       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5316     else
5317       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5318     fi
5319     ;;
5320 esac
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 if test -n "$ac_tool_prefix"; then
5331   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_OBJDUMP+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   if test -n "$OBJDUMP"; then
5339   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346     for ac_exec_ext in '' $ac_executable_extensions; do
5347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353   done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 OBJDUMP=$ac_cv_prog_OBJDUMP
5359 if test -n "$OBJDUMP"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5361 $as_echo "$OBJDUMP" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 fi
5369 if test -z "$ac_cv_prog_OBJDUMP"; then
5370   ac_ct_OBJDUMP=$OBJDUMP
5371   # Extract the first word of "objdump", so it can be a program name with args.
5372 set dummy objdump; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   if test -n "$ac_ct_OBJDUMP"; then
5379   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384   IFS=$as_save_IFS
5385   test -z "$as_dir" && as_dir=.
5386     for ac_exec_ext in '' $ac_executable_extensions; do
5387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390     break 2
5391   fi
5392 done
5393   done
5394 IFS=$as_save_IFS
5395
5396 fi
5397 fi
5398 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5399 if test -n "$ac_ct_OBJDUMP"; then
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5401 $as_echo "$ac_ct_OBJDUMP" >&6; }
5402 else
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406
5407   if test "x$ac_ct_OBJDUMP" = x; then
5408     OBJDUMP="false"
5409   else
5410     case $cross_compiling:$ac_tool_warned in
5411 yes:)
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414 ac_tool_warned=yes ;;
5415 esac
5416     OBJDUMP=$ac_ct_OBJDUMP
5417   fi
5418 else
5419   OBJDUMP="$ac_cv_prog_OBJDUMP"
5420 fi
5421
5422 test -z "$OBJDUMP" && OBJDUMP=objdump
5423
5424
5425
5426
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5430 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5431 if ${lt_cv_deplibs_check_method+:} false; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   lt_cv_file_magic_cmd='$MAGIC_CMD'
5435 lt_cv_file_magic_test_file=
5436 lt_cv_deplibs_check_method='unknown'
5437 # Need to set the preceding variable on all platforms that support
5438 # interlibrary dependencies.
5439 # 'none' -- dependencies not supported.
5440 # `unknown' -- same as none, but documents that we really don't know.
5441 # 'pass_all' -- all dependencies passed with no checks.
5442 # 'test_compile' -- check by making test program.
5443 # 'file_magic [[regex]]' -- check by looking for files in library path
5444 # which responds to the $file_magic_cmd with a given extended regex.
5445 # If you have `file' or equivalent on your system and you're not sure
5446 # whether `pass_all' will *always* work, you probably want this one.
5447
5448 case $host_os in
5449 aix[4-9]*)
5450   lt_cv_deplibs_check_method=pass_all
5451   ;;
5452
5453 beos*)
5454   lt_cv_deplibs_check_method=pass_all
5455   ;;
5456
5457 bsdi[45]*)
5458   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5459   lt_cv_file_magic_cmd='/usr/bin/file -L'
5460   lt_cv_file_magic_test_file=/shlib/libc.so
5461   ;;
5462
5463 cygwin*)
5464   # func_win32_libid is a shell function defined in ltmain.sh
5465   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5466   lt_cv_file_magic_cmd='func_win32_libid'
5467   ;;
5468
5469 mingw* | pw32*)
5470   # Base MSYS/MinGW do not provide the 'file' command needed by
5471   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5472   # unless we find 'file', for example because we are cross-compiling.
5473   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5474   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5475     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5476     lt_cv_file_magic_cmd='func_win32_libid'
5477   else
5478     # Keep this pattern in sync with the one in func_win32_libid.
5479     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5480     lt_cv_file_magic_cmd='$OBJDUMP -f'
5481   fi
5482   ;;
5483
5484 cegcc*)
5485   # use the weaker test based on 'objdump'. See mingw*.
5486   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5487   lt_cv_file_magic_cmd='$OBJDUMP -f'
5488   ;;
5489
5490 darwin* | rhapsody*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 freebsd* | dragonfly*)
5495   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5496     case $host_cpu in
5497     i*86 )
5498       # Not sure whether the presence of OpenBSD here was a mistake.
5499       # Let's accept both of them until this is cleared up.
5500       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5501       lt_cv_file_magic_cmd=/usr/bin/file
5502       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5503       ;;
5504     esac
5505   else
5506     lt_cv_deplibs_check_method=pass_all
5507   fi
5508   ;;
5509
5510 gnu*)
5511   lt_cv_deplibs_check_method=pass_all
5512   ;;
5513
5514 haiku*)
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517
5518 hpux10.20* | hpux11*)
5519   lt_cv_file_magic_cmd=/usr/bin/file
5520   case $host_cpu in
5521   ia64*)
5522     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5523     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5524     ;;
5525   hppa*64*)
5526     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]'
5527     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5528     ;;
5529   *)
5530     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5531     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5532     ;;
5533   esac
5534   ;;
5535
5536 interix[3-9]*)
5537   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5538   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5539   ;;
5540
5541 irix5* | irix6* | nonstopux*)
5542   case $LD in
5543   *-32|*"-32 ") libmagic=32-bit;;
5544   *-n32|*"-n32 ") libmagic=N32;;
5545   *-64|*"-64 ") libmagic=64-bit;;
5546   *) libmagic=never-match;;
5547   esac
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 # This must be glibc/ELF.
5552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5553   lt_cv_deplibs_check_method=pass_all
5554   ;;
5555
5556 netbsd* | netbsdelf*-gnu)
5557   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5558     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5559   else
5560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5561   fi
5562   ;;
5563
5564 newos6*)
5565   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5566   lt_cv_file_magic_cmd=/usr/bin/file
5567   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5568   ;;
5569
5570 *nto* | *qnx*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 openbsd*)
5575   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5577   else
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5579   fi
5580   ;;
5581
5582 osf3* | osf4* | osf5*)
5583   lt_cv_deplibs_check_method=pass_all
5584   ;;
5585
5586 rdos*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 solaris*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 sysv4 | sysv4.3*)
5599   case $host_vendor in
5600   motorola)
5601     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]'
5602     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5603     ;;
5604   ncr)
5605     lt_cv_deplibs_check_method=pass_all
5606     ;;
5607   sequent)
5608     lt_cv_file_magic_cmd='/bin/file'
5609     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5610     ;;
5611   sni)
5612     lt_cv_file_magic_cmd='/bin/file'
5613     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5614     lt_cv_file_magic_test_file=/lib/libc.so
5615     ;;
5616   siemens)
5617     lt_cv_deplibs_check_method=pass_all
5618     ;;
5619   pc)
5620     lt_cv_deplibs_check_method=pass_all
5621     ;;
5622   esac
5623   ;;
5624
5625 tpf*)
5626   lt_cv_deplibs_check_method=pass_all
5627   ;;
5628 esac
5629
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5632 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5633
5634 file_magic_glob=
5635 want_nocaseglob=no
5636 if test "$build" = "$host"; then
5637   case $host_os in
5638   mingw* | pw32*)
5639     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5640       want_nocaseglob=yes
5641     else
5642       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5643     fi
5644     ;;
5645   esac
5646 fi
5647
5648 file_magic_cmd=$lt_cv_file_magic_cmd
5649 deplibs_check_method=$lt_cv_deplibs_check_method
5650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 if test -n "$ac_tool_prefix"; then
5674   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_DLLTOOL+:} false; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   if test -n "$DLLTOOL"; then
5682   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_exec_ext in '' $ac_executable_extensions; do
5690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696   done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 DLLTOOL=$ac_cv_prog_DLLTOOL
5702 if test -n "$DLLTOOL"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5704 $as_echo "$DLLTOOL" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 fi
5712 if test -z "$ac_cv_prog_DLLTOOL"; then
5713   ac_ct_DLLTOOL=$DLLTOOL
5714   # Extract the first word of "dlltool", so it can be a program name with args.
5715 set dummy dlltool; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   if test -n "$ac_ct_DLLTOOL"; then
5722   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729     for ac_exec_ext in '' $ac_executable_extensions; do
5730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736   done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5742 if test -n "$ac_ct_DLLTOOL"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5744 $as_echo "$ac_ct_DLLTOOL" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750   if test "x$ac_ct_DLLTOOL" = x; then
5751     DLLTOOL="false"
5752   else
5753     case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759     DLLTOOL=$ac_ct_DLLTOOL
5760   fi
5761 else
5762   DLLTOOL="$ac_cv_prog_DLLTOOL"
5763 fi
5764
5765 test -z "$DLLTOOL" && DLLTOOL=dlltool
5766
5767
5768
5769
5770
5771
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5774 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5775 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   lt_cv_sharedlib_from_linklib_cmd='unknown'
5779
5780 case $host_os in
5781 cygwin* | mingw* | pw32* | cegcc*)
5782   # two different shell functions defined in ltmain.sh
5783   # decide which to use based on capabilities of $DLLTOOL
5784   case `$DLLTOOL --help 2>&1` in
5785   *--identify-strict*)
5786     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5787     ;;
5788   *)
5789     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5790     ;;
5791   esac
5792   ;;
5793 *)
5794   # fallback: assume linklib IS sharedlib
5795   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5796   ;;
5797 esac
5798
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5801 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5802 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5803 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5804
5805
5806
5807
5808
5809
5810
5811 if test -n "$ac_tool_prefix"; then
5812   for ac_prog in ar
5813   do
5814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_AR+:} false; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821   if test -n "$AR"; then
5822   ac_cv_prog_AR="$AR" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829     for ac_exec_ext in '' $ac_executable_extensions; do
5830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836   done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 AR=$ac_cv_prog_AR
5842 if test -n "$AR"; then
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5844 $as_echo "$AR" >&6; }
5845 else
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850
5851     test -n "$AR" && break
5852   done
5853 fi
5854 if test -z "$AR"; then
5855   ac_ct_AR=$AR
5856   for ac_prog in ar
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -n "$ac_ct_AR"; then
5866   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_prog_ac_ct_AR="$ac_prog"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5886 if test -n "$ac_ct_AR"; then
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5888 $as_echo "$ac_ct_AR" >&6; }
5889 else
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894
5895   test -n "$ac_ct_AR" && break
5896 done
5897
5898   if test "x$ac_ct_AR" = x; then
5899     AR="false"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907     AR=$ac_ct_AR
5908   fi
5909 fi
5910
5911 : ${AR=ar}
5912 : ${AR_FLAGS=cru}
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5925 $as_echo_n "checking for archiver @FILE support... " >&6; }
5926 if ${lt_cv_ar_at_file+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   lt_cv_ar_at_file=no
5930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h.  */
5932
5933 int
5934 main ()
5935 {
5936
5937   ;
5938   return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942   echo conftest.$ac_objext > conftest.lst
5943       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5944       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5945   (eval $lt_ar_try) 2>&5
5946   ac_status=$?
5947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948   test $ac_status = 0; }
5949       if test "$ac_status" -eq 0; then
5950         # Ensure the archiver fails upon bogus file names.
5951         rm -f conftest.$ac_objext libconftest.a
5952         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5953   (eval $lt_ar_try) 2>&5
5954   ac_status=$?
5955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956   test $ac_status = 0; }
5957         if test "$ac_status" -ne 0; then
5958           lt_cv_ar_at_file=@
5959         fi
5960       fi
5961       rm -f conftest.* libconftest.a
5962
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5968 $as_echo "$lt_cv_ar_at_file" >&6; }
5969
5970 if test "x$lt_cv_ar_at_file" = xno; then
5971   archiver_list_spec=
5972 else
5973   archiver_list_spec=$lt_cv_ar_at_file
5974 fi
5975
5976
5977
5978
5979
5980
5981
5982 if test -n "$ac_tool_prefix"; then
5983   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}strip; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_STRIP+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -n "$STRIP"; then
5991   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 STRIP=$ac_cv_prog_STRIP
6011 if test -n "$STRIP"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6013 $as_echo "$STRIP" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019
6020 fi
6021 if test -z "$ac_cv_prog_STRIP"; then
6022   ac_ct_STRIP=$STRIP
6023   # Extract the first word of "strip", so it can be a program name with args.
6024 set dummy strip; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$ac_ct_STRIP"; then
6031   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_ac_ct_STRIP="strip"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051 if test -n "$ac_ct_STRIP"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6053 $as_echo "$ac_ct_STRIP" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059   if test "x$ac_ct_STRIP" = x; then
6060     STRIP=":"
6061   else
6062     case $cross_compiling:$ac_tool_warned in
6063 yes:)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6067 esac
6068     STRIP=$ac_ct_STRIP
6069   fi
6070 else
6071   STRIP="$ac_cv_prog_STRIP"
6072 fi
6073
6074 test -z "$STRIP" && STRIP=:
6075
6076
6077
6078
6079
6080
6081 if test -n "$ac_tool_prefix"; then
6082   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if ${ac_cv_prog_RANLIB+:} false; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   if test -n "$RANLIB"; then
6090   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097     for ac_exec_ext in '' $ac_executable_extensions; do
6098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101     break 2
6102   fi
6103 done
6104   done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 RANLIB=$ac_cv_prog_RANLIB
6110 if test -n "$RANLIB"; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6112 $as_echo "$RANLIB" >&6; }
6113 else
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118
6119 fi
6120 if test -z "$ac_cv_prog_RANLIB"; then
6121   ac_ct_RANLIB=$RANLIB
6122   # Extract the first word of "ranlib", so it can be a program name with args.
6123 set dummy ranlib; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$ac_ct_RANLIB"; then
6130   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139     ac_cv_prog_ac_ct_RANLIB="ranlib"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6150 if test -n "$ac_ct_RANLIB"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6152 $as_echo "$ac_ct_RANLIB" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158   if test "x$ac_ct_RANLIB" = x; then
6159     RANLIB=":"
6160   else
6161     case $cross_compiling:$ac_tool_warned in
6162 yes:)
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167     RANLIB=$ac_ct_RANLIB
6168   fi
6169 else
6170   RANLIB="$ac_cv_prog_RANLIB"
6171 fi
6172
6173 test -z "$RANLIB" && RANLIB=:
6174
6175
6176
6177
6178
6179
6180 # Determine commands to create old-style static archives.
6181 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6182 old_postinstall_cmds='chmod 644 $oldlib'
6183 old_postuninstall_cmds=
6184
6185 if test -n "$RANLIB"; then
6186   case $host_os in
6187   openbsd*)
6188     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6189     ;;
6190   *)
6191     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6192     ;;
6193   esac
6194   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6195 fi
6196
6197 case $host_os in
6198   darwin*)
6199     lock_old_archive_extraction=yes ;;
6200   *)
6201     lock_old_archive_extraction=no ;;
6202 esac
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242 # If no C compiler was specified, use CC.
6243 LTCC=${LTCC-"$CC"}
6244
6245 # If no C compiler flags were specified, use CFLAGS.
6246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6247
6248 # Allow CC to be a program name with arguments.
6249 compiler=$CC
6250
6251
6252 # Check for command to grab the raw symbol name followed by C symbol from nm.
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6254 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6255 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6256   $as_echo_n "(cached) " >&6
6257 else
6258
6259 # These are sane defaults that work on at least a few old systems.
6260 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6261
6262 # Character class describing NM global symbol codes.
6263 symcode='[BCDEGRST]'
6264
6265 # Regexp to match symbols that can be accessed directly from C.
6266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6267
6268 # Define system-specific variables.
6269 case $host_os in
6270 aix*)
6271   symcode='[BCDT]'
6272   ;;
6273 cygwin* | mingw* | pw32* | cegcc*)
6274   symcode='[ABCDGISTW]'
6275   ;;
6276 hpux*)
6277   if test "$host_cpu" = ia64; then
6278     symcode='[ABCDEGRST]'
6279   fi
6280   ;;
6281 irix* | nonstopux*)
6282   symcode='[BCDEGRST]'
6283   ;;
6284 osf*)
6285   symcode='[BCDEGQRST]'
6286   ;;
6287 solaris*)
6288   symcode='[BDRT]'
6289   ;;
6290 sco3.2v5*)
6291   symcode='[DT]'
6292   ;;
6293 sysv4.2uw2*)
6294   symcode='[DT]'
6295   ;;
6296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6297   symcode='[ABDT]'
6298   ;;
6299 sysv4)
6300   symcode='[DFNSTU]'
6301   ;;
6302 esac
6303
6304 # If we're using GNU nm, then use its standard symbol codes.
6305 case `$NM -V 2>&1` in
6306 *GNU* | *'with BFD'*)
6307   symcode='[ABCDGIRSTW]' ;;
6308 esac
6309
6310 # Transform an extracted symbol line into a proper C declaration.
6311 # Some systems (esp. on ia64) link data and code symbols differently,
6312 # so use this general approach.
6313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6314
6315 # Transform an extracted symbol line into symbol name and symbol address
6316 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6317 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6318
6319 # Handle CRLF in mingw tool chain
6320 opt_cr=
6321 case $build_os in
6322 mingw*)
6323   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6324   ;;
6325 esac
6326
6327 # Try without a prefix underscore, then with it.
6328 for ac_symprfx in "" "_"; do
6329
6330   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6331   symxfrm="\\1 $ac_symprfx\\2 \\2"
6332
6333   # Write the raw and C identifiers.
6334   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6335     # Fake it for dumpbin and say T for any non-static function
6336     # and D for any global variable.
6337     # Also find C++ and __fastcall symbols from MSVC++,
6338     # which start with @ or ?.
6339     lt_cv_sys_global_symbol_pipe="$AWK '"\
6340 "     {last_section=section; section=\$ 3};"\
6341 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6342 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6343 "     \$ 0!~/External *\|/{next};"\
6344 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6345 "     {if(hide[section]) next};"\
6346 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6347 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6348 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6349 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6350 "     ' prfx=^$ac_symprfx"
6351   else
6352     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6353   fi
6354   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6355
6356   # Check to see that the pipe works correctly.
6357   pipe_works=no
6358
6359   rm -f conftest*
6360   cat > conftest.$ac_ext <<_LT_EOF
6361 #ifdef __cplusplus
6362 extern "C" {
6363 #endif
6364 char nm_test_var;
6365 void nm_test_func(void);
6366 void nm_test_func(void){}
6367 #ifdef __cplusplus
6368 }
6369 #endif
6370 int main(){nm_test_var='a';nm_test_func();return(0);}
6371 _LT_EOF
6372
6373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374   (eval $ac_compile) 2>&5
6375   ac_status=$?
6376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377   test $ac_status = 0; }; then
6378     # Now try to grab the symbols.
6379     nlist=conftest.nm
6380     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6381   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6382   ac_status=$?
6383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384   test $ac_status = 0; } && test -s "$nlist"; then
6385       # Try sorting and uniquifying the output.
6386       if sort "$nlist" | uniq > "$nlist"T; then
6387         mv -f "$nlist"T "$nlist"
6388       else
6389         rm -f "$nlist"T
6390       fi
6391
6392       # Make sure that we snagged all the symbols we need.
6393       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6394         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6395           cat <<_LT_EOF > conftest.$ac_ext
6396 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6397 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6398 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6399    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6400 # define LT_DLSYM_CONST
6401 #elif defined(__osf__)
6402 /* This system does not cope well with relocations in const data.  */
6403 # define LT_DLSYM_CONST
6404 #else
6405 # define LT_DLSYM_CONST const
6406 #endif
6407
6408 #ifdef __cplusplus
6409 extern "C" {
6410 #endif
6411
6412 _LT_EOF
6413           # Now generate the symbol file.
6414           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6415
6416           cat <<_LT_EOF >> conftest.$ac_ext
6417
6418 /* The mapping between symbol names and symbols.  */
6419 LT_DLSYM_CONST struct {
6420   const char *name;
6421   void       *address;
6422 }
6423 lt__PROGRAM__LTX_preloaded_symbols[] =
6424 {
6425   { "@PROGRAM@", (void *) 0 },
6426 _LT_EOF
6427           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6428           cat <<\_LT_EOF >> conftest.$ac_ext
6429   {0, (void *) 0}
6430 };
6431
6432 /* This works around a problem in FreeBSD linker */
6433 #ifdef FREEBSD_WORKAROUND
6434 static const void *lt_preloaded_setup() {
6435   return lt__PROGRAM__LTX_preloaded_symbols;
6436 }
6437 #endif
6438
6439 #ifdef __cplusplus
6440 }
6441 #endif
6442 _LT_EOF
6443           # Now try linking the two files.
6444           mv conftest.$ac_objext conftstm.$ac_objext
6445           lt_globsym_save_LIBS=$LIBS
6446           lt_globsym_save_CFLAGS=$CFLAGS
6447           LIBS="conftstm.$ac_objext"
6448           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6449           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6450   (eval $ac_link) 2>&5
6451   ac_status=$?
6452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6454             pipe_works=yes
6455           fi
6456           LIBS=$lt_globsym_save_LIBS
6457           CFLAGS=$lt_globsym_save_CFLAGS
6458         else
6459           echo "cannot find nm_test_func in $nlist" >&5
6460         fi
6461       else
6462         echo "cannot find nm_test_var in $nlist" >&5
6463       fi
6464     else
6465       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6466     fi
6467   else
6468     echo "$progname: failed program was:" >&5
6469     cat conftest.$ac_ext >&5
6470   fi
6471   rm -rf conftest* conftst*
6472
6473   # Do not use the global_symbol_pipe unless it works.
6474   if test "$pipe_works" = yes; then
6475     break
6476   else
6477     lt_cv_sys_global_symbol_pipe=
6478   fi
6479 done
6480
6481 fi
6482
6483 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6484   lt_cv_sys_global_symbol_to_cdecl=
6485 fi
6486 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6488 $as_echo "failed" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6491 $as_echo "ok" >&6; }
6492 fi
6493
6494 # Response file support.
6495 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496   nm_file_list_spec='@'
6497 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6498   nm_file_list_spec='@'
6499 fi
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6528 $as_echo_n "checking for sysroot... " >&6; }
6529
6530 # Check whether --with-sysroot was given.
6531 if test "${with_sysroot+set}" = set; then :
6532   withval=$with_sysroot;
6533 else
6534   with_sysroot=no
6535 fi
6536
6537
6538 lt_sysroot=
6539 case ${with_sysroot} in #(
6540  yes)
6541    if test "$GCC" = yes; then
6542      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6543    fi
6544    ;; #(
6545  /*)
6546    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6547    ;; #(
6548  no|'')
6549    ;; #(
6550  *)
6551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6552 $as_echo "${with_sysroot}" >&6; }
6553    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6554    ;;
6555 esac
6556
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6558 $as_echo "${lt_sysroot:-no}" >&6; }
6559
6560
6561
6562
6563
6564 # Check whether --enable-libtool-lock was given.
6565 if test "${enable_libtool_lock+set}" = set; then :
6566   enableval=$enable_libtool_lock;
6567 fi
6568
6569 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6570
6571 # Some flags need to be propagated to the compiler or linker for good
6572 # libtool support.
6573 case $host in
6574 ia64-*-hpux*)
6575   # Find out which ABI we are using.
6576   echo 'int i;' > conftest.$ac_ext
6577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6578   (eval $ac_compile) 2>&5
6579   ac_status=$?
6580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581   test $ac_status = 0; }; then
6582     case `/usr/bin/file conftest.$ac_objext` in
6583       *ELF-32*)
6584         HPUX_IA64_MODE="32"
6585         ;;
6586       *ELF-64*)
6587         HPUX_IA64_MODE="64"
6588         ;;
6589     esac
6590   fi
6591   rm -rf conftest*
6592   ;;
6593 *-*-irix6*)
6594   # Find out which ABI we are using.
6595   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6596   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6597   (eval $ac_compile) 2>&5
6598   ac_status=$?
6599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600   test $ac_status = 0; }; then
6601     if test "$lt_cv_prog_gnu_ld" = yes; then
6602       case `/usr/bin/file conftest.$ac_objext` in
6603         *32-bit*)
6604           LD="${LD-ld} -melf32bsmip"
6605           ;;
6606         *N32*)
6607           LD="${LD-ld} -melf32bmipn32"
6608           ;;
6609         *64-bit*)
6610           LD="${LD-ld} -melf64bmip"
6611         ;;
6612       esac
6613     else
6614       case `/usr/bin/file conftest.$ac_objext` in
6615         *32-bit*)
6616           LD="${LD-ld} -32"
6617           ;;
6618         *N32*)
6619           LD="${LD-ld} -n32"
6620           ;;
6621         *64-bit*)
6622           LD="${LD-ld} -64"
6623           ;;
6624       esac
6625     fi
6626   fi
6627   rm -rf conftest*
6628   ;;
6629
6630 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6631 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6632   # Find out which ABI we are using.
6633   echo 'int i;' > conftest.$ac_ext
6634   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6635   (eval $ac_compile) 2>&5
6636   ac_status=$?
6637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638   test $ac_status = 0; }; then
6639     case `/usr/bin/file conftest.o` in
6640       *32-bit*)
6641         case $host in
6642           x86_64-*kfreebsd*-gnu)
6643             LD="${LD-ld} -m elf_i386_fbsd"
6644             ;;
6645           x86_64-*linux*)
6646             LD="${LD-ld} -m elf_i386"
6647             ;;
6648           ppc64-*linux*|powerpc64-*linux*)
6649             LD="${LD-ld} -m elf32ppclinux"
6650             ;;
6651           s390x-*linux*)
6652             LD="${LD-ld} -m elf_s390"
6653             ;;
6654           sparc64-*linux*)
6655             LD="${LD-ld} -m elf32_sparc"
6656             ;;
6657         esac
6658         ;;
6659       *64-bit*)
6660         case $host in
6661           x86_64-*kfreebsd*-gnu)
6662             LD="${LD-ld} -m elf_x86_64_fbsd"
6663             ;;
6664           x86_64-*linux*)
6665             LD="${LD-ld} -m elf_x86_64"
6666             ;;
6667           ppc*-*linux*|powerpc*-*linux*)
6668             LD="${LD-ld} -m elf64ppc"
6669             ;;
6670           s390*-*linux*|s390*-*tpf*)
6671             LD="${LD-ld} -m elf64_s390"
6672             ;;
6673           sparc*-*linux*)
6674             LD="${LD-ld} -m elf64_sparc"
6675             ;;
6676         esac
6677         ;;
6678     esac
6679   fi
6680   rm -rf conftest*
6681   ;;
6682
6683 *-*-sco3.2v5*)
6684   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6685   SAVE_CFLAGS="$CFLAGS"
6686   CFLAGS="$CFLAGS -belf"
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6688 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6689 if ${lt_cv_cc_needs_belf+:} false; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   ac_ext=c
6693 ac_cpp='$CPP $CPPFLAGS'
6694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
6698      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h.  */
6700
6701 int
6702 main ()
6703 {
6704
6705   ;
6706   return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710   lt_cv_cc_needs_belf=yes
6711 else
6712   lt_cv_cc_needs_belf=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715     conftest$ac_exeext conftest.$ac_ext
6716      ac_ext=c
6717 ac_cpp='$CPP $CPPFLAGS'
6718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6724 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6725   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6726     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6727     CFLAGS="$SAVE_CFLAGS"
6728   fi
6729   ;;
6730 *-*solaris*)
6731   # Find out which ABI we are using.
6732   echo 'int i;' > conftest.$ac_ext
6733   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6734   (eval $ac_compile) 2>&5
6735   ac_status=$?
6736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737   test $ac_status = 0; }; then
6738     case `/usr/bin/file conftest.o` in
6739     *64-bit*)
6740       case $lt_cv_prog_gnu_ld in
6741       yes*)
6742         case $host in
6743         i?86-*-solaris*)
6744           LD="${LD-ld} -m elf_x86_64"
6745           ;;
6746         sparc*-*-solaris*)
6747           LD="${LD-ld} -m elf64_sparc"
6748           ;;
6749         esac
6750         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6751         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6752           LD="${LD-ld}_sol2"
6753         fi
6754         ;;
6755       *)
6756         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6757           LD="${LD-ld} -64"
6758         fi
6759         ;;
6760       esac
6761       ;;
6762     esac
6763   fi
6764   rm -rf conftest*
6765   ;;
6766 esac
6767
6768 need_locks="$enable_libtool_lock"
6769
6770 if test -n "$ac_tool_prefix"; then
6771   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}mt; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   if test -n "$MANIFEST_TOOL"; then
6779   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786     for ac_exec_ext in '' $ac_executable_extensions; do
6787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793   done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6799 if test -n "$MANIFEST_TOOL"; then
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6801 $as_echo "$MANIFEST_TOOL" >&6; }
6802 else
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6810   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6811   # Extract the first word of "mt", so it can be a program name with args.
6812 set dummy mt; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   if test -n "$ac_ct_MANIFEST_TOOL"; then
6819   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833   done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6839 if test -n "$ac_ct_MANIFEST_TOOL"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6841 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6848     MANIFEST_TOOL=":"
6849   else
6850     case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854 ac_tool_warned=yes ;;
6855 esac
6856     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6857   fi
6858 else
6859   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6860 fi
6861
6862 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6864 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6865 if ${lt_cv_path_mainfest_tool+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   lt_cv_path_mainfest_tool=no
6869   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6870   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6871   cat conftest.err >&5
6872   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6873     lt_cv_path_mainfest_tool=yes
6874   fi
6875   rm -f conftest*
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6878 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6879 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6880   MANIFEST_TOOL=:
6881 fi
6882
6883
6884
6885
6886
6887
6888   case $host_os in
6889     rhapsody* | darwin*)
6890     if test -n "$ac_tool_prefix"; then
6891   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   if test -n "$DSYMUTIL"; then
6899   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906     for ac_exec_ext in '' $ac_executable_extensions; do
6907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913   done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6919 if test -n "$DSYMUTIL"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6921 $as_echo "$DSYMUTIL" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_DSYMUTIL"; then
6930   ac_ct_DSYMUTIL=$DSYMUTIL
6931   # Extract the first word of "dsymutil", so it can be a program name with args.
6932 set dummy dsymutil; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   if test -n "$ac_ct_DSYMUTIL"; then
6939   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6959 if test -n "$ac_ct_DSYMUTIL"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6961 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967   if test "x$ac_ct_DSYMUTIL" = x; then
6968     DSYMUTIL=":"
6969   else
6970     case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976     DSYMUTIL=$ac_ct_DSYMUTIL
6977   fi
6978 else
6979   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6980 fi
6981
6982     if test -n "$ac_tool_prefix"; then
6983   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_NMEDIT+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   if test -n "$NMEDIT"; then
6991   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998     for ac_exec_ext in '' $ac_executable_extensions; do
6999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005   done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 NMEDIT=$ac_cv_prog_NMEDIT
7011 if test -n "$NMEDIT"; then
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7013 $as_echo "$NMEDIT" >&6; }
7014 else
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019
7020 fi
7021 if test -z "$ac_cv_prog_NMEDIT"; then
7022   ac_ct_NMEDIT=$NMEDIT
7023   # Extract the first word of "nmedit", so it can be a program name with args.
7024 set dummy nmedit; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   if test -n "$ac_ct_NMEDIT"; then
7031   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7051 if test -n "$ac_ct_NMEDIT"; then
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7053 $as_echo "$ac_ct_NMEDIT" >&6; }
7054 else
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059   if test "x$ac_ct_NMEDIT" = x; then
7060     NMEDIT=":"
7061   else
7062     case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068     NMEDIT=$ac_ct_NMEDIT
7069   fi
7070 else
7071   NMEDIT="$ac_cv_prog_NMEDIT"
7072 fi
7073
7074     if test -n "$ac_tool_prefix"; then
7075   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_LIPO+:} false; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   if test -n "$LIPO"; then
7083   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090     for ac_exec_ext in '' $ac_executable_extensions; do
7091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097   done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 LIPO=$ac_cv_prog_LIPO
7103 if test -n "$LIPO"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7105 $as_echo "$LIPO" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_LIPO"; then
7114   ac_ct_LIPO=$LIPO
7115   # Extract the first word of "lipo", so it can be a program name with args.
7116 set dummy lipo; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   if test -n "$ac_ct_LIPO"; then
7123   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130     for ac_exec_ext in '' $ac_executable_extensions; do
7131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132     ac_cv_prog_ac_ct_LIPO="lipo"
7133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137   done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7143 if test -n "$ac_ct_LIPO"; then
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7145 $as_echo "$ac_ct_LIPO" >&6; }
7146 else
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151   if test "x$ac_ct_LIPO" = x; then
7152     LIPO=":"
7153   else
7154     case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160     LIPO=$ac_ct_LIPO
7161   fi
7162 else
7163   LIPO="$ac_cv_prog_LIPO"
7164 fi
7165
7166     if test -n "$ac_tool_prefix"; then
7167   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}otool; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_prog_OTOOL+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   if test -n "$OTOOL"; then
7175   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182     for ac_exec_ext in '' $ac_executable_extensions; do
7183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189   done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 OTOOL=$ac_cv_prog_OTOOL
7195 if test -n "$OTOOL"; then
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7197 $as_echo "$OTOOL" >&6; }
7198 else
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_OTOOL"; then
7206   ac_ct_OTOOL=$OTOOL
7207   # Extract the first word of "otool", so it can be a program name with args.
7208 set dummy otool; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7212   $as_echo_n "(cached) " >&6
7213 else
7214   if test -n "$ac_ct_OTOOL"; then
7215   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222     for ac_exec_ext in '' $ac_executable_extensions; do
7223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224     ac_cv_prog_ac_ct_OTOOL="otool"
7225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229   done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7235 if test -n "$ac_ct_OTOOL"; then
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7237 $as_echo "$ac_ct_OTOOL" >&6; }
7238 else
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243   if test "x$ac_ct_OTOOL" = x; then
7244     OTOOL=":"
7245   else
7246     case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252     OTOOL=$ac_ct_OTOOL
7253   fi
7254 else
7255   OTOOL="$ac_cv_prog_OTOOL"
7256 fi
7257
7258     if test -n "$ac_tool_prefix"; then
7259   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_OTOOL64+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$OTOOL64"; then
7267   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 OTOOL64=$ac_cv_prog_OTOOL64
7287 if test -n "$OTOOL64"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7289 $as_echo "$OTOOL64" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_OTOOL64"; then
7298   ac_ct_OTOOL64=$OTOOL64
7299   # Extract the first word of "otool64", so it can be a program name with args.
7300 set dummy otool64; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   if test -n "$ac_ct_OTOOL64"; then
7307   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314     for ac_exec_ext in '' $ac_executable_extensions; do
7315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316     ac_cv_prog_ac_ct_OTOOL64="otool64"
7317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321   done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7327 if test -n "$ac_ct_OTOOL64"; then
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7329 $as_echo "$ac_ct_OTOOL64" >&6; }
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335   if test "x$ac_ct_OTOOL64" = x; then
7336     OTOOL64=":"
7337   else
7338     case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344     OTOOL64=$ac_ct_OTOOL64
7345   fi
7346 else
7347   OTOOL64="$ac_cv_prog_OTOOL64"
7348 fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7377 $as_echo_n "checking for -single_module linker flag... " >&6; }
7378 if ${lt_cv_apple_cc_single_mod+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   lt_cv_apple_cc_single_mod=no
7382       if test -z "${LT_MULTI_MODULE}"; then
7383         # By default we will add the -single_module flag. You can override
7384         # by either setting the environment variable LT_MULTI_MODULE
7385         # non-empty at configure time, or by adding -multi_module to the
7386         # link flags.
7387         rm -rf libconftest.dylib*
7388         echo "int foo(void){return 1;}" > conftest.c
7389         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7390 -dynamiclib -Wl,-single_module conftest.c" >&5
7391         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7392           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7393         _lt_result=$?
7394         # If there is a non-empty error log, and "single_module"
7395         # appears in it, assume the flag caused a linker warning
7396         if test -s conftest.err && $GREP single_module conftest.err; then
7397           cat conftest.err >&5
7398         # Otherwise, if the output was created with a 0 exit code from
7399         # the compiler, it worked.
7400         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7401           lt_cv_apple_cc_single_mod=yes
7402         else
7403           cat conftest.err >&5
7404         fi
7405         rm -rf libconftest.dylib*
7406         rm -f conftest.*
7407       fi
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7410 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7411
7412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7413 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7414 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   lt_cv_ld_exported_symbols_list=no
7418       save_LDFLAGS=$LDFLAGS
7419       echo "_main" > conftest.sym
7420       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7421       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h.  */
7423
7424 int
7425 main ()
7426 {
7427
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 if ac_fn_c_try_link "$LINENO"; then :
7433   lt_cv_ld_exported_symbols_list=yes
7434 else
7435   lt_cv_ld_exported_symbols_list=no
7436 fi
7437 rm -f core conftest.err conftest.$ac_objext \
7438     conftest$ac_exeext conftest.$ac_ext
7439         LDFLAGS="$save_LDFLAGS"
7440
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7443 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7444
7445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7446 $as_echo_n "checking for -force_load linker flag... " >&6; }
7447 if ${lt_cv_ld_force_load+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   lt_cv_ld_force_load=no
7451       cat > conftest.c << _LT_EOF
7452 int forced_loaded() { return 2;}
7453 _LT_EOF
7454       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7455       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7456       echo "$AR cru libconftest.a conftest.o" >&5
7457       $AR cru libconftest.a conftest.o 2>&5
7458       echo "$RANLIB libconftest.a" >&5
7459       $RANLIB libconftest.a 2>&5
7460       cat > conftest.c << _LT_EOF
7461 int main() { return 0;}
7462 _LT_EOF
7463       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7464       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7465       _lt_result=$?
7466       if test -s conftest.err && $GREP force_load conftest.err; then
7467         cat conftest.err >&5
7468       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7469         lt_cv_ld_force_load=yes
7470       else
7471         cat conftest.err >&5
7472       fi
7473         rm -f conftest.err libconftest.a conftest conftest.c
7474         rm -rf conftest.dSYM
7475
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7478 $as_echo "$lt_cv_ld_force_load" >&6; }
7479     case $host_os in
7480     rhapsody* | darwin1.[012])
7481       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7482     darwin1.*)
7483       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7484     darwin*) # darwin 5.x on
7485       # if running on 10.5 or later, the deployment target defaults
7486       # to the OS version, if on x86, and 10.4, the deployment
7487       # target defaults to 10.4. Don't you love it?
7488       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7489         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7490           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7491         10.[012]*)
7492           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7493         10.*)
7494           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7495       esac
7496     ;;
7497   esac
7498     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7499       _lt_dar_single_mod='$single_module'
7500     fi
7501     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7502       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7503     else
7504       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7505     fi
7506     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7507       _lt_dsymutil='~$DSYMUTIL $lib || :'
7508     else
7509       _lt_dsymutil=
7510     fi
7511     ;;
7512   esac
7513
7514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7515 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7516                   inttypes.h stdint.h unistd.h
7517 do :
7518   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7519 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7520 "
7521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7522   cat >>confdefs.h <<_ACEOF
7523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7524 _ACEOF
7525
7526 fi
7527
7528 done
7529
7530
7531 for ac_header in dlfcn.h
7532 do :
7533   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7534 "
7535 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7536   cat >>confdefs.h <<_ACEOF
7537 #define HAVE_DLFCN_H 1
7538 _ACEOF
7539
7540 fi
7541
7542 done
7543
7544
7545
7546
7547
7548 # Set options
7549 enable_win32_dll=yes
7550
7551 case $host in
7552 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7553   if test -n "$ac_tool_prefix"; then
7554   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}as; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_AS+:} false; then :
7559   $as_echo_n "(cached) " >&6
7560 else
7561   if test -n "$AS"; then
7562   ac_cv_prog_AS="$AS" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569     for ac_exec_ext in '' $ac_executable_extensions; do
7570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571     ac_cv_prog_AS="${ac_tool_prefix}as"
7572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576   done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 AS=$ac_cv_prog_AS
7582 if test -n "$AS"; then
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7584 $as_echo "$AS" >&6; }
7585 else
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590
7591 fi
7592 if test -z "$ac_cv_prog_AS"; then
7593   ac_ct_AS=$AS
7594   # Extract the first word of "as", so it can be a program name with args.
7595 set dummy as; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7599   $as_echo_n "(cached) " >&6
7600 else
7601   if test -n "$ac_ct_AS"; then
7602   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609     for ac_exec_ext in '' $ac_executable_extensions; do
7610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611     ac_cv_prog_ac_ct_AS="as"
7612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616   done
7617 IFS=$as_save_IFS
7618
7619 fi
7620 fi
7621 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7622 if test -n "$ac_ct_AS"; then
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7624 $as_echo "$ac_ct_AS" >&6; }
7625 else
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 fi
7629
7630   if test "x$ac_ct_AS" = x; then
7631     AS="false"
7632   else
7633     case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7638 esac
7639     AS=$ac_ct_AS
7640   fi
7641 else
7642   AS="$ac_cv_prog_AS"
7643 fi
7644
7645   if test -n "$ac_tool_prefix"; then
7646   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7647 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_DLLTOOL+:} false; then :
7651   $as_echo_n "(cached) " >&6
7652 else
7653   if test -n "$DLLTOOL"; then
7654   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661     for ac_exec_ext in '' $ac_executable_extensions; do
7662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665     break 2
7666   fi
7667 done
7668   done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 DLLTOOL=$ac_cv_prog_DLLTOOL
7674 if test -n "$DLLTOOL"; then
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7676 $as_echo "$DLLTOOL" >&6; }
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682
7683 fi
7684 if test -z "$ac_cv_prog_DLLTOOL"; then
7685   ac_ct_DLLTOOL=$DLLTOOL
7686   # Extract the first word of "dlltool", so it can be a program name with args.
7687 set dummy dlltool; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   if test -n "$ac_ct_DLLTOOL"; then
7694   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701     for ac_exec_ext in '' $ac_executable_extensions; do
7702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708   done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7714 if test -n "$ac_ct_DLLTOOL"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7716 $as_echo "$ac_ct_DLLTOOL" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722   if test "x$ac_ct_DLLTOOL" = x; then
7723     DLLTOOL="false"
7724   else
7725     case $cross_compiling:$ac_tool_warned in
7726 yes:)
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7729 ac_tool_warned=yes ;;
7730 esac
7731     DLLTOOL=$ac_ct_DLLTOOL
7732   fi
7733 else
7734   DLLTOOL="$ac_cv_prog_DLLTOOL"
7735 fi
7736
7737   if test -n "$ac_tool_prefix"; then
7738   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_prog_OBJDUMP+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   if test -n "$OBJDUMP"; then
7746   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 OBJDUMP=$ac_cv_prog_OBJDUMP
7766 if test -n "$OBJDUMP"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7768 $as_echo "$OBJDUMP" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774
7775 fi
7776 if test -z "$ac_cv_prog_OBJDUMP"; then
7777   ac_ct_OBJDUMP=$OBJDUMP
7778   # Extract the first word of "objdump", so it can be a program name with args.
7779 set dummy objdump; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   if test -n "$ac_ct_OBJDUMP"; then
7786   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793     for ac_exec_ext in '' $ac_executable_extensions; do
7794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800   done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7806 if test -n "$ac_ct_OBJDUMP"; then
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7808 $as_echo "$ac_ct_OBJDUMP" >&6; }
7809 else
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814   if test "x$ac_ct_OBJDUMP" = x; then
7815     OBJDUMP="false"
7816   else
7817     case $cross_compiling:$ac_tool_warned in
7818 yes:)
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7821 ac_tool_warned=yes ;;
7822 esac
7823     OBJDUMP=$ac_ct_OBJDUMP
7824   fi
7825 else
7826   OBJDUMP="$ac_cv_prog_OBJDUMP"
7827 fi
7828
7829   ;;
7830 esac
7831
7832 test -z "$AS" && AS=as
7833
7834
7835
7836
7837
7838 test -z "$DLLTOOL" && DLLTOOL=dlltool
7839
7840
7841
7842
7843
7844 test -z "$OBJDUMP" && OBJDUMP=objdump
7845
7846
7847
7848
7849
7850
7851
7852         enable_dlopen=no
7853
7854
7855
7856             # Check whether --enable-shared was given.
7857 if test "${enable_shared+set}" = set; then :
7858   enableval=$enable_shared; p=${PACKAGE-default}
7859     case $enableval in
7860     yes) enable_shared=yes ;;
7861     no) enable_shared=no ;;
7862     *)
7863       enable_shared=no
7864       # Look at the argument we got.  We use all the common list separators.
7865       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7866       for pkg in $enableval; do
7867         IFS="$lt_save_ifs"
7868         if test "X$pkg" = "X$p"; then
7869           enable_shared=yes
7870         fi
7871       done
7872       IFS="$lt_save_ifs"
7873       ;;
7874     esac
7875 else
7876   enable_shared=yes
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887   # Check whether --enable-static was given.
7888 if test "${enable_static+set}" = set; then :
7889   enableval=$enable_static; p=${PACKAGE-default}
7890     case $enableval in
7891     yes) enable_static=yes ;;
7892     no) enable_static=no ;;
7893     *)
7894      enable_static=no
7895       # Look at the argument we got.  We use all the common list separators.
7896       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7897       for pkg in $enableval; do
7898         IFS="$lt_save_ifs"
7899         if test "X$pkg" = "X$p"; then
7900           enable_static=yes
7901         fi
7902       done
7903       IFS="$lt_save_ifs"
7904       ;;
7905     esac
7906 else
7907   enable_static=yes
7908 fi
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 # Check whether --with-pic was given.
7920 if test "${with_pic+set}" = set; then :
7921   withval=$with_pic; lt_p=${PACKAGE-default}
7922     case $withval in
7923     yes|no) pic_mode=$withval ;;
7924     *)
7925       pic_mode=default
7926       # Look at the argument we got.  We use all the common list separators.
7927       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7928       for lt_pkg in $withval; do
7929         IFS="$lt_save_ifs"
7930         if test "X$lt_pkg" = "X$lt_p"; then
7931           pic_mode=yes
7932         fi
7933       done
7934       IFS="$lt_save_ifs"
7935       ;;
7936     esac
7937 else
7938   pic_mode=default
7939 fi
7940
7941
7942 test -z "$pic_mode" && pic_mode=default
7943
7944
7945
7946
7947
7948
7949
7950   # Check whether --enable-fast-install was given.
7951 if test "${enable_fast_install+set}" = set; then :
7952   enableval=$enable_fast_install; p=${PACKAGE-default}
7953     case $enableval in
7954     yes) enable_fast_install=yes ;;
7955     no) enable_fast_install=no ;;
7956     *)
7957       enable_fast_install=no
7958       # Look at the argument we got.  We use all the common list separators.
7959       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7960       for pkg in $enableval; do
7961         IFS="$lt_save_ifs"
7962         if test "X$pkg" = "X$p"; then
7963           enable_fast_install=yes
7964         fi
7965       done
7966       IFS="$lt_save_ifs"
7967       ;;
7968     esac
7969 else
7970   enable_fast_install=yes
7971 fi
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 # This can be used to rebuild libtool when needed
7984 LIBTOOL_DEPS="$ltmain"
7985
7986 # Always use our own libtool.
7987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018 test -z "$LN_S" && LN_S="ln -s"
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 if test -n "${ZSH_VERSION+set}" ; then
8034    setopt NO_GLOB_SUBST
8035 fi
8036
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8038 $as_echo_n "checking for objdir... " >&6; }
8039 if ${lt_cv_objdir+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   rm -f .libs 2>/dev/null
8043 mkdir .libs 2>/dev/null
8044 if test -d .libs; then
8045   lt_cv_objdir=.libs
8046 else
8047   # MS-DOS does not allow filenames that begin with a dot.
8048   lt_cv_objdir=_libs
8049 fi
8050 rmdir .libs 2>/dev/null
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8053 $as_echo "$lt_cv_objdir" >&6; }
8054 objdir=$lt_cv_objdir
8055
8056
8057
8058
8059
8060 cat >>confdefs.h <<_ACEOF
8061 #define LT_OBJDIR "$lt_cv_objdir/"
8062 _ACEOF
8063
8064
8065
8066
8067 case $host_os in
8068 aix3*)
8069   # AIX sometimes has problems with the GCC collect2 program.  For some
8070   # reason, if we set the COLLECT_NAMES environment variable, the problems
8071   # vanish in a puff of smoke.
8072   if test "X${COLLECT_NAMES+set}" != Xset; then
8073     COLLECT_NAMES=
8074     export COLLECT_NAMES
8075   fi
8076   ;;
8077 esac
8078
8079 # Global variables:
8080 ofile=libtool
8081 can_build_shared=yes
8082
8083 # All known linkers require a `.a' archive for static linking (except MSVC,
8084 # which needs '.lib').
8085 libext=a
8086
8087 with_gnu_ld="$lt_cv_prog_gnu_ld"
8088
8089 old_CC="$CC"
8090 old_CFLAGS="$CFLAGS"
8091
8092 # Set sane defaults for various variables
8093 test -z "$CC" && CC=cc
8094 test -z "$LTCC" && LTCC=$CC
8095 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8096 test -z "$LD" && LD=ld
8097 test -z "$ac_objext" && ac_objext=o
8098
8099 for cc_temp in $compiler""; do
8100   case $cc_temp in
8101     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8102     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8103     \-*) ;;
8104     *) break;;
8105   esac
8106 done
8107 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8108
8109
8110 # Only perform the check for file, if the check method requires it
8111 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8112 case $deplibs_check_method in
8113 file_magic*)
8114   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8116 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8117 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   case $MAGIC_CMD in
8121 [\\/*] |  ?:[\\/]*)
8122   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8123   ;;
8124 *)
8125   lt_save_MAGIC_CMD="$MAGIC_CMD"
8126   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8127   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8128   for ac_dir in $ac_dummy; do
8129     IFS="$lt_save_ifs"
8130     test -z "$ac_dir" && ac_dir=.
8131     if test -f $ac_dir/${ac_tool_prefix}file; then
8132       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8133       if test -n "$file_magic_test_file"; then
8134         case $deplibs_check_method in
8135         "file_magic "*)
8136           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8137           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8138           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8139             $EGREP "$file_magic_regex" > /dev/null; then
8140             :
8141           else
8142             cat <<_LT_EOF 1>&2
8143
8144 *** Warning: the command libtool uses to detect shared libraries,
8145 *** $file_magic_cmd, produces output that libtool cannot recognize.
8146 *** The result is that libtool may fail to recognize shared libraries
8147 *** as such.  This will affect the creation of libtool libraries that
8148 *** depend on shared libraries, but programs linked with such libtool
8149 *** libraries will work regardless of this problem.  Nevertheless, you
8150 *** may want to report the problem to your system manager and/or to
8151 *** bug-libtool@gnu.org
8152
8153 _LT_EOF
8154           fi ;;
8155         esac
8156       fi
8157       break
8158     fi
8159   done
8160   IFS="$lt_save_ifs"
8161   MAGIC_CMD="$lt_save_MAGIC_CMD"
8162   ;;
8163 esac
8164 fi
8165
8166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8167 if test -n "$MAGIC_CMD"; then
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8169 $as_echo "$MAGIC_CMD" >&6; }
8170 else
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176
8177
8178
8179 if test -z "$lt_cv_path_MAGIC_CMD"; then
8180   if test -n "$ac_tool_prefix"; then
8181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8182 $as_echo_n "checking for file... " >&6; }
8183 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   case $MAGIC_CMD in
8187 [\\/*] |  ?:[\\/]*)
8188   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8189   ;;
8190 *)
8191   lt_save_MAGIC_CMD="$MAGIC_CMD"
8192   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8193   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8194   for ac_dir in $ac_dummy; do
8195     IFS="$lt_save_ifs"
8196     test -z "$ac_dir" && ac_dir=.
8197     if test -f $ac_dir/file; then
8198       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8199       if test -n "$file_magic_test_file"; then
8200         case $deplibs_check_method in
8201         "file_magic "*)
8202           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8203           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8204           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8205             $EGREP "$file_magic_regex" > /dev/null; then
8206             :
8207           else
8208             cat <<_LT_EOF 1>&2
8209
8210 *** Warning: the command libtool uses to detect shared libraries,
8211 *** $file_magic_cmd, produces output that libtool cannot recognize.
8212 *** The result is that libtool may fail to recognize shared libraries
8213 *** as such.  This will affect the creation of libtool libraries that
8214 *** depend on shared libraries, but programs linked with such libtool
8215 *** libraries will work regardless of this problem.  Nevertheless, you
8216 *** may want to report the problem to your system manager and/or to
8217 *** bug-libtool@gnu.org
8218
8219 _LT_EOF
8220           fi ;;
8221         esac
8222       fi
8223       break
8224     fi
8225   done
8226   IFS="$lt_save_ifs"
8227   MAGIC_CMD="$lt_save_MAGIC_CMD"
8228   ;;
8229 esac
8230 fi
8231
8232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8233 if test -n "$MAGIC_CMD"; then
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8235 $as_echo "$MAGIC_CMD" >&6; }
8236 else
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241
8242   else
8243     MAGIC_CMD=:
8244   fi
8245 fi
8246
8247   fi
8248   ;;
8249 esac
8250
8251 # Use C for the default configuration in the libtool script
8252
8253 lt_save_CC="$CC"
8254 ac_ext=c
8255 ac_cpp='$CPP $CPPFLAGS'
8256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260
8261 # Source file extension for C test sources.
8262 ac_ext=c
8263
8264 # Object file extension for compiled C test sources.
8265 objext=o
8266 objext=$objext
8267
8268 # Code to be used in simple compile tests
8269 lt_simple_compile_test_code="int some_variable = 0;"
8270
8271 # Code to be used in simple link tests
8272 lt_simple_link_test_code='int main(){return(0);}'
8273
8274
8275
8276
8277
8278
8279
8280 # If no C compiler was specified, use CC.
8281 LTCC=${LTCC-"$CC"}
8282
8283 # If no C compiler flags were specified, use CFLAGS.
8284 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8285
8286 # Allow CC to be a program name with arguments.
8287 compiler=$CC
8288
8289 # Save the default compiler, since it gets overwritten when the other
8290 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8291 compiler_DEFAULT=$CC
8292
8293 # save warnings/boilerplate of simple test code
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8297 _lt_compiler_boilerplate=`cat conftest.err`
8298 $RM conftest*
8299
8300 ac_outfile=conftest.$ac_objext
8301 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8303 _lt_linker_boilerplate=`cat conftest.err`
8304 $RM -r conftest*
8305
8306
8307 ## CAVEAT EMPTOR:
8308 ## There is no encapsulation within the following macros, do not change
8309 ## the running order or otherwise move them around unless you know exactly
8310 ## what you are doing...
8311 if test -n "$compiler"; then
8312
8313 lt_prog_compiler_no_builtin_flag=
8314
8315 if test "$GCC" = yes; then
8316   case $cc_basename in
8317   nvcc*)
8318     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8319   *)
8320     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8321   esac
8322
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8324 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8325 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8326   $as_echo_n "(cached) " >&6
8327 else
8328   lt_cv_prog_compiler_rtti_exceptions=no
8329    ac_outfile=conftest.$ac_objext
8330    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331    lt_compiler_flag="-fno-rtti -fno-exceptions"
8332    # Insert the option either (1) after the last *FLAGS variable, or
8333    # (2) before a word containing "conftest.", or (3) at the end.
8334    # Note that $ac_compile itself does not contain backslashes and begins
8335    # with a dollar sign (not a hyphen), so the echo should work correctly.
8336    # The option is referenced via a variable to avoid confusing sed.
8337    lt_compile=`echo "$ac_compile" | $SED \
8338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340    -e 's:$: $lt_compiler_flag:'`
8341    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342    (eval "$lt_compile" 2>conftest.err)
8343    ac_status=$?
8344    cat conftest.err >&5
8345    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346    if (exit $ac_status) && test -s "$ac_outfile"; then
8347      # The compiler can only warn and ignore the option if not recognized
8348      # So say no if there are warnings other than the usual output.
8349      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8350      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8351      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8352        lt_cv_prog_compiler_rtti_exceptions=yes
8353      fi
8354    fi
8355    $RM conftest*
8356
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8359 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8360
8361 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8362     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8363 else
8364     :
8365 fi
8366
8367 fi
8368
8369
8370
8371
8372
8373
8374   lt_prog_compiler_wl=
8375 lt_prog_compiler_pic=
8376 lt_prog_compiler_static=
8377
8378
8379   if test "$GCC" = yes; then
8380     lt_prog_compiler_wl='-Wl,'
8381     lt_prog_compiler_static='-static'
8382
8383     case $host_os in
8384       aix*)
8385       # All AIX code is PIC.
8386       if test "$host_cpu" = ia64; then
8387         # AIX 5 now supports IA64 processor
8388         lt_prog_compiler_static='-Bstatic'
8389       fi
8390       ;;
8391
8392     amigaos*)
8393       case $host_cpu in
8394       powerpc)
8395             # see comment about AmigaOS4 .so support
8396             lt_prog_compiler_pic='-fPIC'
8397         ;;
8398       m68k)
8399             # FIXME: we need at least 68020 code to build shared libraries, but
8400             # adding the `-m68020' flag to GCC prevents building anything better,
8401             # like `-m68040'.
8402             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8403         ;;
8404       esac
8405       ;;
8406
8407     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8408       # PIC is the default for these OSes.
8409       ;;
8410
8411     mingw* | cygwin* | pw32* | os2* | cegcc*)
8412       # This hack is so that the source file can tell whether it is being
8413       # built for inclusion in a dll (and should export symbols for example).
8414       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8415       # (--disable-auto-import) libraries
8416       lt_prog_compiler_pic='-DDLL_EXPORT'
8417       ;;
8418
8419     darwin* | rhapsody*)
8420       # PIC is the default on this platform
8421       # Common symbols not allowed in MH_DYLIB files
8422       lt_prog_compiler_pic='-fno-common'
8423       ;;
8424
8425     haiku*)
8426       # PIC is the default for Haiku.
8427       # The "-static" flag exists, but is broken.
8428       lt_prog_compiler_static=
8429       ;;
8430
8431     hpux*)
8432       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8433       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8434       # sets the default TLS model and affects inlining.
8435       case $host_cpu in
8436       hppa*64*)
8437         # +Z the default
8438         ;;
8439       *)
8440         lt_prog_compiler_pic='-fPIC'
8441         ;;
8442       esac
8443       ;;
8444
8445     interix[3-9]*)
8446       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8447       # Instead, we relocate shared libraries at runtime.
8448       ;;
8449
8450     msdosdjgpp*)
8451       # Just because we use GCC doesn't mean we suddenly get shared libraries
8452       # on systems that don't support them.
8453       lt_prog_compiler_can_build_shared=no
8454       enable_shared=no
8455       ;;
8456
8457     *nto* | *qnx*)
8458       # QNX uses GNU C++, but need to define -shared option too, otherwise
8459       # it will coredump.
8460       lt_prog_compiler_pic='-fPIC -shared'
8461       ;;
8462
8463     sysv4*MP*)
8464       if test -d /usr/nec; then
8465         lt_prog_compiler_pic=-Kconform_pic
8466       fi
8467       ;;
8468
8469     *)
8470       lt_prog_compiler_pic='-fPIC'
8471       ;;
8472     esac
8473
8474     case $cc_basename in
8475     nvcc*) # Cuda Compiler Driver 2.2
8476       lt_prog_compiler_wl='-Xlinker '
8477       if test -n "$lt_prog_compiler_pic"; then
8478         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8479       fi
8480       ;;
8481     esac
8482   else
8483     # PORTME Check for flag to pass linker flags through the system compiler.
8484     case $host_os in
8485     aix*)
8486       lt_prog_compiler_wl='-Wl,'
8487       if test "$host_cpu" = ia64; then
8488         # AIX 5 now supports IA64 processor
8489         lt_prog_compiler_static='-Bstatic'
8490       else
8491         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8492       fi
8493       ;;
8494
8495     mingw* | cygwin* | pw32* | os2* | cegcc*)
8496       # This hack is so that the source file can tell whether it is being
8497       # built for inclusion in a dll (and should export symbols for example).
8498       lt_prog_compiler_pic='-DDLL_EXPORT'
8499       ;;
8500
8501     hpux9* | hpux10* | hpux11*)
8502       lt_prog_compiler_wl='-Wl,'
8503       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8504       # not for PA HP-UX.
8505       case $host_cpu in
8506       hppa*64*|ia64*)
8507         # +Z the default
8508         ;;
8509       *)
8510         lt_prog_compiler_pic='+Z'
8511         ;;
8512       esac
8513       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8514       lt_prog_compiler_static='${wl}-a ${wl}archive'
8515       ;;
8516
8517     irix5* | irix6* | nonstopux*)
8518       lt_prog_compiler_wl='-Wl,'
8519       # PIC (with -KPIC) is the default.
8520       lt_prog_compiler_static='-non_shared'
8521       ;;
8522
8523     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8524       case $cc_basename in
8525       # old Intel for x86_64 which still supported -KPIC.
8526       ecc*)
8527         lt_prog_compiler_wl='-Wl,'
8528         lt_prog_compiler_pic='-KPIC'
8529         lt_prog_compiler_static='-static'
8530         ;;
8531       # icc used to be incompatible with GCC.
8532       # ICC 10 doesn't accept -KPIC any more.
8533       icc* | ifort*)
8534         lt_prog_compiler_wl='-Wl,'
8535         lt_prog_compiler_pic='-fPIC'
8536         lt_prog_compiler_static='-static'
8537         ;;
8538       # Lahey Fortran 8.1.
8539       lf95*)
8540         lt_prog_compiler_wl='-Wl,'
8541         lt_prog_compiler_pic='--shared'
8542         lt_prog_compiler_static='--static'
8543         ;;
8544       nagfor*)
8545         # NAG Fortran compiler
8546         lt_prog_compiler_wl='-Wl,-Wl,,'
8547         lt_prog_compiler_pic='-PIC'
8548         lt_prog_compiler_static='-Bstatic'
8549         ;;
8550       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8551         # Portland Group compilers (*not* the Pentium gcc compiler,
8552         # which looks to be a dead project)
8553         lt_prog_compiler_wl='-Wl,'
8554         lt_prog_compiler_pic='-fpic'
8555         lt_prog_compiler_static='-Bstatic'
8556         ;;
8557       ccc*)
8558         lt_prog_compiler_wl='-Wl,'
8559         # All Alpha code is PIC.
8560         lt_prog_compiler_static='-non_shared'
8561         ;;
8562       xl* | bgxl* | bgf* | mpixl*)
8563         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8564         lt_prog_compiler_wl='-Wl,'
8565         lt_prog_compiler_pic='-qpic'
8566         lt_prog_compiler_static='-qstaticlink'
8567         ;;
8568       *)
8569         case `$CC -V 2>&1 | sed 5q` in
8570         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8571           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8572           lt_prog_compiler_pic='-KPIC'
8573           lt_prog_compiler_static='-Bstatic'
8574           lt_prog_compiler_wl=''
8575           ;;
8576         *Sun\ F* | *Sun*Fortran*)
8577           lt_prog_compiler_pic='-KPIC'
8578           lt_prog_compiler_static='-Bstatic'
8579           lt_prog_compiler_wl='-Qoption ld '
8580           ;;
8581         *Sun\ C*)
8582           # Sun C 5.9
8583           lt_prog_compiler_pic='-KPIC'
8584           lt_prog_compiler_static='-Bstatic'
8585           lt_prog_compiler_wl='-Wl,'
8586           ;;
8587         *Intel*\ [CF]*Compiler*)
8588           lt_prog_compiler_wl='-Wl,'
8589           lt_prog_compiler_pic='-fPIC'
8590           lt_prog_compiler_static='-static'
8591           ;;
8592         *Portland\ Group*)
8593           lt_prog_compiler_wl='-Wl,'
8594           lt_prog_compiler_pic='-fpic'
8595           lt_prog_compiler_static='-Bstatic'
8596           ;;
8597         esac
8598         ;;
8599       esac
8600       ;;
8601
8602     newsos6)
8603       lt_prog_compiler_pic='-KPIC'
8604       lt_prog_compiler_static='-Bstatic'
8605       ;;
8606
8607     *nto* | *qnx*)
8608       # QNX uses GNU C++, but need to define -shared option too, otherwise
8609       # it will coredump.
8610       lt_prog_compiler_pic='-fPIC -shared'
8611       ;;
8612
8613     osf3* | osf4* | osf5*)
8614       lt_prog_compiler_wl='-Wl,'
8615       # All OSF/1 code is PIC.
8616       lt_prog_compiler_static='-non_shared'
8617       ;;
8618
8619     rdos*)
8620       lt_prog_compiler_static='-non_shared'
8621       ;;
8622
8623     solaris*)
8624       lt_prog_compiler_pic='-KPIC'
8625       lt_prog_compiler_static='-Bstatic'
8626       case $cc_basename in
8627       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8628         lt_prog_compiler_wl='-Qoption ld ';;
8629       *)
8630         lt_prog_compiler_wl='-Wl,';;
8631       esac
8632       ;;
8633
8634     sunos4*)
8635       lt_prog_compiler_wl='-Qoption ld '
8636       lt_prog_compiler_pic='-PIC'
8637       lt_prog_compiler_static='-Bstatic'
8638       ;;
8639
8640     sysv4 | sysv4.2uw2* | sysv4.3*)
8641       lt_prog_compiler_wl='-Wl,'
8642       lt_prog_compiler_pic='-KPIC'
8643       lt_prog_compiler_static='-Bstatic'
8644       ;;
8645
8646     sysv4*MP*)
8647       if test -d /usr/nec ;then
8648         lt_prog_compiler_pic='-Kconform_pic'
8649         lt_prog_compiler_static='-Bstatic'
8650       fi
8651       ;;
8652
8653     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8654       lt_prog_compiler_wl='-Wl,'
8655       lt_prog_compiler_pic='-KPIC'
8656       lt_prog_compiler_static='-Bstatic'
8657       ;;
8658
8659     unicos*)
8660       lt_prog_compiler_wl='-Wl,'
8661       lt_prog_compiler_can_build_shared=no
8662       ;;
8663
8664     uts4*)
8665       lt_prog_compiler_pic='-pic'
8666       lt_prog_compiler_static='-Bstatic'
8667       ;;
8668
8669     *)
8670       lt_prog_compiler_can_build_shared=no
8671       ;;
8672     esac
8673   fi
8674
8675 case $host_os in
8676   # For platforms which do not support PIC, -DPIC is meaningless:
8677   *djgpp*)
8678     lt_prog_compiler_pic=
8679     ;;
8680   *)
8681     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8682     ;;
8683 esac
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8686 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8687 if ${lt_cv_prog_compiler_pic+:} false; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8693 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8694 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8695
8696 #
8697 # Check to make sure the PIC flag actually works.
8698 #
8699 if test -n "$lt_prog_compiler_pic"; then
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8701 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8702 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   lt_cv_prog_compiler_pic_works=no
8706    ac_outfile=conftest.$ac_objext
8707    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8708    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8709    # Insert the option either (1) after the last *FLAGS variable, or
8710    # (2) before a word containing "conftest.", or (3) at the end.
8711    # Note that $ac_compile itself does not contain backslashes and begins
8712    # with a dollar sign (not a hyphen), so the echo should work correctly.
8713    # The option is referenced via a variable to avoid confusing sed.
8714    lt_compile=`echo "$ac_compile" | $SED \
8715    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8716    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8717    -e 's:$: $lt_compiler_flag:'`
8718    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8719    (eval "$lt_compile" 2>conftest.err)
8720    ac_status=$?
8721    cat conftest.err >&5
8722    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723    if (exit $ac_status) && test -s "$ac_outfile"; then
8724      # The compiler can only warn and ignore the option if not recognized
8725      # So say no if there are warnings other than the usual output.
8726      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8727      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8728      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8729        lt_cv_prog_compiler_pic_works=yes
8730      fi
8731    fi
8732    $RM conftest*
8733
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8736 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8737
8738 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8739     case $lt_prog_compiler_pic in
8740      "" | " "*) ;;
8741      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8742      esac
8743 else
8744     lt_prog_compiler_pic=
8745      lt_prog_compiler_can_build_shared=no
8746 fi
8747
8748 fi
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760 #
8761 # Check to make sure the static flag actually works.
8762 #
8763 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8765 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8766 if ${lt_cv_prog_compiler_static_works+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   lt_cv_prog_compiler_static_works=no
8770    save_LDFLAGS="$LDFLAGS"
8771    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8772    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8773    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8774      # The linker can only warn and ignore the option if not recognized
8775      # So say no if there are warnings
8776      if test -s conftest.err; then
8777        # Append any errors to the config.log.
8778        cat conftest.err 1>&5
8779        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8780        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781        if diff conftest.exp conftest.er2 >/dev/null; then
8782          lt_cv_prog_compiler_static_works=yes
8783        fi
8784      else
8785        lt_cv_prog_compiler_static_works=yes
8786      fi
8787    fi
8788    $RM -r conftest*
8789    LDFLAGS="$save_LDFLAGS"
8790
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8793 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8794
8795 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8796     :
8797 else
8798     lt_prog_compiler_static=
8799 fi
8800
8801
8802
8803
8804
8805
8806
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8809 if ${lt_cv_prog_compiler_c_o+:} false; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   lt_cv_prog_compiler_c_o=no
8813    $RM -r conftest 2>/dev/null
8814    mkdir conftest
8815    cd conftest
8816    mkdir out
8817    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8818
8819    lt_compiler_flag="-o out/conftest2.$ac_objext"
8820    # Insert the option either (1) after the last *FLAGS variable, or
8821    # (2) before a word containing "conftest.", or (3) at the end.
8822    # Note that $ac_compile itself does not contain backslashes and begins
8823    # with a dollar sign (not a hyphen), so the echo should work correctly.
8824    lt_compile=`echo "$ac_compile" | $SED \
8825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8827    -e 's:$: $lt_compiler_flag:'`
8828    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8829    (eval "$lt_compile" 2>out/conftest.err)
8830    ac_status=$?
8831    cat out/conftest.err >&5
8832    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8834    then
8835      # The compiler can only warn and ignore the option if not recognized
8836      # So say no if there are warnings
8837      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8838      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8839      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8840        lt_cv_prog_compiler_c_o=yes
8841      fi
8842    fi
8843    chmod u+w . 2>&5
8844    $RM conftest*
8845    # SGI C++ compiler will create directory out/ii_files/ for
8846    # template instantiation
8847    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8848    $RM out/* && rmdir out
8849    cd ..
8850    $RM -r conftest
8851    $RM conftest*
8852
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8855 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8856
8857
8858
8859
8860
8861
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8864 if ${lt_cv_prog_compiler_c_o+:} false; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   lt_cv_prog_compiler_c_o=no
8868    $RM -r conftest 2>/dev/null
8869    mkdir conftest
8870    cd conftest
8871    mkdir out
8872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873
8874    lt_compiler_flag="-o out/conftest2.$ac_objext"
8875    # Insert the option either (1) after the last *FLAGS variable, or
8876    # (2) before a word containing "conftest.", or (3) at the end.
8877    # Note that $ac_compile itself does not contain backslashes and begins
8878    # with a dollar sign (not a hyphen), so the echo should work correctly.
8879    lt_compile=`echo "$ac_compile" | $SED \
8880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8882    -e 's:$: $lt_compiler_flag:'`
8883    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8884    (eval "$lt_compile" 2>out/conftest.err)
8885    ac_status=$?
8886    cat out/conftest.err >&5
8887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8889    then
8890      # The compiler can only warn and ignore the option if not recognized
8891      # So say no if there are warnings
8892      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8895        lt_cv_prog_compiler_c_o=yes
8896      fi
8897    fi
8898    chmod u+w . 2>&5
8899    $RM conftest*
8900    # SGI C++ compiler will create directory out/ii_files/ for
8901    # template instantiation
8902    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8903    $RM out/* && rmdir out
8904    cd ..
8905    $RM -r conftest
8906    $RM conftest*
8907
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8910 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8911
8912
8913
8914
8915 hard_links="nottested"
8916 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8917   # do not overwrite the value of need_locks provided by the user
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8919 $as_echo_n "checking if we can lock with hard links... " >&6; }
8920   hard_links=yes
8921   $RM conftest*
8922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8923   touch conftest.a
8924   ln conftest.a conftest.b 2>&5 || hard_links=no
8925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8927 $as_echo "$hard_links" >&6; }
8928   if test "$hard_links" = no; then
8929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8930 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8931     need_locks=warn
8932   fi
8933 else
8934   need_locks=no
8935 fi
8936
8937
8938
8939
8940
8941
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8944
8945   runpath_var=
8946   allow_undefined_flag=
8947   always_export_symbols=no
8948   archive_cmds=
8949   archive_expsym_cmds=
8950   compiler_needs_object=no
8951   enable_shared_with_static_runtimes=no
8952   export_dynamic_flag_spec=
8953   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8954   hardcode_automatic=no
8955   hardcode_direct=no
8956   hardcode_direct_absolute=no
8957   hardcode_libdir_flag_spec=
8958   hardcode_libdir_separator=
8959   hardcode_minus_L=no
8960   hardcode_shlibpath_var=unsupported
8961   inherit_rpath=no
8962   link_all_deplibs=unknown
8963   module_cmds=
8964   module_expsym_cmds=
8965   old_archive_from_new_cmds=
8966   old_archive_from_expsyms_cmds=
8967   thread_safe_flag_spec=
8968   whole_archive_flag_spec=
8969   # include_expsyms should be a list of space-separated symbols to be *always*
8970   # included in the symbol list
8971   include_expsyms=
8972   # exclude_expsyms can be an extended regexp of symbols to exclude
8973   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8974   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8975   # as well as any symbol that contains `d'.
8976   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8977   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8978   # platforms (ab)use it in PIC code, but their linkers get confused if
8979   # the symbol is explicitly referenced.  Since portable code cannot
8980   # rely on this symbol name, it's probably fine to never include it in
8981   # preloaded symbol tables.
8982   # Exclude shared library initialization/finalization symbols.
8983   extract_expsyms_cmds=
8984
8985   case $host_os in
8986   cygwin* | mingw* | pw32* | cegcc*)
8987     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8988     # When not using gcc, we currently assume that we are using
8989     # Microsoft Visual C++.
8990     if test "$GCC" != yes; then
8991       with_gnu_ld=no
8992     fi
8993     ;;
8994   interix*)
8995     # we just hope/assume this is gcc and not c89 (= MSVC++)
8996     with_gnu_ld=yes
8997     ;;
8998   openbsd*)
8999     with_gnu_ld=no
9000     ;;
9001   linux* | k*bsd*-gnu | gnu*)
9002     link_all_deplibs=no
9003     ;;
9004   esac
9005
9006   ld_shlibs=yes
9007
9008   # On some targets, GNU ld is compatible enough with the native linker
9009   # that we're better off using the native interface for both.
9010   lt_use_gnu_ld_interface=no
9011   if test "$with_gnu_ld" = yes; then
9012     case $host_os in
9013       aix*)
9014         # The AIX port of GNU ld has always aspired to compatibility
9015         # with the native linker.  However, as the warning in the GNU ld
9016         # block says, versions before 2.19.5* couldn't really create working
9017         # shared libraries, regardless of the interface used.
9018         case `$LD -v 2>&1` in
9019           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9020           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9021           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9022           *)
9023             lt_use_gnu_ld_interface=yes
9024             ;;
9025         esac
9026         ;;
9027       *)
9028         lt_use_gnu_ld_interface=yes
9029         ;;
9030     esac
9031   fi
9032
9033   if test "$lt_use_gnu_ld_interface" = yes; then
9034     # If archive_cmds runs LD, not CC, wlarc should be empty
9035     wlarc='${wl}'
9036
9037     # Set some defaults for GNU ld with shared library support. These
9038     # are reset later if shared libraries are not supported. Putting them
9039     # here allows them to be overridden if necessary.
9040     runpath_var=LD_RUN_PATH
9041     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9042     export_dynamic_flag_spec='${wl}--export-dynamic'
9043     # ancient GNU ld didn't support --whole-archive et. al.
9044     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9045       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9046     else
9047       whole_archive_flag_spec=
9048     fi
9049     supports_anon_versioning=no
9050     case `$LD -v 2>&1` in
9051       *GNU\ gold*) supports_anon_versioning=yes ;;
9052       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9053       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9054       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9055       *\ 2.11.*) ;; # other 2.11 versions
9056       *) supports_anon_versioning=yes ;;
9057     esac
9058
9059     # See if GNU ld supports shared libraries.
9060     case $host_os in
9061     aix[3-9]*)
9062       # On AIX/PPC, the GNU linker is very broken
9063       if test "$host_cpu" != ia64; then
9064         ld_shlibs=no
9065         cat <<_LT_EOF 1>&2
9066
9067 *** Warning: the GNU linker, at least up to release 2.19, is reported
9068 *** to be unable to reliably create shared libraries on AIX.
9069 *** Therefore, libtool is disabling shared libraries support.  If you
9070 *** really care for shared libraries, you may want to install binutils
9071 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9072 *** You will then need to restart the configuration process.
9073
9074 _LT_EOF
9075       fi
9076       ;;
9077
9078     amigaos*)
9079       case $host_cpu in
9080       powerpc)
9081             # see comment about AmigaOS4 .so support
9082             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9083             archive_expsym_cmds=''
9084         ;;
9085       m68k)
9086             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)'
9087             hardcode_libdir_flag_spec='-L$libdir'
9088             hardcode_minus_L=yes
9089         ;;
9090       esac
9091       ;;
9092
9093     beos*)
9094       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9095         allow_undefined_flag=unsupported
9096         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9097         # support --undefined.  This deserves some investigation.  FIXME
9098         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9099       else
9100         ld_shlibs=no
9101       fi
9102       ;;
9103
9104     cygwin* | mingw* | pw32* | cegcc*)
9105       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9106       # as there is no search path for DLLs.
9107       hardcode_libdir_flag_spec='-L$libdir'
9108       export_dynamic_flag_spec='${wl}--export-all-symbols'
9109       allow_undefined_flag=unsupported
9110       always_export_symbols=no
9111       enable_shared_with_static_runtimes=yes
9112       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'
9113       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9114
9115       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9116         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9117         # If the export-symbols file already is a .def file (1st line
9118         # is EXPORTS), use it as is; otherwise, prepend...
9119         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9120           cp $export_symbols $output_objdir/$soname.def;
9121         else
9122           echo EXPORTS > $output_objdir/$soname.def;
9123           cat $export_symbols >> $output_objdir/$soname.def;
9124         fi~
9125         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126       else
9127         ld_shlibs=no
9128       fi
9129       ;;
9130
9131     haiku*)
9132       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133       link_all_deplibs=yes
9134       ;;
9135
9136     interix[3-9]*)
9137       hardcode_direct=no
9138       hardcode_shlibpath_var=no
9139       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9140       export_dynamic_flag_spec='${wl}-E'
9141       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9142       # Instead, shared libraries are loaded at an image base (0x10000000 by
9143       # default) and relocated if they conflict, which is a slow very memory
9144       # consuming and fragmenting process.  To avoid this, we pick a random,
9145       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9146       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9147       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9148       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'
9149       ;;
9150
9151     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9152       tmp_diet=no
9153       if test "$host_os" = linux-dietlibc; then
9154         case $cc_basename in
9155           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9156         esac
9157       fi
9158       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9159          && test "$tmp_diet" = no
9160       then
9161         tmp_addflag=' $pic_flag'
9162         tmp_sharedflag='-shared'
9163         case $cc_basename,$host_cpu in
9164         pgcc*)                          # Portland Group C compiler
9165           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'
9166           tmp_addflag=' $pic_flag'
9167           ;;
9168         pgf77* | pgf90* | pgf95* | pgfortran*)
9169                                         # Portland Group f77 and f90 compilers
9170           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'
9171           tmp_addflag=' $pic_flag -Mnomain' ;;
9172         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9173           tmp_addflag=' -i_dynamic' ;;
9174         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9175           tmp_addflag=' -i_dynamic -nofor_main' ;;
9176         ifc* | ifort*)                  # Intel Fortran compiler
9177           tmp_addflag=' -nofor_main' ;;
9178         lf95*)                          # Lahey Fortran 8.1
9179           whole_archive_flag_spec=
9180           tmp_sharedflag='--shared' ;;
9181         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9182           tmp_sharedflag='-qmkshrobj'
9183           tmp_addflag= ;;
9184         nvcc*)  # Cuda Compiler Driver 2.2
9185           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'
9186           compiler_needs_object=yes
9187           ;;
9188         esac
9189         case `$CC -V 2>&1 | sed 5q` in
9190         *Sun\ C*)                       # Sun C 5.9
9191           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'
9192           compiler_needs_object=yes
9193           tmp_sharedflag='-G' ;;
9194         *Sun\ F*)                       # Sun Fortran 8.3
9195           tmp_sharedflag='-G' ;;
9196         esac
9197         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198
9199         if test "x$supports_anon_versioning" = xyes; then
9200           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9201             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9202             echo "local: *; };" >> $output_objdir/$libname.ver~
9203             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9204         fi
9205
9206         case $cc_basename in
9207         xlf* | bgf* | bgxlf* | mpixlf*)
9208           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9209           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9210           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9212           if test "x$supports_anon_versioning" = xyes; then
9213             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9214               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9215               echo "local: *; };" >> $output_objdir/$libname.ver~
9216               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9217           fi
9218           ;;
9219         esac
9220       else
9221         ld_shlibs=no
9222       fi
9223       ;;
9224
9225     netbsd* | netbsdelf*-gnu)
9226       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9227         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9228         wlarc=
9229       else
9230         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9232       fi
9233       ;;
9234
9235     solaris*)
9236       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9237         ld_shlibs=no
9238         cat <<_LT_EOF 1>&2
9239
9240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9241 *** create shared libraries on Solaris systems.  Therefore, libtool
9242 *** is disabling shared libraries support.  We urge you to upgrade GNU
9243 *** binutils to release 2.9.1 or newer.  Another option is to modify
9244 *** your PATH or compiler configuration so that the native linker is
9245 *** used, and then restart.
9246
9247 _LT_EOF
9248       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9249         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9251       else
9252         ld_shlibs=no
9253       fi
9254       ;;
9255
9256     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9257       case `$LD -v 2>&1` in
9258         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9259         ld_shlibs=no
9260         cat <<_LT_EOF 1>&2
9261
9262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9263 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9264 *** is disabling shared libraries support.  We urge you to upgrade GNU
9265 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9266 *** your PATH or compiler configuration so that the native linker is
9267 *** used, and then restart.
9268
9269 _LT_EOF
9270         ;;
9271         *)
9272           # For security reasons, it is highly recommended that you always
9273           # use absolute paths for naming shared libraries, and exclude the
9274           # DT_RUNPATH tag from executables and libraries.  But doing so
9275           # requires that you compile everything twice, which is a pain.
9276           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9277             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9280           else
9281             ld_shlibs=no
9282           fi
9283         ;;
9284       esac
9285       ;;
9286
9287     sunos4*)
9288       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9289       wlarc=
9290       hardcode_direct=yes
9291       hardcode_shlibpath_var=no
9292       ;;
9293
9294     *)
9295       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9296         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9297         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9298       else
9299         ld_shlibs=no
9300       fi
9301       ;;
9302     esac
9303
9304     if test "$ld_shlibs" = no; then
9305       runpath_var=
9306       hardcode_libdir_flag_spec=
9307       export_dynamic_flag_spec=
9308       whole_archive_flag_spec=
9309     fi
9310   else
9311     # PORTME fill in a description of your system's linker (not GNU ld)
9312     case $host_os in
9313     aix3*)
9314       allow_undefined_flag=unsupported
9315       always_export_symbols=yes
9316       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'
9317       # Note: this linker hardcodes the directories in LIBPATH if there
9318       # are no directories specified by -L.
9319       hardcode_minus_L=yes
9320       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9321         # Neither direct hardcoding nor static linking is supported with a
9322         # broken collect2.
9323         hardcode_direct=unsupported
9324       fi
9325       ;;
9326
9327     aix[4-9]*)
9328       if test "$host_cpu" = ia64; then
9329         # On IA64, the linker does run time linking by default, so we don't
9330         # have to do anything special.
9331         aix_use_runtimelinking=no
9332         exp_sym_flag='-Bexport'
9333         no_entry_flag=""
9334       else
9335         # If we're using GNU nm, then we don't want the "-C" option.
9336         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9337         # Also, AIX nm treats weak defined symbols like other global
9338         # defined symbols, whereas GNU nm marks them as "W".
9339         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9340           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'
9341         else
9342           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'
9343         fi
9344         aix_use_runtimelinking=no
9345
9346         # Test if we are trying to use run time linking or normal
9347         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9348         # need to do runtime linking.
9349         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9350           for ld_flag in $LDFLAGS; do
9351           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9352             aix_use_runtimelinking=yes
9353             break
9354           fi
9355           done
9356           ;;
9357         esac
9358
9359         exp_sym_flag='-bexport'
9360         no_entry_flag='-bnoentry'
9361       fi
9362
9363       # When large executables or shared objects are built, AIX ld can
9364       # have problems creating the table of contents.  If linking a library
9365       # or program results in "error TOC overflow" add -mminimal-toc to
9366       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9367       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9368
9369       archive_cmds=''
9370       hardcode_direct=yes
9371       hardcode_direct_absolute=yes
9372       hardcode_libdir_separator=':'
9373       link_all_deplibs=yes
9374       file_list_spec='${wl}-f,'
9375
9376       if test "$GCC" = yes; then
9377         case $host_os in aix4.[012]|aix4.[012].*)
9378         # We only want to do this on AIX 4.2 and lower, the check
9379         # below for broken collect2 doesn't work under 4.3+
9380           collect2name=`${CC} -print-prog-name=collect2`
9381           if test -f "$collect2name" &&
9382            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9383           then
9384           # We have reworked collect2
9385           :
9386           else
9387           # We have old collect2
9388           hardcode_direct=unsupported
9389           # It fails to find uninstalled libraries when the uninstalled
9390           # path is not listed in the libpath.  Setting hardcode_minus_L
9391           # to unsupported forces relinking
9392           hardcode_minus_L=yes
9393           hardcode_libdir_flag_spec='-L$libdir'
9394           hardcode_libdir_separator=
9395           fi
9396           ;;
9397         esac
9398         shared_flag='-shared'
9399         if test "$aix_use_runtimelinking" = yes; then
9400           shared_flag="$shared_flag "'${wl}-G'
9401         fi
9402         link_all_deplibs=no
9403       else
9404         # not using gcc
9405         if test "$host_cpu" = ia64; then
9406         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9407         # chokes on -Wl,-G. The following line is correct:
9408           shared_flag='-G'
9409         else
9410           if test "$aix_use_runtimelinking" = yes; then
9411             shared_flag='${wl}-G'
9412           else
9413             shared_flag='${wl}-bM:SRE'
9414           fi
9415         fi
9416       fi
9417
9418       export_dynamic_flag_spec='${wl}-bexpall'
9419       # It seems that -bexpall does not export symbols beginning with
9420       # underscore (_), so it is better to generate a list of symbols to export.
9421       always_export_symbols=yes
9422       if test "$aix_use_runtimelinking" = yes; then
9423         # Warning - without using the other runtime loading flags (-brtl),
9424         # -berok will link without error, but may produce a broken library.
9425         allow_undefined_flag='-berok'
9426         # Determine the default libpath from the value encoded in an
9427         # empty executable.
9428         if test "${lt_cv_aix_libpath+set}" = set; then
9429   aix_libpath=$lt_cv_aix_libpath
9430 else
9431   if ${lt_cv_aix_libpath_+:} false; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h.  */
9436
9437 int
9438 main ()
9439 {
9440
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_c_try_link "$LINENO"; then :
9446
9447   lt_aix_libpath_sed='
9448       /Import File Strings/,/^$/ {
9449           /^0/ {
9450               s/^0  *\([^ ]*\) *$/\1/
9451               p
9452           }
9453       }'
9454   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9455   # Check for a 64-bit object if we didn't find anything.
9456   if test -z "$lt_cv_aix_libpath_"; then
9457     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458   fi
9459 fi
9460 rm -f core conftest.err conftest.$ac_objext \
9461     conftest$ac_exeext conftest.$ac_ext
9462   if test -z "$lt_cv_aix_libpath_"; then
9463     lt_cv_aix_libpath_="/usr/lib:/lib"
9464   fi
9465
9466 fi
9467
9468   aix_libpath=$lt_cv_aix_libpath_
9469 fi
9470
9471         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9472         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"
9473       else
9474         if test "$host_cpu" = ia64; then
9475           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9476           allow_undefined_flag="-z nodefs"
9477           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"
9478         else
9479          # Determine the default libpath from the value encoded in an
9480          # empty executable.
9481          if test "${lt_cv_aix_libpath+set}" = set; then
9482   aix_libpath=$lt_cv_aix_libpath
9483 else
9484   if ${lt_cv_aix_libpath_+:} false; then :
9485   $as_echo_n "(cached) " >&6
9486 else
9487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h.  */
9489
9490 int
9491 main ()
9492 {
9493
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499
9500   lt_aix_libpath_sed='
9501       /Import File Strings/,/^$/ {
9502           /^0/ {
9503               s/^0  *\([^ ]*\) *$/\1/
9504               p
9505           }
9506       }'
9507   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508   # Check for a 64-bit object if we didn't find anything.
9509   if test -z "$lt_cv_aix_libpath_"; then
9510     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511   fi
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514     conftest$ac_exeext conftest.$ac_ext
9515   if test -z "$lt_cv_aix_libpath_"; then
9516     lt_cv_aix_libpath_="/usr/lib:/lib"
9517   fi
9518
9519 fi
9520
9521   aix_libpath=$lt_cv_aix_libpath_
9522 fi
9523
9524          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525           # Warning - without using the other run time loading flags,
9526           # -berok will link without error, but may produce a broken library.
9527           no_undefined_flag=' ${wl}-bernotok'
9528           allow_undefined_flag=' ${wl}-berok'
9529           if test "$with_gnu_ld" = yes; then
9530             # We only use this code for GNU lds that support --whole-archive.
9531             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532           else
9533             # Exported symbols can be pulled into shared objects from archives
9534             whole_archive_flag_spec='$convenience'
9535           fi
9536           archive_cmds_need_lc=yes
9537           # This is similar to how AIX traditionally builds its shared libraries.
9538           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'
9539         fi
9540       fi
9541       ;;
9542
9543     amigaos*)
9544       case $host_cpu in
9545       powerpc)
9546             # see comment about AmigaOS4 .so support
9547             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548             archive_expsym_cmds=''
9549         ;;
9550       m68k)
9551             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)'
9552             hardcode_libdir_flag_spec='-L$libdir'
9553             hardcode_minus_L=yes
9554         ;;
9555       esac
9556       ;;
9557
9558     bsdi[45]*)
9559       export_dynamic_flag_spec=-rdynamic
9560       ;;
9561
9562     cygwin* | mingw* | pw32* | cegcc*)
9563       # When not using gcc, we currently assume that we are using
9564       # Microsoft Visual C++.
9565       # hardcode_libdir_flag_spec is actually meaningless, as there is
9566       # no search path for DLLs.
9567       case $cc_basename in
9568       cl*)
9569         # Native MSVC
9570         hardcode_libdir_flag_spec=' '
9571         allow_undefined_flag=unsupported
9572         always_export_symbols=yes
9573         file_list_spec='@'
9574         # Tell ltmain to make .lib files, not .a files.
9575         libext=lib
9576         # Tell ltmain to make .dll files, not .so files.
9577         shrext_cmds=".dll"
9578         # FIXME: Setting linknames here is a bad hack.
9579         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9580         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9581             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9582           else
9583             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9584           fi~
9585           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9586           linknames='
9587         # The linker will not automatically build a static lib if we build a DLL.
9588         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9589         enable_shared_with_static_runtimes=yes
9590         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9591         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9592         # Don't use ranlib
9593         old_postinstall_cmds='chmod 644 $oldlib'
9594         postlink_cmds='lt_outputfile="@OUTPUT@"~
9595           lt_tool_outputfile="@TOOL_OUTPUT@"~
9596           case $lt_outputfile in
9597             *.exe|*.EXE) ;;
9598             *)
9599               lt_outputfile="$lt_outputfile.exe"
9600               lt_tool_outputfile="$lt_tool_outputfile.exe"
9601               ;;
9602           esac~
9603           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9604             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9605             $RM "$lt_outputfile.manifest";
9606           fi'
9607         ;;
9608       *)
9609         # Assume MSVC wrapper
9610         hardcode_libdir_flag_spec=' '
9611         allow_undefined_flag=unsupported
9612         # Tell ltmain to make .lib files, not .a files.
9613         libext=lib
9614         # Tell ltmain to make .dll files, not .so files.
9615         shrext_cmds=".dll"
9616         # FIXME: Setting linknames here is a bad hack.
9617         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9618         # The linker will automatically build a .lib file if we build a DLL.
9619         old_archive_from_new_cmds='true'
9620         # FIXME: Should let the user specify the lib program.
9621         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9622         enable_shared_with_static_runtimes=yes
9623         ;;
9624       esac
9625       ;;
9626
9627     darwin* | rhapsody*)
9628
9629
9630   archive_cmds_need_lc=no
9631   hardcode_direct=no
9632   hardcode_automatic=yes
9633   hardcode_shlibpath_var=unsupported
9634   if test "$lt_cv_ld_force_load" = "yes"; then
9635     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\"`'
9636
9637   else
9638     whole_archive_flag_spec=''
9639   fi
9640   link_all_deplibs=yes
9641   allow_undefined_flag="$_lt_dar_allow_undefined"
9642   case $cc_basename in
9643      ifort*) _lt_dar_can_shared=yes ;;
9644      *) _lt_dar_can_shared=$GCC ;;
9645   esac
9646   if test "$_lt_dar_can_shared" = "yes"; then
9647     output_verbose_link_cmd=func_echo_all
9648     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9649     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9650     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}"
9651     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}"
9652
9653   else
9654   ld_shlibs=no
9655   fi
9656
9657       ;;
9658
9659     dgux*)
9660       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661       hardcode_libdir_flag_spec='-L$libdir'
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9666     # support.  Future versions do this automatically, but an explicit c++rt0.o
9667     # does not break anything, and helps significantly (at the cost of a little
9668     # extra space).
9669     freebsd2.2*)
9670       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9671       hardcode_libdir_flag_spec='-R$libdir'
9672       hardcode_direct=yes
9673       hardcode_shlibpath_var=no
9674       ;;
9675
9676     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9677     freebsd2.*)
9678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9679       hardcode_direct=yes
9680       hardcode_minus_L=yes
9681       hardcode_shlibpath_var=no
9682       ;;
9683
9684     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9685     freebsd* | dragonfly*)
9686       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9687       hardcode_libdir_flag_spec='-R$libdir'
9688       hardcode_direct=yes
9689       hardcode_shlibpath_var=no
9690       ;;
9691
9692     hpux9*)
9693       if test "$GCC" = yes; then
9694         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'
9695       else
9696         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'
9697       fi
9698       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9699       hardcode_libdir_separator=:
9700       hardcode_direct=yes
9701
9702       # hardcode_minus_L: Not really in the search PATH,
9703       # but as the default location of the library.
9704       hardcode_minus_L=yes
9705       export_dynamic_flag_spec='${wl}-E'
9706       ;;
9707
9708     hpux10*)
9709       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9710         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9711       else
9712         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9713       fi
9714       if test "$with_gnu_ld" = no; then
9715         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9716         hardcode_libdir_separator=:
9717         hardcode_direct=yes
9718         hardcode_direct_absolute=yes
9719         export_dynamic_flag_spec='${wl}-E'
9720         # hardcode_minus_L: Not really in the search PATH,
9721         # but as the default location of the library.
9722         hardcode_minus_L=yes
9723       fi
9724       ;;
9725
9726     hpux11*)
9727       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9728         case $host_cpu in
9729         hppa*64*)
9730           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9731           ;;
9732         ia64*)
9733           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734           ;;
9735         *)
9736           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9737           ;;
9738         esac
9739       else
9740         case $host_cpu in
9741         hppa*64*)
9742           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9743           ;;
9744         ia64*)
9745           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9746           ;;
9747         *)
9748
9749           # Older versions of the 11.00 compiler do not understand -b yet
9750           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9751           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9752 $as_echo_n "checking if $CC understands -b... " >&6; }
9753 if ${lt_cv_prog_compiler__b+:} false; then :
9754   $as_echo_n "(cached) " >&6
9755 else
9756   lt_cv_prog_compiler__b=no
9757    save_LDFLAGS="$LDFLAGS"
9758    LDFLAGS="$LDFLAGS -b"
9759    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9760    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9761      # The linker can only warn and ignore the option if not recognized
9762      # So say no if there are warnings
9763      if test -s conftest.err; then
9764        # Append any errors to the config.log.
9765        cat conftest.err 1>&5
9766        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9767        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9768        if diff conftest.exp conftest.er2 >/dev/null; then
9769          lt_cv_prog_compiler__b=yes
9770        fi
9771      else
9772        lt_cv_prog_compiler__b=yes
9773      fi
9774    fi
9775    $RM -r conftest*
9776    LDFLAGS="$save_LDFLAGS"
9777
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9780 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9781
9782 if test x"$lt_cv_prog_compiler__b" = xyes; then
9783     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9784 else
9785     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9786 fi
9787
9788           ;;
9789         esac
9790       fi
9791       if test "$with_gnu_ld" = no; then
9792         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9793         hardcode_libdir_separator=:
9794
9795         case $host_cpu in
9796         hppa*64*|ia64*)
9797           hardcode_direct=no
9798           hardcode_shlibpath_var=no
9799           ;;
9800         *)
9801           hardcode_direct=yes
9802           hardcode_direct_absolute=yes
9803           export_dynamic_flag_spec='${wl}-E'
9804
9805           # hardcode_minus_L: Not really in the search PATH,
9806           # but as the default location of the library.
9807           hardcode_minus_L=yes
9808           ;;
9809         esac
9810       fi
9811       ;;
9812
9813     irix5* | irix6* | nonstopux*)
9814       if test "$GCC" = yes; then
9815         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'
9816         # Try to use the -exported_symbol ld option, if it does not
9817         # work, assume that -exports_file does not work either and
9818         # implicitly export all symbols.
9819         # This should be the same for all languages, so no per-tag cache variable.
9820         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9821 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9822 if ${lt_cv_irix_exported_symbol+:} false; then :
9823   $as_echo_n "(cached) " >&6
9824 else
9825   save_LDFLAGS="$LDFLAGS"
9826            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9827            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h.  */
9829 int foo (void) { return 0; }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832   lt_cv_irix_exported_symbol=yes
9833 else
9834   lt_cv_irix_exported_symbol=no
9835 fi
9836 rm -f core conftest.err conftest.$ac_objext \
9837     conftest$ac_exeext conftest.$ac_ext
9838            LDFLAGS="$save_LDFLAGS"
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9841 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9842         if test "$lt_cv_irix_exported_symbol" = yes; then
9843           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'
9844         fi
9845       else
9846         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'
9847         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'
9848       fi
9849       archive_cmds_need_lc='no'
9850       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9851       hardcode_libdir_separator=:
9852       inherit_rpath=yes
9853       link_all_deplibs=yes
9854       ;;
9855
9856     netbsd* | netbsdelf*-gnu)
9857       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9858         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9859       else
9860         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9861       fi
9862       hardcode_libdir_flag_spec='-R$libdir'
9863       hardcode_direct=yes
9864       hardcode_shlibpath_var=no
9865       ;;
9866
9867     newsos6)
9868       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869       hardcode_direct=yes
9870       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9871       hardcode_libdir_separator=:
9872       hardcode_shlibpath_var=no
9873       ;;
9874
9875     *nto* | *qnx*)
9876       ;;
9877
9878     openbsd*)
9879       if test -f /usr/libexec/ld.so; then
9880         hardcode_direct=yes
9881         hardcode_shlibpath_var=no
9882         hardcode_direct_absolute=yes
9883         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9884           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9885           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9886           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9887           export_dynamic_flag_spec='${wl}-E'
9888         else
9889           case $host_os in
9890            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9891              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9892              hardcode_libdir_flag_spec='-R$libdir'
9893              ;;
9894            *)
9895              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9896              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9897              ;;
9898           esac
9899         fi
9900       else
9901         ld_shlibs=no
9902       fi
9903       ;;
9904
9905     os2*)
9906       hardcode_libdir_flag_spec='-L$libdir'
9907       hardcode_minus_L=yes
9908       allow_undefined_flag=unsupported
9909       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'
9910       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9911       ;;
9912
9913     osf3*)
9914       if test "$GCC" = yes; then
9915         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9916         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'
9917       else
9918         allow_undefined_flag=' -expect_unresolved \*'
9919         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'
9920       fi
9921       archive_cmds_need_lc='no'
9922       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9923       hardcode_libdir_separator=:
9924       ;;
9925
9926     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9927       if test "$GCC" = yes; then
9928         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9929         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'
9930         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931       else
9932         allow_undefined_flag=' -expect_unresolved \*'
9933         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'
9934         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~
9935         $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'
9936
9937         # Both c and cxx compiler support -rpath directly
9938         hardcode_libdir_flag_spec='-rpath $libdir'
9939       fi
9940       archive_cmds_need_lc='no'
9941       hardcode_libdir_separator=:
9942       ;;
9943
9944     solaris*)
9945       no_undefined_flag=' -z defs'
9946       if test "$GCC" = yes; then
9947         wlarc='${wl}'
9948         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9949         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9950           $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'
9951       else
9952         case `$CC -V 2>&1` in
9953         *"Compilers 5.0"*)
9954           wlarc=''
9955           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9957           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9958           ;;
9959         *)
9960           wlarc='${wl}'
9961           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9962           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9963           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9964           ;;
9965         esac
9966       fi
9967       hardcode_libdir_flag_spec='-R$libdir'
9968       hardcode_shlibpath_var=no
9969       case $host_os in
9970       solaris2.[0-5] | solaris2.[0-5].*) ;;
9971       *)
9972         # The compiler driver will combine and reorder linker options,
9973         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9974         # but is careful enough not to reorder.
9975         # Supported since Solaris 2.6 (maybe 2.5.1?)
9976         if test "$GCC" = yes; then
9977           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9978         else
9979           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9980         fi
9981         ;;
9982       esac
9983       link_all_deplibs=yes
9984       ;;
9985
9986     sunos4*)
9987       if test "x$host_vendor" = xsequent; then
9988         # Use $CC to link under sequent, because it throws in some extra .o
9989         # files that make .init and .fini sections work.
9990         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9991       else
9992         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9993       fi
9994       hardcode_libdir_flag_spec='-L$libdir'
9995       hardcode_direct=yes
9996       hardcode_minus_L=yes
9997       hardcode_shlibpath_var=no
9998       ;;
9999
10000     sysv4)
10001       case $host_vendor in
10002         sni)
10003           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004           hardcode_direct=yes # is this really true???
10005         ;;
10006         siemens)
10007           ## LD is ld it makes a PLAMLIB
10008           ## CC just makes a GrossModule.
10009           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10010           reload_cmds='$CC -r -o $output$reload_objs'
10011           hardcode_direct=no
10012         ;;
10013         motorola)
10014           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10016         ;;
10017       esac
10018       runpath_var='LD_RUN_PATH'
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     sysv4.3*)
10023       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024       hardcode_shlibpath_var=no
10025       export_dynamic_flag_spec='-Bexport'
10026       ;;
10027
10028     sysv4*MP*)
10029       if test -d /usr/nec; then
10030         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031         hardcode_shlibpath_var=no
10032         runpath_var=LD_RUN_PATH
10033         hardcode_runpath_var=yes
10034         ld_shlibs=yes
10035       fi
10036       ;;
10037
10038     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10039       no_undefined_flag='${wl}-z,text'
10040       archive_cmds_need_lc=no
10041       hardcode_shlibpath_var=no
10042       runpath_var='LD_RUN_PATH'
10043
10044       if test "$GCC" = yes; then
10045         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047       else
10048         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050       fi
10051       ;;
10052
10053     sysv5* | sco3.2v5* | sco5v6*)
10054       # Note: We can NOT use -z defs as we might desire, because we do not
10055       # link with -lc, and that would cause any symbols used from libc to
10056       # always be unresolved, which means just about no library would
10057       # ever link correctly.  If we're not using GNU ld we use -z text
10058       # though, which does catch some bad symbols but isn't as heavy-handed
10059       # as -z defs.
10060       no_undefined_flag='${wl}-z,text'
10061       allow_undefined_flag='${wl}-z,nodefs'
10062       archive_cmds_need_lc=no
10063       hardcode_shlibpath_var=no
10064       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10065       hardcode_libdir_separator=':'
10066       link_all_deplibs=yes
10067       export_dynamic_flag_spec='${wl}-Bexport'
10068       runpath_var='LD_RUN_PATH'
10069
10070       if test "$GCC" = yes; then
10071         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10073       else
10074         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10075         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076       fi
10077       ;;
10078
10079     uts4*)
10080       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081       hardcode_libdir_flag_spec='-L$libdir'
10082       hardcode_shlibpath_var=no
10083       ;;
10084
10085     *)
10086       ld_shlibs=no
10087       ;;
10088     esac
10089
10090     if test x$host_vendor = xsni; then
10091       case $host in
10092       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10093         export_dynamic_flag_spec='${wl}-Blargedynsym'
10094         ;;
10095       esac
10096     fi
10097   fi
10098
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10100 $as_echo "$ld_shlibs" >&6; }
10101 test "$ld_shlibs" = no && can_build_shared=no
10102
10103 with_gnu_ld=$with_gnu_ld
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119 #
10120 # Do we need to explicitly link libc?
10121 #
10122 case "x$archive_cmds_need_lc" in
10123 x|xyes)
10124   # Assume -lc should be added
10125   archive_cmds_need_lc=yes
10126
10127   if test "$enable_shared" = yes && test "$GCC" = yes; then
10128     case $archive_cmds in
10129     *'~'*)
10130       # FIXME: we may have to deal with multi-command sequences.
10131       ;;
10132     '$CC '*)
10133       # Test whether the compiler implicitly links with -lc since on some
10134       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10135       # to ld, don't add -lc before -lgcc.
10136       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10137 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10138 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   $RM conftest*
10142         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143
10144         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10145   (eval $ac_compile) 2>&5
10146   ac_status=$?
10147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10148   test $ac_status = 0; } 2>conftest.err; then
10149           soname=conftest
10150           lib=conftest
10151           libobjs=conftest.$ac_objext
10152           deplibs=
10153           wl=$lt_prog_compiler_wl
10154           pic_flag=$lt_prog_compiler_pic
10155           compiler_flags=-v
10156           linker_flags=-v
10157           verstring=
10158           output_objdir=.
10159           libname=conftest
10160           lt_save_allow_undefined_flag=$allow_undefined_flag
10161           allow_undefined_flag=
10162           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10163   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10164   ac_status=$?
10165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10166   test $ac_status = 0; }
10167           then
10168             lt_cv_archive_cmds_need_lc=no
10169           else
10170             lt_cv_archive_cmds_need_lc=yes
10171           fi
10172           allow_undefined_flag=$lt_save_allow_undefined_flag
10173         else
10174           cat conftest.err 1>&5
10175         fi
10176         $RM conftest*
10177
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10180 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10181       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10182       ;;
10183     esac
10184   fi
10185   ;;
10186 esac
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10340 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10341
10342 if test "$GCC" = yes; then
10343   case $host_os in
10344     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10345     *) lt_awk_arg="/^libraries:/" ;;
10346   esac
10347   case $host_os in
10348     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10349     *) lt_sed_strip_eq="s,=/,/,g" ;;
10350   esac
10351   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10352   case $lt_search_path_spec in
10353   *\;*)
10354     # if the path contains ";" then we assume it to be the separator
10355     # otherwise default to the standard path separator (i.e. ":") - it is
10356     # assumed that no part of a normal pathname contains ";" but that should
10357     # okay in the real world where ";" in dirpaths is itself problematic.
10358     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10359     ;;
10360   *)
10361     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10362     ;;
10363   esac
10364   # Ok, now we have the path, separated by spaces, we can step through it
10365   # and add multilib dir if necessary.
10366   lt_tmp_lt_search_path_spec=
10367   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10368   for lt_sys_path in $lt_search_path_spec; do
10369     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10370       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10371     else
10372       test -d "$lt_sys_path" && \
10373         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10374     fi
10375   done
10376   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10377 BEGIN {RS=" "; FS="/|\n";} {
10378   lt_foo="";
10379   lt_count=0;
10380   for (lt_i = NF; lt_i > 0; lt_i--) {
10381     if ($lt_i != "" && $lt_i != ".") {
10382       if ($lt_i == "..") {
10383         lt_count++;
10384       } else {
10385         if (lt_count == 0) {
10386           lt_foo="/" $lt_i lt_foo;
10387         } else {
10388           lt_count--;
10389         }
10390       }
10391     }
10392   }
10393   if (lt_foo != "") { lt_freq[lt_foo]++; }
10394   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10395 }'`
10396   # AWK program above erroneously prepends '/' to C:/dos/paths
10397   # for these hosts.
10398   case $host_os in
10399     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10400       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10401   esac
10402   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10403 else
10404   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10405 fi
10406 library_names_spec=
10407 libname_spec='lib$name'
10408 soname_spec=
10409 shrext_cmds=".so"
10410 postinstall_cmds=
10411 postuninstall_cmds=
10412 finish_cmds=
10413 finish_eval=
10414 shlibpath_var=
10415 shlibpath_overrides_runpath=unknown
10416 version_type=none
10417 dynamic_linker="$host_os ld.so"
10418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10419 need_lib_prefix=unknown
10420 hardcode_into_libs=no
10421
10422 # when you set need_version to no, make sure it does not cause -set_version
10423 # flags to be left without arguments
10424 need_version=unknown
10425
10426 case $host_os in
10427 aix3*)
10428   version_type=linux # correct to gnu/linux during the next big refactor
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10430   shlibpath_var=LIBPATH
10431
10432   # AIX 3 has no versioning support, so we append a major version to the name.
10433   soname_spec='${libname}${release}${shared_ext}$major'
10434   ;;
10435
10436 aix[4-9]*)
10437   version_type=linux # correct to gnu/linux during the next big refactor
10438   need_lib_prefix=no
10439   need_version=no
10440   hardcode_into_libs=yes
10441   if test "$host_cpu" = ia64; then
10442     # AIX 5 supports IA64
10443     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10444     shlibpath_var=LD_LIBRARY_PATH
10445   else
10446     # With GCC up to 2.95.x, collect2 would create an import file
10447     # for dependence libraries.  The import file would start with
10448     # the line `#! .'.  This would cause the generated library to
10449     # depend on `.', always an invalid library.  This was fixed in
10450     # development snapshots of GCC prior to 3.0.
10451     case $host_os in
10452       aix4 | aix4.[01] | aix4.[01].*)
10453       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10454            echo ' yes '
10455            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10456         :
10457       else
10458         can_build_shared=no
10459       fi
10460       ;;
10461     esac
10462     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10463     # soname into executable. Probably we can add versioning support to
10464     # collect2, so additional links can be useful in future.
10465     if test "$aix_use_runtimelinking" = yes; then
10466       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10467       # instead of lib<name>.a to let people know that these are not
10468       # typical AIX shared libraries.
10469       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470     else
10471       # We preserve .a as extension for shared libraries through AIX4.2
10472       # and later when we are not doing run time linking.
10473       library_names_spec='${libname}${release}.a $libname.a'
10474       soname_spec='${libname}${release}${shared_ext}$major'
10475     fi
10476     shlibpath_var=LIBPATH
10477   fi
10478   ;;
10479
10480 amigaos*)
10481   case $host_cpu in
10482   powerpc)
10483     # Since July 2007 AmigaOS4 officially supports .so libraries.
10484     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486     ;;
10487   m68k)
10488     library_names_spec='$libname.ixlibrary $libname.a'
10489     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10490     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'
10491     ;;
10492   esac
10493   ;;
10494
10495 beos*)
10496   library_names_spec='${libname}${shared_ext}'
10497   dynamic_linker="$host_os ld.so"
10498   shlibpath_var=LIBRARY_PATH
10499   ;;
10500
10501 bsdi[45]*)
10502   version_type=linux # correct to gnu/linux during the next big refactor
10503   need_version=no
10504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505   soname_spec='${libname}${release}${shared_ext}$major'
10506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10507   shlibpath_var=LD_LIBRARY_PATH
10508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10510   # the default ld.so.conf also contains /usr/contrib/lib and
10511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10512   # libtool to hard-code these into programs
10513   ;;
10514
10515 cygwin* | mingw* | pw32* | cegcc*)
10516   version_type=windows
10517   shrext_cmds=".dll"
10518   need_version=no
10519   need_lib_prefix=no
10520
10521   case $GCC,$cc_basename in
10522   yes,*)
10523     # gcc
10524     library_names_spec='$libname.dll.a'
10525     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10526     postinstall_cmds='base_file=`basename \${file}`~
10527       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10528       dldir=$destdir/`dirname \$dlpath`~
10529       test -d \$dldir || mkdir -p \$dldir~
10530       $install_prog $dir/$dlname \$dldir/$dlname~
10531       chmod a+x \$dldir/$dlname~
10532       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10533         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10534       fi'
10535     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10536       dlpath=$dir/\$dldll~
10537        $RM \$dlpath'
10538     shlibpath_overrides_runpath=yes
10539
10540     case $host_os in
10541     cygwin*)
10542       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10543       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544
10545       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10546       ;;
10547     mingw* | cegcc*)
10548       # MinGW DLLs use traditional 'lib' prefix
10549       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10550       ;;
10551     pw32*)
10552       # pw32 DLLs use 'pw' prefix rather than 'lib'
10553       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10554       ;;
10555     esac
10556     dynamic_linker='Win32 ld.exe'
10557     ;;
10558
10559   *,cl*)
10560     # Native MSVC
10561     libname_spec='$name'
10562     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10563     library_names_spec='${libname}.dll.lib'
10564
10565     case $build_os in
10566     mingw*)
10567       sys_lib_search_path_spec=
10568       lt_save_ifs=$IFS
10569       IFS=';'
10570       for lt_path in $LIB
10571       do
10572         IFS=$lt_save_ifs
10573         # Let DOS variable expansion print the short 8.3 style file name.
10574         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10575         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10576       done
10577       IFS=$lt_save_ifs
10578       # Convert to MSYS style.
10579       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10580       ;;
10581     cygwin*)
10582       # Convert to unix form, then to dos form, then back to unix form
10583       # but this time dos style (no spaces!) so that the unix form looks
10584       # like /cygdrive/c/PROGRA~1:/cygdr...
10585       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10586       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10587       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10588       ;;
10589     *)
10590       sys_lib_search_path_spec="$LIB"
10591       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10592         # It is most probably a Windows format PATH.
10593         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10594       else
10595         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10596       fi
10597       # FIXME: find the short name or the path components, as spaces are
10598       # common. (e.g. "Program Files" -> "PROGRA~1")
10599       ;;
10600     esac
10601
10602     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10603     postinstall_cmds='base_file=`basename \${file}`~
10604       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10605       dldir=$destdir/`dirname \$dlpath`~
10606       test -d \$dldir || mkdir -p \$dldir~
10607       $install_prog $dir/$dlname \$dldir/$dlname'
10608     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10609       dlpath=$dir/\$dldll~
10610        $RM \$dlpath'
10611     shlibpath_overrides_runpath=yes
10612     dynamic_linker='Win32 link.exe'
10613     ;;
10614
10615   *)
10616     # Assume MSVC wrapper
10617     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10618     dynamic_linker='Win32 ld.exe'
10619     ;;
10620   esac
10621   # FIXME: first we should search . and the directory the executable is in
10622   shlibpath_var=PATH
10623   ;;
10624
10625 darwin* | rhapsody*)
10626   dynamic_linker="$host_os dyld"
10627   version_type=darwin
10628   need_lib_prefix=no
10629   need_version=no
10630   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10631   soname_spec='${libname}${release}${major}$shared_ext'
10632   shlibpath_overrides_runpath=yes
10633   shlibpath_var=DYLD_LIBRARY_PATH
10634   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10635
10636   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10637   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10638   ;;
10639
10640 dgux*)
10641   version_type=linux # correct to gnu/linux during the next big refactor
10642   need_lib_prefix=no
10643   need_version=no
10644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10645   soname_spec='${libname}${release}${shared_ext}$major'
10646   shlibpath_var=LD_LIBRARY_PATH
10647   ;;
10648
10649 freebsd* | dragonfly*)
10650   # DragonFly does not have aout.  When/if they implement a new
10651   # versioning mechanism, adjust this.
10652   if test -x /usr/bin/objformat; then
10653     objformat=`/usr/bin/objformat`
10654   else
10655     case $host_os in
10656     freebsd[23].*) objformat=aout ;;
10657     *) objformat=elf ;;
10658     esac
10659   fi
10660   version_type=freebsd-$objformat
10661   case $version_type in
10662     freebsd-elf*)
10663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10664       need_version=no
10665       need_lib_prefix=no
10666       ;;
10667     freebsd-*)
10668       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10669       need_version=yes
10670       ;;
10671   esac
10672   shlibpath_var=LD_LIBRARY_PATH
10673   case $host_os in
10674   freebsd2.*)
10675     shlibpath_overrides_runpath=yes
10676     ;;
10677   freebsd3.[01]* | freebsdelf3.[01]*)
10678     shlibpath_overrides_runpath=yes
10679     hardcode_into_libs=yes
10680     ;;
10681   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10682   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10683     shlibpath_overrides_runpath=no
10684     hardcode_into_libs=yes
10685     ;;
10686   *) # from 4.6 on, and DragonFly
10687     shlibpath_overrides_runpath=yes
10688     hardcode_into_libs=yes
10689     ;;
10690   esac
10691   ;;
10692
10693 gnu*)
10694   version_type=linux # correct to gnu/linux during the next big refactor
10695   need_lib_prefix=no
10696   need_version=no
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   shlibpath_var=LD_LIBRARY_PATH
10700   shlibpath_overrides_runpath=no
10701   hardcode_into_libs=yes
10702   ;;
10703
10704 haiku*)
10705   version_type=linux # correct to gnu/linux during the next big refactor
10706   need_lib_prefix=no
10707   need_version=no
10708   dynamic_linker="$host_os runtime_loader"
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   shlibpath_var=LIBRARY_PATH
10712   shlibpath_overrides_runpath=yes
10713   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10714   hardcode_into_libs=yes
10715   ;;
10716
10717 hpux9* | hpux10* | hpux11*)
10718   # Give a soname corresponding to the major version so that dld.sl refuses to
10719   # link against other versions.
10720   version_type=sunos
10721   need_lib_prefix=no
10722   need_version=no
10723   case $host_cpu in
10724   ia64*)
10725     shrext_cmds='.so'
10726     hardcode_into_libs=yes
10727     dynamic_linker="$host_os dld.so"
10728     shlibpath_var=LD_LIBRARY_PATH
10729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731     soname_spec='${libname}${release}${shared_ext}$major'
10732     if test "X$HPUX_IA64_MODE" = X32; then
10733       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10734     else
10735       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10736     fi
10737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10738     ;;
10739   hppa*64*)
10740     shrext_cmds='.sl'
10741     hardcode_into_libs=yes
10742     dynamic_linker="$host_os dld.sl"
10743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746     soname_spec='${libname}${release}${shared_ext}$major'
10747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10749     ;;
10750   *)
10751     shrext_cmds='.sl'
10752     dynamic_linker="$host_os dld.sl"
10753     shlibpath_var=SHLIB_PATH
10754     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756     soname_spec='${libname}${release}${shared_ext}$major'
10757     ;;
10758   esac
10759   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10760   postinstall_cmds='chmod 555 $lib'
10761   # or fails outright, so override atomically:
10762   install_override_mode=555
10763   ;;
10764
10765 interix[3-9]*)
10766   version_type=linux # correct to gnu/linux during the next big refactor
10767   need_lib_prefix=no
10768   need_version=no
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10770   soname_spec='${libname}${release}${shared_ext}$major'
10771   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=no
10774   hardcode_into_libs=yes
10775   ;;
10776
10777 irix5* | irix6* | nonstopux*)
10778   case $host_os in
10779     nonstopux*) version_type=nonstopux ;;
10780     *)
10781         if test "$lt_cv_prog_gnu_ld" = yes; then
10782                 version_type=linux # correct to gnu/linux during the next big refactor
10783         else
10784                 version_type=irix
10785         fi ;;
10786   esac
10787   need_lib_prefix=no
10788   need_version=no
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10791   case $host_os in
10792   irix5* | nonstopux*)
10793     libsuff= shlibsuff=
10794     ;;
10795   *)
10796     case $LD in # libtool.m4 will add one of these switches to LD
10797     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10798       libsuff= shlibsuff= libmagic=32-bit;;
10799     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10800       libsuff=32 shlibsuff=N32 libmagic=N32;;
10801     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10802       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10803     *) libsuff= shlibsuff= libmagic=never-match;;
10804     esac
10805     ;;
10806   esac
10807   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10808   shlibpath_overrides_runpath=no
10809   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10810   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10811   hardcode_into_libs=yes
10812   ;;
10813
10814 # No shared lib support for Linux oldld, aout, or coff.
10815 linux*oldld* | linux*aout* | linux*coff*)
10816   dynamic_linker=no
10817   ;;
10818
10819 # This must be glibc/ELF.
10820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10821   version_type=linux # correct to gnu/linux during the next big refactor
10822   need_lib_prefix=no
10823   need_version=no
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825   soname_spec='${libname}${release}${shared_ext}$major'
10826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10827   shlibpath_var=LD_LIBRARY_PATH
10828   shlibpath_overrides_runpath=no
10829
10830   # Some binutils ld are patched to set DT_RUNPATH
10831   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10832   $as_echo_n "(cached) " >&6
10833 else
10834   lt_cv_shlibpath_overrides_runpath=no
10835     save_LDFLAGS=$LDFLAGS
10836     save_libdir=$libdir
10837     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10838          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h.  */
10841
10842 int
10843 main ()
10844 {
10845
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10852   lt_cv_shlibpath_overrides_runpath=yes
10853 fi
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856     conftest$ac_exeext conftest.$ac_ext
10857     LDFLAGS=$save_LDFLAGS
10858     libdir=$save_libdir
10859
10860 fi
10861
10862   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10863
10864   # This implies no fast_install, which is unacceptable.
10865   # Some rework will be needed to allow for fast_install
10866   # before this can be enabled.
10867   hardcode_into_libs=yes
10868
10869   # Append ld.so.conf contents to the search path
10870   if test -f /etc/ld.so.conf; then
10871     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' ' '`
10872     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10873   fi
10874
10875   # We used to test for /lib/ld.so.1 and disable shared libraries on
10876   # powerpc, because MkLinux only supported shared libraries with the
10877   # GNU dynamic linker.  Since this was broken with cross compilers,
10878   # most powerpc-linux boxes support dynamic linking these days and
10879   # people can always --disable-shared, the test was removed, and we
10880   # assume the GNU/Linux dynamic linker is in use.
10881   dynamic_linker='GNU/Linux ld.so'
10882   ;;
10883
10884 netbsdelf*-gnu)
10885   version_type=linux
10886   need_lib_prefix=no
10887   need_version=no
10888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10889   soname_spec='${libname}${release}${shared_ext}$major'
10890   shlibpath_var=LD_LIBRARY_PATH
10891   shlibpath_overrides_runpath=no
10892   hardcode_into_libs=yes
10893   dynamic_linker='NetBSD ld.elf_so'
10894   ;;
10895
10896 netbsd*)
10897   version_type=sunos
10898   need_lib_prefix=no
10899   need_version=no
10900   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10902     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10903     dynamic_linker='NetBSD (a.out) ld.so'
10904   else
10905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10906     soname_spec='${libname}${release}${shared_ext}$major'
10907     dynamic_linker='NetBSD ld.elf_so'
10908   fi
10909   shlibpath_var=LD_LIBRARY_PATH
10910   shlibpath_overrides_runpath=yes
10911   hardcode_into_libs=yes
10912   ;;
10913
10914 newsos6)
10915   version_type=linux # correct to gnu/linux during the next big refactor
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917   shlibpath_var=LD_LIBRARY_PATH
10918   shlibpath_overrides_runpath=yes
10919   ;;
10920
10921 *nto* | *qnx*)
10922   version_type=qnx
10923   need_lib_prefix=no
10924   need_version=no
10925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926   soname_spec='${libname}${release}${shared_ext}$major'
10927   shlibpath_var=LD_LIBRARY_PATH
10928   shlibpath_overrides_runpath=no
10929   hardcode_into_libs=yes
10930   dynamic_linker='ldqnx.so'
10931   ;;
10932
10933 openbsd*)
10934   version_type=sunos
10935   sys_lib_dlsearch_path_spec="/usr/lib"
10936   need_lib_prefix=no
10937   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10938   case $host_os in
10939     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10940     *)                          need_version=no  ;;
10941   esac
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10944   shlibpath_var=LD_LIBRARY_PATH
10945   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946     case $host_os in
10947       openbsd2.[89] | openbsd2.[89].*)
10948         shlibpath_overrides_runpath=no
10949         ;;
10950       *)
10951         shlibpath_overrides_runpath=yes
10952         ;;
10953       esac
10954   else
10955     shlibpath_overrides_runpath=yes
10956   fi
10957   ;;
10958
10959 os2*)
10960   libname_spec='$name'
10961   shrext_cmds=".dll"
10962   need_lib_prefix=no
10963   library_names_spec='$libname${shared_ext} $libname.a'
10964   dynamic_linker='OS/2 ld.exe'
10965   shlibpath_var=LIBPATH
10966   ;;
10967
10968 osf3* | osf4* | osf5*)
10969   version_type=osf
10970   need_lib_prefix=no
10971   need_version=no
10972   soname_spec='${libname}${release}${shared_ext}$major'
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10976   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10977   ;;
10978
10979 rdos*)
10980   dynamic_linker=no
10981   ;;
10982
10983 solaris*)
10984   version_type=linux # correct to gnu/linux during the next big refactor
10985   need_lib_prefix=no
10986   need_version=no
10987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   shlibpath_var=LD_LIBRARY_PATH
10990   shlibpath_overrides_runpath=yes
10991   hardcode_into_libs=yes
10992   # ldd complains unless libraries are executable
10993   postinstall_cmds='chmod +x $lib'
10994   ;;
10995
10996 sunos4*)
10997   version_type=sunos
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   shlibpath_overrides_runpath=yes
11002   if test "$with_gnu_ld" = yes; then
11003     need_lib_prefix=no
11004   fi
11005   need_version=yes
11006   ;;
11007
11008 sysv4 | sysv4.3*)
11009   version_type=linux # correct to gnu/linux during the next big refactor
11010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011   soname_spec='${libname}${release}${shared_ext}$major'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   case $host_vendor in
11014     sni)
11015       shlibpath_overrides_runpath=no
11016       need_lib_prefix=no
11017       runpath_var=LD_RUN_PATH
11018       ;;
11019     siemens)
11020       need_lib_prefix=no
11021       ;;
11022     motorola)
11023       need_lib_prefix=no
11024       need_version=no
11025       shlibpath_overrides_runpath=no
11026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11027       ;;
11028   esac
11029   ;;
11030
11031 sysv4*MP*)
11032   if test -d /usr/nec ;then
11033     version_type=linux # correct to gnu/linux during the next big refactor
11034     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11035     soname_spec='$libname${shared_ext}.$major'
11036     shlibpath_var=LD_LIBRARY_PATH
11037   fi
11038   ;;
11039
11040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11041   version_type=freebsd-elf
11042   need_lib_prefix=no
11043   need_version=no
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=yes
11048   hardcode_into_libs=yes
11049   if test "$with_gnu_ld" = yes; then
11050     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11051   else
11052     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11053     case $host_os in
11054       sco3.2v5*)
11055         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11056         ;;
11057     esac
11058   fi
11059   sys_lib_dlsearch_path_spec='/usr/lib'
11060   ;;
11061
11062 tpf*)
11063   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11064   version_type=linux # correct to gnu/linux during the next big refactor
11065   need_lib_prefix=no
11066   need_version=no
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   shlibpath_overrides_runpath=no
11070   hardcode_into_libs=yes
11071   ;;
11072
11073 uts4*)
11074   version_type=linux # correct to gnu/linux during the next big refactor
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076   soname_spec='${libname}${release}${shared_ext}$major'
11077   shlibpath_var=LD_LIBRARY_PATH
11078   ;;
11079
11080 *)
11081   dynamic_linker=no
11082   ;;
11083 esac
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11085 $as_echo "$dynamic_linker" >&6; }
11086 test "$dynamic_linker" = no && can_build_shared=no
11087
11088 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11089 if test "$GCC" = yes; then
11090   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11091 fi
11092
11093 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11094   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11095 fi
11096 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11097   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11098 fi
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11192 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11193 hardcode_action=
11194 if test -n "$hardcode_libdir_flag_spec" ||
11195    test -n "$runpath_var" ||
11196    test "X$hardcode_automatic" = "Xyes" ; then
11197
11198   # We can hardcode non-existent directories.
11199   if test "$hardcode_direct" != no &&
11200      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11201      # have to relink, otherwise we might link with an installed library
11202      # when we should be linking with a yet-to-be-installed one
11203      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11204      test "$hardcode_minus_L" != no; then
11205     # Linking always hardcodes the temporary library directory.
11206     hardcode_action=relink
11207   else
11208     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11209     hardcode_action=immediate
11210   fi
11211 else
11212   # We cannot hardcode anything, or else we can only hardcode existing
11213   # directories.
11214   hardcode_action=unsupported
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11217 $as_echo "$hardcode_action" >&6; }
11218
11219 if test "$hardcode_action" = relink ||
11220    test "$inherit_rpath" = yes; then
11221   # Fast installation is not supported
11222   enable_fast_install=no
11223 elif test "$shlibpath_overrides_runpath" = yes ||
11224      test "$enable_shared" = no; then
11225   # Fast installation is not necessary
11226   enable_fast_install=needless
11227 fi
11228
11229
11230
11231
11232
11233
11234   if test "x$enable_dlopen" != xyes; then
11235   enable_dlopen=unknown
11236   enable_dlopen_self=unknown
11237   enable_dlopen_self_static=unknown
11238 else
11239   lt_cv_dlopen=no
11240   lt_cv_dlopen_libs=
11241
11242   case $host_os in
11243   beos*)
11244     lt_cv_dlopen="load_add_on"
11245     lt_cv_dlopen_libs=
11246     lt_cv_dlopen_self=yes
11247     ;;
11248
11249   mingw* | pw32* | cegcc*)
11250     lt_cv_dlopen="LoadLibrary"
11251     lt_cv_dlopen_libs=
11252     ;;
11253
11254   cygwin*)
11255     lt_cv_dlopen="dlopen"
11256     lt_cv_dlopen_libs=
11257     ;;
11258
11259   darwin*)
11260   # if libdl is installed we need to link against it
11261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11263 if ${ac_cv_lib_dl_dlopen+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-ldl  $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h.  */
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272    Use char because int might match the return type of a GCC
11273    builtin and then its argument prototype would still apply.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char dlopen ();
11278 int
11279 main ()
11280 {
11281 return dlopen ();
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287   ac_cv_lib_dl_dlopen=yes
11288 else
11289   ac_cv_lib_dl_dlopen=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292     conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11297 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11298   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11299 else
11300
11301     lt_cv_dlopen="dyld"
11302     lt_cv_dlopen_libs=
11303     lt_cv_dlopen_self=yes
11304
11305 fi
11306
11307     ;;
11308
11309   *)
11310     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11311 if test "x$ac_cv_func_shl_load" = xyes; then :
11312   lt_cv_dlopen="shl_load"
11313 else
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11315 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11316 if ${ac_cv_lib_dld_shl_load+:} false; then :
11317   $as_echo_n "(cached) " >&6
11318 else
11319   ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldld  $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h.  */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325    Use char because int might match the return type of a GCC
11326    builtin and then its argument prototype would still apply.  */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char shl_load ();
11331 int
11332 main ()
11333 {
11334 return shl_load ();
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340   ac_cv_lib_dld_shl_load=yes
11341 else
11342   ac_cv_lib_dld_shl_load=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345     conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11349 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11350 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11351   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11352 else
11353   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11354 if test "x$ac_cv_func_dlopen" = xyes; then :
11355   lt_cv_dlopen="dlopen"
11356 else
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11358 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11359 if ${ac_cv_lib_dl_dlopen+:} false; then :
11360   $as_echo_n "(cached) " >&6
11361 else
11362   ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-ldl  $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h.  */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368    Use char because int might match the return type of a GCC
11369    builtin and then its argument prototype would still apply.  */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char dlopen ();
11374 int
11375 main ()
11376 {
11377 return dlopen ();
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383   ac_cv_lib_dl_dlopen=yes
11384 else
11385   ac_cv_lib_dl_dlopen=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388     conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11392 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11393 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11394   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11395 else
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11397 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11398 if ${ac_cv_lib_svld_dlopen+:} false; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-lsvld  $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h.  */
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407    Use char because int might match the return type of a GCC
11408    builtin and then its argument prototype would still apply.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char dlopen ();
11413 int
11414 main ()
11415 {
11416 return dlopen ();
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422   ac_cv_lib_svld_dlopen=yes
11423 else
11424   ac_cv_lib_svld_dlopen=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext \
11427     conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11431 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11432 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11433   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11434 else
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11436 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11437 if ${ac_cv_lib_dld_dld_link+:} false; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-ldld  $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h.  */
11444
11445 /* Override any GCC internal prototype to avoid an error.
11446    Use char because int might match the return type of a GCC
11447    builtin and then its argument prototype would still apply.  */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char dld_link ();
11452 int
11453 main ()
11454 {
11455 return dld_link ();
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461   ac_cv_lib_dld_dld_link=yes
11462 else
11463   ac_cv_lib_dld_dld_link=no
11464 fi
11465 rm -f core conftest.err conftest.$ac_objext \
11466     conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11470 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11471 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11472   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11473 fi
11474
11475
11476 fi
11477
11478
11479 fi
11480
11481
11482 fi
11483
11484
11485 fi
11486
11487
11488 fi
11489
11490     ;;
11491   esac
11492
11493   if test "x$lt_cv_dlopen" != xno; then
11494     enable_dlopen=yes
11495   else
11496     enable_dlopen=no
11497   fi
11498
11499   case $lt_cv_dlopen in
11500   dlopen)
11501     save_CPPFLAGS="$CPPFLAGS"
11502     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11503
11504     save_LDFLAGS="$LDFLAGS"
11505     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11506
11507     save_LIBS="$LIBS"
11508     LIBS="$lt_cv_dlopen_libs $LIBS"
11509
11510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11511 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11512 if ${lt_cv_dlopen_self+:} false; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515           if test "$cross_compiling" = yes; then :
11516   lt_cv_dlopen_self=cross
11517 else
11518   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11519   lt_status=$lt_dlunknown
11520   cat > conftest.$ac_ext <<_LT_EOF
11521 #line $LINENO "configure"
11522 #include "confdefs.h"
11523
11524 #if HAVE_DLFCN_H
11525 #include <dlfcn.h>
11526 #endif
11527
11528 #include <stdio.h>
11529
11530 #ifdef RTLD_GLOBAL
11531 #  define LT_DLGLOBAL           RTLD_GLOBAL
11532 #else
11533 #  ifdef DL_GLOBAL
11534 #    define LT_DLGLOBAL         DL_GLOBAL
11535 #  else
11536 #    define LT_DLGLOBAL         0
11537 #  endif
11538 #endif
11539
11540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11541    find out it does not work in some platform. */
11542 #ifndef LT_DLLAZY_OR_NOW
11543 #  ifdef RTLD_LAZY
11544 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11545 #  else
11546 #    ifdef DL_LAZY
11547 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11548 #    else
11549 #      ifdef RTLD_NOW
11550 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11551 #      else
11552 #        ifdef DL_NOW
11553 #          define LT_DLLAZY_OR_NOW      DL_NOW
11554 #        else
11555 #          define LT_DLLAZY_OR_NOW      0
11556 #        endif
11557 #      endif
11558 #    endif
11559 #  endif
11560 #endif
11561
11562 /* When -fvisbility=hidden is used, assume the code has been annotated
11563    correspondingly for the symbols needed.  */
11564 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11565 int fnord () __attribute__((visibility("default")));
11566 #endif
11567
11568 int fnord () { return 42; }
11569 int main ()
11570 {
11571   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11572   int status = $lt_dlunknown;
11573
11574   if (self)
11575     {
11576       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11577       else
11578         {
11579           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11580           else puts (dlerror ());
11581         }
11582       /* dlclose (self); */
11583     }
11584   else
11585     puts (dlerror ());
11586
11587   return status;
11588 }
11589 _LT_EOF
11590   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11591   (eval $ac_link) 2>&5
11592   ac_status=$?
11593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11595     (./conftest; exit; ) >&5 2>/dev/null
11596     lt_status=$?
11597     case x$lt_status in
11598       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11599       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11600       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11601     esac
11602   else :
11603     # compilation failed
11604     lt_cv_dlopen_self=no
11605   fi
11606 fi
11607 rm -fr conftest*
11608
11609
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11612 $as_echo "$lt_cv_dlopen_self" >&6; }
11613
11614     if test "x$lt_cv_dlopen_self" = xyes; then
11615       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11616       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11617 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11618 if ${lt_cv_dlopen_self_static+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621           if test "$cross_compiling" = yes; then :
11622   lt_cv_dlopen_self_static=cross
11623 else
11624   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11625   lt_status=$lt_dlunknown
11626   cat > conftest.$ac_ext <<_LT_EOF
11627 #line $LINENO "configure"
11628 #include "confdefs.h"
11629
11630 #if HAVE_DLFCN_H
11631 #include <dlfcn.h>
11632 #endif
11633
11634 #include <stdio.h>
11635
11636 #ifdef RTLD_GLOBAL
11637 #  define LT_DLGLOBAL           RTLD_GLOBAL
11638 #else
11639 #  ifdef DL_GLOBAL
11640 #    define LT_DLGLOBAL         DL_GLOBAL
11641 #  else
11642 #    define LT_DLGLOBAL         0
11643 #  endif
11644 #endif
11645
11646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11647    find out it does not work in some platform. */
11648 #ifndef LT_DLLAZY_OR_NOW
11649 #  ifdef RTLD_LAZY
11650 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11651 #  else
11652 #    ifdef DL_LAZY
11653 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11654 #    else
11655 #      ifdef RTLD_NOW
11656 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11657 #      else
11658 #        ifdef DL_NOW
11659 #          define LT_DLLAZY_OR_NOW      DL_NOW
11660 #        else
11661 #          define LT_DLLAZY_OR_NOW      0
11662 #        endif
11663 #      endif
11664 #    endif
11665 #  endif
11666 #endif
11667
11668 /* When -fvisbility=hidden is used, assume the code has been annotated
11669    correspondingly for the symbols needed.  */
11670 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11671 int fnord () __attribute__((visibility("default")));
11672 #endif
11673
11674 int fnord () { return 42; }
11675 int main ()
11676 {
11677   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11678   int status = $lt_dlunknown;
11679
11680   if (self)
11681     {
11682       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11683       else
11684         {
11685           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11686           else puts (dlerror ());
11687         }
11688       /* dlclose (self); */
11689     }
11690   else
11691     puts (dlerror ());
11692
11693   return status;
11694 }
11695 _LT_EOF
11696   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11697   (eval $ac_link) 2>&5
11698   ac_status=$?
11699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11701     (./conftest; exit; ) >&5 2>/dev/null
11702     lt_status=$?
11703     case x$lt_status in
11704       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11705       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11706       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11707     esac
11708   else :
11709     # compilation failed
11710     lt_cv_dlopen_self_static=no
11711   fi
11712 fi
11713 rm -fr conftest*
11714
11715
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11718 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11719     fi
11720
11721     CPPFLAGS="$save_CPPFLAGS"
11722     LDFLAGS="$save_LDFLAGS"
11723     LIBS="$save_LIBS"
11724     ;;
11725   esac
11726
11727   case $lt_cv_dlopen_self in
11728   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11729   *) enable_dlopen_self=unknown ;;
11730   esac
11731
11732   case $lt_cv_dlopen_self_static in
11733   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11734   *) enable_dlopen_self_static=unknown ;;
11735   esac
11736 fi
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754 striplib=
11755 old_striplib=
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11757 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11758 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11759   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11760   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; }
11763 else
11764 # FIXME - insert some real tests, host_os isn't really good enough
11765   case $host_os in
11766   darwin*)
11767     if test -n "$STRIP" ; then
11768       striplib="$STRIP -x"
11769       old_striplib="$STRIP -S"
11770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11771 $as_echo "yes" >&6; }
11772     else
11773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775     fi
11776     ;;
11777   *)
11778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780     ;;
11781   esac
11782 fi
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795   # Report which library types will actually be built
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11797 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11799 $as_echo "$can_build_shared" >&6; }
11800
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11802 $as_echo_n "checking whether to build shared libraries... " >&6; }
11803   test "$can_build_shared" = "no" && enable_shared=no
11804
11805   # On AIX, shared libraries and static libraries use the same namespace, and
11806   # are all built from PIC.
11807   case $host_os in
11808   aix3*)
11809     test "$enable_shared" = yes && enable_static=no
11810     if test -n "$RANLIB"; then
11811       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11812       postinstall_cmds='$RANLIB $lib'
11813     fi
11814     ;;
11815
11816   aix[4-9]*)
11817     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11818       test "$enable_shared" = yes && enable_static=no
11819     fi
11820     ;;
11821   esac
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11823 $as_echo "$enable_shared" >&6; }
11824
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11826 $as_echo_n "checking whether to build static libraries... " >&6; }
11827   # Make sure either enable_shared or enable_static is yes.
11828   test "$enable_shared" = yes || enable_static=yes
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11830 $as_echo "$enable_static" >&6; }
11831
11832
11833
11834
11835 fi
11836 ac_ext=c
11837 ac_cpp='$CPP $CPPFLAGS'
11838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11841
11842 CC="$lt_save_CC"
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858         ac_config_commands="$ac_config_commands libtool"
11859
11860
11861
11862
11863 # Only expand once:
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11875         if test -n "$ac_tool_prefix"; then
11876   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11877 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11881   $as_echo_n "(cached) " >&6
11882 else
11883   case $PKG_CONFIG in
11884   [\\/]* | ?:[\\/]*)
11885   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11886   ;;
11887   *)
11888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11890 do
11891   IFS=$as_save_IFS
11892   test -z "$as_dir" && as_dir=.
11893     for ac_exec_ext in '' $ac_executable_extensions; do
11894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897     break 2
11898   fi
11899 done
11900   done
11901 IFS=$as_save_IFS
11902
11903   ;;
11904 esac
11905 fi
11906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11907 if test -n "$PKG_CONFIG"; then
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11909 $as_echo "$PKG_CONFIG" >&6; }
11910 else
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11913 fi
11914
11915
11916 fi
11917 if test -z "$ac_cv_path_PKG_CONFIG"; then
11918   ac_pt_PKG_CONFIG=$PKG_CONFIG
11919   # Extract the first word of "pkg-config", so it can be a program name with args.
11920 set dummy pkg-config; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922 $as_echo_n "checking for $ac_word... " >&6; }
11923 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11924   $as_echo_n "(cached) " >&6
11925 else
11926   case $ac_pt_PKG_CONFIG in
11927   [\\/]* | ?:[\\/]*)
11928   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11929   ;;
11930   *)
11931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11933 do
11934   IFS=$as_save_IFS
11935   test -z "$as_dir" && as_dir=.
11936     for ac_exec_ext in '' $ac_executable_extensions; do
11937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940     break 2
11941   fi
11942 done
11943   done
11944 IFS=$as_save_IFS
11945
11946   ;;
11947 esac
11948 fi
11949 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11950 if test -n "$ac_pt_PKG_CONFIG"; then
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11952 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11953 else
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958   if test "x$ac_pt_PKG_CONFIG" = x; then
11959     PKG_CONFIG=""
11960   else
11961     case $cross_compiling:$ac_tool_warned in
11962 yes:)
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965 ac_tool_warned=yes ;;
11966 esac
11967     PKG_CONFIG=$ac_pt_PKG_CONFIG
11968   fi
11969 else
11970   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11971 fi
11972
11973 fi
11974 if test -n "$PKG_CONFIG"; then
11975         _pkg_min_version=0.9.0
11976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11977 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11978         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11979                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11981         else
11982                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984                 PKG_CONFIG=""
11985         fi
11986 fi
11987
11988 pkg_failed=no
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
11990 $as_echo_n "checking for LIBXML... " >&6; }
11991
11992 if test -n "$LIBXML_CFLAGS"; then
11993     pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
11994  elif test -n "$PKG_CONFIG"; then
11995     if test -n "$PKG_CONFIG" && \
11996     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
11997   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
11998   ac_status=$?
11999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12000   test $ac_status = 0; }; then
12001   pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5.0" 2>/dev/null`
12002                       test "x$?" != "x0" && pkg_failed=yes
12003 else
12004   pkg_failed=yes
12005 fi
12006  else
12007     pkg_failed=untried
12008 fi
12009 if test -n "$LIBXML_LIBS"; then
12010     pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
12011  elif test -n "$PKG_CONFIG"; then
12012     if test -n "$PKG_CONFIG" && \
12013     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
12014   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
12015   ac_status=$?
12016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017   test $ac_status = 0; }; then
12018   pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5.0" 2>/dev/null`
12019                       test "x$?" != "x0" && pkg_failed=yes
12020 else
12021   pkg_failed=yes
12022 fi
12023  else
12024     pkg_failed=untried
12025 fi
12026
12027
12028
12029 if test $pkg_failed = yes; then
12030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032
12033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12034         _pkg_short_errors_supported=yes
12035 else
12036         _pkg_short_errors_supported=no
12037 fi
12038         if test $_pkg_short_errors_supported = yes; then
12039                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
12040         else
12041                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
12042         fi
12043         # Put the nasty error message in config.log where it belongs
12044         echo "$LIBXML_PKG_ERRORS" >&5
12045
12046         as_fn_error $? "Package requirements (libxml-2.0 >= 2.5.0) were not met:
12047
12048 $LIBXML_PKG_ERRORS
12049
12050 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12051 installed software in a non-standard prefix.
12052
12053 Alternatively, you may set the environment variables LIBXML_CFLAGS
12054 and LIBXML_LIBS to avoid the need to call pkg-config.
12055 See the pkg-config man page for more details." "$LINENO" 5
12056 elif test $pkg_failed = untried; then
12057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12059         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12061 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12062 is in your PATH or set the PKG_CONFIG environment variable to the full
12063 path to pkg-config.
12064
12065 Alternatively, you may set the environment variables LIBXML_CFLAGS
12066 and LIBXML_LIBS to avoid the need to call pkg-config.
12067 See the pkg-config man page for more details.
12068
12069 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12070 See \`config.log' for more details" "$LINENO" 5; }
12071 else
12072         LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
12073         LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
12074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12075 $as_echo "yes" >&6; }
12076
12077 fi
12078
12079 if test "x$CC" != xcc; then
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12081 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12084 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12085 fi
12086 set dummy $CC; ac_cc=`$as_echo "$2" |
12087                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12088 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093
12094 int
12095 main ()
12096 {
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 # Make sure it works both with $CC and with simple cc.
12103 # We do the test twice because some compilers refuse to overwrite an
12104 # existing .o file with -o, though they will create one.
12105 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12106 rm -f conftest2.*
12107 if { { case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12112 $as_echo "$ac_try_echo"; } >&5
12113   (eval "$ac_try") 2>&5
12114   ac_status=$?
12115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116   test $ac_status = 0; } &&
12117    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12122 $as_echo "$ac_try_echo"; } >&5
12123   (eval "$ac_try") 2>&5
12124   ac_status=$?
12125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12126   test $ac_status = 0; };
12127 then
12128   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12129   if test "x$CC" != xcc; then
12130     # Test first that cc exists at all.
12131     if { ac_try='cc -c conftest.$ac_ext >&5'
12132   { { case "(($ac_try" in
12133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134   *) ac_try_echo=$ac_try;;
12135 esac
12136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12137 $as_echo "$ac_try_echo"; } >&5
12138   (eval "$ac_try") 2>&5
12139   ac_status=$?
12140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141   test $ac_status = 0; }; }; then
12142       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12143       rm -f conftest2.*
12144       if { { case "(($ac_try" in
12145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146   *) ac_try_echo=$ac_try;;
12147 esac
12148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12149 $as_echo "$ac_try_echo"; } >&5
12150   (eval "$ac_try") 2>&5
12151   ac_status=$?
12152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153   test $ac_status = 0; } &&
12154          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12159 $as_echo "$ac_try_echo"; } >&5
12160   (eval "$ac_try") 2>&5
12161   ac_status=$?
12162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12163   test $ac_status = 0; };
12164       then
12165         # cc works too.
12166         :
12167       else
12168         # cc exists but doesn't like -o.
12169         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12170       fi
12171     fi
12172   fi
12173 else
12174   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12175 fi
12176 rm -f core conftest*
12177
12178 fi
12179 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 $as_echo "yes" >&6; }
12182 else
12183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185
12186 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12187
12188 fi
12189
12190 # FIXME: we rely on the cache variable name because
12191 # there is no other way.
12192 set dummy $CC
12193 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12194 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12195 if test "$am_t" != yes; then
12196    # Losing compiler, so override with the script.
12197    # FIXME: It is wrong to rewrite CC.
12198    # But if we don't then we get into trouble of one sort or another.
12199    # A longer-term fix would be to have automake use am__CC in this case,
12200    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12201    CC="$am_aux_dir/compile $CC"
12202 fi
12203
12204
12205
12206
12207 # Check whether --with-default-metadata-backend was given.
12208 if test "${with_default_metadata_backend+set}" = set; then :
12209   withval=$with_default_metadata_backend;
12210 fi
12211
12212
12213 if test "x$with_default_metadata_backend" = 'x'
12214 then
12215         with_default_metadata_backend='gstreamer'
12216 fi
12217
12218 if test "x$with_default_metadata_backend" = 'xyes' || test "x$with_default_metadata_backend" = 'xno'
12219 then
12220         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dubious default metadata backend name: $with_default_metadata_backend" >&5
12221 $as_echo "$as_me: WARNING: Dubious default metadata backend name: $with_default_metadata_backend" >&2;}
12222 fi
12223
12224 GUPNP_DLNA_METADATA_BACKEND_CFLAGS="$GUPNP_DLNA_METADATA_BACKEND_CFLAGS -DGUPNP_DLNA_DEFAULT_METADATA_BACKEND=\\\"$with_default_metadata_backend\\\""
12225
12226 # Check whether --enable-gstreamer-metadata-backend was given.
12227 if test "${enable_gstreamer_metadata_backend+set}" = set; then :
12228   enableval=$enable_gstreamer_metadata_backend;
12229 else
12230   enable_gstreamer_metadata_backend=auto
12231 fi
12232
12233
12234 if test "x$enable_gstreamer_metadata_backend" != 'xno'
12235 then
12236         gstreamer_found='yes'
12237         GST_MAJORMINOR=1.0
12238         GST_REQ=1.0
12239         GSTPBU_REQ=1.0
12240
12241
12242 pkg_failed=no
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
12244 $as_echo_n "checking for GST... " >&6; }
12245
12246 if test -n "$GST_CFLAGS"; then
12247     pkg_cv_GST_CFLAGS="$GST_CFLAGS"
12248  elif test -n "$PKG_CONFIG"; then
12249     if test -n "$PKG_CONFIG" && \
12250     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= \$GST_REQ\""; } >&5
12251   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQ") 2>&5
12252   ac_status=$?
12253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12254   test $ac_status = 0; }; then
12255   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>/dev/null`
12256                       test "x$?" != "x0" && pkg_failed=yes
12257 else
12258   pkg_failed=yes
12259 fi
12260  else
12261     pkg_failed=untried
12262 fi
12263 if test -n "$GST_LIBS"; then
12264     pkg_cv_GST_LIBS="$GST_LIBS"
12265  elif test -n "$PKG_CONFIG"; then
12266     if test -n "$PKG_CONFIG" && \
12267     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= \$GST_REQ\""; } >&5
12268   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQ") 2>&5
12269   ac_status=$?
12270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12271   test $ac_status = 0; }; then
12272   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>/dev/null`
12273                       test "x$?" != "x0" && pkg_failed=yes
12274 else
12275   pkg_failed=yes
12276 fi
12277  else
12278     pkg_failed=untried
12279 fi
12280
12281
12282
12283 if test $pkg_failed = yes; then
12284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286
12287 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12288         _pkg_short_errors_supported=yes
12289 else
12290         _pkg_short_errors_supported=no
12291 fi
12292         if test $_pkg_short_errors_supported = yes; then
12293                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>&1`
12294         else
12295                 GST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>&1`
12296         fi
12297         # Put the nasty error message in config.log where it belongs
12298         echo "$GST_PKG_ERRORS" >&5
12299
12300         gstreamer_found='no'
12301 elif test $pkg_failed = untried; then
12302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304         gstreamer_found='no'
12305 else
12306         GST_CFLAGS=$pkg_cv_GST_CFLAGS
12307         GST_LIBS=$pkg_cv_GST_LIBS
12308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309 $as_echo "yes" >&6; }
12310
12311 fi
12312
12313 pkg_failed=no
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBU" >&5
12315 $as_echo_n "checking for GST_PBU... " >&6; }
12316
12317 if test -n "$GST_PBU_CFLAGS"; then
12318     pkg_cv_GST_PBU_CFLAGS="$GST_PBU_CFLAGS"
12319  elif test -n "$PKG_CONFIG"; then
12320     if test -n "$PKG_CONFIG" && \
12321     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_MAJORMINOR >= \$GSTPBU_REQ\""; } >&5
12322   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ") 2>&5
12323   ac_status=$?
12324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12325   test $ac_status = 0; }; then
12326   pkg_cv_GST_PBU_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>/dev/null`
12327                       test "x$?" != "x0" && pkg_failed=yes
12328 else
12329   pkg_failed=yes
12330 fi
12331  else
12332     pkg_failed=untried
12333 fi
12334 if test -n "$GST_PBU_LIBS"; then
12335     pkg_cv_GST_PBU_LIBS="$GST_PBU_LIBS"
12336  elif test -n "$PKG_CONFIG"; then
12337     if test -n "$PKG_CONFIG" && \
12338     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_MAJORMINOR >= \$GSTPBU_REQ\""; } >&5
12339   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ") 2>&5
12340   ac_status=$?
12341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342   test $ac_status = 0; }; then
12343   pkg_cv_GST_PBU_LIBS=`$PKG_CONFIG --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>/dev/null`
12344                       test "x$?" != "x0" && pkg_failed=yes
12345 else
12346   pkg_failed=yes
12347 fi
12348  else
12349     pkg_failed=untried
12350 fi
12351
12352
12353
12354 if test $pkg_failed = yes; then
12355         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357
12358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12359         _pkg_short_errors_supported=yes
12360 else
12361         _pkg_short_errors_supported=no
12362 fi
12363         if test $_pkg_short_errors_supported = yes; then
12364                 GST_PBU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>&1`
12365         else
12366                 GST_PBU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>&1`
12367         fi
12368         # Put the nasty error message in config.log where it belongs
12369         echo "$GST_PBU_PKG_ERRORS" >&5
12370
12371         gstreamer_found='no'
12372 elif test $pkg_failed = untried; then
12373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12375         gstreamer_found='no'
12376 else
12377         GST_PBU_CFLAGS=$pkg_cv_GST_PBU_CFLAGS
12378         GST_PBU_LIBS=$pkg_cv_GST_PBU_LIBS
12379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381
12382 fi
12383
12384         if test "x$gstreamer_found" = 'xyes'
12385         then
12386
12387
12388                 GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
12389
12390                 enable_gstreamer_metadata_backend='yes'
12391         elif test "x$enable_gstreamer_metadata_backend" = 'xyes'
12392         then
12393                 as_fn_error $? "GStreamer $GST_MAJORMINOR not found." "$LINENO" 5
12394         else
12395                 enable_gstreamer_metadata_backend='no'
12396         fi
12397 fi
12398
12399 if test "x$enable_gstreamer_metadata_backend" = 'xyes'
12400 then
12401          if true; then
12402   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE=
12403   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE='#'
12404 else
12405   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE='#'
12406   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE=
12407 fi
12408
12409 else
12410          if false; then
12411   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE=
12412   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE='#'
12413 else
12414   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE='#'
12415   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE=
12416 fi
12417
12418 fi
12419
12420 # Check whether --enable-legacy-gstreamer-metadata-backend was given.
12421 if test "${enable_legacy_gstreamer_metadata_backend+set}" = set; then :
12422   enableval=$enable_legacy_gstreamer_metadata_backend;
12423 else
12424   enable_legacy_gstreamer_metadata_backend=no
12425 fi
12426
12427
12428 if test "x$enable_legacy_gstreamer_metadata_backend" != 'xno'
12429 then
12430         gstreamer_found='yes'
12431         GST_LEGACY_MAJORMINOR=0.10
12432         GST_LEGACY_REQ=0.10.36
12433         GSTPBU_LEGACY_REQ=0.10.36
12434
12435
12436 pkg_failed=no
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_LEGACY" >&5
12438 $as_echo_n "checking for GST_LEGACY... " >&6; }
12439
12440 if test -n "$GST_LEGACY_CFLAGS"; then
12441     pkg_cv_GST_LEGACY_CFLAGS="$GST_LEGACY_CFLAGS"
12442  elif test -n "$PKG_CONFIG"; then
12443     if test -n "$PKG_CONFIG" && \
12444     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_LEGACY_MAJORMINOR >= \$GST_LEGACY_REQ\""; } >&5
12445   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ") 2>&5
12446   ac_status=$?
12447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12448   test $ac_status = 0; }; then
12449   pkg_cv_GST_LEGACY_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>/dev/null`
12450                       test "x$?" != "x0" && pkg_failed=yes
12451 else
12452   pkg_failed=yes
12453 fi
12454  else
12455     pkg_failed=untried
12456 fi
12457 if test -n "$GST_LEGACY_LIBS"; then
12458     pkg_cv_GST_LEGACY_LIBS="$GST_LEGACY_LIBS"
12459  elif test -n "$PKG_CONFIG"; then
12460     if test -n "$PKG_CONFIG" && \
12461     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_LEGACY_MAJORMINOR >= \$GST_LEGACY_REQ\""; } >&5
12462   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ") 2>&5
12463   ac_status=$?
12464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465   test $ac_status = 0; }; then
12466   pkg_cv_GST_LEGACY_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>/dev/null`
12467                       test "x$?" != "x0" && pkg_failed=yes
12468 else
12469   pkg_failed=yes
12470 fi
12471  else
12472     pkg_failed=untried
12473 fi
12474
12475
12476
12477 if test $pkg_failed = yes; then
12478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480
12481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12482         _pkg_short_errors_supported=yes
12483 else
12484         _pkg_short_errors_supported=no
12485 fi
12486         if test $_pkg_short_errors_supported = yes; then
12487                 GST_LEGACY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>&1`
12488         else
12489                 GST_LEGACY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>&1`
12490         fi
12491         # Put the nasty error message in config.log where it belongs
12492         echo "$GST_LEGACY_PKG_ERRORS" >&5
12493
12494         gstreamer_found='no'
12495 elif test $pkg_failed = untried; then
12496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12498         gstreamer_found='no'
12499 else
12500         GST_LEGACY_CFLAGS=$pkg_cv_GST_LEGACY_CFLAGS
12501         GST_LEGACY_LIBS=$pkg_cv_GST_LEGACY_LIBS
12502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503 $as_echo "yes" >&6; }
12504
12505 fi
12506
12507 pkg_failed=no
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBU_LEGACY" >&5
12509 $as_echo_n "checking for GST_PBU_LEGACY... " >&6; }
12510
12511 if test -n "$GST_PBU_LEGACY_CFLAGS"; then
12512     pkg_cv_GST_PBU_LEGACY_CFLAGS="$GST_PBU_LEGACY_CFLAGS"
12513  elif test -n "$PKG_CONFIG"; then
12514     if test -n "$PKG_CONFIG" && \
12515     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_LEGACY_MAJORMINOR >= \$GSTPBU_LEGACY_REQ\""; } >&5
12516   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ") 2>&5
12517   ac_status=$?
12518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12519   test $ac_status = 0; }; then
12520   pkg_cv_GST_PBU_LEGACY_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>/dev/null`
12521                       test "x$?" != "x0" && pkg_failed=yes
12522 else
12523   pkg_failed=yes
12524 fi
12525  else
12526     pkg_failed=untried
12527 fi
12528 if test -n "$GST_PBU_LEGACY_LIBS"; then
12529     pkg_cv_GST_PBU_LEGACY_LIBS="$GST_PBU_LEGACY_LIBS"
12530  elif test -n "$PKG_CONFIG"; then
12531     if test -n "$PKG_CONFIG" && \
12532     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_LEGACY_MAJORMINOR >= \$GSTPBU_LEGACY_REQ\""; } >&5
12533   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ") 2>&5
12534   ac_status=$?
12535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12536   test $ac_status = 0; }; then
12537   pkg_cv_GST_PBU_LEGACY_LIBS=`$PKG_CONFIG --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>/dev/null`
12538                       test "x$?" != "x0" && pkg_failed=yes
12539 else
12540   pkg_failed=yes
12541 fi
12542  else
12543     pkg_failed=untried
12544 fi
12545
12546
12547
12548 if test $pkg_failed = yes; then
12549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551
12552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12553         _pkg_short_errors_supported=yes
12554 else
12555         _pkg_short_errors_supported=no
12556 fi
12557         if test $_pkg_short_errors_supported = yes; then
12558                 GST_PBU_LEGACY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>&1`
12559         else
12560                 GST_PBU_LEGACY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>&1`
12561         fi
12562         # Put the nasty error message in config.log where it belongs
12563         echo "$GST_PBU_LEGACY_PKG_ERRORS" >&5
12564
12565         gstreamer_found='no'
12566 elif test $pkg_failed = untried; then
12567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569         gstreamer_found='no'
12570 else
12571         GST_PBU_LEGACY_CFLAGS=$pkg_cv_GST_PBU_LEGACY_CFLAGS
12572         GST_PBU_LEGACY_LIBS=$pkg_cv_GST_PBU_LEGACY_LIBS
12573         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574 $as_echo "yes" >&6; }
12575
12576 fi
12577
12578         if test "x$gstreamer_found" = 'xyes'
12579         then
12580
12581                 enable_legacy_gstreamer_metadata_backend='yes'
12582         elif test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
12583         then
12584                 as_fn_error $? "GStreamer $GST_LEGACY_MAJORMINOR not found." "$LINENO" 5
12585         else
12586                 enable_legacy_gstreamer_metadata_backend='no'
12587         fi
12588 fi
12589
12590 if test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
12591 then
12592          if true; then
12593   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE=
12594   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE='#'
12595 else
12596   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE='#'
12597   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE=
12598 fi
12599
12600 else
12601          if false; then
12602   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE=
12603   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE='#'
12604 else
12605   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE='#'
12606   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE=
12607 fi
12608
12609 fi
12610
12611
12612 # Check whether --with-default-metadata-backend-dir was given.
12613 if test "${with_default_metadata_backend_dir+set}" = set; then :
12614   withval=$with_default_metadata_backend_dir;
12615 fi
12616
12617
12618 if test "x$with_default_metadata_backend_dir" = 'x'
12619 then
12620         with_default_metadata_backend_dir="$libdir/$PACKAGE_NAME"
12621 fi
12622
12623 if test "x$with_default_metadata_backend_dir" = 'xyes' || test "x$with_default_metadata_backend_dir" = 'xno'
12624 then
12625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dubious default metadata backend directory: $with_default_metadata_backend_dir" >&5
12626 $as_echo "$as_me: WARNING: Dubious default metadata backend directory: $with_default_metadata_backend_dir" >&2;}
12627 fi
12628
12629 METADATA_DIRECTORY=$with_default_metadata_backend_dir
12630
12631
12632 GUPNP_DLNA_METADATA_BACKEND_CFLAGS="$GUPNP_DLNA_METADATA_BACKEND_CFLAGS -DGUPNP_DLNA_DEFAULT_METADATA_BACKEND_DIR=\\\"$with_default_metadata_backend_dir\\\""
12633
12634
12635
12636
12637 pkg_failed=no
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12639 $as_echo_n "checking for GLIB... " >&6; }
12640
12641 if test -n "$GLIB_CFLAGS"; then
12642     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12643  elif test -n "$PKG_CONFIG"; then
12644     if test -n "$PKG_CONFIG" && \
12645     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5
12646   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5
12647   ac_status=$?
12648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12649   test $ac_status = 0; }; then
12650   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32" 2>/dev/null`
12651                       test "x$?" != "x0" && pkg_failed=yes
12652 else
12653   pkg_failed=yes
12654 fi
12655  else
12656     pkg_failed=untried
12657 fi
12658 if test -n "$GLIB_LIBS"; then
12659     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12660  elif test -n "$PKG_CONFIG"; then
12661     if test -n "$PKG_CONFIG" && \
12662     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5
12663   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5
12664   ac_status=$?
12665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666   test $ac_status = 0; }; then
12667   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32" 2>/dev/null`
12668                       test "x$?" != "x0" && pkg_failed=yes
12669 else
12670   pkg_failed=yes
12671 fi
12672  else
12673     pkg_failed=untried
12674 fi
12675
12676
12677
12678 if test $pkg_failed = yes; then
12679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681
12682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12683         _pkg_short_errors_supported=yes
12684 else
12685         _pkg_short_errors_supported=no
12686 fi
12687         if test $_pkg_short_errors_supported = yes; then
12688                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1`
12689         else
12690                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1`
12691         fi
12692         # Put the nasty error message in config.log where it belongs
12693         echo "$GLIB_PKG_ERRORS" >&5
12694
12695         as_fn_error $? "Package requirements (glib-2.0 >= 2.32) were not met:
12696
12697 $GLIB_PKG_ERRORS
12698
12699 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12700 installed software in a non-standard prefix.
12701
12702 Alternatively, you may set the environment variables GLIB_CFLAGS
12703 and GLIB_LIBS to avoid the need to call pkg-config.
12704 See the pkg-config man page for more details." "$LINENO" 5
12705 elif test $pkg_failed = untried; then
12706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12711 is in your PATH or set the PKG_CONFIG environment variable to the full
12712 path to pkg-config.
12713
12714 Alternatively, you may set the environment variables GLIB_CFLAGS
12715 and GLIB_LIBS to avoid the need to call pkg-config.
12716 See the pkg-config man page for more details.
12717
12718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12719 See \`config.log' for more details" "$LINENO" 5; }
12720 else
12721         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12722         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12724 $as_echo "yes" >&6; }
12725
12726 fi
12727
12728 pkg_failed=no
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
12730 $as_echo_n "checking for GOBJECT... " >&6; }
12731
12732 if test -n "$GOBJECT_CFLAGS"; then
12733     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
12734  elif test -n "$PKG_CONFIG"; then
12735     if test -n "$PKG_CONFIG" && \
12736     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12737   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12738   ac_status=$?
12739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740   test $ac_status = 0; }; then
12741   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
12742                       test "x$?" != "x0" && pkg_failed=yes
12743 else
12744   pkg_failed=yes
12745 fi
12746  else
12747     pkg_failed=untried
12748 fi
12749 if test -n "$GOBJECT_LIBS"; then
12750     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
12751  elif test -n "$PKG_CONFIG"; then
12752     if test -n "$PKG_CONFIG" && \
12753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12754   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12755   ac_status=$?
12756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12757   test $ac_status = 0; }; then
12758   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
12759                       test "x$?" != "x0" && pkg_failed=yes
12760 else
12761   pkg_failed=yes
12762 fi
12763  else
12764     pkg_failed=untried
12765 fi
12766
12767
12768
12769 if test $pkg_failed = yes; then
12770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772
12773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12774         _pkg_short_errors_supported=yes
12775 else
12776         _pkg_short_errors_supported=no
12777 fi
12778         if test $_pkg_short_errors_supported = yes; then
12779                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
12780         else
12781                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
12782         fi
12783         # Put the nasty error message in config.log where it belongs
12784         echo "$GOBJECT_PKG_ERRORS" >&5
12785
12786         as_fn_error $? "Package requirements (gobject-2.0) were not met:
12787
12788 $GOBJECT_PKG_ERRORS
12789
12790 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12791 installed software in a non-standard prefix.
12792
12793 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12794 and GOBJECT_LIBS to avoid the need to call pkg-config.
12795 See the pkg-config man page for more details." "$LINENO" 5
12796 elif test $pkg_failed = untried; then
12797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12799         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12801 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12802 is in your PATH or set the PKG_CONFIG environment variable to the full
12803 path to pkg-config.
12804
12805 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12806 and GOBJECT_LIBS to avoid the need to call pkg-config.
12807 See the pkg-config man page for more details.
12808
12809 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12810 See \`config.log' for more details" "$LINENO" 5; }
12811 else
12812         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
12813         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
12814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12815 $as_echo "yes" >&6; }
12816
12817 fi
12818
12819 pkg_failed=no
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12821 $as_echo_n "checking for GMODULE... " >&6; }
12822
12823 if test -n "$GMODULE_CFLAGS"; then
12824     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12825  elif test -n "$PKG_CONFIG"; then
12826     if test -n "$PKG_CONFIG" && \
12827     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12828   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12829   ac_status=$?
12830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831   test $ac_status = 0; }; then
12832   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12833                       test "x$?" != "x0" && pkg_failed=yes
12834 else
12835   pkg_failed=yes
12836 fi
12837  else
12838     pkg_failed=untried
12839 fi
12840 if test -n "$GMODULE_LIBS"; then
12841     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12842  elif test -n "$PKG_CONFIG"; then
12843     if test -n "$PKG_CONFIG" && \
12844     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12845   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12846   ac_status=$?
12847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848   test $ac_status = 0; }; then
12849   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12850                       test "x$?" != "x0" && pkg_failed=yes
12851 else
12852   pkg_failed=yes
12853 fi
12854  else
12855     pkg_failed=untried
12856 fi
12857
12858
12859
12860 if test $pkg_failed = yes; then
12861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12863
12864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12865         _pkg_short_errors_supported=yes
12866 else
12867         _pkg_short_errors_supported=no
12868 fi
12869         if test $_pkg_short_errors_supported = yes; then
12870                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12871         else
12872                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12873         fi
12874         # Put the nasty error message in config.log where it belongs
12875         echo "$GMODULE_PKG_ERRORS" >&5
12876
12877         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12878
12879 $GMODULE_PKG_ERRORS
12880
12881 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12882 installed software in a non-standard prefix.
12883
12884 Alternatively, you may set the environment variables GMODULE_CFLAGS
12885 and GMODULE_LIBS to avoid the need to call pkg-config.
12886 See the pkg-config man page for more details." "$LINENO" 5
12887 elif test $pkg_failed = untried; then
12888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12890         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12892 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12893 is in your PATH or set the PKG_CONFIG environment variable to the full
12894 path to pkg-config.
12895
12896 Alternatively, you may set the environment variables GMODULE_CFLAGS
12897 and GMODULE_LIBS to avoid the need to call pkg-config.
12898 See the pkg-config man page for more details.
12899
12900 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12901 See \`config.log' for more details" "$LINENO" 5; }
12902 else
12903         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12904         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906 $as_echo "yes" >&6; }
12907
12908 fi
12909
12910 # Check for g_clear_pointer
12911 have_g_clear_pointer='no'
12912 if test -n "$PKG_CONFIG" && \
12913     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34\""; } >&5
12914   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34") 2>&5
12915   ac_status=$?
12916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12917   test $ac_status = 0; }; then
12918   have_g_clear_pointer='yes'
12919 fi
12920 if test "x$have_g_clear_pointer" = xno; then :
12921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_clear_pointer" >&5
12922 $as_echo_n "checking for g_clear_pointer... " >&6; }
12923            GUPNP_DLNA_TEMP_CFLAGS="$CFLAGS"
12924            CFLAGS="$CFLAGS $GLIB_CFLAGS"
12925            GUPNP_DLNA_TEMP_LIBS="$LIBS"
12926            LIBS="$LIBS $GLIB_LIBS"
12927            ac_ext=c
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h.  */
12935
12936                                              #include <glib.h>
12937
12938 int
12939 main ()
12940 {
12941
12942                                              gchar *test = g_malloc (2);
12943                                              g_clear_pointer (&test, g_free);
12944                                              return (test == NULL)
12945
12946   ;
12947   return 0;
12948 }
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"; then :
12951   have_g_clear_pointer='yes'
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext \
12954     conftest$ac_exeext conftest.$ac_ext
12955           LIBS="$GUPNP_DLNA_TEMP_LIBS"
12956           CFLAGS="$GUPNP_DLNA_TEMP_CFLAGS"
12957           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_g_clear_pointer" >&5
12958 $as_echo "$have_g_clear_pointer" >&6; }
12959 fi
12960
12961 if test "x$have_g_clear_pointer" = xno; then :
12962
12963 $as_echo "#define g_clear_pointer(ptr, func) \\
12964                       G_STMT_START { \\
12965                         if (ptr != NULL && func != NULL) { \\
12966                           gpointer g_clear_pointer_tmp_var = *ptr; \\
12967                           *ptr = NULL; \\
12968                           func (g_clear_pointer_tmp_var); \\
12969                         } \\
12970                       } G_STMT_END" >>confdefs.h
12971
12972 fi
12973
12974 # Debugging
12975 # Check whether --enable-debug was given.
12976 if test "${enable_debug+set}" = set; then :
12977   enableval=$enable_debug;
12978 else
12979   enable_debug=no
12980 fi
12981
12982 if test "x$enable_debug" = "xyes"; then
12983         CFLAGS="$CFLAGS -g -Wall"
12984 fi
12985
12986
12987
12988
12989                 # Check whether --enable-introspection was given.
12990 if test "${enable_introspection+set}" = set; then :
12991   enableval=$enable_introspection;
12992 else
12993   enable_introspection=auto
12994 fi
12995
12996
12997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12998 $as_echo_n "checking for gobject-introspection... " >&6; }
12999
13000         case $enable_introspection in #(
13001   no) :
13002             found_introspection="no (disabled, use --enable-introspection to enable)"
13003      ;; #(
13004       yes) :
13005             if test -n "$PKG_CONFIG" && \
13006     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13007   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13008   ac_status=$?
13009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13010   test $ac_status = 0; }; then
13011   :
13012 else
13013   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13014 fi
13015         if test -n "$PKG_CONFIG" && \
13016     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
13017   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
13018   ac_status=$?
13019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13020   test $ac_status = 0; }; then
13021   found_introspection=yes
13022 else
13023   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp-dlna" "$LINENO" 5
13024 fi
13025      ;; #(
13026       auto) :
13027             if test -n "$PKG_CONFIG" && \
13028     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
13029   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
13030   ac_status=$?
13031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13032   test $ac_status = 0; }; then
13033   found_introspection=yes
13034 else
13035   found_introspection=no
13036 fi
13037      ;; #(
13038   *) :
13039                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
13040      ;;
13041 esac
13042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
13043 $as_echo "$found_introspection" >&6; }
13044
13045     INTROSPECTION_SCANNER=
13046     INTROSPECTION_COMPILER=
13047     INTROSPECTION_GENERATE=
13048     INTROSPECTION_GIRDIR=
13049     INTROSPECTION_TYPELIBDIR=
13050     if test "x$found_introspection" = "xyes"; then
13051        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
13052        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
13053        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
13054        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
13055        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
13056        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
13057        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
13058        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
13059     fi
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069      if test "x$found_introspection" = "xyes"; then
13070   HAVE_INTROSPECTION_TRUE=
13071   HAVE_INTROSPECTION_FALSE='#'
13072 else
13073   HAVE_INTROSPECTION_TRUE='#'
13074   HAVE_INTROSPECTION_FALSE=
13075 fi
13076
13077
13078
13079
13080 # vapigen
13081 have_vapigen=no
13082 if test "x$found_introspection" = "xyes"; then :
13083
13084               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether G-I is 1.36 or newer" >&5
13085 $as_echo_n "checking whether G-I is 1.36 or newer... " >&6; }
13086        VAPIGEN_MIN_VERSION=0.18
13087        if pkg-config --atleast-version=1.36.0 gobject-introspection-1.0; then :
13088
13089               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13091               VAPIGEN_MIN_VERSION=0.20
13092
13093 else
13094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096
13097 fi
13098        # Extract the first word of "vapigen", so it can be a program name with args.
13099 set dummy vapigen; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if ${ac_cv_path_VAPIGEN+:} false; then :
13103   $as_echo_n "(cached) " >&6
13104 else
13105   case $VAPIGEN in
13106   [\\/]* | ?:[\\/]*)
13107   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
13108   ;;
13109   *)
13110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113   IFS=$as_save_IFS
13114   test -z "$as_dir" && as_dir=.
13115     for ac_exec_ext in '' $ac_executable_extensions; do
13116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
13118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119     break 2
13120   fi
13121 done
13122   done
13123 IFS=$as_save_IFS
13124
13125   ;;
13126 esac
13127 fi
13128 VAPIGEN=$ac_cv_path_VAPIGEN
13129 if test -n "$VAPIGEN"; then
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
13131 $as_echo "$VAPIGEN" >&6; }
13132 else
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13135 fi
13136
13137
13138   if test -z "$VAPIGEN"; then :
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
13140 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
13141 else
13142   if test -n "$VAPIGEN_MIN_VERSION"; then :
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION" >&5
13144 $as_echo_n "checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION... " >&6; }
13145          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
13146          as_arg_v1=$VAPIGEN_MIN_VERSION
13147 as_arg_v2="$am__vapigen_version"
13148 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13149 case $? in #(
13150   1) :
13151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; } ;; #(
13153   0) :
13154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13155 $as_echo "yes" >&6; } ;; #(
13156   2) :
13157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13159             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&5
13160 $as_echo "$as_me: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&2;}
13161             VAPIGEN=""
13162             ;; #(
13163   *) :
13164      ;;
13165 esac
13166 fi
13167 fi
13168
13169
13170
13171 fi
13172 if test "x$VAPIGEN" != "x"; then :
13173   have_vapigen=yes
13174 fi
13175  if test "x$VAPIGEN" != "x"; then
13176   HAVE_VAPIGEN_TRUE=
13177   HAVE_VAPIGEN_FALSE='#'
13178 else
13179   HAVE_VAPIGEN_TRUE='#'
13180   HAVE_VAPIGEN_FALSE=
13181 fi
13182
13183
13184
13185
13186
13187     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13188 set dummy gtkdoc-check; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
13192   $as_echo_n "(cached) " >&6
13193 else
13194   case $GTKDOC_CHECK in
13195   [\\/]* | ?:[\\/]*)
13196   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
13197   ;;
13198   *)
13199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202   IFS=$as_save_IFS
13203   test -z "$as_dir" && as_dir=.
13204     for ac_exec_ext in '' $ac_executable_extensions; do
13205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13206     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
13207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208     break 2
13209   fi
13210 done
13211   done
13212 IFS=$as_save_IFS
13213
13214   ;;
13215 esac
13216 fi
13217 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
13218 if test -n "$GTKDOC_CHECK"; then
13219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13220 $as_echo "$GTKDOC_CHECK" >&6; }
13221 else
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13224 fi
13225
13226
13227   for ac_prog in gtkdoc-rebase
13228 do
13229   # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236   case $GTKDOC_REBASE in
13237   [\\/]* | ?:[\\/]*)
13238   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13239   ;;
13240   *)
13241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13243 do
13244   IFS=$as_save_IFS
13245   test -z "$as_dir" && as_dir=.
13246     for ac_exec_ext in '' $ac_executable_extensions; do
13247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13248     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250     break 2
13251   fi
13252 done
13253   done
13254 IFS=$as_save_IFS
13255
13256   ;;
13257 esac
13258 fi
13259 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13260 if test -n "$GTKDOC_REBASE"; then
13261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13262 $as_echo "$GTKDOC_REBASE" >&6; }
13263 else
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 fi
13267
13268
13269   test -n "$GTKDOC_REBASE" && break
13270 done
13271 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13272
13273   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13274 set dummy gtkdoc-mkpdf; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280   case $GTKDOC_MKPDF in
13281   [\\/]* | ?:[\\/]*)
13282   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13283   ;;
13284   *)
13285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288   IFS=$as_save_IFS
13289   test -z "$as_dir" && as_dir=.
13290     for ac_exec_ext in '' $ac_executable_extensions; do
13291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294     break 2
13295   fi
13296 done
13297   done
13298 IFS=$as_save_IFS
13299
13300   ;;
13301 esac
13302 fi
13303 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13304 if test -n "$GTKDOC_MKPDF"; then
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13306 $as_echo "$GTKDOC_MKPDF" >&6; }
13307 else
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 fi
13311
13312
13313
13314
13315 # Check whether --with-html-dir was given.
13316 if test "${with_html_dir+set}" = set; then :
13317   withval=$with_html_dir;
13318 else
13319   with_html_dir='${datadir}/gtk-doc/html'
13320 fi
13321
13322   HTML_DIR="$with_html_dir"
13323
13324
13325     # Check whether --enable-gtk-doc was given.
13326 if test "${enable_gtk_doc+set}" = set; then :
13327   enableval=$enable_gtk_doc;
13328 else
13329   enable_gtk_doc=no
13330 fi
13331
13332
13333   if test x$enable_gtk_doc = xyes; then
13334     if test -n "$PKG_CONFIG" && \
13335     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.11\""; } >&5
13336   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.11") 2>&5
13337   ac_status=$?
13338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13339   test $ac_status = 0; }; then
13340   :
13341 else
13342   as_fn_error $? "You need to have gtk-doc >= 1.11 installed to build $PACKAGE_NAME" "$LINENO" 5
13343 fi
13344         if test "x$PACKAGE_NAME" != "xglib"; then
13345
13346 pkg_failed=no
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13348 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13349
13350 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13351     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13352  elif test -n "$PKG_CONFIG"; then
13353     if test -n "$PKG_CONFIG" && \
13354     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13355   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13356   ac_status=$?
13357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13358   test $ac_status = 0; }; then
13359   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13360                       test "x$?" != "x0" && pkg_failed=yes
13361 else
13362   pkg_failed=yes
13363 fi
13364  else
13365     pkg_failed=untried
13366 fi
13367 if test -n "$GTKDOC_DEPS_LIBS"; then
13368     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13369  elif test -n "$PKG_CONFIG"; then
13370     if test -n "$PKG_CONFIG" && \
13371     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13372   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13373   ac_status=$?
13374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13375   test $ac_status = 0; }; then
13376   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13377                       test "x$?" != "x0" && pkg_failed=yes
13378 else
13379   pkg_failed=yes
13380 fi
13381  else
13382     pkg_failed=untried
13383 fi
13384
13385
13386
13387 if test $pkg_failed = yes; then
13388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390
13391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13392         _pkg_short_errors_supported=yes
13393 else
13394         _pkg_short_errors_supported=no
13395 fi
13396         if test $_pkg_short_errors_supported = yes; then
13397                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13398         else
13399                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13400         fi
13401         # Put the nasty error message in config.log where it belongs
13402         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13403
13404         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13405
13406 $GTKDOC_DEPS_PKG_ERRORS
13407
13408 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13409 installed software in a non-standard prefix.
13410
13411 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13412 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13413 See the pkg-config man page for more details." "$LINENO" 5
13414 elif test $pkg_failed = untried; then
13415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13419 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13420 is in your PATH or set the PKG_CONFIG environment variable to the full
13421 path to pkg-config.
13422
13423 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13424 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13425 See the pkg-config man page for more details.
13426
13427 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13428 See \`config.log' for more details" "$LINENO" 5; }
13429 else
13430         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13431         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13433 $as_echo "yes" >&6; }
13434
13435 fi
13436     fi
13437   fi
13438
13439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13440 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13442 $as_echo "$enable_gtk_doc" >&6; }
13443
13444     # Check whether --enable-gtk-doc-html was given.
13445 if test "${enable_gtk_doc_html+set}" = set; then :
13446   enableval=$enable_gtk_doc_html;
13447 else
13448   enable_gtk_doc_html=yes
13449 fi
13450
13451     # Check whether --enable-gtk-doc-pdf was given.
13452 if test "${enable_gtk_doc_pdf+set}" = set; then :
13453   enableval=$enable_gtk_doc_pdf;
13454 else
13455   enable_gtk_doc_pdf=no
13456 fi
13457
13458
13459   if test -z "$GTKDOC_MKPDF"; then
13460     enable_gtk_doc_pdf=no
13461   fi
13462
13463
13464    if test x$enable_gtk_doc = xyes; then
13465   ENABLE_GTK_DOC_TRUE=
13466   ENABLE_GTK_DOC_FALSE='#'
13467 else
13468   ENABLE_GTK_DOC_TRUE='#'
13469   ENABLE_GTK_DOC_FALSE=
13470 fi
13471
13472    if test x$enable_gtk_doc_html = xyes; then
13473   GTK_DOC_BUILD_HTML_TRUE=
13474   GTK_DOC_BUILD_HTML_FALSE='#'
13475 else
13476   GTK_DOC_BUILD_HTML_TRUE='#'
13477   GTK_DOC_BUILD_HTML_FALSE=
13478 fi
13479
13480    if test x$enable_gtk_doc_pdf = xyes; then
13481   GTK_DOC_BUILD_PDF_TRUE=
13482   GTK_DOC_BUILD_PDF_FALSE='#'
13483 else
13484   GTK_DOC_BUILD_PDF_TRUE='#'
13485   GTK_DOC_BUILD_PDF_FALSE=
13486 fi
13487
13488    if test -n "$LIBTOOL"; then
13489   GTK_DOC_USE_LIBTOOL_TRUE=
13490   GTK_DOC_USE_LIBTOOL_FALSE='#'
13491 else
13492   GTK_DOC_USE_LIBTOOL_TRUE='#'
13493   GTK_DOC_USE_LIBTOOL_FALSE=
13494 fi
13495
13496    if test -n "$GTKDOC_REBASE"; then
13497   GTK_DOC_USE_REBASE_TRUE=
13498   GTK_DOC_USE_REBASE_FALSE='#'
13499 else
13500   GTK_DOC_USE_REBASE_TRUE='#'
13501   GTK_DOC_USE_REBASE_FALSE=
13502 fi
13503
13504
13505 # for fixxref
13506 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
13507
13508
13509 # Extract the first word of "xmllint", so it can be a program name with args.
13510 set dummy xmllint; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if ${ac_cv_path_XMLLINT+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   case $XMLLINT in
13517   [\\/]* | ?:[\\/]*)
13518   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
13519   ;;
13520   *)
13521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13523 do
13524   IFS=$as_save_IFS
13525   test -z "$as_dir" && as_dir=.
13526     for ac_exec_ext in '' $ac_executable_extensions; do
13527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13528     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
13529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530     break 2
13531   fi
13532 done
13533   done
13534 IFS=$as_save_IFS
13535
13536   ;;
13537 esac
13538 fi
13539 XMLLINT=$ac_cv_path_XMLLINT
13540 if test -n "$XMLLINT"; then
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
13542 $as_echo "$XMLLINT" >&6; }
13543 else
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547
13548
13549  if test "x$XMLLINT" != "x"; then
13550   HAVE_XMLLINT_TRUE=
13551   HAVE_XMLLINT_FALSE='#'
13552 else
13553   HAVE_XMLLINT_TRUE='#'
13554   HAVE_XMLLINT_FALSE=
13555 fi
13556
13557
13558 ac_config_files="$ac_config_files Makefile libgupnp-dlna/Makefile tools/Makefile tests/Makefile data/Makefile gupnp-dlna-2.0.pc gupnp-dlna-metadata-2.0.pc gupnp-dlna-gst-2.0.pc gupnp-dlna-gst-legacy-2.0.pc doc/Makefile doc/version.xml doc/gupnp-dlna/Makefile doc/gupnp-dlna-metadata/Makefile doc/gupnp-dlna-gst/Makefile vala/Makefile"
13559
13560 ac_config_files="$ac_config_files tests/test-discoverer.sh"
13561
13562 cat >confcache <<\_ACEOF
13563 # This file is a shell script that caches the results of configure
13564 # tests run on this system so they can be shared between configure
13565 # scripts and configure runs, see configure's option --config-cache.
13566 # It is not useful on other systems.  If it contains results you don't
13567 # want to keep, you may remove or edit it.
13568 #
13569 # config.status only pays attention to the cache file if you give it
13570 # the --recheck option to rerun configure.
13571 #
13572 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13574 # following values.
13575
13576 _ACEOF
13577
13578 # The following way of writing the cache mishandles newlines in values,
13579 # but we know of no workaround that is simple, portable, and efficient.
13580 # So, we kill variables containing newlines.
13581 # Ultrix sh set writes to stderr and can't be redirected directly,
13582 # and sets the high bit in the cache file unless we assign to the vars.
13583 (
13584   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13585     eval ac_val=\$$ac_var
13586     case $ac_val in #(
13587     *${as_nl}*)
13588       case $ac_var in #(
13589       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13591       esac
13592       case $ac_var in #(
13593       _ | IFS | as_nl) ;; #(
13594       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13595       *) { eval $ac_var=; unset $ac_var;} ;;
13596       esac ;;
13597     esac
13598   done
13599
13600   (set) 2>&1 |
13601     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13602     *${as_nl}ac_space=\ *)
13603       # `set' does not quote correctly, so add quotes: double-quote
13604       # substitution turns \\\\ into \\, and sed turns \\ into \.
13605       sed -n \
13606         "s/'/'\\\\''/g;
13607           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13608       ;; #(
13609     *)
13610       # `set' quotes correctly as required by POSIX, so do not add quotes.
13611       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13612       ;;
13613     esac |
13614     sort
13615 ) |
13616   sed '
13617      /^ac_cv_env_/b end
13618      t clear
13619      :clear
13620      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13621      t end
13622      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13623      :end' >>confcache
13624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13625   if test -w "$cache_file"; then
13626     if test "x$cache_file" != "x/dev/null"; then
13627       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13628 $as_echo "$as_me: updating cache $cache_file" >&6;}
13629       if test ! -f "$cache_file" || test -h "$cache_file"; then
13630         cat confcache >"$cache_file"
13631       else
13632         case $cache_file in #(
13633         */* | ?:*)
13634           mv -f confcache "$cache_file"$$ &&
13635           mv -f "$cache_file"$$ "$cache_file" ;; #(
13636         *)
13637           mv -f confcache "$cache_file" ;;
13638         esac
13639       fi
13640     fi
13641   else
13642     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13643 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13644   fi
13645 fi
13646 rm -f confcache
13647
13648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13649 # Let make expand exec_prefix.
13650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13651
13652 DEFS=-DHAVE_CONFIG_H
13653
13654 ac_libobjs=
13655 ac_ltlibobjs=
13656 U=
13657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13658   # 1. Remove the extension, and $U if already installed.
13659   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13660   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13661   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13662   #    will be set to the directory where LIBOBJS objects are built.
13663   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13664   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13665 done
13666 LIBOBJS=$ac_libobjs
13667
13668 LTLIBOBJS=$ac_ltlibobjs
13669
13670
13671  if test -n "$EXEEXT"; then
13672   am__EXEEXT_TRUE=
13673   am__EXEEXT_FALSE='#'
13674 else
13675   am__EXEEXT_TRUE='#'
13676   am__EXEEXT_FALSE=
13677 fi
13678
13679 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13680   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13682 fi
13683 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13684   as_fn_error $? "conditional \"AMDEP\" was never defined.
13685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686 fi
13687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13688   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13690 fi
13691 if test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_FALSE}"; then
13692   as_fn_error $? "conditional \"GSTREAMER_METADATA_BACKEND_ENABLED\" was never defined.
13693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13694 fi
13695 if test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_FALSE}"; then
13696   as_fn_error $? "conditional \"GSTREAMER_METADATA_BACKEND_ENABLED\" was never defined.
13697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13698 fi
13699 if test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE}"; then
13700   as_fn_error $? "conditional \"GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED\" was never defined.
13701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13702 fi
13703 if test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE}"; then
13704   as_fn_error $? "conditional \"GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED\" was never defined.
13705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13706 fi
13707 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13708   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13710 fi
13711 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13712   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13714 fi
13715 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13716   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13718 fi
13719 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13720   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13722 fi
13723 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13724   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13726 fi
13727 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13728   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13730 fi
13731 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13732   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13734 fi
13735 if test -z "${HAVE_XMLLINT_TRUE}" && test -z "${HAVE_XMLLINT_FALSE}"; then
13736   as_fn_error $? "conditional \"HAVE_XMLLINT\" was never defined.
13737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13738 fi
13739
13740 : "${CONFIG_STATUS=./config.status}"
13741 ac_write_fail=0
13742 ac_clean_files_save=$ac_clean_files
13743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13745 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13746 as_write_fail=0
13747 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13748 #! $SHELL
13749 # Generated by $as_me.
13750 # Run this file to recreate the current configuration.
13751 # Compiler output produced by configure, useful for debugging
13752 # configure, is in config.log if it exists.
13753
13754 debug=false
13755 ac_cs_recheck=false
13756 ac_cs_silent=false
13757
13758 SHELL=\${CONFIG_SHELL-$SHELL}
13759 export SHELL
13760 _ASEOF
13761 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13762 ## -------------------- ##
13763 ## M4sh Initialization. ##
13764 ## -------------------- ##
13765
13766 # Be more Bourne compatible
13767 DUALCASE=1; export DUALCASE # for MKS sh
13768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13769   emulate sh
13770   NULLCMD=:
13771   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13772   # is contrary to our usage.  Disable this feature.
13773   alias -g '${1+"$@"}'='"$@"'
13774   setopt NO_GLOB_SUBST
13775 else
13776   case `(set -o) 2>/dev/null` in #(
13777   *posix*) :
13778     set -o posix ;; #(
13779   *) :
13780      ;;
13781 esac
13782 fi
13783
13784
13785 as_nl='
13786 '
13787 export as_nl
13788 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13789 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13792 # Prefer a ksh shell builtin over an external printf program on Solaris,
13793 # but without wasting forks for bash or zsh.
13794 if test -z "$BASH_VERSION$ZSH_VERSION" \
13795     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13796   as_echo='print -r --'
13797   as_echo_n='print -rn --'
13798 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13799   as_echo='printf %s\n'
13800   as_echo_n='printf %s'
13801 else
13802   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13803     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13804     as_echo_n='/usr/ucb/echo -n'
13805   else
13806     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13807     as_echo_n_body='eval
13808       arg=$1;
13809       case $arg in #(
13810       *"$as_nl"*)
13811         expr "X$arg" : "X\\(.*\\)$as_nl";
13812         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13813       esac;
13814       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13815     '
13816     export as_echo_n_body
13817     as_echo_n='sh -c $as_echo_n_body as_echo'
13818   fi
13819   export as_echo_body
13820   as_echo='sh -c $as_echo_body as_echo'
13821 fi
13822
13823 # The user is always right.
13824 if test "${PATH_SEPARATOR+set}" != set; then
13825   PATH_SEPARATOR=:
13826   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13827     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13828       PATH_SEPARATOR=';'
13829   }
13830 fi
13831
13832
13833 # IFS
13834 # We need space, tab and new line, in precisely that order.  Quoting is
13835 # there to prevent editors from complaining about space-tab.
13836 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13837 # splitting by setting IFS to empty value.)
13838 IFS=" ""        $as_nl"
13839
13840 # Find who we are.  Look in the path if we contain no directory separator.
13841 as_myself=
13842 case $0 in #((
13843   *[\\/]* ) as_myself=$0 ;;
13844   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13845 for as_dir in $PATH
13846 do
13847   IFS=$as_save_IFS
13848   test -z "$as_dir" && as_dir=.
13849     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13850   done
13851 IFS=$as_save_IFS
13852
13853      ;;
13854 esac
13855 # We did not find ourselves, most probably we were run as `sh COMMAND'
13856 # in which case we are not to be found in the path.
13857 if test "x$as_myself" = x; then
13858   as_myself=$0
13859 fi
13860 if test ! -f "$as_myself"; then
13861   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13862   exit 1
13863 fi
13864
13865 # Unset variables that we do not need and which cause bugs (e.g. in
13866 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13867 # suppresses any "Segmentation fault" message there.  '((' could
13868 # trigger a bug in pdksh 5.2.14.
13869 for as_var in BASH_ENV ENV MAIL MAILPATH
13870 do eval test x\${$as_var+set} = xset \
13871   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13872 done
13873 PS1='$ '
13874 PS2='> '
13875 PS4='+ '
13876
13877 # NLS nuisances.
13878 LC_ALL=C
13879 export LC_ALL
13880 LANGUAGE=C
13881 export LANGUAGE
13882
13883 # CDPATH.
13884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13885
13886
13887 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13888 # ----------------------------------------
13889 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13890 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13891 # script with STATUS, using 1 if that was 0.
13892 as_fn_error ()
13893 {
13894   as_status=$1; test $as_status -eq 0 && as_status=1
13895   if test "$4"; then
13896     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13897     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13898   fi
13899   $as_echo "$as_me: error: $2" >&2
13900   as_fn_exit $as_status
13901 } # as_fn_error
13902
13903
13904 # as_fn_set_status STATUS
13905 # -----------------------
13906 # Set $? to STATUS, without forking.
13907 as_fn_set_status ()
13908 {
13909   return $1
13910 } # as_fn_set_status
13911
13912 # as_fn_exit STATUS
13913 # -----------------
13914 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13915 as_fn_exit ()
13916 {
13917   set +e
13918   as_fn_set_status $1
13919   exit $1
13920 } # as_fn_exit
13921
13922 # as_fn_unset VAR
13923 # ---------------
13924 # Portably unset VAR.
13925 as_fn_unset ()
13926 {
13927   { eval $1=; unset $1;}
13928 }
13929 as_unset=as_fn_unset
13930 # as_fn_append VAR VALUE
13931 # ----------------------
13932 # Append the text in VALUE to the end of the definition contained in VAR. Take
13933 # advantage of any shell optimizations that allow amortized linear growth over
13934 # repeated appends, instead of the typical quadratic growth present in naive
13935 # implementations.
13936 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13937   eval 'as_fn_append ()
13938   {
13939     eval $1+=\$2
13940   }'
13941 else
13942   as_fn_append ()
13943   {
13944     eval $1=\$$1\$2
13945   }
13946 fi # as_fn_append
13947
13948 # as_fn_arith ARG...
13949 # ------------------
13950 # Perform arithmetic evaluation on the ARGs, and store the result in the
13951 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13952 # must be portable across $(()) and expr.
13953 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13954   eval 'as_fn_arith ()
13955   {
13956     as_val=$(( $* ))
13957   }'
13958 else
13959   as_fn_arith ()
13960   {
13961     as_val=`expr "$@" || test $? -eq 1`
13962   }
13963 fi # as_fn_arith
13964
13965
13966 if expr a : '\(a\)' >/dev/null 2>&1 &&
13967    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13968   as_expr=expr
13969 else
13970   as_expr=false
13971 fi
13972
13973 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13974   as_basename=basename
13975 else
13976   as_basename=false
13977 fi
13978
13979 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13980   as_dirname=dirname
13981 else
13982   as_dirname=false
13983 fi
13984
13985 as_me=`$as_basename -- "$0" ||
13986 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13987          X"$0" : 'X\(//\)$' \| \
13988          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13989 $as_echo X/"$0" |
13990     sed '/^.*\/\([^/][^/]*\)\/*$/{
13991             s//\1/
13992             q
13993           }
13994           /^X\/\(\/\/\)$/{
13995             s//\1/
13996             q
13997           }
13998           /^X\/\(\/\).*/{
13999             s//\1/
14000             q
14001           }
14002           s/.*/./; q'`
14003
14004 # Avoid depending upon Character Ranges.
14005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14008 as_cr_digits='0123456789'
14009 as_cr_alnum=$as_cr_Letters$as_cr_digits
14010
14011 ECHO_C= ECHO_N= ECHO_T=
14012 case `echo -n x` in #(((((
14013 -n*)
14014   case `echo 'xy\c'` in
14015   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14016   xy)  ECHO_C='\c';;
14017   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14018        ECHO_T=' ';;
14019   esac;;
14020 *)
14021   ECHO_N='-n';;
14022 esac
14023
14024 rm -f conf$$ conf$$.exe conf$$.file
14025 if test -d conf$$.dir; then
14026   rm -f conf$$.dir/conf$$.file
14027 else
14028   rm -f conf$$.dir
14029   mkdir conf$$.dir 2>/dev/null
14030 fi
14031 if (echo >conf$$.file) 2>/dev/null; then
14032   if ln -s conf$$.file conf$$ 2>/dev/null; then
14033     as_ln_s='ln -s'
14034     # ... but there are two gotchas:
14035     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14036     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14037     # In both cases, we have to default to `cp -pR'.
14038     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14039       as_ln_s='cp -pR'
14040   elif ln conf$$.file conf$$ 2>/dev/null; then
14041     as_ln_s=ln
14042   else
14043     as_ln_s='cp -pR'
14044   fi
14045 else
14046   as_ln_s='cp -pR'
14047 fi
14048 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14049 rmdir conf$$.dir 2>/dev/null
14050
14051
14052 # as_fn_mkdir_p
14053 # -------------
14054 # Create "$as_dir" as a directory, including parents if necessary.
14055 as_fn_mkdir_p ()
14056 {
14057
14058   case $as_dir in #(
14059   -*) as_dir=./$as_dir;;
14060   esac
14061   test -d "$as_dir" || eval $as_mkdir_p || {
14062     as_dirs=
14063     while :; do
14064       case $as_dir in #(
14065       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14066       *) as_qdir=$as_dir;;
14067       esac
14068       as_dirs="'$as_qdir' $as_dirs"
14069       as_dir=`$as_dirname -- "$as_dir" ||
14070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071          X"$as_dir" : 'X\(//\)[^/]' \| \
14072          X"$as_dir" : 'X\(//\)$' \| \
14073          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14074 $as_echo X"$as_dir" |
14075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076             s//\1/
14077             q
14078           }
14079           /^X\(\/\/\)[^/].*/{
14080             s//\1/
14081             q
14082           }
14083           /^X\(\/\/\)$/{
14084             s//\1/
14085             q
14086           }
14087           /^X\(\/\).*/{
14088             s//\1/
14089             q
14090           }
14091           s/.*/./; q'`
14092       test -d "$as_dir" && break
14093     done
14094     test -z "$as_dirs" || eval "mkdir $as_dirs"
14095   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14096
14097
14098 } # as_fn_mkdir_p
14099 if mkdir -p . 2>/dev/null; then
14100   as_mkdir_p='mkdir -p "$as_dir"'
14101 else
14102   test -d ./-p && rmdir ./-p
14103   as_mkdir_p=false
14104 fi
14105
14106
14107 # as_fn_executable_p FILE
14108 # -----------------------
14109 # Test if FILE is an executable regular file.
14110 as_fn_executable_p ()
14111 {
14112   test -f "$1" && test -x "$1"
14113 } # as_fn_executable_p
14114 as_test_x='test -x'
14115 as_executable_p=as_fn_executable_p
14116
14117 # Sed expression to map a string onto a valid CPP name.
14118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14119
14120 # Sed expression to map a string onto a valid variable name.
14121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14122
14123
14124 exec 6>&1
14125 ## ----------------------------------- ##
14126 ## Main body of $CONFIG_STATUS script. ##
14127 ## ----------------------------------- ##
14128 _ASEOF
14129 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14130
14131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14132 # Save the log message, to keep $0 and so on meaningful, and to
14133 # report actual input values of CONFIG_FILES etc. instead of their
14134 # values after options handling.
14135 ac_log="
14136 This file was extended by gupnp-dlna $as_me 0.10.2, which was
14137 generated by GNU Autoconf 2.69.  Invocation command line was
14138
14139   CONFIG_FILES    = $CONFIG_FILES
14140   CONFIG_HEADERS  = $CONFIG_HEADERS
14141   CONFIG_LINKS    = $CONFIG_LINKS
14142   CONFIG_COMMANDS = $CONFIG_COMMANDS
14143   $ $0 $@
14144
14145 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14146 "
14147
14148 _ACEOF
14149
14150 case $ac_config_files in *"
14151 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14152 esac
14153
14154 case $ac_config_headers in *"
14155 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14156 esac
14157
14158
14159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14160 # Files that config.status was made for.
14161 config_files="$ac_config_files"
14162 config_headers="$ac_config_headers"
14163 config_commands="$ac_config_commands"
14164
14165 _ACEOF
14166
14167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14168 ac_cs_usage="\
14169 \`$as_me' instantiates files and other configuration actions
14170 from templates according to the current configuration.  Unless the files
14171 and actions are specified as TAGs, all are instantiated by default.
14172
14173 Usage: $0 [OPTION]... [TAG]...
14174
14175   -h, --help       print this help, then exit
14176   -V, --version    print version number and configuration settings, then exit
14177       --config     print configuration, then exit
14178   -q, --quiet, --silent
14179                    do not print progress messages
14180   -d, --debug      don't remove temporary files
14181       --recheck    update $as_me by reconfiguring in the same conditions
14182       --file=FILE[:TEMPLATE]
14183                    instantiate the configuration file FILE
14184       --header=FILE[:TEMPLATE]
14185                    instantiate the configuration header FILE
14186
14187 Configuration files:
14188 $config_files
14189
14190 Configuration headers:
14191 $config_headers
14192
14193 Configuration commands:
14194 $config_commands
14195
14196 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>.
14197 gupnp-dlna home page: <http://www.gupnp.org/>."
14198
14199 _ACEOF
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14202 ac_cs_version="\\
14203 gupnp-dlna config.status 0.10.2
14204 configured by $0, generated by GNU Autoconf 2.69,
14205   with options \\"\$ac_cs_config\\"
14206
14207 Copyright (C) 2012 Free Software Foundation, Inc.
14208 This config.status script is free software; the Free Software Foundation
14209 gives unlimited permission to copy, distribute and modify it."
14210
14211 ac_pwd='$ac_pwd'
14212 srcdir='$srcdir'
14213 INSTALL='$INSTALL'
14214 MKDIR_P='$MKDIR_P'
14215 AWK='$AWK'
14216 test -n "\$AWK" || AWK=awk
14217 _ACEOF
14218
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14220 # The default lists apply if the user does not specify any file.
14221 ac_need_defaults=:
14222 while test $# != 0
14223 do
14224   case $1 in
14225   --*=?*)
14226     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14227     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14228     ac_shift=:
14229     ;;
14230   --*=)
14231     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14232     ac_optarg=
14233     ac_shift=:
14234     ;;
14235   *)
14236     ac_option=$1
14237     ac_optarg=$2
14238     ac_shift=shift
14239     ;;
14240   esac
14241
14242   case $ac_option in
14243   # Handling of the options.
14244   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14245     ac_cs_recheck=: ;;
14246   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14247     $as_echo "$ac_cs_version"; exit ;;
14248   --config | --confi | --conf | --con | --co | --c )
14249     $as_echo "$ac_cs_config"; exit ;;
14250   --debug | --debu | --deb | --de | --d | -d )
14251     debug=: ;;
14252   --file | --fil | --fi | --f )
14253     $ac_shift
14254     case $ac_optarg in
14255     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14256     '') as_fn_error $? "missing file argument" ;;
14257     esac
14258     as_fn_append CONFIG_FILES " '$ac_optarg'"
14259     ac_need_defaults=false;;
14260   --header | --heade | --head | --hea )
14261     $ac_shift
14262     case $ac_optarg in
14263     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14264     esac
14265     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14266     ac_need_defaults=false;;
14267   --he | --h)
14268     # Conflict between --help and --header
14269     as_fn_error $? "ambiguous option: \`$1'
14270 Try \`$0 --help' for more information.";;
14271   --help | --hel | -h )
14272     $as_echo "$ac_cs_usage"; exit ;;
14273   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14274   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14275     ac_cs_silent=: ;;
14276
14277   # This is an error.
14278   -*) as_fn_error $? "unrecognized option: \`$1'
14279 Try \`$0 --help' for more information." ;;
14280
14281   *) as_fn_append ac_config_targets " $1"
14282      ac_need_defaults=false ;;
14283
14284   esac
14285   shift
14286 done
14287
14288 ac_configure_extra_args=
14289
14290 if $ac_cs_silent; then
14291   exec 6>/dev/null
14292   ac_configure_extra_args="$ac_configure_extra_args --silent"
14293 fi
14294
14295 _ACEOF
14296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14297 if \$ac_cs_recheck; then
14298   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14299   shift
14300   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14301   CONFIG_SHELL='$SHELL'
14302   export CONFIG_SHELL
14303   exec "\$@"
14304 fi
14305
14306 _ACEOF
14307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14308 exec 5>>config.log
14309 {
14310   echo
14311   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14312 ## Running $as_me. ##
14313 _ASBOX
14314   $as_echo "$ac_log"
14315 } >&5
14316
14317 _ACEOF
14318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319 #
14320 # INIT-COMMANDS
14321 #
14322 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14323
14324
14325 # The HP-UX ksh and POSIX shell print the target directory to stdout
14326 # if CDPATH is set.
14327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14328
14329 sed_quote_subst='$sed_quote_subst'
14330 double_quote_subst='$double_quote_subst'
14331 delay_variable_subst='$delay_variable_subst'
14332 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14333 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14334 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14335 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14336 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14337 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14338 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14339 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14340 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14341 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14342 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14343 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14344 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14345 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14346 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14347 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14348 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14349 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14350 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14351 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14352 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14353 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14354 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14355 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14356 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14357 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14358 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14359 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14360 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14361 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14362 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14363 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14364 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14365 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14366 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14367 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14368 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14369 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14370 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14371 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14372 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14373 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14374 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14375 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14376 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14377 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14378 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14379 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14380 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14381 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14382 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14383 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14384 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14385 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14386 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14387 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14388 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14389 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14390 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14391 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14392 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14393 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14394 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14395 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14396 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14397 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14398 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14399 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14400 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14401 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14402 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14403 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14404 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14405 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14406 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14407 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14408 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14409 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14410 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14411 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14412 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14413 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14414 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14415 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14416 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14417 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14418 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14419 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14420 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14421 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14422 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14423 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14424 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14425 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14426 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14427 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14428 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14429 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14430 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14431 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14432 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14433 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14434 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14435 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14436 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14437 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14438 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14439 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14440 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14441 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14442 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14443 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14444 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14445 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14446 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14447 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14448 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14449 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14450 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14451 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14452 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14453 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14454 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14455 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14456 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14457 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14458 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14459 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14460 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14461 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14462 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14463
14464 LTCC='$LTCC'
14465 LTCFLAGS='$LTCFLAGS'
14466 compiler='$compiler_DEFAULT'
14467
14468 # A function that is used when there is no print builtin or printf.
14469 func_fallback_echo ()
14470 {
14471   eval 'cat <<_LTECHO_EOF
14472 \$1
14473 _LTECHO_EOF'
14474 }
14475
14476 # Quote evaled strings.
14477 for var in AS \
14478 DLLTOOL \
14479 OBJDUMP \
14480 SHELL \
14481 ECHO \
14482 PATH_SEPARATOR \
14483 SED \
14484 GREP \
14485 EGREP \
14486 FGREP \
14487 LD \
14488 NM \
14489 LN_S \
14490 lt_SP2NL \
14491 lt_NL2SP \
14492 reload_flag \
14493 deplibs_check_method \
14494 file_magic_cmd \
14495 file_magic_glob \
14496 want_nocaseglob \
14497 sharedlib_from_linklib_cmd \
14498 AR \
14499 AR_FLAGS \
14500 archiver_list_spec \
14501 STRIP \
14502 RANLIB \
14503 CC \
14504 CFLAGS \
14505 compiler \
14506 lt_cv_sys_global_symbol_pipe \
14507 lt_cv_sys_global_symbol_to_cdecl \
14508 lt_cv_sys_global_symbol_to_c_name_address \
14509 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14510 nm_file_list_spec \
14511 lt_prog_compiler_no_builtin_flag \
14512 lt_prog_compiler_pic \
14513 lt_prog_compiler_wl \
14514 lt_prog_compiler_static \
14515 lt_cv_prog_compiler_c_o \
14516 need_locks \
14517 MANIFEST_TOOL \
14518 DSYMUTIL \
14519 NMEDIT \
14520 LIPO \
14521 OTOOL \
14522 OTOOL64 \
14523 shrext_cmds \
14524 export_dynamic_flag_spec \
14525 whole_archive_flag_spec \
14526 compiler_needs_object \
14527 with_gnu_ld \
14528 allow_undefined_flag \
14529 no_undefined_flag \
14530 hardcode_libdir_flag_spec \
14531 hardcode_libdir_separator \
14532 exclude_expsyms \
14533 include_expsyms \
14534 file_list_spec \
14535 variables_saved_for_relink \
14536 libname_spec \
14537 library_names_spec \
14538 soname_spec \
14539 install_override_mode \
14540 finish_eval \
14541 old_striplib \
14542 striplib; do
14543     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14544     *[\\\\\\\`\\"\\\$]*)
14545       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14546       ;;
14547     *)
14548       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14549       ;;
14550     esac
14551 done
14552
14553 # Double-quote double-evaled strings.
14554 for var in reload_cmds \
14555 old_postinstall_cmds \
14556 old_postuninstall_cmds \
14557 old_archive_cmds \
14558 extract_expsyms_cmds \
14559 old_archive_from_new_cmds \
14560 old_archive_from_expsyms_cmds \
14561 archive_cmds \
14562 archive_expsym_cmds \
14563 module_cmds \
14564 module_expsym_cmds \
14565 export_symbols_cmds \
14566 prelink_cmds \
14567 postlink_cmds \
14568 postinstall_cmds \
14569 postuninstall_cmds \
14570 finish_cmds \
14571 sys_lib_search_path_spec \
14572 sys_lib_dlsearch_path_spec; do
14573     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14574     *[\\\\\\\`\\"\\\$]*)
14575       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14576       ;;
14577     *)
14578       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14579       ;;
14580     esac
14581 done
14582
14583 ac_aux_dir='$ac_aux_dir'
14584 xsi_shell='$xsi_shell'
14585 lt_shell_append='$lt_shell_append'
14586
14587 # See if we are running on zsh, and set the options which allow our
14588 # commands through without removal of \ escapes INIT.
14589 if test -n "\${ZSH_VERSION+set}" ; then
14590    setopt NO_GLOB_SUBST
14591 fi
14592
14593
14594     PACKAGE='$PACKAGE'
14595     VERSION='$VERSION'
14596     TIMESTAMP='$TIMESTAMP'
14597     RM='$RM'
14598     ofile='$ofile'
14599
14600
14601
14602
14603 _ACEOF
14604
14605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14606
14607 # Handling of arguments.
14608 for ac_config_target in $ac_config_targets
14609 do
14610   case $ac_config_target in
14611     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14612     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14613     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14614     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14615     "libgupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-dlna/Makefile" ;;
14616     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14617     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14618     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14619     "gupnp-dlna-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-2.0.pc" ;;
14620     "gupnp-dlna-metadata-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-metadata-2.0.pc" ;;
14621     "gupnp-dlna-gst-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-gst-2.0.pc" ;;
14622     "gupnp-dlna-gst-legacy-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-gst-legacy-2.0.pc" ;;
14623     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14624     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14625     "doc/gupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna/Makefile" ;;
14626     "doc/gupnp-dlna-metadata/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna-metadata/Makefile" ;;
14627     "doc/gupnp-dlna-gst/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna-gst/Makefile" ;;
14628     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14629     "tests/test-discoverer.sh") CONFIG_FILES="$CONFIG_FILES tests/test-discoverer.sh" ;;
14630
14631   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14632   esac
14633 done
14634
14635
14636 # If the user did not use the arguments to specify the items to instantiate,
14637 # then the envvar interface is used.  Set only those that are not.
14638 # We use the long form for the default assignment because of an extremely
14639 # bizarre bug on SunOS 4.1.3.
14640 if $ac_need_defaults; then
14641   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14642   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14643   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14644 fi
14645
14646 # Have a temporary directory for convenience.  Make it in the build tree
14647 # simply because there is no reason against having it here, and in addition,
14648 # creating and moving files from /tmp can sometimes cause problems.
14649 # Hook for its removal unless debugging.
14650 # Note that there is a small window in which the directory will not be cleaned:
14651 # after its creation but before its name has been assigned to `$tmp'.
14652 $debug ||
14653 {
14654   tmp= ac_tmp=
14655   trap 'exit_status=$?
14656   : "${ac_tmp:=$tmp}"
14657   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14658 ' 0
14659   trap 'as_fn_exit 1' 1 2 13 15
14660 }
14661 # Create a (secure) tmp directory for tmp files.
14662
14663 {
14664   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14665   test -d "$tmp"
14666 }  ||
14667 {
14668   tmp=./conf$$-$RANDOM
14669   (umask 077 && mkdir "$tmp")
14670 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14671 ac_tmp=$tmp
14672
14673 # Set up the scripts for CONFIG_FILES section.
14674 # No need to generate them if there are no CONFIG_FILES.
14675 # This happens for instance with `./config.status config.h'.
14676 if test -n "$CONFIG_FILES"; then
14677
14678
14679 ac_cr=`echo X | tr X '\015'`
14680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14681 # But we know of no other shell where ac_cr would be empty at this
14682 # point, so we can use a bashism as a fallback.
14683 if test "x$ac_cr" = x; then
14684   eval ac_cr=\$\'\\r\'
14685 fi
14686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14688   ac_cs_awk_cr='\\r'
14689 else
14690   ac_cs_awk_cr=$ac_cr
14691 fi
14692
14693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14694 _ACEOF
14695
14696
14697 {
14698   echo "cat >conf$$subs.awk <<_ACEOF" &&
14699   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14700   echo "_ACEOF"
14701 } >conf$$subs.sh ||
14702   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14703 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14704 ac_delim='%!_!# '
14705 for ac_last_try in false false false false false :; do
14706   . ./conf$$subs.sh ||
14707     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14708
14709   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14710   if test $ac_delim_n = $ac_delim_num; then
14711     break
14712   elif $ac_last_try; then
14713     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14714   else
14715     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14716   fi
14717 done
14718 rm -f conf$$subs.sh
14719
14720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14721 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14722 _ACEOF
14723 sed -n '
14724 h
14725 s/^/S["/; s/!.*/"]=/
14726 p
14727 g
14728 s/^[^!]*!//
14729 :repl
14730 t repl
14731 s/'"$ac_delim"'$//
14732 t delim
14733 :nl
14734 h
14735 s/\(.\{148\}\)..*/\1/
14736 t more1
14737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14738 p
14739 n
14740 b repl
14741 :more1
14742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14743 p
14744 g
14745 s/.\{148\}//
14746 t nl
14747 :delim
14748 h
14749 s/\(.\{148\}\)..*/\1/
14750 t more2
14751 s/["\\]/\\&/g; s/^/"/; s/$/"/
14752 p
14753 b
14754 :more2
14755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14756 p
14757 g
14758 s/.\{148\}//
14759 t delim
14760 ' <conf$$subs.awk | sed '
14761 /^[^""]/{
14762   N
14763   s/\n//
14764 }
14765 ' >>$CONFIG_STATUS || ac_write_fail=1
14766 rm -f conf$$subs.awk
14767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14768 _ACAWK
14769 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14770   for (key in S) S_is_set[key] = 1
14771   FS = "\a"
14772
14773 }
14774 {
14775   line = $ 0
14776   nfields = split(line, field, "@")
14777   substed = 0
14778   len = length(field[1])
14779   for (i = 2; i < nfields; i++) {
14780     key = field[i]
14781     keylen = length(key)
14782     if (S_is_set[key]) {
14783       value = S[key]
14784       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14785       len += length(value) + length(field[++i])
14786       substed = 1
14787     } else
14788       len += 1 + keylen
14789   }
14790
14791   print line
14792 }
14793
14794 _ACAWK
14795 _ACEOF
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14798   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14799 else
14800   cat
14801 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14802   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14803 _ACEOF
14804
14805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14807 # trailing colons and then remove the whole line if VPATH becomes empty
14808 # (actually we leave an empty line to preserve line numbers).
14809 if test "x$srcdir" = x.; then
14810   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14811 h
14812 s///
14813 s/^/:/
14814 s/[      ]*$/:/
14815 s/:\$(srcdir):/:/g
14816 s/:\${srcdir}:/:/g
14817 s/:@srcdir@:/:/g
14818 s/^:*//
14819 s/:*$//
14820 x
14821 s/\(=[   ]*\).*/\1/
14822 G
14823 s/\n//
14824 s/^[^=]*=[       ]*$//
14825 }'
14826 fi
14827
14828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14829 fi # test -n "$CONFIG_FILES"
14830
14831 # Set up the scripts for CONFIG_HEADERS section.
14832 # No need to generate them if there are no CONFIG_HEADERS.
14833 # This happens for instance with `./config.status Makefile'.
14834 if test -n "$CONFIG_HEADERS"; then
14835 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14836 BEGIN {
14837 _ACEOF
14838
14839 # Transform confdefs.h into an awk script `defines.awk', embedded as
14840 # here-document in config.status, that substitutes the proper values into
14841 # config.h.in to produce config.h.
14842
14843 # Create a delimiter string that does not exist in confdefs.h, to ease
14844 # handling of long lines.
14845 ac_delim='%!_!# '
14846 for ac_last_try in false false :; do
14847   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14848   if test -z "$ac_tt"; then
14849     break
14850   elif $ac_last_try; then
14851     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14852   else
14853     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14854   fi
14855 done
14856
14857 # For the awk script, D is an array of macro values keyed by name,
14858 # likewise P contains macro parameters if any.  Preserve backslash
14859 # newline sequences.
14860
14861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14862 sed -n '
14863 s/.\{148\}/&'"$ac_delim"'/g
14864 t rset
14865 :rset
14866 s/^[     ]*#[    ]*define[       ][      ]*/ /
14867 t def
14868 d
14869 :def
14870 s/\\$//
14871 t bsnl
14872 s/["\\]/\\&/g
14873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14874 D["\1"]=" \3"/p
14875 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14876 d
14877 :bsnl
14878 s/["\\]/\\&/g
14879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14880 D["\1"]=" \3\\\\\\n"\\/p
14881 t cont
14882 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14883 t cont
14884 d
14885 :cont
14886 n
14887 s/.\{148\}/&'"$ac_delim"'/g
14888 t clear
14889 :clear
14890 s/\\$//
14891 t bsnlc
14892 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14893 d
14894 :bsnlc
14895 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14896 b cont
14897 ' <confdefs.h | sed '
14898 s/'"$ac_delim"'/"\\\
14899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14900
14901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14902   for (key in D) D_is_set[key] = 1
14903   FS = "\a"
14904 }
14905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14906   line = \$ 0
14907   split(line, arg, " ")
14908   if (arg[1] == "#") {
14909     defundef = arg[2]
14910     mac1 = arg[3]
14911   } else {
14912     defundef = substr(arg[1], 2)
14913     mac1 = arg[2]
14914   }
14915   split(mac1, mac2, "(") #)
14916   macro = mac2[1]
14917   prefix = substr(line, 1, index(line, defundef) - 1)
14918   if (D_is_set[macro]) {
14919     # Preserve the white space surrounding the "#".
14920     print prefix "define", macro P[macro] D[macro]
14921     next
14922   } else {
14923     # Replace #undef with comments.  This is necessary, for example,
14924     # in the case of _POSIX_SOURCE, which is predefined and required
14925     # on some systems where configure will not decide to define it.
14926     if (defundef == "undef") {
14927       print "/*", prefix defundef, macro, "*/"
14928       next
14929     }
14930   }
14931 }
14932 { print }
14933 _ACAWK
14934 _ACEOF
14935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14937 fi # test -n "$CONFIG_HEADERS"
14938
14939
14940 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14941 shift
14942 for ac_tag
14943 do
14944   case $ac_tag in
14945   :[FHLC]) ac_mode=$ac_tag; continue;;
14946   esac
14947   case $ac_mode$ac_tag in
14948   :[FHL]*:*);;
14949   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14950   :[FH]-) ac_tag=-:-;;
14951   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14952   esac
14953   ac_save_IFS=$IFS
14954   IFS=:
14955   set x $ac_tag
14956   IFS=$ac_save_IFS
14957   shift
14958   ac_file=$1
14959   shift
14960
14961   case $ac_mode in
14962   :L) ac_source=$1;;
14963   :[FH])
14964     ac_file_inputs=
14965     for ac_f
14966     do
14967       case $ac_f in
14968       -) ac_f="$ac_tmp/stdin";;
14969       *) # Look for the file first in the build tree, then in the source tree
14970          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14971          # because $ac_f cannot contain `:'.
14972          test -f "$ac_f" ||
14973            case $ac_f in
14974            [\\/$]*) false;;
14975            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14976            esac ||
14977            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14978       esac
14979       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14980       as_fn_append ac_file_inputs " '$ac_f'"
14981     done
14982
14983     # Let's still pretend it is `configure' which instantiates (i.e., don't
14984     # use $as_me), people would be surprised to read:
14985     #    /* config.h.  Generated by config.status.  */
14986     configure_input='Generated from '`
14987           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14988         `' by configure.'
14989     if test x"$ac_file" != x-; then
14990       configure_input="$ac_file.  $configure_input"
14991       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14992 $as_echo "$as_me: creating $ac_file" >&6;}
14993     fi
14994     # Neutralize special characters interpreted by sed in replacement strings.
14995     case $configure_input in #(
14996     *\&* | *\|* | *\\* )
14997        ac_sed_conf_input=`$as_echo "$configure_input" |
14998        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14999     *) ac_sed_conf_input=$configure_input;;
15000     esac
15001
15002     case $ac_tag in
15003     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15004       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15005     esac
15006     ;;
15007   esac
15008
15009   ac_dir=`$as_dirname -- "$ac_file" ||
15010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15011          X"$ac_file" : 'X\(//\)[^/]' \| \
15012          X"$ac_file" : 'X\(//\)$' \| \
15013          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15014 $as_echo X"$ac_file" |
15015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15016             s//\1/
15017             q
15018           }
15019           /^X\(\/\/\)[^/].*/{
15020             s//\1/
15021             q
15022           }
15023           /^X\(\/\/\)$/{
15024             s//\1/
15025             q
15026           }
15027           /^X\(\/\).*/{
15028             s//\1/
15029             q
15030           }
15031           s/.*/./; q'`
15032   as_dir="$ac_dir"; as_fn_mkdir_p
15033   ac_builddir=.
15034
15035 case "$ac_dir" in
15036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15037 *)
15038   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15039   # A ".." for each directory in $ac_dir_suffix.
15040   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15041   case $ac_top_builddir_sub in
15042   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15043   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15044   esac ;;
15045 esac
15046 ac_abs_top_builddir=$ac_pwd
15047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15048 # for backward compatibility:
15049 ac_top_builddir=$ac_top_build_prefix
15050
15051 case $srcdir in
15052   .)  # We are building in place.
15053     ac_srcdir=.
15054     ac_top_srcdir=$ac_top_builddir_sub
15055     ac_abs_top_srcdir=$ac_pwd ;;
15056   [\\/]* | ?:[\\/]* )  # Absolute name.
15057     ac_srcdir=$srcdir$ac_dir_suffix;
15058     ac_top_srcdir=$srcdir
15059     ac_abs_top_srcdir=$srcdir ;;
15060   *) # Relative name.
15061     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15062     ac_top_srcdir=$ac_top_build_prefix$srcdir
15063     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15064 esac
15065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15066
15067
15068   case $ac_mode in
15069   :F)
15070   #
15071   # CONFIG_FILE
15072   #
15073
15074   case $INSTALL in
15075   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15076   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15077   esac
15078   ac_MKDIR_P=$MKDIR_P
15079   case $MKDIR_P in
15080   [\\/$]* | ?:[\\/]* ) ;;
15081   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15082   esac
15083 _ACEOF
15084
15085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15086 # If the template does not know about datarootdir, expand it.
15087 # FIXME: This hack should be removed a few years after 2.60.
15088 ac_datarootdir_hack=; ac_datarootdir_seen=
15089 ac_sed_dataroot='
15090 /datarootdir/ {
15091   p
15092   q
15093 }
15094 /@datadir@/p
15095 /@docdir@/p
15096 /@infodir@/p
15097 /@localedir@/p
15098 /@mandir@/p'
15099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15100 *datarootdir*) ac_datarootdir_seen=yes;;
15101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15102   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15103 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106   ac_datarootdir_hack='
15107   s&@datadir@&$datadir&g
15108   s&@docdir@&$docdir&g
15109   s&@infodir@&$infodir&g
15110   s&@localedir@&$localedir&g
15111   s&@mandir@&$mandir&g
15112   s&\\\${datarootdir}&$datarootdir&g' ;;
15113 esac
15114 _ACEOF
15115
15116 # Neutralize VPATH when `$srcdir' = `.'.
15117 # Shell code in configure.ac might set extrasub.
15118 # FIXME: do we really want to maintain this feature?
15119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15120 ac_sed_extra="$ac_vpsub
15121 $extrasub
15122 _ACEOF
15123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15124 :t
15125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15126 s|@configure_input@|$ac_sed_conf_input|;t t
15127 s&@top_builddir@&$ac_top_builddir_sub&;t t
15128 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15129 s&@srcdir@&$ac_srcdir&;t t
15130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15131 s&@top_srcdir@&$ac_top_srcdir&;t t
15132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15133 s&@builddir@&$ac_builddir&;t t
15134 s&@abs_builddir@&$ac_abs_builddir&;t t
15135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15136 s&@INSTALL@&$ac_INSTALL&;t t
15137 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15138 $ac_datarootdir_hack
15139 "
15140 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15141   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15142
15143 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15144   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15145   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15146       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15147   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15148 which seems to be undefined.  Please make sure it is defined" >&5
15149 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15150 which seems to be undefined.  Please make sure it is defined" >&2;}
15151
15152   rm -f "$ac_tmp/stdin"
15153   case $ac_file in
15154   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15155   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15156   esac \
15157   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15158  ;;
15159   :H)
15160   #
15161   # CONFIG_HEADER
15162   #
15163   if test x"$ac_file" != x-; then
15164     {
15165       $as_echo "/* $configure_input  */" \
15166       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15167     } >"$ac_tmp/config.h" \
15168       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15169     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15170       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15171 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15172     else
15173       rm -f "$ac_file"
15174       mv "$ac_tmp/config.h" "$ac_file" \
15175         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15176     fi
15177   else
15178     $as_echo "/* $configure_input  */" \
15179       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15180       || as_fn_error $? "could not create -" "$LINENO" 5
15181   fi
15182 # Compute "$ac_file"'s index in $config_headers.
15183 _am_arg="$ac_file"
15184 _am_stamp_count=1
15185 for _am_header in $config_headers :; do
15186   case $_am_header in
15187     $_am_arg | $_am_arg:* )
15188       break ;;
15189     * )
15190       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15191   esac
15192 done
15193 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15194 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15195          X"$_am_arg" : 'X\(//\)[^/]' \| \
15196          X"$_am_arg" : 'X\(//\)$' \| \
15197          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15198 $as_echo X"$_am_arg" |
15199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15200             s//\1/
15201             q
15202           }
15203           /^X\(\/\/\)[^/].*/{
15204             s//\1/
15205             q
15206           }
15207           /^X\(\/\/\)$/{
15208             s//\1/
15209             q
15210           }
15211           /^X\(\/\).*/{
15212             s//\1/
15213             q
15214           }
15215           s/.*/./; q'`/stamp-h$_am_stamp_count
15216  ;;
15217
15218   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15219 $as_echo "$as_me: executing $ac_file commands" >&6;}
15220  ;;
15221   esac
15222
15223
15224   case $ac_file$ac_mode in
15225     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15226   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15227   # are listed without --file.  Let's play safe and only enable the eval
15228   # if we detect the quoting.
15229   case $CONFIG_FILES in
15230   *\'*) eval set x "$CONFIG_FILES" ;;
15231   *)   set x $CONFIG_FILES ;;
15232   esac
15233   shift
15234   for mf
15235   do
15236     # Strip MF so we end up with the name of the file.
15237     mf=`echo "$mf" | sed -e 's/:.*$//'`
15238     # Check whether this is an Automake generated Makefile or not.
15239     # We used to match only the files named `Makefile.in', but
15240     # some people rename them; so instead we look at the file content.
15241     # Grep'ing the first line is not enough: some people post-process
15242     # each Makefile.in and add a new line on top of each file to say so.
15243     # Grep'ing the whole file is not good either: AIX grep has a line
15244     # limit of 2048, but all sed's we know have understand at least 4000.
15245     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15246       dirpart=`$as_dirname -- "$mf" ||
15247 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15248          X"$mf" : 'X\(//\)[^/]' \| \
15249          X"$mf" : 'X\(//\)$' \| \
15250          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15251 $as_echo X"$mf" |
15252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15253             s//\1/
15254             q
15255           }
15256           /^X\(\/\/\)[^/].*/{
15257             s//\1/
15258             q
15259           }
15260           /^X\(\/\/\)$/{
15261             s//\1/
15262             q
15263           }
15264           /^X\(\/\).*/{
15265             s//\1/
15266             q
15267           }
15268           s/.*/./; q'`
15269     else
15270       continue
15271     fi
15272     # Extract the definition of DEPDIR, am__include, and am__quote
15273     # from the Makefile without running `make'.
15274     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15275     test -z "$DEPDIR" && continue
15276     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15277     test -z "am__include" && continue
15278     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15279     # When using ansi2knr, U may be empty or an underscore; expand it
15280     U=`sed -n 's/^U = //p' < "$mf"`
15281     # Find all dependency output files, they are included files with
15282     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15283     # simplest approach to changing $(DEPDIR) to its actual value in the
15284     # expansion.
15285     for file in `sed -n "
15286       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15287          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15288       # Make sure the directory exists.
15289       test -f "$dirpart/$file" && continue
15290       fdir=`$as_dirname -- "$file" ||
15291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15292          X"$file" : 'X\(//\)[^/]' \| \
15293          X"$file" : 'X\(//\)$' \| \
15294          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15295 $as_echo X"$file" |
15296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15297             s//\1/
15298             q
15299           }
15300           /^X\(\/\/\)[^/].*/{
15301             s//\1/
15302             q
15303           }
15304           /^X\(\/\/\)$/{
15305             s//\1/
15306             q
15307           }
15308           /^X\(\/\).*/{
15309             s//\1/
15310             q
15311           }
15312           s/.*/./; q'`
15313       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15314       # echo "creating $dirpart/$file"
15315       echo '# dummy' > "$dirpart/$file"
15316     done
15317   done
15318 }
15319  ;;
15320     "libtool":C)
15321
15322     # See if we are running on zsh, and set the options which allow our
15323     # commands through without removal of \ escapes.
15324     if test -n "${ZSH_VERSION+set}" ; then
15325       setopt NO_GLOB_SUBST
15326     fi
15327
15328     cfgfile="${ofile}T"
15329     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15330     $RM "$cfgfile"
15331
15332     cat <<_LT_EOF >> "$cfgfile"
15333 #! $SHELL
15334
15335 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15336 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15339 #
15340 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15341 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15342 #                 Foundation, Inc.
15343 #   Written by Gordon Matzigkeit, 1996
15344 #
15345 #   This file is part of GNU Libtool.
15346 #
15347 # GNU Libtool is free software; you can redistribute it and/or
15348 # modify it under the terms of the GNU General Public License as
15349 # published by the Free Software Foundation; either version 2 of
15350 # the License, or (at your option) any later version.
15351 #
15352 # As a special exception to the GNU General Public License,
15353 # if you distribute this file as part of a program or library that
15354 # is built using GNU Libtool, you may include this file under the
15355 # same distribution terms that you use for the rest of that program.
15356 #
15357 # GNU Libtool is distributed in the hope that it will be useful,
15358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15360 # GNU General Public License for more details.
15361 #
15362 # You should have received a copy of the GNU General Public License
15363 # along with GNU Libtool; see the file COPYING.  If not, a copy
15364 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15365 # obtained by writing to the Free Software Foundation, Inc.,
15366 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15367
15368
15369 # The names of the tagged configurations supported by this script.
15370 available_tags=""
15371
15372 # ### BEGIN LIBTOOL CONFIG
15373
15374 # Which release of libtool.m4 was used?
15375 macro_version=$macro_version
15376 macro_revision=$macro_revision
15377
15378 # Assembler program.
15379 AS=$lt_AS
15380
15381 # DLL creation program.
15382 DLLTOOL=$lt_DLLTOOL
15383
15384 # Object dumper program.
15385 OBJDUMP=$lt_OBJDUMP
15386
15387 # Whether or not to build shared libraries.
15388 build_libtool_libs=$enable_shared
15389
15390 # Whether or not to build static libraries.
15391 build_old_libs=$enable_static
15392
15393 # What type of objects to build.
15394 pic_mode=$pic_mode
15395
15396 # Whether or not to optimize for fast installation.
15397 fast_install=$enable_fast_install
15398
15399 # Shell to use when invoking shell scripts.
15400 SHELL=$lt_SHELL
15401
15402 # An echo program that protects backslashes.
15403 ECHO=$lt_ECHO
15404
15405 # The PATH separator for the build system.
15406 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15407
15408 # The host system.
15409 host_alias=$host_alias
15410 host=$host
15411 host_os=$host_os
15412
15413 # The build system.
15414 build_alias=$build_alias
15415 build=$build
15416 build_os=$build_os
15417
15418 # A sed program that does not truncate output.
15419 SED=$lt_SED
15420
15421 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15422 Xsed="\$SED -e 1s/^X//"
15423
15424 # A grep program that handles long lines.
15425 GREP=$lt_GREP
15426
15427 # An ERE matcher.
15428 EGREP=$lt_EGREP
15429
15430 # A literal string matcher.
15431 FGREP=$lt_FGREP
15432
15433 # A BSD- or MS-compatible name lister.
15434 NM=$lt_NM
15435
15436 # Whether we need soft or hard links.
15437 LN_S=$lt_LN_S
15438
15439 # What is the maximum length of a command?
15440 max_cmd_len=$max_cmd_len
15441
15442 # Object file suffix (normally "o").
15443 objext=$ac_objext
15444
15445 # Executable file suffix (normally "").
15446 exeext=$exeext
15447
15448 # whether the shell understands "unset".
15449 lt_unset=$lt_unset
15450
15451 # turn spaces into newlines.
15452 SP2NL=$lt_lt_SP2NL
15453
15454 # turn newlines into spaces.
15455 NL2SP=$lt_lt_NL2SP
15456
15457 # convert \$build file names to \$host format.
15458 to_host_file_cmd=$lt_cv_to_host_file_cmd
15459
15460 # convert \$build files to toolchain format.
15461 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15462
15463 # Method to check whether dependent libraries are shared objects.
15464 deplibs_check_method=$lt_deplibs_check_method
15465
15466 # Command to use when deplibs_check_method = "file_magic".
15467 file_magic_cmd=$lt_file_magic_cmd
15468
15469 # How to find potential files when deplibs_check_method = "file_magic".
15470 file_magic_glob=$lt_file_magic_glob
15471
15472 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15473 want_nocaseglob=$lt_want_nocaseglob
15474
15475 # Command to associate shared and link libraries.
15476 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15477
15478 # The archiver.
15479 AR=$lt_AR
15480
15481 # Flags to create an archive.
15482 AR_FLAGS=$lt_AR_FLAGS
15483
15484 # How to feed a file listing to the archiver.
15485 archiver_list_spec=$lt_archiver_list_spec
15486
15487 # A symbol stripping program.
15488 STRIP=$lt_STRIP
15489
15490 # Commands used to install an old-style archive.
15491 RANLIB=$lt_RANLIB
15492 old_postinstall_cmds=$lt_old_postinstall_cmds
15493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15494
15495 # Whether to use a lock for old archive extraction.
15496 lock_old_archive_extraction=$lock_old_archive_extraction
15497
15498 # A C compiler.
15499 LTCC=$lt_CC
15500
15501 # LTCC compiler flags.
15502 LTCFLAGS=$lt_CFLAGS
15503
15504 # Take the output of nm and produce a listing of raw symbols and C names.
15505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15506
15507 # Transform the output of nm in a proper C declaration.
15508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15509
15510 # Transform the output of nm in a C name address pair.
15511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15512
15513 # Transform the output of nm in a C name address pair when lib prefix is needed.
15514 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15515
15516 # Specify filename containing input files for \$NM.
15517 nm_file_list_spec=$lt_nm_file_list_spec
15518
15519 # The root where to search for dependent libraries,and in which our libraries should be installed.
15520 lt_sysroot=$lt_sysroot
15521
15522 # The name of the directory that contains temporary libtool files.
15523 objdir=$objdir
15524
15525 # Used to examine libraries when file_magic_cmd begins with "file".
15526 MAGIC_CMD=$MAGIC_CMD
15527
15528 # Must we lock files when doing compilation?
15529 need_locks=$lt_need_locks
15530
15531 # Manifest tool.
15532 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15533
15534 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15535 DSYMUTIL=$lt_DSYMUTIL
15536
15537 # Tool to change global to local symbols on Mac OS X.
15538 NMEDIT=$lt_NMEDIT
15539
15540 # Tool to manipulate fat objects and archives on Mac OS X.
15541 LIPO=$lt_LIPO
15542
15543 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15544 OTOOL=$lt_OTOOL
15545
15546 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15547 OTOOL64=$lt_OTOOL64
15548
15549 # Old archive suffix (normally "a").
15550 libext=$libext
15551
15552 # Shared library suffix (normally ".so").
15553 shrext_cmds=$lt_shrext_cmds
15554
15555 # The commands to extract the exported symbol list from a shared archive.
15556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15557
15558 # Variables whose values should be saved in libtool wrapper scripts and
15559 # restored at link time.
15560 variables_saved_for_relink=$lt_variables_saved_for_relink
15561
15562 # Do we need the "lib" prefix for modules?
15563 need_lib_prefix=$need_lib_prefix
15564
15565 # Do we need a version for libraries?
15566 need_version=$need_version
15567
15568 # Library versioning type.
15569 version_type=$version_type
15570
15571 # Shared library runtime path variable.
15572 runpath_var=$runpath_var
15573
15574 # Shared library path variable.
15575 shlibpath_var=$shlibpath_var
15576
15577 # Is shlibpath searched before the hard-coded library search path?
15578 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15579
15580 # Format of library name prefix.
15581 libname_spec=$lt_libname_spec
15582
15583 # List of archive names.  First name is the real one, the rest are links.
15584 # The last name is the one that the linker finds with -lNAME
15585 library_names_spec=$lt_library_names_spec
15586
15587 # The coded name of the library, if different from the real name.
15588 soname_spec=$lt_soname_spec
15589
15590 # Permission mode override for installation of shared libraries.
15591 install_override_mode=$lt_install_override_mode
15592
15593 # Command to use after installation of a shared archive.
15594 postinstall_cmds=$lt_postinstall_cmds
15595
15596 # Command to use after uninstallation of a shared archive.
15597 postuninstall_cmds=$lt_postuninstall_cmds
15598
15599 # Commands used to finish a libtool library installation in a directory.
15600 finish_cmds=$lt_finish_cmds
15601
15602 # As "finish_cmds", except a single script fragment to be evaled but
15603 # not shown.
15604 finish_eval=$lt_finish_eval
15605
15606 # Whether we should hardcode library paths into libraries.
15607 hardcode_into_libs=$hardcode_into_libs
15608
15609 # Compile-time system search path for libraries.
15610 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15611
15612 # Run-time system search path for libraries.
15613 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15614
15615 # Whether dlopen is supported.
15616 dlopen_support=$enable_dlopen
15617
15618 # Whether dlopen of programs is supported.
15619 dlopen_self=$enable_dlopen_self
15620
15621 # Whether dlopen of statically linked programs is supported.
15622 dlopen_self_static=$enable_dlopen_self_static
15623
15624 # Commands to strip libraries.
15625 old_striplib=$lt_old_striplib
15626 striplib=$lt_striplib
15627
15628
15629 # The linker used to build libraries.
15630 LD=$lt_LD
15631
15632 # How to create reloadable object files.
15633 reload_flag=$lt_reload_flag
15634 reload_cmds=$lt_reload_cmds
15635
15636 # Commands used to build an old-style archive.
15637 old_archive_cmds=$lt_old_archive_cmds
15638
15639 # A language specific compiler.
15640 CC=$lt_compiler
15641
15642 # Is the compiler the GNU compiler?
15643 with_gcc=$GCC
15644
15645 # Compiler flag to turn off builtin functions.
15646 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15647
15648 # Additional compiler flags for building library objects.
15649 pic_flag=$lt_lt_prog_compiler_pic
15650
15651 # How to pass a linker flag through the compiler.
15652 wl=$lt_lt_prog_compiler_wl
15653
15654 # Compiler flag to prevent dynamic linking.
15655 link_static_flag=$lt_lt_prog_compiler_static
15656
15657 # Does compiler simultaneously support -c and -o options?
15658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15659
15660 # Whether or not to add -lc for building shared libraries.
15661 build_libtool_need_lc=$archive_cmds_need_lc
15662
15663 # Whether or not to disallow shared libs when runtime libs are static.
15664 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15665
15666 # Compiler flag to allow reflexive dlopens.
15667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15668
15669 # Compiler flag to generate shared objects directly from archives.
15670 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15671
15672 # Whether the compiler copes with passing no objects directly.
15673 compiler_needs_object=$lt_compiler_needs_object
15674
15675 # Create an old-style archive from a shared archive.
15676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15677
15678 # Create a temporary old-style archive to link instead of a shared archive.
15679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15680
15681 # Commands used to build a shared archive.
15682 archive_cmds=$lt_archive_cmds
15683 archive_expsym_cmds=$lt_archive_expsym_cmds
15684
15685 # Commands used to build a loadable module if different from building
15686 # a shared archive.
15687 module_cmds=$lt_module_cmds
15688 module_expsym_cmds=$lt_module_expsym_cmds
15689
15690 # Whether we are building with GNU ld or not.
15691 with_gnu_ld=$lt_with_gnu_ld
15692
15693 # Flag that allows shared libraries with undefined symbols to be built.
15694 allow_undefined_flag=$lt_allow_undefined_flag
15695
15696 # Flag that enforces no undefined symbols.
15697 no_undefined_flag=$lt_no_undefined_flag
15698
15699 # Flag to hardcode \$libdir into a binary during linking.
15700 # This must work even if \$libdir does not exist
15701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15702
15703 # Whether we need a single "-rpath" flag with a separated argument.
15704 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15705
15706 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15707 # DIR into the resulting binary.
15708 hardcode_direct=$hardcode_direct
15709
15710 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15711 # DIR into the resulting binary and the resulting library dependency is
15712 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15713 # library is relocated.
15714 hardcode_direct_absolute=$hardcode_direct_absolute
15715
15716 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15717 # into the resulting binary.
15718 hardcode_minus_L=$hardcode_minus_L
15719
15720 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15721 # into the resulting binary.
15722 hardcode_shlibpath_var=$hardcode_shlibpath_var
15723
15724 # Set to "yes" if building a shared library automatically hardcodes DIR
15725 # into the library and all subsequent libraries and executables linked
15726 # against it.
15727 hardcode_automatic=$hardcode_automatic
15728
15729 # Set to yes if linker adds runtime paths of dependent libraries
15730 # to runtime path list.
15731 inherit_rpath=$inherit_rpath
15732
15733 # Whether libtool must link a program against all its dependency libraries.
15734 link_all_deplibs=$link_all_deplibs
15735
15736 # Set to "yes" if exported symbols are required.
15737 always_export_symbols=$always_export_symbols
15738
15739 # The commands to list exported symbols.
15740 export_symbols_cmds=$lt_export_symbols_cmds
15741
15742 # Symbols that should not be listed in the preloaded symbols.
15743 exclude_expsyms=$lt_exclude_expsyms
15744
15745 # Symbols that must always be exported.
15746 include_expsyms=$lt_include_expsyms
15747
15748 # Commands necessary for linking programs (against libraries) with templates.
15749 prelink_cmds=$lt_prelink_cmds
15750
15751 # Commands necessary for finishing linking programs.
15752 postlink_cmds=$lt_postlink_cmds
15753
15754 # Specify filename containing input files.
15755 file_list_spec=$lt_file_list_spec
15756
15757 # How to hardcode a shared library path into an executable.
15758 hardcode_action=$hardcode_action
15759
15760 # ### END LIBTOOL CONFIG
15761
15762 _LT_EOF
15763
15764   case $host_os in
15765   aix3*)
15766     cat <<\_LT_EOF >> "$cfgfile"
15767 # AIX sometimes has problems with the GCC collect2 program.  For some
15768 # reason, if we set the COLLECT_NAMES environment variable, the problems
15769 # vanish in a puff of smoke.
15770 if test "X${COLLECT_NAMES+set}" != Xset; then
15771   COLLECT_NAMES=
15772   export COLLECT_NAMES
15773 fi
15774 _LT_EOF
15775     ;;
15776   esac
15777
15778
15779 ltmain="$ac_aux_dir/ltmain.sh"
15780
15781
15782   # We use sed instead of cat because bash on DJGPP gets confused if
15783   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15784   # text mode, it properly converts lines to CR/LF.  This bash problem
15785   # is reportedly fixed, but why not run on old versions too?
15786   sed '$q' "$ltmain" >> "$cfgfile" \
15787      || (rm -f "$cfgfile"; exit 1)
15788
15789   if test x"$xsi_shell" = xyes; then
15790   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15791 func_dirname ()\
15792 {\
15793 \    case ${1} in\
15794 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15795 \      *  ) func_dirname_result="${3}" ;;\
15796 \    esac\
15797 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15798   && mv -f "$cfgfile.tmp" "$cfgfile" \
15799     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15800 test 0 -eq $? || _lt_function_replace_fail=:
15801
15802
15803   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15804 func_basename ()\
15805 {\
15806 \    func_basename_result="${1##*/}"\
15807 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15808   && mv -f "$cfgfile.tmp" "$cfgfile" \
15809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15810 test 0 -eq $? || _lt_function_replace_fail=:
15811
15812
15813   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15814 func_dirname_and_basename ()\
15815 {\
15816 \    case ${1} in\
15817 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15818 \      *  ) func_dirname_result="${3}" ;;\
15819 \    esac\
15820 \    func_basename_result="${1##*/}"\
15821 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15822   && mv -f "$cfgfile.tmp" "$cfgfile" \
15823     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15824 test 0 -eq $? || _lt_function_replace_fail=:
15825
15826
15827   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15828 func_stripname ()\
15829 {\
15830 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15831 \    # positional parameters, so assign one to ordinary parameter first.\
15832 \    func_stripname_result=${3}\
15833 \    func_stripname_result=${func_stripname_result#"${1}"}\
15834 \    func_stripname_result=${func_stripname_result%"${2}"}\
15835 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15836   && mv -f "$cfgfile.tmp" "$cfgfile" \
15837     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15838 test 0 -eq $? || _lt_function_replace_fail=:
15839
15840
15841   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15842 func_split_long_opt ()\
15843 {\
15844 \    func_split_long_opt_name=${1%%=*}\
15845 \    func_split_long_opt_arg=${1#*=}\
15846 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15847   && mv -f "$cfgfile.tmp" "$cfgfile" \
15848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15849 test 0 -eq $? || _lt_function_replace_fail=:
15850
15851
15852   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15853 func_split_short_opt ()\
15854 {\
15855 \    func_split_short_opt_arg=${1#??}\
15856 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15857 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15858   && mv -f "$cfgfile.tmp" "$cfgfile" \
15859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15860 test 0 -eq $? || _lt_function_replace_fail=:
15861
15862
15863   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15864 func_lo2o ()\
15865 {\
15866 \    case ${1} in\
15867 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15868 \      *)    func_lo2o_result=${1} ;;\
15869 \    esac\
15870 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15871   && mv -f "$cfgfile.tmp" "$cfgfile" \
15872     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15873 test 0 -eq $? || _lt_function_replace_fail=:
15874
15875
15876   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15877 func_xform ()\
15878 {\
15879     func_xform_result=${1%.*}.lo\
15880 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15881   && mv -f "$cfgfile.tmp" "$cfgfile" \
15882     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15883 test 0 -eq $? || _lt_function_replace_fail=:
15884
15885
15886   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15887 func_arith ()\
15888 {\
15889     func_arith_result=$(( $* ))\
15890 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15891   && mv -f "$cfgfile.tmp" "$cfgfile" \
15892     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15893 test 0 -eq $? || _lt_function_replace_fail=:
15894
15895
15896   sed -e '/^func_len ()$/,/^} # func_len /c\
15897 func_len ()\
15898 {\
15899     func_len_result=${#1}\
15900 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15901   && mv -f "$cfgfile.tmp" "$cfgfile" \
15902     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15903 test 0 -eq $? || _lt_function_replace_fail=:
15904
15905 fi
15906
15907 if test x"$lt_shell_append" = xyes; then
15908   sed -e '/^func_append ()$/,/^} # func_append /c\
15909 func_append ()\
15910 {\
15911     eval "${1}+=\\${2}"\
15912 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15913   && mv -f "$cfgfile.tmp" "$cfgfile" \
15914     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15915 test 0 -eq $? || _lt_function_replace_fail=:
15916
15917
15918   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15919 func_append_quoted ()\
15920 {\
15921 \    func_quote_for_eval "${2}"\
15922 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15923 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15924   && mv -f "$cfgfile.tmp" "$cfgfile" \
15925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15926 test 0 -eq $? || _lt_function_replace_fail=:
15927
15928
15929   # Save a `func_append' function call where possible by direct use of '+='
15930   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15931     && mv -f "$cfgfile.tmp" "$cfgfile" \
15932       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15933   test 0 -eq $? || _lt_function_replace_fail=:
15934 else
15935   # Save a `func_append' function call even when '+=' is not available
15936   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15937     && mv -f "$cfgfile.tmp" "$cfgfile" \
15938       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15939   test 0 -eq $? || _lt_function_replace_fail=:
15940 fi
15941
15942 if test x"$_lt_function_replace_fail" = x":"; then
15943   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15944 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15945 fi
15946
15947
15948    mv -f "$cfgfile" "$ofile" ||
15949     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15950   chmod +x "$ofile"
15951
15952  ;;
15953     "tests/test-discoverer.sh":F) chmod a+x tests/test-discoverer.sh ;;
15954
15955   esac
15956 done # for ac_tag
15957
15958
15959 as_fn_exit 0
15960 _ACEOF
15961 ac_clean_files=$ac_clean_files_save
15962
15963 test $ac_write_fail = 0 ||
15964   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15965
15966
15967 # configure is writing to config.log, and then calls config.status.
15968 # config.status does its own redirection, appending to config.log.
15969 # Unfortunately, on DOS this fails, as config.log is still kept open
15970 # by configure, so config.status won't be able to write to it; its
15971 # output is simply discarded.  So we exec the FD to /dev/null,
15972 # effectively closing config.log, so it can be properly (re)opened and
15973 # appended to by config.status.  When coming back to configure, we
15974 # need to make the FD available again.
15975 if test "$no_create" != yes; then
15976   ac_cs_success=:
15977   ac_config_status_args=
15978   test "$silent" = yes &&
15979     ac_config_status_args="$ac_config_status_args --quiet"
15980   exec 5>/dev/null
15981   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15982   exec 5>>config.log
15983   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15984   # would make configure fail if this is the last instruction.
15985   $ac_cs_success || as_fn_exit 1
15986 fi
15987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15988   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15989 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15990 fi
15991
15992
15993 echo
15994 echo 'Configuration status:'
15995 echo
15996 echo "GObject-Introspection:                   $found_introspection"
15997 echo "VALA bindings:                           $have_vapigen"
15998 echo "Default metadata backend:                $with_default_metadata_backend"
15999 echo "Default metadata backend directory:      $with_default_metadata_backend_dir"
16000 echo "Build GStreamer metadata backend:        $enable_gstreamer_metadata_backend"
16001 echo "Build legacy GStreamer metadata backend: $enable_legacy_gstreamer_metadata_backend"
16002 echo