Updated GUPnP-DLNA version to 0.10.0 (a245d94)
[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.0.
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.0'
655 PACKAGE_STRING='gupnp-dlna 0.10.0'
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 GLIB_PREFIX
701 GTK_DOC_USE_REBASE_FALSE
702 GTK_DOC_USE_REBASE_TRUE
703 GTK_DOC_USE_LIBTOOL_FALSE
704 GTK_DOC_USE_LIBTOOL_TRUE
705 GTK_DOC_BUILD_PDF_FALSE
706 GTK_DOC_BUILD_PDF_TRUE
707 GTK_DOC_BUILD_HTML_FALSE
708 GTK_DOC_BUILD_HTML_TRUE
709 ENABLE_GTK_DOC_FALSE
710 ENABLE_GTK_DOC_TRUE
711 GTKDOC_DEPS_LIBS
712 GTKDOC_DEPS_CFLAGS
713 HTML_DIR
714 GTKDOC_MKPDF
715 GTKDOC_REBASE
716 GTKDOC_CHECK
717 HAVE_VAPIGEN_FALSE
718 HAVE_VAPIGEN_TRUE
719 VAPIGEN
720 HAVE_INTROSPECTION_FALSE
721 HAVE_INTROSPECTION_TRUE
722 INTROSPECTION_MAKEFILE
723 INTROSPECTION_LIBS
724 INTROSPECTION_CFLAGS
725 INTROSPECTION_TYPELIBDIR
726 INTROSPECTION_GIRDIR
727 INTROSPECTION_GENERATE
728 INTROSPECTION_COMPILER
729 INTROSPECTION_SCANNER
730 GMODULE_LIBS
731 GMODULE_CFLAGS
732 GOBJECT_LIBS
733 GOBJECT_CFLAGS
734 GLIB_LIBS
735 GLIB_CFLAGS
736 GUPNP_DLNA_METADATA_BACKEND_CFLAGS
737 METADATA_DIRECTORY
738 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE
739 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE
740 GST_LEGACY_MAJORMINOR
741 GST_PBU_LEGACY_LIBS
742 GST_PBU_LEGACY_CFLAGS
743 GST_LEGACY_LIBS
744 GST_LEGACY_CFLAGS
745 GSTREAMER_METADATA_BACKEND_ENABLED_FALSE
746 GSTREAMER_METADATA_BACKEND_ENABLED_TRUE
747 GST_MAJORMINOR
748 GST_PBU_LIBS
749 GST_PBU_CFLAGS
750 GST_LIBS
751 GST_CFLAGS
752 LIBXML_LIBS
753 LIBXML_CFLAGS
754 PKG_CONFIG_LIBDIR
755 PKG_CONFIG_PATH
756 PKG_CONFIG
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 MANIFEST_TOOL
763 RANLIB
764 ac_ct_AR
765 AR
766 LN_S
767 NM
768 ac_ct_DUMPBIN
769 DUMPBIN
770 LD
771 FGREP
772 SED
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 LIBTOOL
782 OBJDUMP
783 DLLTOOL
784 AS
785 EGREP
786 GREP
787 CPP
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 am__nodep
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__quote
796 am__include
797 DEPDIR
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 GUPNP_DLNA_VERSION_INFO
806 AM_BACKSLASH
807 AM_DEFAULT_VERBOSITY
808 AM_DEFAULT_V
809 AM_V
810 MAINT
811 MAINTAINER_MODE_FALSE
812 MAINTAINER_MODE_TRUE
813 am__untar
814 am__tar
815 AMTAR
816 am__leading_dot
817 SET_MAKE
818 AWK
819 mkdir_p
820 MKDIR_P
821 INSTALL_STRIP_PROGRAM
822 STRIP
823 install_sh
824 MAKEINFO
825 AUTOHEADER
826 AUTOMAKE
827 AUTOCONF
828 ACLOCAL
829 VERSION
830 PACKAGE
831 CYGPATH_W
832 am__isrc
833 INSTALL_DATA
834 INSTALL_SCRIPT
835 INSTALL_PROGRAM
836 target_alias
837 host_alias
838 build_alias
839 LIBS
840 ECHO_T
841 ECHO_N
842 ECHO_C
843 DEFS
844 mandir
845 localedir
846 libdir
847 psdir
848 pdfdir
849 dvidir
850 htmldir
851 infodir
852 docdir
853 oldincludedir
854 includedir
855 localstatedir
856 sharedstatedir
857 sysconfdir
858 datadir
859 datarootdir
860 libexecdir
861 sbindir
862 bindir
863 program_transform_name
864 prefix
865 exec_prefix
866 PACKAGE_URL
867 PACKAGE_BUGREPORT
868 PACKAGE_STRING
869 PACKAGE_VERSION
870 PACKAGE_TARNAME
871 PACKAGE_NAME
872 PATH_SEPARATOR
873 SHELL'
874 ac_subst_files=''
875 ac_user_opts='
876 enable_option_checking
877 enable_maintainer_mode
878 enable_silent_rules
879 enable_dependency_tracking
880 enable_shared
881 enable_static
882 with_pic
883 enable_fast_install
884 with_gnu_ld
885 with_sysroot
886 enable_libtool_lock
887 with_default_metadata_backend
888 enable_gstreamer_metadata_backend
889 enable_legacy_gstreamer_metadata_backend
890 with_default_metadata_backend_dir
891 enable_debug
892 enable_introspection
893 with_html_dir
894 enable_gtk_doc
895 enable_gtk_doc_html
896 enable_gtk_doc_pdf
897 '
898       ac_precious_vars='build_alias
899 host_alias
900 target_alias
901 CC
902 CFLAGS
903 LDFLAGS
904 LIBS
905 CPPFLAGS
906 CPP
907 PKG_CONFIG
908 PKG_CONFIG_PATH
909 PKG_CONFIG_LIBDIR
910 LIBXML_CFLAGS
911 LIBXML_LIBS
912 GST_CFLAGS
913 GST_LIBS
914 GST_PBU_CFLAGS
915 GST_PBU_LIBS
916 GST_LEGACY_CFLAGS
917 GST_LEGACY_LIBS
918 GST_PBU_LEGACY_CFLAGS
919 GST_PBU_LEGACY_LIBS
920 GLIB_CFLAGS
921 GLIB_LIBS
922 GOBJECT_CFLAGS
923 GOBJECT_LIBS
924 GMODULE_CFLAGS
925 GMODULE_LIBS
926 GTKDOC_DEPS_CFLAGS
927 GTKDOC_DEPS_LIBS'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *=)   ac_optarg= ;;
992   *)    ac_optarg=yes ;;
993   esac
994
995   # Accept the important Cygnus configure options, so we can diagnose typos.
996
997   case $ac_dashdash$ac_option in
998   --)
999     ac_dashdash=yes ;;
1000
1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002     ac_prev=bindir ;;
1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004     bindir=$ac_optarg ;;
1005
1006   -build | --build | --buil | --bui | --bu)
1007     ac_prev=build_alias ;;
1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009     build_alias=$ac_optarg ;;
1010
1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013     ac_prev=cache_file ;;
1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016     cache_file=$ac_optarg ;;
1017
1018   --config-cache | -C)
1019     cache_file=config.cache ;;
1020
1021   -datadir | --datadir | --datadi | --datad)
1022     ac_prev=datadir ;;
1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024     datadir=$ac_optarg ;;
1025
1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027   | --dataroo | --dataro | --datar)
1028     ac_prev=datarootdir ;;
1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031     datarootdir=$ac_optarg ;;
1032
1033   -disable-* | --disable-*)
1034     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037       as_fn_error $? "invalid feature name: $ac_useropt"
1038     ac_useropt_orig=$ac_useropt
1039     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040     case $ac_user_opts in
1041       *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045          ac_unrecognized_sep=', ';;
1046     esac
1047     eval enable_$ac_useropt=no ;;
1048
1049   -docdir | --docdir | --docdi | --doc | --do)
1050     ac_prev=docdir ;;
1051   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052     docdir=$ac_optarg ;;
1053
1054   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055     ac_prev=dvidir ;;
1056   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057     dvidir=$ac_optarg ;;
1058
1059   -enable-* | --enable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error $? "invalid feature name: $ac_useropt"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219     ac_prev=sbindir ;;
1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221   | --sbi=* | --sb=*)
1222     sbindir=$ac_optarg ;;
1223
1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226   | --sharedst | --shareds | --shared | --share | --shar \
1227   | --sha | --sh)
1228     ac_prev=sharedstatedir ;;
1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232   | --sha=* | --sh=*)
1233     sharedstatedir=$ac_optarg ;;
1234
1235   -site | --site | --sit)
1236     ac_prev=site ;;
1237   -site=* | --site=* | --sit=*)
1238     site=$ac_optarg ;;
1239
1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241     ac_prev=srcdir ;;
1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243     srcdir=$ac_optarg ;;
1244
1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246   | --syscon | --sysco | --sysc | --sys | --sy)
1247     ac_prev=sysconfdir ;;
1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250     sysconfdir=$ac_optarg ;;
1251
1252   -target | --target | --targe | --targ | --tar | --ta | --t)
1253     ac_prev=target_alias ;;
1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255     target_alias=$ac_optarg ;;
1256
1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258     verbose=yes ;;
1259
1260   -version | --version | --versio | --versi | --vers | -V)
1261     ac_init_version=: ;;
1262
1263   -with-* | --with-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       as_fn_error $? "invalid package name: $ac_useropt"
1268     ac_useropt_orig=$ac_useropt
1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270     case $ac_user_opts in
1271       *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275          ac_unrecognized_sep=', ';;
1276     esac
1277     eval with_$ac_useropt=\$ac_optarg ;;
1278
1279   -without-* | --without-*)
1280     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283       as_fn_error $? "invalid package name: $ac_useropt"
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval with_$ac_useropt=no ;;
1294
1295   --x)
1296     # Obsolete; use --with-x.
1297     with_x=yes ;;
1298
1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300   | --x-incl | --x-inc | --x-in | --x-i)
1301     ac_prev=x_includes ;;
1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304     x_includes=$ac_optarg ;;
1305
1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308     ac_prev=x_libraries ;;
1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311     x_libraries=$ac_optarg ;;
1312
1313   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1315     ;;
1316
1317   *=*)
1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319     # Reject names that are not valid shell variable names.
1320     case $ac_envvar in #(
1321       '' | [0-9]* | *[!_$as_cr_alnum]* )
1322       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323     esac
1324     eval $ac_envvar=\$ac_optarg
1325     export $ac_envvar ;;
1326
1327   *)
1328     # FIXME: should be removed in autoconf 3.0.
1329     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333     ;;
1334
1335   esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340   as_fn_error $? "missing argument to $ac_option"
1341 fi
1342
1343 if test -n "$ac_unrecognized_opts"; then
1344   case $enable_option_checking in
1345     no) ;;
1346     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348   esac
1349 fi
1350
1351 # Check all directory arguments for consistency.
1352 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353                 datadir sysconfdir sharedstatedir localstatedir includedir \
1354                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355                 libdir localedir mandir
1356 do
1357   eval ac_val=\$$ac_var
1358   # Remove trailing slashes.
1359   case $ac_val in
1360     */ )
1361       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362       eval $ac_var=\$ac_val;;
1363   esac
1364   # Be sure to have absolute directory names.
1365   case $ac_val in
1366     [\\/$]* | ?:[\\/]* )  continue;;
1367     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368   esac
1369   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381   if test "x$build_alias" = x; then
1382     cross_compiling=maybe
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   as_fn_error $? "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399   as_fn_error $? "pwd does not report name of working directory"
1400
1401
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404   ac_srcdir_defaulted=yes
1405   # Try the directory containing this script, then the parent directory.
1406   ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408          X"$as_myself" : 'X\(//\)[^/]' \| \
1409          X"$as_myself" : 'X\(//\)$' \| \
1410          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\/\)[^/].*/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\).*/{
1425             s//\1/
1426             q
1427           }
1428           s/.*/./; q'`
1429   srcdir=$ac_confdir
1430   if test ! -r "$srcdir/$ac_unique_file"; then
1431     srcdir=..
1432   fi
1433 else
1434   ac_srcdir_defaulted=no
1435 fi
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 fi
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443         pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446   srcdir=.
1447 fi
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456   eval ac_env_${ac_var}_value=\$${ac_var}
1457   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1460
1461 #
1462 # Report the --help message.
1463 #
1464 if test "$ac_init_help" = "long"; then
1465   # Omit some internal or obsolete options to make the list less imposing.
1466   # This message is too long to be a string in the A/UX 3.1 sh.
1467   cat <<_ACEOF
1468 \`configure' configures gupnp-dlna 0.10.0 to adapt to many kinds of systems.
1469
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE.  See below for descriptions of some of the useful variables.
1474
1475 Defaults for the options are specified in brackets.
1476
1477 Configuration:
1478   -h, --help              display this help and exit
1479       --help=short        display options specific to this package
1480       --help=recursive    display the short help of all the included packages
1481   -V, --version           display version information and exit
1482   -q, --quiet, --silent   do not print \`checking ...' messages
1483       --cache-file=FILE   cache test results in FILE [disabled]
1484   -C, --config-cache      alias for \`--cache-file=config.cache'
1485   -n, --no-create         do not create output files
1486       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1487
1488 Installation directories:
1489   --prefix=PREFIX         install architecture-independent files in PREFIX
1490                           [$ac_default_prefix]
1491   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1492                           [PREFIX]
1493
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1498
1499 For better control, use the options below.
1500
1501 Fine tuning of the installation directories:
1502   --bindir=DIR            user executables [EPREFIX/bin]
1503   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1504   --libexecdir=DIR        program executables [EPREFIX/libexec]
1505   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1506   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1507   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1508   --libdir=DIR            object code libraries [EPREFIX/lib]
1509   --includedir=DIR        C header files [PREFIX/include]
1510   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR           info documentation [DATAROOTDIR/info]
1514   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR            man documentation [DATAROOTDIR/man]
1516   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp-dlna]
1517   --htmldir=DIR           html documentation [DOCDIR]
1518   --dvidir=DIR            dvi documentation [DOCDIR]
1519   --pdfdir=DIR            pdf documentation [DOCDIR]
1520   --psdir=DIR             ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 Program names:
1526   --program-prefix=PREFIX            prepend PREFIX to installed program names
1527   --program-suffix=SUFFIX            append SUFFIX to installed program names
1528   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1529
1530 System types:
1531   --build=BUILD     configure for building on BUILD [guessed]
1532   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1533 _ACEOF
1534 fi
1535
1536 if test -n "$ac_init_help"; then
1537   case $ac_init_help in
1538      short | recursive ) echo "Configuration of gupnp-dlna 0.10.0:";;
1539    esac
1540   cat <<\_ACEOF
1541
1542 Optional Features:
1543   --disable-option-checking  ignore unrecognized --enable/--with options
1544   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1545   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1546   --disable-maintainer-mode  disable make rules and dependencies not useful
1547                           (and sometimes confusing) to the casual installer
1548   --enable-silent-rules          less verbose build output (undo: `make V=1')
1549   --disable-silent-rules         verbose build output (undo: `make V=0')
1550   --disable-dependency-tracking  speeds up one-time build
1551   --enable-dependency-tracking   do not reject slow dependency extractors
1552   --enable-shared[=PKGS]  build shared libraries [default=yes]
1553   --enable-static[=PKGS]  build static libraries [default=yes]
1554   --enable-fast-install[=PKGS]
1555                           optimize for fast installation [default=yes]
1556   --disable-libtool-lock  avoid locking (might break parallel builds)
1557   --enable-gstreamer-metadata-backend
1558                           build a GStreamer metadata backend [default=auto]
1559   --enable-legacy-gstreamer-metadata-backend
1560                           build a GStreamer 0.10 metadata backend [default=no]
1561   --enable-debug          enable debugging [default=no]
1562   --enable-introspection=[no/auto/yes]
1563                           Enable introspection for this build
1564   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1565   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1566   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1567
1568 Optional Packages:
1569   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1570   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1571   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1572                           both]
1573   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574   --with-sysroot=DIR Search for dependent libraries within DIR
1575                         (or the compiler's sysroot if not specified).
1576   --with-default-metadata-backend=your_backend
1577                           set a default metadata backend [default=gstreamer]
1578   --with-default-metadata-backend-dir=your_directory
1579                           set a default metadata backend directory
1580                           [default=$libdir/$PACKAGE_NAME]
1581   --with-html-dir=PATH    path to installed docs
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   PKG_CONFIG  path to pkg-config utility
1593   PKG_CONFIG_PATH
1594               directories to add to pkg-config's search path
1595   PKG_CONFIG_LIBDIR
1596               path overriding pkg-config's built-in search path
1597   LIBXML_CFLAGS
1598               C compiler flags for LIBXML, overriding pkg-config
1599   LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1600   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1601   GST_LIBS    linker flags for GST, overriding pkg-config
1602   GST_PBU_CFLAGS
1603               C compiler flags for GST_PBU, overriding pkg-config
1604   GST_PBU_LIBS
1605               linker flags for GST_PBU, overriding pkg-config
1606   GST_LEGACY_CFLAGS
1607               C compiler flags for GST_LEGACY, overriding pkg-config
1608   GST_LEGACY_LIBS
1609               linker flags for GST_LEGACY, overriding pkg-config
1610   GST_PBU_LEGACY_CFLAGS
1611               C compiler flags for GST_PBU_LEGACY, overriding pkg-config
1612   GST_PBU_LEGACY_LIBS
1613               linker flags for GST_PBU_LEGACY, overriding pkg-config
1614   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1615   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1616   GOBJECT_CFLAGS
1617               C compiler flags for GOBJECT, overriding pkg-config
1618   GOBJECT_LIBS
1619               linker flags for GOBJECT, overriding pkg-config
1620   GMODULE_CFLAGS
1621               C compiler flags for GMODULE, overriding pkg-config
1622   GMODULE_LIBS
1623               linker flags for GMODULE, overriding pkg-config
1624   GTKDOC_DEPS_CFLAGS
1625               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1626   GTKDOC_DEPS_LIBS
1627               linker flags for GTKDOC_DEPS, overriding pkg-config
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>.
1633 gupnp-dlna home page: <http://www.gupnp.org/>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639   # If there are subdirs, report their specific --help.
1640   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641     test -d "$ac_dir" ||
1642       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643       continue
1644     ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650   # A ".." for each directory in $ac_dir_suffix.
1651   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652   case $ac_top_builddir_sub in
1653   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655   esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663   .)  # We are building in place.
1664     ac_srcdir=.
1665     ac_top_srcdir=$ac_top_builddir_sub
1666     ac_abs_top_srcdir=$ac_pwd ;;
1667   [\\/]* | ?:[\\/]* )  # Absolute name.
1668     ac_srcdir=$srcdir$ac_dir_suffix;
1669     ac_top_srcdir=$srcdir
1670     ac_abs_top_srcdir=$srcdir ;;
1671   *) # Relative name.
1672     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673     ac_top_srcdir=$ac_top_build_prefix$srcdir
1674     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678     cd "$ac_dir" || { ac_status=$?; continue; }
1679     # Check for guested configure.
1680     if test -f "$ac_srcdir/configure.gnu"; then
1681       echo &&
1682       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683     elif test -f "$ac_srcdir/configure"; then
1684       echo &&
1685       $SHELL "$ac_srcdir/configure" --help=recursive
1686     else
1687       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688     fi || ac_status=$?
1689     cd "$ac_pwd" || { ac_status=$?; break; }
1690   done
1691 fi
1692
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695   cat <<\_ACEOF
1696 gupnp-dlna configure 0.10.0
1697 generated by GNU Autoconf 2.69
1698
1699 Copyright (C) 2012 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703   exit
1704 fi
1705
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1709
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   rm -f conftest.$ac_objext
1717   if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_compile") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && {
1733          test -z "$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        } && test -s conftest.$ac_objext; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741         ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } > conftest.i && {
1770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771          test ! -s conftest.err
1772        }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778     ac_retval=1
1779 fi
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_try_run LINENO
1786 # ----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788 # that executables *can* be run.
1789 ac_fn_c_try_run ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_link") 2>&5
1800   ac_status=$?
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803   { { case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_try") 2>&5
1810   ac_status=$?
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; }; }; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: program exited with status $ac_status" >&5
1816        $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819        ac_retval=$ac_status
1820 fi
1821   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823   as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_run
1826
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   rm -f conftest.$ac_objext conftest$ac_exeext
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && {
1850          test -z "$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        } && test -s conftest$ac_exeext && {
1853          test "$cross_compiling" = yes ||
1854          test -x conftest$ac_exeext
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861         ac_retval=1
1862 fi
1863   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865   # interfere with the next link command; also delete a directory that is
1866   # left behind by Apple's compiler.  We do this before executing the actions.
1867   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_link
1872
1873 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists and can be compiled using the include files in
1876 # INCLUDES, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_compile ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883   $as_echo_n "(cached) " >&6
1884 else
1885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 $4
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891   eval "$3=yes"
1892 else
1893   eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_header_compile
1903
1904 # ac_fn_c_check_func LINENO FUNC VAR
1905 # ----------------------------------
1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907 ac_fn_c_check_func ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913   $as_echo_n "(cached) " >&6
1914 else
1915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1919 #define $2 innocuous_$2
1920
1921 /* System header to define __stub macros and hopefully few prototypes,
1922     which can conflict with char $2 (); below.
1923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924     <limits.h> exists even on freestanding compilers.  */
1925
1926 #ifdef __STDC__
1927 # include <limits.h>
1928 #else
1929 # include <assert.h>
1930 #endif
1931
1932 #undef $2
1933
1934 /* Override any GCC internal prototype to avoid an error.
1935    Use char because int might match the return type of a GCC
1936    builtin and then its argument prototype would still apply.  */
1937 #ifdef __cplusplus
1938 extern "C"
1939 #endif
1940 char $2 ();
1941 /* The GNU C library defines this for functions which it implements
1942     to always fail with ENOSYS.  Some functions are actually named
1943     something starting with __ and the normal name is an alias.  */
1944 #if defined __stub_$2 || defined __stub___$2
1945 choke me
1946 #endif
1947
1948 int
1949 main ()
1950 {
1951 return $2 ();
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_link "$LINENO"; then :
1957   eval "$3=yes"
1958 else
1959   eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext \
1962     conftest$ac_exeext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_func
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1973
1974 It was created by gupnp-dlna $as_me 0.10.0, which was
1975 generated by GNU Autoconf 2.69.  Invocation command line was
1976
1977   $ $0 $@
1978
1979 _ACEOF
1980 exec 5>>config.log
1981 {
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1986
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1995
1996 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1997 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2000 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2001 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2002 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2003
2004 _ASUNAME
2005
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011     $as_echo "PATH: $as_dir"
2012   done
2013 IFS=$as_save_IFS
2014
2015 } >&5
2016
2017 cat >&5 <<_ACEOF
2018
2019
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2023
2024 _ACEOF
2025
2026
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2037 do
2038   for ac_arg
2039   do
2040     case $ac_arg in
2041     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043     | -silent | --silent | --silen | --sile | --sil)
2044       continue ;;
2045     *\'*)
2046       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047     esac
2048     case $ac_pass in
2049     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050     2)
2051       as_fn_append ac_configure_args1 " '$ac_arg'"
2052       if test $ac_must_keep_next = true; then
2053         ac_must_keep_next=false # Got value, back to normal.
2054       else
2055         case $ac_arg in
2056           *=* | --config-cache | -C | -disable-* | --disable-* \
2057           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059           | -with-* | --with-* | -without-* | --without-* | --x)
2060             case "$ac_configure_args0 " in
2061               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062             esac
2063             ;;
2064           -* ) ac_must_keep_next=true ;;
2065         esac
2066       fi
2067       as_fn_append ac_configure_args " '$ac_arg'"
2068       ;;
2069     esac
2070   done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2074
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log.  We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081   # Save into config.log some information that might help in debugging.
2082   {
2083     echo
2084
2085     $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2088     echo
2089     # The following way of writing the cache mishandles newlines in values,
2090 (
2091   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092     eval ac_val=\$$ac_var
2093     case $ac_val in #(
2094     *${as_nl}*)
2095       case $ac_var in #(
2096       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098       esac
2099       case $ac_var in #(
2100       _ | IFS | as_nl) ;; #(
2101       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102       *) { eval $ac_var=; unset $ac_var;} ;;
2103       esac ;;
2104     esac
2105   done
2106   (set) 2>&1 |
2107     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108     *${as_nl}ac_space=\ *)
2109       sed -n \
2110         "s/'\''/'\''\\\\'\'''\''/g;
2111           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112       ;; #(
2113     *)
2114       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115       ;;
2116     esac |
2117     sort
2118 )
2119     echo
2120
2121     $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2124     echo
2125     for ac_var in $ac_subst_vars
2126     do
2127       eval ac_val=\$$ac_var
2128       case $ac_val in
2129       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130       esac
2131       $as_echo "$ac_var='\''$ac_val'\''"
2132     done | sort
2133     echo
2134
2135     if test -n "$ac_subst_files"; then
2136       $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2139       echo
2140       for ac_var in $ac_subst_files
2141       do
2142         eval ac_val=\$$ac_var
2143         case $ac_val in
2144         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145         esac
2146         $as_echo "$ac_var='\''$ac_val'\''"
2147       done | sort
2148       echo
2149     fi
2150
2151     if test -s confdefs.h; then
2152       $as_echo "## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##"
2155       echo
2156       cat confdefs.h
2157       echo
2158     fi
2159     test "$ac_signal" != 0 &&
2160       $as_echo "$as_me: caught signal $ac_signal"
2161     $as_echo "$as_me: exit $exit_status"
2162   } >&5
2163   rm -f core *.core core.conftest.* &&
2164     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165     exit $exit_status
2166 ' 0
2167 for ac_signal in 1 2 13 15; do
2168   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2171
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2174
2175 $as_echo "/* confdefs.h */" > confdefs.h
2176
2177 # Predefined preprocessor variables.
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2202
2203
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209   # We do not want a PATH search for config.site.
2210   case $CONFIG_SITE in #((
2211     -*)  ac_site_file1=./$CONFIG_SITE;;
2212     */*) ac_site_file1=$CONFIG_SITE;;
2213     *)   ac_site_file1=./$CONFIG_SITE;;
2214   esac
2215 elif test "x$prefix" != xNONE; then
2216   ac_site_file1=$prefix/share/config.site
2217   ac_site_file2=$prefix/etc/config.site
2218 else
2219   ac_site_file1=$ac_default_prefix/share/config.site
2220   ac_site_file2=$ac_default_prefix/etc/config.site
2221 fi
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223 do
2224   test "x$ac_site_file" = xNONE && continue
2225   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228     sed 's/^/| /' "$ac_site_file" >&5
2229     . "$ac_site_file" \
2230       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2234   fi
2235 done
2236
2237 if test -r "$cache_file"; then
2238   # Some versions of bash will fail to source /dev/null (special files
2239   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2240   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2243     case $cache_file in
2244       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245       *)                      . "./$cache_file";;
2246     esac
2247   fi
2248 else
2249   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2251   >$cache_file
2252 fi
2253
2254 # Check that the precious variables saved in the cache have kept the same
2255 # value.
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259   eval ac_new_set=\$ac_env_${ac_var}_set
2260   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261   eval ac_new_val=\$ac_env_${ac_var}_value
2262   case $ac_old_set,$ac_new_set in
2263     set,)
2264       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266       ac_cache_corrupted=: ;;
2267     ,set)
2268       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270       ac_cache_corrupted=: ;;
2271     ,);;
2272     *)
2273       if test "x$ac_old_val" != "x$ac_new_val"; then
2274         # differences in whitespace do not lead to failure.
2275         ac_old_val_w=`echo x $ac_old_val`
2276         ac_new_val_w=`echo x $ac_new_val`
2277         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280           ac_cache_corrupted=:
2281         else
2282           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284           eval $ac_var=\$ac_old_val
2285         fi
2286         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2287 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2288         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2290       fi;;
2291   esac
2292   # Pass precious variables to config.status.
2293   if test "$ac_new_set" = set; then
2294     case $ac_new_val in
2295     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296     *) ac_arg=$ac_var=$ac_new_val ;;
2297     esac
2298     case " $ac_configure_args " in
2299       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2300       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301     esac
2302   fi
2303 done
2304 if $ac_cache_corrupted; then
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 fi
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2314
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322
2323 ac_config_headers="$ac_config_headers config.h"
2324
2325
2326
2327 ac_aux_dir=
2328 for ac_dir in build-aux "$srcdir"/build-aux; do
2329   if test -f "$ac_dir/install-sh"; then
2330     ac_aux_dir=$ac_dir
2331     ac_install_sh="$ac_aux_dir/install-sh -c"
2332     break
2333   elif test -f "$ac_dir/install.sh"; then
2334     ac_aux_dir=$ac_dir
2335     ac_install_sh="$ac_aux_dir/install.sh -c"
2336     break
2337   elif test -f "$ac_dir/shtool"; then
2338     ac_aux_dir=$ac_dir
2339     ac_install_sh="$ac_aux_dir/shtool install -c"
2340     break
2341   fi
2342 done
2343 if test -z "$ac_aux_dir"; then
2344   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2345 fi
2346
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2354
2355
2356
2357 am__api_version='1.11'
2358
2359 # Find a good install program.  We prefer a C program (faster),
2360 # so one script is as good as another.  But avoid the broken or
2361 # incompatible versions:
2362 # SysV /etc/install, /usr/sbin/install
2363 # SunOS /usr/etc/install
2364 # IRIX /sbin/install
2365 # AIX /bin/install
2366 # AmigaOS /C/install, which installs bootblocks on floppy discs
2367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2370 # OS/2's system install, which has a completely different semantic
2371 # ./install, which can be erroneously created by make from ./install.sh.
2372 # Reject install programs that cannot install multiple files.
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2374 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2375 if test -z "$INSTALL"; then
2376 if ${ac_cv_path_install+:} false; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384     # Account for people who put trailing slashes in PATH elements.
2385 case $as_dir/ in #((
2386   ./ | .// | /[cC]/* | \
2387   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2388   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2389   /usr/ucb/* ) ;;
2390   *)
2391     # OSF1 and SCO ODT 3.0 have their own names for install.
2392     # Don't use installbsd from OSF since it installs stuff as root
2393     # by default.
2394     for ac_prog in ginstall scoinst install; do
2395       for ac_exec_ext in '' $ac_executable_extensions; do
2396         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2397           if test $ac_prog = install &&
2398             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399             # AIX install.  It has an incompatible calling convention.
2400             :
2401           elif test $ac_prog = install &&
2402             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403             # program-specific install script used by HP pwplus--don't use.
2404             :
2405           else
2406             rm -rf conftest.one conftest.two conftest.dir
2407             echo one > conftest.one
2408             echo two > conftest.two
2409             mkdir conftest.dir
2410             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2411               test -s conftest.one && test -s conftest.two &&
2412               test -s conftest.dir/conftest.one &&
2413               test -s conftest.dir/conftest.two
2414             then
2415               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2416               break 3
2417             fi
2418           fi
2419         fi
2420       done
2421     done
2422     ;;
2423 esac
2424
2425   done
2426 IFS=$as_save_IFS
2427
2428 rm -rf conftest.one conftest.two conftest.dir
2429
2430 fi
2431   if test "${ac_cv_path_install+set}" = set; then
2432     INSTALL=$ac_cv_path_install
2433   else
2434     # As a last resort, use the slow shell script.  Don't cache a
2435     # value for INSTALL within a source directory, because that will
2436     # break other packages using the cache if that directory is
2437     # removed, or if the value is a relative name.
2438     INSTALL=$ac_install_sh
2439   fi
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2442 $as_echo "$INSTALL" >&6; }
2443
2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2445 # It thinks the first close brace ends the variable substitution.
2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2447
2448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2449
2450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2453 $as_echo_n "checking whether build environment is sane... " >&6; }
2454 # Just in case
2455 sleep 1
2456 echo timestamp > conftest.file
2457 # Reject unsafe characters in $srcdir or the absolute working directory
2458 # name.  Accept space and tab only in the latter.
2459 am_lf='
2460 '
2461 case `pwd` in
2462   *[\\\"\#\$\&\'\`$am_lf]*)
2463     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2464 esac
2465 case $srcdir in
2466   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2467     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2468 esac
2469
2470 # Do `set' in a subshell so we don't clobber the current shell's
2471 # arguments.  Must try -L first in case configure is actually a
2472 # symlink; some systems play weird games with the mod time of symlinks
2473 # (eg FreeBSD returns the mod time of the symlink's containing
2474 # directory).
2475 if (
2476    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2477    if test "$*" = "X"; then
2478       # -L didn't work.
2479       set X `ls -t "$srcdir/configure" conftest.file`
2480    fi
2481    rm -f conftest.file
2482    if test "$*" != "X $srcdir/configure conftest.file" \
2483       && test "$*" != "X conftest.file $srcdir/configure"; then
2484
2485       # If neither matched, then we have a broken ls.  This can happen
2486       # if, for instance, CONFIG_SHELL is bash and it inherits a
2487       # broken ls alias from the environment.  This has actually
2488       # happened.  Such a system could not be considered "sane".
2489       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2490 alias in your environment" "$LINENO" 5
2491    fi
2492
2493    test "$2" = conftest.file
2494    )
2495 then
2496    # Ok.
2497    :
2498 else
2499    as_fn_error $? "newly created file is older than distributed files!
2500 Check your system clock" "$LINENO" 5
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2503 $as_echo "yes" >&6; }
2504 test "$program_prefix" != NONE &&
2505   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2506 # Use a double $ so make ignores it.
2507 test "$program_suffix" != NONE &&
2508   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2509 # Double any \ or $.
2510 # By default was `s,x,x', remove it if useless.
2511 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2512 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2513
2514 # expand $ac_aux_dir to an absolute path
2515 am_aux_dir=`cd $ac_aux_dir && pwd`
2516
2517 if test x"${MISSING+set}" != xset; then
2518   case $am_aux_dir in
2519   *\ * | *\     *)
2520     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2521   *)
2522     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2523   esac
2524 fi
2525 # Use eval to expand $SHELL
2526 if eval "$MISSING --run true"; then
2527   am_missing_run="$MISSING --run "
2528 else
2529   am_missing_run=
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2531 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2532 fi
2533
2534 if test x"${install_sh}" != xset; then
2535   case $am_aux_dir in
2536   *\ * | *\     *)
2537     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2538   *)
2539     install_sh="\${SHELL} $am_aux_dir/install-sh"
2540   esac
2541 fi
2542
2543 # Installed binaries are usually stripped using `strip' when the user
2544 # run `make install-strip'.  However `strip' might not be the right
2545 # tool to use in cross-compilation environments, therefore Automake
2546 # will honor the `STRIP' environment variable to overrule this program.
2547 if test "$cross_compiling" != no; then
2548   if test -n "$ac_tool_prefix"; then
2549   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}strip; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_STRIP+:} false; then :
2554   $as_echo_n "(cached) " >&6
2555 else
2556   if test -n "$STRIP"; then
2557   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564     for ac_exec_ext in '' $ac_executable_extensions; do
2565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571   done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 STRIP=$ac_cv_prog_STRIP
2577 if test -n "$STRIP"; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2579 $as_echo "$STRIP" >&6; }
2580 else
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 fi
2587 if test -z "$ac_cv_prog_STRIP"; then
2588   ac_ct_STRIP=$STRIP
2589   # Extract the first word of "strip", so it can be a program name with args.
2590 set dummy strip; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test -n "$ac_ct_STRIP"; then
2597   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604     for ac_exec_ext in '' $ac_executable_extensions; do
2605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606     ac_cv_prog_ac_ct_STRIP="strip"
2607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611   done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2617 if test -n "$ac_ct_STRIP"; then
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2619 $as_echo "$ac_ct_STRIP" >&6; }
2620 else
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625   if test "x$ac_ct_STRIP" = x; then
2626     STRIP=":"
2627   else
2628     case $cross_compiling:$ac_tool_warned in
2629 yes:)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634     STRIP=$ac_ct_STRIP
2635   fi
2636 else
2637   STRIP="$ac_cv_prog_STRIP"
2638 fi
2639
2640 fi
2641 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2642
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2644 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2645 if test -z "$MKDIR_P"; then
2646   if ${ac_cv_path_mkdir+:} false; then :
2647   $as_echo_n "(cached) " >&6
2648 else
2649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_prog in mkdir gmkdir; do
2655          for ac_exec_ext in '' $ac_executable_extensions; do
2656            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2657            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2658              'mkdir (GNU coreutils) '* | \
2659              'mkdir (coreutils) '* | \
2660              'mkdir (fileutils) '4.1*)
2661                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2662                break 3;;
2663            esac
2664          done
2665        done
2666   done
2667 IFS=$as_save_IFS
2668
2669 fi
2670
2671   test -d ./--version && rmdir ./--version
2672   if test "${ac_cv_path_mkdir+set}" = set; then
2673     MKDIR_P="$ac_cv_path_mkdir -p"
2674   else
2675     # As a last resort, use the slow shell script.  Don't cache a
2676     # value for MKDIR_P within a source directory, because that will
2677     # break other packages using the cache if that directory is
2678     # removed, or if the value is a relative name.
2679     MKDIR_P="$ac_install_sh -d"
2680   fi
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2683 $as_echo "$MKDIR_P" >&6; }
2684
2685 mkdir_p="$MKDIR_P"
2686 case $mkdir_p in
2687   [\\/$]* | ?:[\\/]*) ;;
2688   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2689 esac
2690
2691 for ac_prog in gawk mawk nawk awk
2692 do
2693   # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_AWK+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test -n "$AWK"; then
2701   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708     for ac_exec_ext in '' $ac_executable_extensions; do
2709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710     ac_cv_prog_AWK="$ac_prog"
2711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715   done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 AWK=$ac_cv_prog_AWK
2721 if test -n "$AWK"; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2723 $as_echo "$AWK" >&6; }
2724 else
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730   test -n "$AWK" && break
2731 done
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2735 set x ${MAKE-make}
2736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2737 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   cat >conftest.make <<\_ACEOF
2741 SHELL = /bin/sh
2742 all:
2743         @echo '@@@%%%=$(MAKE)=@@@%%%'
2744 _ACEOF
2745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2747   *@@@%%%=?*=@@@%%%*)
2748     eval ac_cv_prog_make_${ac_make}_set=yes;;
2749   *)
2750     eval ac_cv_prog_make_${ac_make}_set=no;;
2751 esac
2752 rm -f conftest.make
2753 fi
2754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2756 $as_echo "yes" >&6; }
2757   SET_MAKE=
2758 else
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761   SET_MAKE="MAKE=${MAKE-make}"
2762 fi
2763
2764 rm -rf .tst 2>/dev/null
2765 mkdir .tst 2>/dev/null
2766 if test -d .tst; then
2767   am__leading_dot=.
2768 else
2769   am__leading_dot=_
2770 fi
2771 rmdir .tst 2>/dev/null
2772
2773 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2774   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2775   # is not polluted with repeated "-I."
2776   am__isrc=' -I$(srcdir)'
2777   # test to see if srcdir already configured
2778   if test -f $srcdir/config.status; then
2779     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2780   fi
2781 fi
2782
2783 # test whether we have cygpath
2784 if test -z "$CYGPATH_W"; then
2785   if (cygpath --version) >/dev/null 2>/dev/null; then
2786     CYGPATH_W='cygpath -w'
2787   else
2788     CYGPATH_W=echo
2789   fi
2790 fi
2791
2792
2793 # Define the identity of the package.
2794  PACKAGE='gupnp-dlna'
2795  VERSION='0.10.0'
2796
2797
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE "$PACKAGE"
2800 _ACEOF
2801
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define VERSION "$VERSION"
2805 _ACEOF
2806
2807 # Some tools Automake needs.
2808
2809 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2810
2811
2812 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2813
2814
2815 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2816
2817
2818 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2819
2820
2821 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2822
2823 # We need awk for the "check" target.  The system "awk" is bad on
2824 # some platforms.
2825 # Always define AMTAR for backward compatibility.  Yes, it's still used
2826 # in the wild :-(  We should find a proper way to deprecate it ...
2827 AMTAR='$${TAR-tar}'
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2831 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2832 # Loop over all known methods to create a tar archive until one works.
2833 _am_tools='gnutar plaintar pax cpio none'
2834 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2835 # Do not fold the above two line into one, because Tru64 sh and
2836 # Solaris sh will not grok spaces in the rhs of `-'.
2837 for _am_tool in $_am_tools
2838 do
2839   case $_am_tool in
2840   gnutar)
2841     for _am_tar in tar gnutar gtar;
2842     do
2843       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2844    ($_am_tar --version) >&5 2>&5
2845    ac_status=$?
2846    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847    (exit $ac_status); } && break
2848     done
2849     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2850     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2851     am__untar="$_am_tar -xf -"
2852     ;;
2853   plaintar)
2854     # Must skip GNU tar: if it does not support --format= it doesn't create
2855     # ustar tarball either.
2856     (tar --version) >/dev/null 2>&1 && continue
2857     am__tar='tar chf - "$$tardir"'
2858     am__tar_='tar chf - "$tardir"'
2859     am__untar='tar xf -'
2860     ;;
2861   pax)
2862     am__tar='pax -L -x ustar -w "$$tardir"'
2863     am__tar_='pax -L -x ustar -w "$tardir"'
2864     am__untar='pax -r'
2865     ;;
2866   cpio)
2867     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2868     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2869     am__untar='cpio -i -H ustar -d'
2870     ;;
2871   none)
2872     am__tar=false
2873     am__tar_=false
2874     am__untar=false
2875     ;;
2876   esac
2877
2878   # If the value was cached, stop now.  We just wanted to have am__tar
2879   # and am__untar set.
2880   test -n "${am_cv_prog_tar_ustar}" && break
2881
2882   # tar/untar a dummy directory, and stop if the command works
2883   rm -rf conftest.dir
2884   mkdir conftest.dir
2885   echo GrepMe > conftest.dir/file
2886   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2887    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2888    ac_status=$?
2889    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890    (exit $ac_status); }
2891   rm -rf conftest.dir
2892   if test -s conftest.tar; then
2893     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2894    ($am__untar <conftest.tar) >&5 2>&5
2895    ac_status=$?
2896    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897    (exit $ac_status); }
2898     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2899   fi
2900 done
2901 rm -rf conftest.dir
2902
2903 if ${am_cv_prog_tar_ustar+:} false; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   am_cv_prog_tar_ustar=$_am_tool
2907 fi
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2910 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2911
2912
2913
2914
2915
2916
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2918 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2919     # Check whether --enable-maintainer-mode was given.
2920 if test "${enable_maintainer_mode+set}" = set; then :
2921   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2922 else
2923   USE_MAINTAINER_MODE=yes
2924 fi
2925
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2927 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2928    if test $USE_MAINTAINER_MODE = yes; then
2929   MAINTAINER_MODE_TRUE=
2930   MAINTAINER_MODE_FALSE='#'
2931 else
2932   MAINTAINER_MODE_TRUE='#'
2933   MAINTAINER_MODE_FALSE=
2934 fi
2935
2936   MAINT=$MAINTAINER_MODE_TRUE
2937
2938
2939
2940 # Check whether --enable-silent-rules was given.
2941 if test "${enable_silent_rules+set}" = set; then :
2942   enableval=$enable_silent_rules;
2943 fi
2944
2945 case $enable_silent_rules in
2946 yes) AM_DEFAULT_VERBOSITY=0;;
2947 no)  AM_DEFAULT_VERBOSITY=1;;
2948 *)   AM_DEFAULT_VERBOSITY=0;;
2949 esac
2950 am_make=${MAKE-make}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2952 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2953 if ${am_cv_make_support_nested_variables+:} false; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   if $as_echo 'TRUE=$(BAR$(V))
2957 BAR0=false
2958 BAR1=true
2959 V=1
2960 am__doit:
2961         @$(TRUE)
2962 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2963   am_cv_make_support_nested_variables=yes
2964 else
2965   am_cv_make_support_nested_variables=no
2966 fi
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2969 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2970 if test $am_cv_make_support_nested_variables = yes; then
2971     AM_V='$(V)'
2972   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2973 else
2974   AM_V=$AM_DEFAULT_VERBOSITY
2975   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2976 fi
2977 AM_BACKSLASH='\'
2978
2979
2980 GUPNP_DLNA_CURRENT=3
2981
2982 GUPNP_DLNA_REVISION=0
2983
2984 GUPNP_DLNA_AGE=0
2985
2986 GUPNP_DLNA_VERSION_INFO="$GUPNP_DLNA_CURRENT:$GUPNP_DLNA_REVISION:$GUPNP_DLNA_AGE"
2987
2988
2989 # Check for programs
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$CC"; then
3004   ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 fi
3034 if test -z "$ac_cv_prog_CC"; then
3035   ac_ct_CC=$CC
3036   # Extract the first word of "gcc", so it can be a program name with args.
3037 set dummy gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test -n "$ac_ct_CC"; then
3044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_exec_ext in '' $ac_executable_extensions; do
3052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053     ac_cv_prog_ac_ct_CC="gcc"
3054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055     break 2
3056   fi
3057 done
3058   done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 $as_echo "$ac_ct_CC" >&6; }
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072   if test "x$ac_ct_CC" = x; then
3073     CC=""
3074   else
3075     case $cross_compiling:$ac_tool_warned in
3076 yes:)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3080 esac
3081     CC=$ac_ct_CC
3082   fi
3083 else
3084   CC="$ac_cv_prog_CC"
3085 fi
3086
3087 if test -z "$CC"; then
3088           if test -n "$ac_tool_prefix"; then
3089     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104     for ac_exec_ext in '' $ac_executable_extensions; do
3105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106     ac_cv_prog_CC="${ac_tool_prefix}cc"
3107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126   fi
3127 fi
3128 if test -z "$CC"; then
3129   # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139   ac_prog_rejected=no
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145     for ac_exec_ext in '' $ac_executable_extensions; do
3146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148        ac_prog_rejected=yes
3149        continue
3150      fi
3151     ac_cv_prog_CC="cc"
3152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156   done
3157 IFS=$as_save_IFS
3158
3159 if test $ac_prog_rejected = yes; then
3160   # We found a bogon in the path, so make sure we never use it.
3161   set dummy $ac_cv_prog_CC
3162   shift
3163   if test $# != 0; then
3164     # We chose a different compiler from the bogus one.
3165     # However, it has the same basename, so the bogon will be chosen
3166     # first if we set CC to just the basename; use the full file name.
3167     shift
3168     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3169   fi
3170 fi
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$CC"; then
3185   if test -n "$ac_tool_prefix"; then
3186   for ac_prog in cl.exe
3187   do
3188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$CC"; then
3196   ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 CC=$ac_cv_prog_CC
3216 if test -n "$CC"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225     test -n "$CC" && break
3226   done
3227 fi
3228 if test -z "$CC"; then
3229   ac_ct_CC=$CC
3230   for ac_prog in cl.exe
3231 do
3232   # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   if test -n "$ac_ct_CC"; then
3240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247     for ac_exec_ext in '' $ac_executable_extensions; do
3248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249     ac_cv_prog_ac_ct_CC="$ac_prog"
3250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254   done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269   test -n "$ac_ct_CC" && break
3270 done
3271
3272   if test "x$ac_ct_CC" = x; then
3273     CC=""
3274   else
3275     case $cross_compiling:$ac_tool_warned in
3276 yes:)
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3280 esac
3281     CC=$ac_ct_CC
3282   fi
3283 fi
3284
3285 fi
3286
3287
3288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details" "$LINENO" 5; }
3292
3293 # Provide some information about the compiler.
3294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3295 set X $ac_compile
3296 ac_compiler=$2
3297 for ac_option in --version -v -V -qversion; do
3298   { { ac_try="$ac_compiler $ac_option >&5"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3306   ac_status=$?
3307   if test -s conftest.err; then
3308     sed '10a\
3309 ... rest of stderr output deleted ...
3310          10q' conftest.err >conftest.er1
3311     cat conftest.er1 >&5
3312   fi
3313   rm -f conftest.er1 conftest.err
3314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315   test $ac_status = 0; }
3316 done
3317
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 ac_clean_files_save=$ac_clean_files
3330 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3331 # Try to create an executable without -o first, disregard a.out.
3332 # It will help us diagnose broken compilers, and finding out an intuition
3333 # of exeext.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3337
3338 # The possible output files:
3339 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3340
3341 ac_rmfiles=
3342 for ac_file in $ac_files
3343 do
3344   case $ac_file in
3345     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3347   esac
3348 done
3349 rm -f $ac_rmfiles
3350
3351 if { { ac_try="$ac_link_default"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_link_default") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }; then :
3362   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3364 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3365 # so that the user can short-circuit this test for compilers unknown to
3366 # Autoconf.
3367 for ac_file in $ac_files ''
3368 do
3369   test -f "$ac_file" || continue
3370   case $ac_file in
3371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3372         ;;
3373     [ab].out )
3374         # We found the default executable, but exeext='' is most
3375         # certainly right.
3376         break;;
3377     *.* )
3378         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3379         then :; else
3380            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381         fi
3382         # We set ac_cv_exeext here because the later test for it is not
3383         # safe: cross compilers may not add the suffix if given an `-o'
3384         # argument, so we may need to know it at that point already.
3385         # Even if this section looks crufty: it has the advantage of
3386         # actually working.
3387         break;;
3388     * )
3389         break;;
3390   esac
3391 done
3392 test "$ac_cv_exeext" = no && ac_cv_exeext=
3393
3394 else
3395   ac_file=''
3396 fi
3397 if test -z "$ac_file"; then :
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error 77 "C compiler cannot create executables
3406 See \`config.log' for more details" "$LINENO" 5; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3414 $as_echo "$ac_file" >&6; }
3415 ac_exeext=$ac_cv_exeext
3416
3417 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }; then :
3432   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 # `rm'.
3436 for ac_file in conftest.exe conftest conftest.*; do
3437   test -f "$ac_file" || continue
3438   case $ac_file in
3439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441           break;;
3442     * ) break;;
3443   esac
3444 done
3445 else
3446   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details" "$LINENO" 5; }
3450 fi
3451 rm -f conftest conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3454
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3457 ac_exeext=$EXEEXT
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h.  */
3460 #include <stdio.h>
3461 int
3462 main ()
3463 {
3464 FILE *f = fopen ("conftest.out", "w");
3465  return ferror (f) || fclose (f) != 0;
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 ac_clean_files="$ac_clean_files conftest.out"
3472 # Check that the compiler produces executables we can run.  If not, either
3473 # the compiler is broken, or we cross compile.
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3475 $as_echo_n "checking whether we are cross compiling... " >&6; }
3476 if test "$cross_compiling" != yes; then
3477   { { ac_try="$ac_link"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484   (eval "$ac_link") 2>&5
3485   ac_status=$?
3486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487   test $ac_status = 0; }
3488   if { ac_try='./conftest$ac_cv_exeext'
3489   { { case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495   (eval "$ac_try") 2>&5
3496   ac_status=$?
3497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498   test $ac_status = 0; }; }; then
3499     cross_compiling=no
3500   else
3501     if test "$cross_compiling" = maybe; then
3502         cross_compiling=yes
3503     else
3504         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details" "$LINENO" 5; }
3509     fi
3510   fi
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3513 $as_echo "$cross_compiling" >&6; }
3514
3515 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3516 ac_clean_files=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3518 $as_echo_n "checking for suffix of object files... " >&6; }
3519 if ${ac_cv_objext+:} false; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.o conftest.obj
3534 if { { ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541   (eval "$ac_compile") 2>&5
3542   ac_status=$?
3543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544   test $ac_status = 0; }; then :
3545   for ac_file in conftest.o conftest.obj conftest.*; do
3546   test -f "$ac_file" || continue;
3547   case $ac_file in
3548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3549     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3550        break;;
3551   esac
3552 done
3553 else
3554   $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of object files: cannot compile
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 fi
3562 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565 $as_echo "$ac_cv_objext" >&6; }
3566 OBJEXT=$ac_cv_objext
3567 ac_objext=$OBJEXT
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3569 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3570 if ${ac_cv_c_compiler_gnu+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579 #ifndef __GNUC__
3580        choke me
3581 #endif
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588   ac_compiler_gnu=yes
3589 else
3590   ac_compiler_gnu=no
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3594
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3597 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598 if test $ac_compiler_gnu = yes; then
3599   GCC=yes
3600 else
3601   GCC=
3602 fi
3603 ac_test_CFLAGS=${CFLAGS+set}
3604 ac_save_CFLAGS=$CFLAGS
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3606 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3607 if ${ac_cv_prog_cc_g+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   ac_save_c_werror_flag=$ac_c_werror_flag
3611    ac_c_werror_flag=yes
3612    ac_cv_prog_cc_g=no
3613    CFLAGS="-g"
3614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626   ac_cv_prog_cc_g=yes
3627 else
3628   CFLAGS=""
3629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h.  */
3631
3632 int
3633 main ()
3634 {
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641
3642 else
3643   ac_c_werror_flag=$ac_save_c_werror_flag
3644          CFLAGS="-g"
3645          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657   ac_cv_prog_cc_g=yes
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664    ac_c_werror_flag=$ac_save_c_werror_flag
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667 $as_echo "$ac_cv_prog_cc_g" >&6; }
3668 if test "$ac_test_CFLAGS" = set; then
3669   CFLAGS=$ac_save_CFLAGS
3670 elif test $ac_cv_prog_cc_g = yes; then
3671   if test "$GCC" = yes; then
3672     CFLAGS="-g -O2"
3673   else
3674     CFLAGS="-g"
3675   fi
3676 else
3677   if test "$GCC" = yes; then
3678     CFLAGS="-O2"
3679   else
3680     CFLAGS=
3681   fi
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3684 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3685 if ${ac_cv_prog_cc_c89+:} false; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   ac_cv_prog_cc_c89=no
3689 ac_save_CC=$CC
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h.  */
3692 #include <stdarg.h>
3693 #include <stdio.h>
3694 struct stat;
3695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3696 struct buf { int x; };
3697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698 static char *e (p, i)
3699      char **p;
3700      int i;
3701 {
3702   return p[i];
3703 }
3704 static char *f (char * (*g) (char **, int), char **p, ...)
3705 {
3706   char *s;
3707   va_list v;
3708   va_start (v,p);
3709   s = g (p, va_arg (v,int));
3710   va_end (v);
3711   return s;
3712 }
3713
3714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3715    function prototypes and stuff, but not '\xHH' hex character constants.
3716    These don't provoke an error unfortunately, instead are silently treated
3717    as 'x'.  The following induces an error, until -std is added to get
3718    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3719    array size at least.  It's necessary to write '\x00'==0 to get something
3720    that's true only with -std.  */
3721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722
3723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724    inside strings and character constants.  */
3725 #define FOO(x) 'x'
3726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727
3728 int test (int i, double x);
3729 struct s1 {int (*f) (int a);};
3730 struct s2 {int (*f) (double a);};
3731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732 int argc;
3733 char **argv;
3734 int
3735 main ()
3736 {
3737 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 do
3745   CC="$ac_save_CC $ac_arg"
3746   if ac_fn_c_try_compile "$LINENO"; then :
3747   ac_cv_prog_cc_c89=$ac_arg
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext
3750   test "x$ac_cv_prog_cc_c89" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC
3754
3755 fi
3756 # AC_CACHE_VAL
3757 case "x$ac_cv_prog_cc_c89" in
3758   x)
3759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 $as_echo "none needed" >&6; } ;;
3761   xno)
3762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763 $as_echo "unsupported" >&6; } ;;
3764   *)
3765     CC="$CC $ac_cv_prog_cc_c89"
3766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3768 esac
3769 if test "x$ac_cv_prog_cc_c89" != xno; then :
3770
3771 fi
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 DEPDIR="${am__leading_dot}deps"
3779
3780 ac_config_commands="$ac_config_commands depfiles"
3781
3782
3783 am_make=${MAKE-make}
3784 cat > confinc << 'END'
3785 am__doit:
3786         @echo this is the am__doit target
3787 .PHONY: am__doit
3788 END
3789 # If we don't find an include directive, just comment out the code.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3791 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3792 am__include="#"
3793 am__quote=
3794 _am_result=none
3795 # First try GNU make style include.
3796 echo "include confinc" > confmf
3797 # Ignore all kinds of additional output from `make'.
3798 case `$am_make -s -f confmf 2> /dev/null` in #(
3799 *the\ am__doit\ target*)
3800   am__include=include
3801   am__quote=
3802   _am_result=GNU
3803   ;;
3804 esac
3805 # Now try BSD make style include.
3806 if test "$am__include" = "#"; then
3807    echo '.include "confinc"' > confmf
3808    case `$am_make -s -f confmf 2> /dev/null` in #(
3809    *the\ am__doit\ target*)
3810      am__include=.include
3811      am__quote="\""
3812      _am_result=BSD
3813      ;;
3814    esac
3815 fi
3816
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3819 $as_echo "$_am_result" >&6; }
3820 rm -f confinc confmf
3821
3822 # Check whether --enable-dependency-tracking was given.
3823 if test "${enable_dependency_tracking+set}" = set; then :
3824   enableval=$enable_dependency_tracking;
3825 fi
3826
3827 if test "x$enable_dependency_tracking" != xno; then
3828   am_depcomp="$ac_aux_dir/depcomp"
3829   AMDEPBACKSLASH='\'
3830   am__nodep='_no'
3831 fi
3832  if test "x$enable_dependency_tracking" != xno; then
3833   AMDEP_TRUE=
3834   AMDEP_FALSE='#'
3835 else
3836   AMDEP_TRUE='#'
3837   AMDEP_FALSE=
3838 fi
3839
3840
3841
3842 depcc="$CC"   am_compiler_list=
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3845 $as_echo_n "checking dependency style of $depcc... " >&6; }
3846 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3850   # We make a subdir and do the tests there.  Otherwise we can end up
3851   # making bogus files that we don't know about and never remove.  For
3852   # instance it was reported that on HP-UX the gcc test will end up
3853   # making a dummy file named `D' -- because `-MD' means `put the output
3854   # in D'.
3855   rm -rf conftest.dir
3856   mkdir conftest.dir
3857   # Copy depcomp to subdir because otherwise we won't find it if we're
3858   # using a relative directory.
3859   cp "$am_depcomp" conftest.dir
3860   cd conftest.dir
3861   # We will build objects and dependencies in a subdirectory because
3862   # it helps to detect inapplicable dependency modes.  For instance
3863   # both Tru64's cc and ICC support -MD to output dependencies as a
3864   # side effect of compilation, but ICC will put the dependencies in
3865   # the current directory while Tru64 will put them in the object
3866   # directory.
3867   mkdir sub
3868
3869   am_cv_CC_dependencies_compiler_type=none
3870   if test "$am_compiler_list" = ""; then
3871      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3872   fi
3873   am__universal=false
3874   case " $depcc " in #(
3875      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3876      esac
3877
3878   for depmode in $am_compiler_list; do
3879     # Setup a source with many dependencies, because some compilers
3880     # like to wrap large dependency lists on column 80 (with \), and
3881     # we should not choose a depcomp mode which is confused by this.
3882     #
3883     # We need to recreate these files for each test, as the compiler may
3884     # overwrite some of them when testing with obscure command lines.
3885     # This happens at least with the AIX C compiler.
3886     : > sub/conftest.c
3887     for i in 1 2 3 4 5 6; do
3888       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3889       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3890       # Solaris 8's {/usr,}/bin/sh.
3891       touch sub/conftst$i.h
3892     done
3893     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3894
3895     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3896     # mode.  It turns out that the SunPro C++ compiler does not properly
3897     # handle `-M -o', and we need to detect this.  Also, some Intel
3898     # versions had trouble with output in subdirs
3899     am__obj=sub/conftest.${OBJEXT-o}
3900     am__minus_obj="-o $am__obj"
3901     case $depmode in
3902     gcc)
3903       # This depmode causes a compiler race in universal mode.
3904       test "$am__universal" = false || continue
3905       ;;
3906     nosideeffect)
3907       # after this tag, mechanisms are not by side-effect, so they'll
3908       # only be used when explicitly requested
3909       if test "x$enable_dependency_tracking" = xyes; then
3910         continue
3911       else
3912         break
3913       fi
3914       ;;
3915     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3916       # This compiler won't grok `-c -o', but also, the minuso test has
3917       # not run yet.  These depmodes are late enough in the game, and
3918       # so weak that their functioning should not be impacted.
3919       am__obj=conftest.${OBJEXT-o}
3920       am__minus_obj=
3921       ;;
3922     none) break ;;
3923     esac
3924     if depmode=$depmode \
3925        source=sub/conftest.c object=$am__obj \
3926        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3927        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3928          >/dev/null 2>conftest.err &&
3929        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3930        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3932        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933       # icc doesn't choke on unknown options, it will just issue warnings
3934       # or remarks (even with -Werror).  So we grep stderr for any message
3935       # that says an option was ignored or not supported.
3936       # When given -MP, icc 7.0 and 7.1 complain thusly:
3937       #   icc: Command line warning: ignoring option '-M'; no argument required
3938       # The diagnosis changed in icc 8.0:
3939       #   icc: Command line remark: option '-MP' not supported
3940       if (grep 'ignoring option' conftest.err ||
3941           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3942         am_cv_CC_dependencies_compiler_type=$depmode
3943         break
3944       fi
3945     fi
3946   done
3947
3948   cd ..
3949   rm -rf conftest.dir
3950 else
3951   am_cv_CC_dependencies_compiler_type=none
3952 fi
3953
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3956 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3957 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958
3959  if
3960   test "x$enable_dependency_tracking" != xno \
3961   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3962   am__fastdepCC_TRUE=
3963   am__fastdepCC_FALSE='#'
3964 else
3965   am__fastdepCC_TRUE='#'
3966   am__fastdepCC_FALSE=
3967 fi
3968
3969
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3978 # On Suns, sometimes $CPP names a directory.
3979 if test -n "$CPP" && test -d "$CPP"; then
3980   CPP=
3981 fi
3982 if test -z "$CPP"; then
3983   if ${ac_cv_prog_CPP+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986       # Double quotes because CPP needs to be expanded
3987     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988     do
3989       ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992   # Use a header file that comes with gcc, so configuring glibc
3993   # with a fresh cross-compiler works.
3994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995   # <limits.h> exists even on freestanding compilers.
3996   # On the NeXT, cc -E runs the code through the compiler's parser,
3997   # not just through cpp. "Syntax error" is here to catch this case.
3998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005                      Syntax error
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008
4009 else
4010   # Broken: fails on valid input.
4011 continue
4012 fi
4013 rm -f conftest.err conftest.i conftest.$ac_ext
4014
4015   # OK, works on sane cases.  Now check whether nonexistent headers
4016   # can be detected and how.
4017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019 #include <ac_nonexistent.h>
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022   # Broken: success on invalid input.
4023 continue
4024 else
4025   # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4028 fi
4029 rm -f conftest.err conftest.i conftest.$ac_ext
4030
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.i conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then :
4035   break
4036 fi
4037
4038     done
4039     ac_cv_prog_CPP=$CPP
4040
4041 fi
4042   CPP=$ac_cv_prog_CPP
4043 else
4044   ac_cv_prog_CPP=$CPP
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4047 $as_echo "$CPP" >&6; }
4048 ac_preproc_ok=false
4049 for ac_c_preproc_warn_flag in '' yes
4050 do
4051   # Use a header file that comes with gcc, so configuring glibc
4052   # with a fresh cross-compiler works.
4053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054   # <limits.h> exists even on freestanding compilers.
4055   # On the NeXT, cc -E runs the code through the compiler's parser,
4056   # not just through cpp. "Syntax error" is here to catch this case.
4057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h.  */
4059 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064                      Syntax error
4065 _ACEOF
4066 if ac_fn_c_try_cpp "$LINENO"; then :
4067
4068 else
4069   # Broken: fails on valid input.
4070 continue
4071 fi
4072 rm -f conftest.err conftest.i conftest.$ac_ext
4073
4074   # OK, works on sane cases.  Now check whether nonexistent headers
4075   # can be detected and how.
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #include <ac_nonexistent.h>
4079 _ACEOF
4080 if ac_fn_c_try_cpp "$LINENO"; then :
4081   # Broken: success on invalid input.
4082 continue
4083 else
4084   # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4087 fi
4088 rm -f conftest.err conftest.i conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.i conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then :
4094
4095 else
4096   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details" "$LINENO" 5; }
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4111 if ${ac_cv_path_GREP+:} false; then :
4112   $as_echo_n "(cached) " >&6
4113 else
4114   if test -z "$GREP"; then
4115   ac_path_GREP_found=false
4116   # Loop through the user's path and test for each of PROGNAME-LIST
4117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119 do
4120   IFS=$as_save_IFS
4121   test -z "$as_dir" && as_dir=.
4122     for ac_prog in grep ggrep; do
4123     for ac_exec_ext in '' $ac_executable_extensions; do
4124       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4125       as_fn_executable_p "$ac_path_GREP" || continue
4126 # Check for GNU ac_path_GREP and select it if it is found.
4127   # Check for GNU $ac_path_GREP
4128 case `"$ac_path_GREP" --version 2>&1` in
4129 *GNU*)
4130   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4131 *)
4132   ac_count=0
4133   $as_echo_n 0123456789 >"conftest.in"
4134   while :
4135   do
4136     cat "conftest.in" "conftest.in" >"conftest.tmp"
4137     mv "conftest.tmp" "conftest.in"
4138     cp "conftest.in" "conftest.nl"
4139     $as_echo 'GREP' >> "conftest.nl"
4140     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142     as_fn_arith $ac_count + 1 && ac_count=$as_val
4143     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144       # Best one so far, save it but keep looking for a better one
4145       ac_cv_path_GREP="$ac_path_GREP"
4146       ac_path_GREP_max=$ac_count
4147     fi
4148     # 10*(2^10) chars as input seems more than enough
4149     test $ac_count -gt 10 && break
4150   done
4151   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4153
4154       $ac_path_GREP_found && break 3
4155     done
4156   done
4157   done
4158 IFS=$as_save_IFS
4159   if test -z "$ac_cv_path_GREP"; then
4160     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161   fi
4162 else
4163   ac_cv_path_GREP=$GREP
4164 fi
4165
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4168 $as_echo "$ac_cv_path_GREP" >&6; }
4169  GREP="$ac_cv_path_GREP"
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4173 $as_echo_n "checking for egrep... " >&6; }
4174 if ${ac_cv_path_EGREP+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4178    then ac_cv_path_EGREP="$GREP -E"
4179    else
4180      if test -z "$EGREP"; then
4181   ac_path_EGREP_found=false
4182   # Loop through the user's path and test for each of PROGNAME-LIST
4183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186   IFS=$as_save_IFS
4187   test -z "$as_dir" && as_dir=.
4188     for ac_prog in egrep; do
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4191       as_fn_executable_p "$ac_path_EGREP" || continue
4192 # Check for GNU ac_path_EGREP and select it if it is found.
4193   # Check for GNU $ac_path_EGREP
4194 case `"$ac_path_EGREP" --version 2>&1` in
4195 *GNU*)
4196   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197 *)
4198   ac_count=0
4199   $as_echo_n 0123456789 >"conftest.in"
4200   while :
4201   do
4202     cat "conftest.in" "conftest.in" >"conftest.tmp"
4203     mv "conftest.tmp" "conftest.in"
4204     cp "conftest.in" "conftest.nl"
4205     $as_echo 'EGREP' >> "conftest.nl"
4206     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208     as_fn_arith $ac_count + 1 && ac_count=$as_val
4209     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4210       # Best one so far, save it but keep looking for a better one
4211       ac_cv_path_EGREP="$ac_path_EGREP"
4212       ac_path_EGREP_max=$ac_count
4213     fi
4214     # 10*(2^10) chars as input seems more than enough
4215     test $ac_count -gt 10 && break
4216   done
4217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220       $ac_path_EGREP_found && break 3
4221     done
4222   done
4223   done
4224 IFS=$as_save_IFS
4225   if test -z "$ac_cv_path_EGREP"; then
4226     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227   fi
4228 else
4229   ac_cv_path_EGREP=$EGREP
4230 fi
4231
4232    fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4235 $as_echo "$ac_cv_path_EGREP" >&6; }
4236  EGREP="$ac_cv_path_EGREP"
4237
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4240 $as_echo_n "checking for ANSI C header files... " >&6; }
4241 if ${ac_cv_header_stdc+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 #include <stdlib.h>
4247 #include <stdarg.h>
4248 #include <string.h>
4249 #include <float.h>
4250
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260   ac_cv_header_stdc=yes
4261 else
4262   ac_cv_header_stdc=no
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265
4266 if test $ac_cv_header_stdc = yes; then
4267   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270 #include <string.h>
4271
4272 _ACEOF
4273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274   $EGREP "memchr" >/dev/null 2>&1; then :
4275
4276 else
4277   ac_cv_header_stdc=no
4278 fi
4279 rm -f conftest*
4280
4281 fi
4282
4283 if test $ac_cv_header_stdc = yes; then
4284   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287 #include <stdlib.h>
4288
4289 _ACEOF
4290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291   $EGREP "free" >/dev/null 2>&1; then :
4292
4293 else
4294   ac_cv_header_stdc=no
4295 fi
4296 rm -f conftest*
4297
4298 fi
4299
4300 if test $ac_cv_header_stdc = yes; then
4301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4302   if test "$cross_compiling" = yes; then :
4303   :
4304 else
4305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h.  */
4307 #include <ctype.h>
4308 #include <stdlib.h>
4309 #if ((' ' & 0x0FF) == 0x020)
4310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4312 #else
4313 # define ISLOWER(c) \
4314                    (('a' <= (c) && (c) <= 'i') \
4315                      || ('j' <= (c) && (c) <= 'r') \
4316                      || ('s' <= (c) && (c) <= 'z'))
4317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318 #endif
4319
4320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4321 int
4322 main ()
4323 {
4324   int i;
4325   for (i = 0; i < 256; i++)
4326     if (XOR (islower (i), ISLOWER (i))
4327         || toupper (i) != TOUPPER (i))
4328       return 2;
4329   return 0;
4330 }
4331 _ACEOF
4332 if ac_fn_c_try_run "$LINENO"; then :
4333
4334 else
4335   ac_cv_header_stdc=no
4336 fi
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4338   conftest.$ac_objext conftest.beam conftest.$ac_ext
4339 fi
4340
4341 fi
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4344 $as_echo "$ac_cv_header_stdc" >&6; }
4345 if test $ac_cv_header_stdc = yes; then
4346
4347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4348
4349 fi
4350
4351
4352 # Initialize libtool
4353
4354 case `pwd` in
4355   *\ * | *\     *)
4356     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4357 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4358 esac
4359
4360
4361
4362 macro_version='2.4.2'
4363 macro_revision='1.3337'
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 ltmain="$ac_aux_dir/ltmain.sh"
4378
4379 # Make sure we can run config.sub.
4380 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4381   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4384 $as_echo_n "checking build system type... " >&6; }
4385 if ${ac_cv_build+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   ac_build_alias=$build_alias
4389 test "x$ac_build_alias" = x &&
4390   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4391 test "x$ac_build_alias" = x &&
4392   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4393 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4394   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4398 $as_echo "$ac_cv_build" >&6; }
4399 case $ac_cv_build in
4400 *-*-*) ;;
4401 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4402 esac
4403 build=$ac_cv_build
4404 ac_save_IFS=$IFS; IFS='-'
4405 set x $ac_cv_build
4406 shift
4407 build_cpu=$1
4408 build_vendor=$2
4409 shift; shift
4410 # Remember, the first character of IFS is used to create $*,
4411 # except with old shells:
4412 build_os=$*
4413 IFS=$ac_save_IFS
4414 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4415
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4418 $as_echo_n "checking host system type... " >&6; }
4419 if ${ac_cv_host+:} false; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422   if test "x$host_alias" = x; then
4423   ac_cv_host=$ac_cv_build
4424 else
4425   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4426     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4427 fi
4428
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4431 $as_echo "$ac_cv_host" >&6; }
4432 case $ac_cv_host in
4433 *-*-*) ;;
4434 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4435 esac
4436 host=$ac_cv_host
4437 ac_save_IFS=$IFS; IFS='-'
4438 set x $ac_cv_host
4439 shift
4440 host_cpu=$1
4441 host_vendor=$2
4442 shift; shift
4443 # Remember, the first character of IFS is used to create $*,
4444 # except with old shells:
4445 host_os=$*
4446 IFS=$ac_save_IFS
4447 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4448
4449
4450 # Backslashify metacharacters that are still active within
4451 # double-quoted strings.
4452 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4453
4454 # Same as above, but do not quote variable references.
4455 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4456
4457 # Sed substitution to delay expansion of an escaped shell variable in a
4458 # double_quote_subst'ed string.
4459 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4460
4461 # Sed substitution to delay expansion of an escaped single quote.
4462 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4463
4464 # Sed substitution to avoid accidental globbing in evaled expressions
4465 no_glob_subst='s/\*/\\\*/g'
4466
4467 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4468 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4469 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4472 $as_echo_n "checking how to print strings... " >&6; }
4473 # Test print first, because it will be a builtin if present.
4474 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4475    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4476   ECHO='print -r --'
4477 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4478   ECHO='printf %s\n'
4479 else
4480   # Use this function as a fallback that always works.
4481   func_fallback_echo ()
4482   {
4483     eval 'cat <<_LTECHO_EOF
4484 $1
4485 _LTECHO_EOF'
4486   }
4487   ECHO='func_fallback_echo'
4488 fi
4489
4490 # func_echo_all arg...
4491 # Invoke $ECHO with all args, space-separated.
4492 func_echo_all ()
4493 {
4494     $ECHO ""
4495 }
4496
4497 case "$ECHO" in
4498   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4499 $as_echo "printf" >&6; } ;;
4500   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4501 $as_echo "print -r" >&6; } ;;
4502   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4503 $as_echo "cat" >&6; } ;;
4504 esac
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4520 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4521 if ${ac_cv_path_SED+:} false; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4525      for ac_i in 1 2 3 4 5 6 7; do
4526        ac_script="$ac_script$as_nl$ac_script"
4527      done
4528      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4529      { ac_script=; unset ac_script;}
4530      if test -z "$SED"; then
4531   ac_path_SED_found=false
4532   # Loop through the user's path and test for each of PROGNAME-LIST
4533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_prog in sed gsed; do
4539     for ac_exec_ext in '' $ac_executable_extensions; do
4540       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4541       as_fn_executable_p "$ac_path_SED" || continue
4542 # Check for GNU ac_path_SED and select it if it is found.
4543   # Check for GNU $ac_path_SED
4544 case `"$ac_path_SED" --version 2>&1` in
4545 *GNU*)
4546   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4547 *)
4548   ac_count=0
4549   $as_echo_n 0123456789 >"conftest.in"
4550   while :
4551   do
4552     cat "conftest.in" "conftest.in" >"conftest.tmp"
4553     mv "conftest.tmp" "conftest.in"
4554     cp "conftest.in" "conftest.nl"
4555     $as_echo '' >> "conftest.nl"
4556     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558     as_fn_arith $ac_count + 1 && ac_count=$as_val
4559     if test $ac_count -gt ${ac_path_SED_max-0}; then
4560       # Best one so far, save it but keep looking for a better one
4561       ac_cv_path_SED="$ac_path_SED"
4562       ac_path_SED_max=$ac_count
4563     fi
4564     # 10*(2^10) chars as input seems more than enough
4565     test $ac_count -gt 10 && break
4566   done
4567   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570       $ac_path_SED_found && break 3
4571     done
4572   done
4573   done
4574 IFS=$as_save_IFS
4575   if test -z "$ac_cv_path_SED"; then
4576     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4577   fi
4578 else
4579   ac_cv_path_SED=$SED
4580 fi
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4584 $as_echo "$ac_cv_path_SED" >&6; }
4585  SED="$ac_cv_path_SED"
4586   rm -f conftest.sed
4587
4588 test -z "$SED" && SED=sed
4589 Xsed="$SED -e 1s/^X//"
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4602 $as_echo_n "checking for fgrep... " >&6; }
4603 if ${ac_cv_path_FGREP+:} false; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4607    then ac_cv_path_FGREP="$GREP -F"
4608    else
4609      if test -z "$FGREP"; then
4610   ac_path_FGREP_found=false
4611   # Loop through the user's path and test for each of PROGNAME-LIST
4612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617     for ac_prog in fgrep; do
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4620       as_fn_executable_p "$ac_path_FGREP" || continue
4621 # Check for GNU ac_path_FGREP and select it if it is found.
4622   # Check for GNU $ac_path_FGREP
4623 case `"$ac_path_FGREP" --version 2>&1` in
4624 *GNU*)
4625   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4626 *)
4627   ac_count=0
4628   $as_echo_n 0123456789 >"conftest.in"
4629   while :
4630   do
4631     cat "conftest.in" "conftest.in" >"conftest.tmp"
4632     mv "conftest.tmp" "conftest.in"
4633     cp "conftest.in" "conftest.nl"
4634     $as_echo 'FGREP' >> "conftest.nl"
4635     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637     as_fn_arith $ac_count + 1 && ac_count=$as_val
4638     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4639       # Best one so far, save it but keep looking for a better one
4640       ac_cv_path_FGREP="$ac_path_FGREP"
4641       ac_path_FGREP_max=$ac_count
4642     fi
4643     # 10*(2^10) chars as input seems more than enough
4644     test $ac_count -gt 10 && break
4645   done
4646   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 esac
4648
4649       $ac_path_FGREP_found && break 3
4650     done
4651   done
4652   done
4653 IFS=$as_save_IFS
4654   if test -z "$ac_cv_path_FGREP"; then
4655     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4656   fi
4657 else
4658   ac_cv_path_FGREP=$FGREP
4659 fi
4660
4661    fi
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4664 $as_echo "$ac_cv_path_FGREP" >&6; }
4665  FGREP="$ac_cv_path_FGREP"
4666
4667
4668 test -z "$GREP" && GREP=grep
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 # Check whether --with-gnu-ld was given.
4689 if test "${with_gnu_ld+set}" = set; then :
4690   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4691 else
4692   with_gnu_ld=no
4693 fi
4694
4695 ac_prog=ld
4696 if test "$GCC" = yes; then
4697   # Check if gcc -print-prog-name=ld gives a path.
4698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4699 $as_echo_n "checking for ld used by $CC... " >&6; }
4700   case $host in
4701   *-*-mingw*)
4702     # gcc leaves a trailing carriage return which upsets mingw
4703     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4704   *)
4705     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4706   esac
4707   case $ac_prog in
4708     # Accept absolute paths.
4709     [\\/]* | ?:[\\/]*)
4710       re_direlt='/[^/][^/]*/\.\./'
4711       # Canonicalize the pathname of ld
4712       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4713       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4714         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4715       done
4716       test -z "$LD" && LD="$ac_prog"
4717       ;;
4718   "")
4719     # If it fails, then pretend we aren't using GCC.
4720     ac_prog=ld
4721     ;;
4722   *)
4723     # If it is relative, then search for the first ld in PATH.
4724     with_gnu_ld=unknown
4725     ;;
4726   esac
4727 elif test "$with_gnu_ld" = yes; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4729 $as_echo_n "checking for GNU ld... " >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4732 $as_echo_n "checking for non-GNU ld... " >&6; }
4733 fi
4734 if ${lt_cv_path_LD+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   if test -z "$LD"; then
4738   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4739   for ac_dir in $PATH; do
4740     IFS="$lt_save_ifs"
4741     test -z "$ac_dir" && ac_dir=.
4742     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4743       lt_cv_path_LD="$ac_dir/$ac_prog"
4744       # Check to see if the program is GNU ld.  I'd rather use --version,
4745       # but apparently some variants of GNU ld only accept -v.
4746       # Break only if it was the GNU/non-GNU ld that we prefer.
4747       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4748       *GNU* | *'with BFD'*)
4749         test "$with_gnu_ld" != no && break
4750         ;;
4751       *)
4752         test "$with_gnu_ld" != yes && break
4753         ;;
4754       esac
4755     fi
4756   done
4757   IFS="$lt_save_ifs"
4758 else
4759   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4760 fi
4761 fi
4762
4763 LD="$lt_cv_path_LD"
4764 if test -n "$LD"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4766 $as_echo "$LD" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4774 if ${lt_cv_prog_gnu_ld+:} false; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4778 case `$LD -v 2>&1 </dev/null` in
4779 *GNU* | *'with BFD'*)
4780   lt_cv_prog_gnu_ld=yes
4781   ;;
4782 *)
4783   lt_cv_prog_gnu_ld=no
4784   ;;
4785 esac
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4789 with_gnu_ld=$lt_cv_prog_gnu_ld
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4800 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4801 if ${lt_cv_path_NM+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if test -n "$NM"; then
4805   # Let the user override the test.
4806   lt_cv_path_NM="$NM"
4807 else
4808   lt_nm_to_check="${ac_tool_prefix}nm"
4809   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4810     lt_nm_to_check="$lt_nm_to_check nm"
4811   fi
4812   for lt_tmp_nm in $lt_nm_to_check; do
4813     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4814     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4815       IFS="$lt_save_ifs"
4816       test -z "$ac_dir" && ac_dir=.
4817       tmp_nm="$ac_dir/$lt_tmp_nm"
4818       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4819         # Check to see if the nm accepts a BSD-compat flag.
4820         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4821         #   nm: unknown option "B" ignored
4822         # Tru64's nm complains that /dev/null is an invalid object file
4823         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4824         */dev/null* | *'Invalid file or object type'*)
4825           lt_cv_path_NM="$tmp_nm -B"
4826           break
4827           ;;
4828         *)
4829           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4830           */dev/null*)
4831             lt_cv_path_NM="$tmp_nm -p"
4832             break
4833             ;;
4834           *)
4835             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4836             continue # so that we can try to find one that supports BSD flags
4837             ;;
4838           esac
4839           ;;
4840         esac
4841       fi
4842     done
4843     IFS="$lt_save_ifs"
4844   done
4845   : ${lt_cv_path_NM=no}
4846 fi
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4849 $as_echo "$lt_cv_path_NM" >&6; }
4850 if test "$lt_cv_path_NM" != "no"; then
4851   NM="$lt_cv_path_NM"
4852 else
4853   # Didn't find any BSD compatible name lister, look for dumpbin.
4854   if test -n "$DUMPBIN"; then :
4855     # Let the user override the test.
4856   else
4857     if test -n "$ac_tool_prefix"; then
4858   for ac_prog in dumpbin "link -dump"
4859   do
4860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_DUMPBIN+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   if test -n "$DUMPBIN"; then
4868   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875     for ac_exec_ext in '' $ac_executable_extensions; do
4876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882   done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 DUMPBIN=$ac_cv_prog_DUMPBIN
4888 if test -n "$DUMPBIN"; then
4889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4890 $as_echo "$DUMPBIN" >&6; }
4891 else
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896
4897     test -n "$DUMPBIN" && break
4898   done
4899 fi
4900 if test -z "$DUMPBIN"; then
4901   ac_ct_DUMPBIN=$DUMPBIN
4902   for ac_prog in dumpbin "link -dump"
4903 do
4904   # Extract the first word of "$ac_prog", so it can be a program name with args.
4905 set dummy $ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   if test -n "$ac_ct_DUMPBIN"; then
4912   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926   done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4932 if test -n "$ac_ct_DUMPBIN"; then
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4934 $as_echo "$ac_ct_DUMPBIN" >&6; }
4935 else
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 fi
4939
4940
4941   test -n "$ac_ct_DUMPBIN" && break
4942 done
4943
4944   if test "x$ac_ct_DUMPBIN" = x; then
4945     DUMPBIN=":"
4946   else
4947     case $cross_compiling:$ac_tool_warned in
4948 yes:)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953     DUMPBIN=$ac_ct_DUMPBIN
4954   fi
4955 fi
4956
4957     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4958     *COFF*)
4959       DUMPBIN="$DUMPBIN -symbols"
4960       ;;
4961     *)
4962       DUMPBIN=:
4963       ;;
4964     esac
4965   fi
4966
4967   if test "$DUMPBIN" != ":"; then
4968     NM="$DUMPBIN"
4969   fi
4970 fi
4971 test -z "$NM" && NM=nm
4972
4973
4974
4975
4976
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4979 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4980 if ${lt_cv_nm_interface+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   lt_cv_nm_interface="BSD nm"
4984   echo "int some_variable = 0;" > conftest.$ac_ext
4985   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4986   (eval "$ac_compile" 2>conftest.err)
4987   cat conftest.err >&5
4988   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4989   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4990   cat conftest.err >&5
4991   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4992   cat conftest.out >&5
4993   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4994     lt_cv_nm_interface="MS dumpbin"
4995   fi
4996   rm -f conftest*
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4999 $as_echo "$lt_cv_nm_interface" >&6; }
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5002 $as_echo_n "checking whether ln -s works... " >&6; }
5003 LN_S=$as_ln_s
5004 if test "$LN_S" = "ln -s"; then
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5006 $as_echo "yes" >&6; }
5007 else
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5009 $as_echo "no, using $LN_S" >&6; }
5010 fi
5011
5012 # find the maximum length of command line arguments
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5014 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5015 if ${lt_cv_sys_max_cmd_len+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018     i=0
5019   teststring="ABCD"
5020
5021   case $build_os in
5022   msdosdjgpp*)
5023     # On DJGPP, this test can blow up pretty badly due to problems in libc
5024     # (any single argument exceeding 2000 bytes causes a buffer overrun
5025     # during glob expansion).  Even if it were fixed, the result of this
5026     # check would be larger than it should be.
5027     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5028     ;;
5029
5030   gnu*)
5031     # Under GNU Hurd, this test is not required because there is
5032     # no limit to the length of command line arguments.
5033     # Libtool will interpret -1 as no limit whatsoever
5034     lt_cv_sys_max_cmd_len=-1;
5035     ;;
5036
5037   cygwin* | mingw* | cegcc*)
5038     # On Win9x/ME, this test blows up -- it succeeds, but takes
5039     # about 5 minutes as the teststring grows exponentially.
5040     # Worse, since 9x/ME are not pre-emptively multitasking,
5041     # you end up with a "frozen" computer, even though with patience
5042     # the test eventually succeeds (with a max line length of 256k).
5043     # Instead, let's just punt: use the minimum linelength reported by
5044     # all of the supported platforms: 8192 (on NT/2K/XP).
5045     lt_cv_sys_max_cmd_len=8192;
5046     ;;
5047
5048   mint*)
5049     # On MiNT this can take a long time and run out of memory.
5050     lt_cv_sys_max_cmd_len=8192;
5051     ;;
5052
5053   amigaos*)
5054     # On AmigaOS with pdksh, this test takes hours, literally.
5055     # So we just punt and use a minimum line length of 8192.
5056     lt_cv_sys_max_cmd_len=8192;
5057     ;;
5058
5059   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5060     # This has been around since 386BSD, at least.  Likely further.
5061     if test -x /sbin/sysctl; then
5062       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5063     elif test -x /usr/sbin/sysctl; then
5064       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5065     else
5066       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5067     fi
5068     # And add a safety zone
5069     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5071     ;;
5072
5073   interix*)
5074     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5075     lt_cv_sys_max_cmd_len=196608
5076     ;;
5077
5078   os2*)
5079     # The test takes a long time on OS/2.
5080     lt_cv_sys_max_cmd_len=8192
5081     ;;
5082
5083   osf*)
5084     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5085     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5086     # nice to cause kernel panics so lets avoid the loop below.
5087     # First set a reasonable default.
5088     lt_cv_sys_max_cmd_len=16384
5089     #
5090     if test -x /sbin/sysconfig; then
5091       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5092         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5093       esac
5094     fi
5095     ;;
5096   sco3.2v5*)
5097     lt_cv_sys_max_cmd_len=102400
5098     ;;
5099   sysv5* | sco5v6* | sysv4.2uw2*)
5100     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5101     if test -n "$kargmax"; then
5102       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5103     else
5104       lt_cv_sys_max_cmd_len=32768
5105     fi
5106     ;;
5107   *)
5108     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5109     if test -n "$lt_cv_sys_max_cmd_len"; then
5110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5111       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5112     else
5113       # Make teststring a little bigger before we do anything with it.
5114       # a 1K string should be a reasonable start.
5115       for i in 1 2 3 4 5 6 7 8 ; do
5116         teststring=$teststring$teststring
5117       done
5118       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5119       # If test is not a shell built-in, we'll probably end up computing a
5120       # maximum length that is only half of the actual maximum length, but
5121       # we can't tell.
5122       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5123                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5124               test $i != 17 # 1/2 MB should be enough
5125       do
5126         i=`expr $i + 1`
5127         teststring=$teststring$teststring
5128       done
5129       # Only check the string length outside the loop.
5130       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5131       teststring=
5132       # Add a significant safety factor because C++ compilers can tack on
5133       # massive amounts of additional arguments before passing them to the
5134       # linker.  It appears as though 1/2 is a usable value.
5135       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5136     fi
5137     ;;
5138   esac
5139
5140 fi
5141
5142 if test -n $lt_cv_sys_max_cmd_len ; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5144 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5147 $as_echo "none" >&6; }
5148 fi
5149 max_cmd_len=$lt_cv_sys_max_cmd_len
5150
5151
5152
5153
5154
5155
5156 : ${CP="cp -f"}
5157 : ${MV="mv -f"}
5158 : ${RM="rm -f"}
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5161 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5162 # Try some XSI features
5163 xsi_shell=no
5164 ( _lt_dummy="a/b/c"
5165   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5166       = c,a/b,b/c, \
5167     && eval 'test $(( 1 + 1 )) -eq 2 \
5168     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5169   && xsi_shell=yes
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5171 $as_echo "$xsi_shell" >&6; }
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5175 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5176 lt_shell_append=no
5177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5178     >/dev/null 2>&1 \
5179   && lt_shell_append=yes
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5181 $as_echo "$lt_shell_append" >&6; }
5182
5183
5184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5185   lt_unset=unset
5186 else
5187   lt_unset=false
5188 fi
5189
5190
5191
5192
5193
5194 # test EBCDIC or ASCII
5195 case `echo X|tr X '\101'` in
5196  A) # ASCII based system
5197     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5198   lt_SP2NL='tr \040 \012'
5199   lt_NL2SP='tr \015\012 \040\040'
5200   ;;
5201  *) # EBCDIC based system
5202   lt_SP2NL='tr \100 \n'
5203   lt_NL2SP='tr \r\n \100\100'
5204   ;;
5205 esac
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5216 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5217 if ${lt_cv_to_host_file_cmd+:} false; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   case $host in
5221   *-*-mingw* )
5222     case $build in
5223       *-*-mingw* ) # actually msys
5224         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5225         ;;
5226       *-*-cygwin* )
5227         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5228         ;;
5229       * ) # otherwise, assume *nix
5230         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5231         ;;
5232     esac
5233     ;;
5234   *-*-cygwin* )
5235     case $build in
5236       *-*-mingw* ) # actually msys
5237         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5238         ;;
5239       *-*-cygwin* )
5240         lt_cv_to_host_file_cmd=func_convert_file_noop
5241         ;;
5242       * ) # otherwise, assume *nix
5243         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5244         ;;
5245     esac
5246     ;;
5247   * ) # unhandled hosts (and "normal" native builds)
5248     lt_cv_to_host_file_cmd=func_convert_file_noop
5249     ;;
5250 esac
5251
5252 fi
5253
5254 to_host_file_cmd=$lt_cv_to_host_file_cmd
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5256 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5257
5258
5259
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5263 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5264 if ${lt_cv_to_tool_file_cmd+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   #assume ordinary cross tools, or native build.
5268 lt_cv_to_tool_file_cmd=func_convert_file_noop
5269 case $host in
5270   *-*-mingw* )
5271     case $build in
5272       *-*-mingw* ) # actually msys
5273         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5274         ;;
5275     esac
5276     ;;
5277 esac
5278
5279 fi
5280
5281 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5283 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5284
5285
5286
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5290 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5291 if ${lt_cv_ld_reload_flag+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   lt_cv_ld_reload_flag='-r'
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5297 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5298 reload_flag=$lt_cv_ld_reload_flag
5299 case $reload_flag in
5300 "" | " "*) ;;
5301 *) reload_flag=" $reload_flag" ;;
5302 esac
5303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5304 case $host_os in
5305   cygwin* | mingw* | pw32* | cegcc*)
5306     if test "$GCC" != yes; then
5307       reload_cmds=false
5308     fi
5309     ;;
5310   darwin*)
5311     if test "$GCC" = yes; then
5312       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5313     else
5314       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5315     fi
5316     ;;
5317 esac
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 if test -n "$ac_tool_prefix"; then
5328   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5329 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_OBJDUMP+:} false; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335   if test -n "$OBJDUMP"; then
5336   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343     for ac_exec_ext in '' $ac_executable_extensions; do
5344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350   done
5351 IFS=$as_save_IFS
5352
5353 fi
5354 fi
5355 OBJDUMP=$ac_cv_prog_OBJDUMP
5356 if test -n "$OBJDUMP"; then
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5358 $as_echo "$OBJDUMP" >&6; }
5359 else
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365 fi
5366 if test -z "$ac_cv_prog_OBJDUMP"; then
5367   ac_ct_OBJDUMP=$OBJDUMP
5368   # Extract the first word of "objdump", so it can be a program name with args.
5369 set dummy objdump; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   if test -n "$ac_ct_OBJDUMP"; then
5376   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383     for ac_exec_ext in '' $ac_executable_extensions; do
5384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390   done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5396 if test -n "$ac_ct_OBJDUMP"; then
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5398 $as_echo "$ac_ct_OBJDUMP" >&6; }
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404   if test "x$ac_ct_OBJDUMP" = x; then
5405     OBJDUMP="false"
5406   else
5407     case $cross_compiling:$ac_tool_warned in
5408 yes:)
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411 ac_tool_warned=yes ;;
5412 esac
5413     OBJDUMP=$ac_ct_OBJDUMP
5414   fi
5415 else
5416   OBJDUMP="$ac_cv_prog_OBJDUMP"
5417 fi
5418
5419 test -z "$OBJDUMP" && OBJDUMP=objdump
5420
5421
5422
5423
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5427 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5428 if ${lt_cv_deplibs_check_method+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   lt_cv_file_magic_cmd='$MAGIC_CMD'
5432 lt_cv_file_magic_test_file=
5433 lt_cv_deplibs_check_method='unknown'
5434 # Need to set the preceding variable on all platforms that support
5435 # interlibrary dependencies.
5436 # 'none' -- dependencies not supported.
5437 # `unknown' -- same as none, but documents that we really don't know.
5438 # 'pass_all' -- all dependencies passed with no checks.
5439 # 'test_compile' -- check by making test program.
5440 # 'file_magic [[regex]]' -- check by looking for files in library path
5441 # which responds to the $file_magic_cmd with a given extended regex.
5442 # If you have `file' or equivalent on your system and you're not sure
5443 # whether `pass_all' will *always* work, you probably want this one.
5444
5445 case $host_os in
5446 aix[4-9]*)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 beos*)
5451   lt_cv_deplibs_check_method=pass_all
5452   ;;
5453
5454 bsdi[45]*)
5455   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5456   lt_cv_file_magic_cmd='/usr/bin/file -L'
5457   lt_cv_file_magic_test_file=/shlib/libc.so
5458   ;;
5459
5460 cygwin*)
5461   # func_win32_libid is a shell function defined in ltmain.sh
5462   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463   lt_cv_file_magic_cmd='func_win32_libid'
5464   ;;
5465
5466 mingw* | pw32*)
5467   # Base MSYS/MinGW do not provide the 'file' command needed by
5468   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5469   # unless we find 'file', for example because we are cross-compiling.
5470   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5471   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5472     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5473     lt_cv_file_magic_cmd='func_win32_libid'
5474   else
5475     # Keep this pattern in sync with the one in func_win32_libid.
5476     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5477     lt_cv_file_magic_cmd='$OBJDUMP -f'
5478   fi
5479   ;;
5480
5481 cegcc*)
5482   # use the weaker test based on 'objdump'. See mingw*.
5483   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5484   lt_cv_file_magic_cmd='$OBJDUMP -f'
5485   ;;
5486
5487 darwin* | rhapsody*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 freebsd* | dragonfly*)
5492   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5493     case $host_cpu in
5494     i*86 )
5495       # Not sure whether the presence of OpenBSD here was a mistake.
5496       # Let's accept both of them until this is cleared up.
5497       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5498       lt_cv_file_magic_cmd=/usr/bin/file
5499       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5500       ;;
5501     esac
5502   else
5503     lt_cv_deplibs_check_method=pass_all
5504   fi
5505   ;;
5506
5507 gnu*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 haiku*)
5512   lt_cv_deplibs_check_method=pass_all
5513   ;;
5514
5515 hpux10.20* | hpux11*)
5516   lt_cv_file_magic_cmd=/usr/bin/file
5517   case $host_cpu in
5518   ia64*)
5519     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5520     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5521     ;;
5522   hppa*64*)
5523     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]'
5524     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5525     ;;
5526   *)
5527     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5528     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5529     ;;
5530   esac
5531   ;;
5532
5533 interix[3-9]*)
5534   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5535   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5536   ;;
5537
5538 irix5* | irix6* | nonstopux*)
5539   case $LD in
5540   *-32|*"-32 ") libmagic=32-bit;;
5541   *-n32|*"-n32 ") libmagic=N32;;
5542   *-64|*"-64 ") libmagic=64-bit;;
5543   *) libmagic=never-match;;
5544   esac
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 # This must be glibc/ELF.
5549 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 netbsd* | netbsdelf*-gnu)
5554   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5555     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5556   else
5557     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5558   fi
5559   ;;
5560
5561 newos6*)
5562   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5563   lt_cv_file_magic_cmd=/usr/bin/file
5564   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5565   ;;
5566
5567 *nto* | *qnx*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 openbsd*)
5572   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5573     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5574   else
5575     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5576   fi
5577   ;;
5578
5579 osf3* | osf4* | osf5*)
5580   lt_cv_deplibs_check_method=pass_all
5581   ;;
5582
5583 rdos*)
5584   lt_cv_deplibs_check_method=pass_all
5585   ;;
5586
5587 solaris*)
5588   lt_cv_deplibs_check_method=pass_all
5589   ;;
5590
5591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 sysv4 | sysv4.3*)
5596   case $host_vendor in
5597   motorola)
5598     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]'
5599     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5600     ;;
5601   ncr)
5602     lt_cv_deplibs_check_method=pass_all
5603     ;;
5604   sequent)
5605     lt_cv_file_magic_cmd='/bin/file'
5606     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5607     ;;
5608   sni)
5609     lt_cv_file_magic_cmd='/bin/file'
5610     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5611     lt_cv_file_magic_test_file=/lib/libc.so
5612     ;;
5613   siemens)
5614     lt_cv_deplibs_check_method=pass_all
5615     ;;
5616   pc)
5617     lt_cv_deplibs_check_method=pass_all
5618     ;;
5619   esac
5620   ;;
5621
5622 tpf*)
5623   lt_cv_deplibs_check_method=pass_all
5624   ;;
5625 esac
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5629 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5630
5631 file_magic_glob=
5632 want_nocaseglob=no
5633 if test "$build" = "$host"; then
5634   case $host_os in
5635   mingw* | pw32*)
5636     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5637       want_nocaseglob=yes
5638     else
5639       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5640     fi
5641     ;;
5642   esac
5643 fi
5644
5645 file_magic_cmd=$lt_cv_file_magic_cmd
5646 deplibs_check_method=$lt_cv_deplibs_check_method
5647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 if test -n "$ac_tool_prefix"; then
5671   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5672 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_DLLTOOL+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   if test -n "$DLLTOOL"; then
5679   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 DLLTOOL=$ac_cv_prog_DLLTOOL
5699 if test -n "$DLLTOOL"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5701 $as_echo "$DLLTOOL" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707
5708 fi
5709 if test -z "$ac_cv_prog_DLLTOOL"; then
5710   ac_ct_DLLTOOL=$DLLTOOL
5711   # Extract the first word of "dlltool", so it can be a program name with args.
5712 set dummy dlltool; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   if test -n "$ac_ct_DLLTOOL"; then
5719   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5739 if test -n "$ac_ct_DLLTOOL"; then
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5741 $as_echo "$ac_ct_DLLTOOL" >&6; }
5742 else
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747   if test "x$ac_ct_DLLTOOL" = x; then
5748     DLLTOOL="false"
5749   else
5750     case $cross_compiling:$ac_tool_warned in
5751 yes:)
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754 ac_tool_warned=yes ;;
5755 esac
5756     DLLTOOL=$ac_ct_DLLTOOL
5757   fi
5758 else
5759   DLLTOOL="$ac_cv_prog_DLLTOOL"
5760 fi
5761
5762 test -z "$DLLTOOL" && DLLTOOL=dlltool
5763
5764
5765
5766
5767
5768
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5771 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5772 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5773   $as_echo_n "(cached) " >&6
5774 else
5775   lt_cv_sharedlib_from_linklib_cmd='unknown'
5776
5777 case $host_os in
5778 cygwin* | mingw* | pw32* | cegcc*)
5779   # two different shell functions defined in ltmain.sh
5780   # decide which to use based on capabilities of $DLLTOOL
5781   case `$DLLTOOL --help 2>&1` in
5782   *--identify-strict*)
5783     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5784     ;;
5785   *)
5786     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5787     ;;
5788   esac
5789   ;;
5790 *)
5791   # fallback: assume linklib IS sharedlib
5792   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5793   ;;
5794 esac
5795
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5798 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5799 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5800 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5801
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809   for ac_prog in ar
5810   do
5811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_AR+:} false; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if test -n "$AR"; then
5819   ac_cv_prog_AR="$AR" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826     for ac_exec_ext in '' $ac_executable_extensions; do
5827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833   done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 AR=$ac_cv_prog_AR
5839 if test -n "$AR"; then
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841 $as_echo "$AR" >&6; }
5842 else
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848     test -n "$AR" && break
5849   done
5850 fi
5851 if test -z "$AR"; then
5852   ac_ct_AR=$AR
5853   for ac_prog in ar
5854 do
5855   # Extract the first word of "$ac_prog", so it can be a program name with args.
5856 set dummy $ac_prog; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -n "$ac_ct_AR"; then
5863   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_ac_ct_AR="$ac_prog"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5883 if test -n "$ac_ct_AR"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5885 $as_echo "$ac_ct_AR" >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891
5892   test -n "$ac_ct_AR" && break
5893 done
5894
5895   if test "x$ac_ct_AR" = x; then
5896     AR="false"
5897   else
5898     case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904     AR=$ac_ct_AR
5905   fi
5906 fi
5907
5908 : ${AR=ar}
5909 : ${AR_FLAGS=cru}
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5922 $as_echo_n "checking for archiver @FILE support... " >&6; }
5923 if ${lt_cv_ar_at_file+:} false; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   lt_cv_ar_at_file=no
5927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h.  */
5929
5930 int
5931 main ()
5932 {
5933
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"; then :
5939   echo conftest.$ac_objext > conftest.lst
5940       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5941       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5942   (eval $lt_ar_try) 2>&5
5943   ac_status=$?
5944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945   test $ac_status = 0; }
5946       if test "$ac_status" -eq 0; then
5947         # Ensure the archiver fails upon bogus file names.
5948         rm -f conftest.$ac_objext libconftest.a
5949         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5950   (eval $lt_ar_try) 2>&5
5951   ac_status=$?
5952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953   test $ac_status = 0; }
5954         if test "$ac_status" -ne 0; then
5955           lt_cv_ar_at_file=@
5956         fi
5957       fi
5958       rm -f conftest.* libconftest.a
5959
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5965 $as_echo "$lt_cv_ar_at_file" >&6; }
5966
5967 if test "x$lt_cv_ar_at_file" = xno; then
5968   archiver_list_spec=
5969 else
5970   archiver_list_spec=$lt_cv_ar_at_file
5971 fi
5972
5973
5974
5975
5976
5977
5978
5979 if test -n "$ac_tool_prefix"; then
5980   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}strip; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_prog_STRIP+:} false; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if test -n "$STRIP"; then
5988   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995     for ac_exec_ext in '' $ac_executable_extensions; do
5996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002   done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 STRIP=$ac_cv_prog_STRIP
6008 if test -n "$STRIP"; then
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6010 $as_echo "$STRIP" >&6; }
6011 else
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016
6017 fi
6018 if test -z "$ac_cv_prog_STRIP"; then
6019   ac_ct_STRIP=$STRIP
6020   # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   if test -n "$ac_ct_STRIP"; then
6028   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035     for ac_exec_ext in '' $ac_executable_extensions; do
6036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037     ac_cv_prog_ac_ct_STRIP="strip"
6038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042   done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6050 $as_echo "$ac_ct_STRIP" >&6; }
6051 else
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056   if test "x$ac_ct_STRIP" = x; then
6057     STRIP=":"
6058   else
6059     case $cross_compiling:$ac_tool_warned in
6060 yes:)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063 ac_tool_warned=yes ;;
6064 esac
6065     STRIP=$ac_ct_STRIP
6066   fi
6067 else
6068   STRIP="$ac_cv_prog_STRIP"
6069 fi
6070
6071 test -z "$STRIP" && STRIP=:
6072
6073
6074
6075
6076
6077
6078 if test -n "$ac_tool_prefix"; then
6079   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_RANLIB+:} false; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   if test -n "$RANLIB"; then
6087   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094     for ac_exec_ext in '' $ac_executable_extensions; do
6095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101   done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 RANLIB=$ac_cv_prog_RANLIB
6107 if test -n "$RANLIB"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6109 $as_echo "$RANLIB" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115
6116 fi
6117 if test -z "$ac_cv_prog_RANLIB"; then
6118   ac_ct_RANLIB=$RANLIB
6119   # Extract the first word of "ranlib", so it can be a program name with args.
6120 set dummy ranlib; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   if test -n "$ac_ct_RANLIB"; then
6127   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136     ac_cv_prog_ac_ct_RANLIB="ranlib"
6137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141   done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147 if test -n "$ac_ct_RANLIB"; then
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6149 $as_echo "$ac_ct_RANLIB" >&6; }
6150 else
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153 fi
6154
6155   if test "x$ac_ct_RANLIB" = x; then
6156     RANLIB=":"
6157   else
6158     case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164     RANLIB=$ac_ct_RANLIB
6165   fi
6166 else
6167   RANLIB="$ac_cv_prog_RANLIB"
6168 fi
6169
6170 test -z "$RANLIB" && RANLIB=:
6171
6172
6173
6174
6175
6176
6177 # Determine commands to create old-style static archives.
6178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6179 old_postinstall_cmds='chmod 644 $oldlib'
6180 old_postuninstall_cmds=
6181
6182 if test -n "$RANLIB"; then
6183   case $host_os in
6184   openbsd*)
6185     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6186     ;;
6187   *)
6188     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6189     ;;
6190   esac
6191   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6192 fi
6193
6194 case $host_os in
6195   darwin*)
6196     lock_old_archive_extraction=yes ;;
6197   *)
6198     lock_old_archive_extraction=no ;;
6199 esac
6200
6201
6202
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 # If no C compiler was specified, use CC.
6240 LTCC=${LTCC-"$CC"}
6241
6242 # If no C compiler flags were specified, use CFLAGS.
6243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6244
6245 # Allow CC to be a program name with arguments.
6246 compiler=$CC
6247
6248
6249 # Check for command to grab the raw symbol name followed by C symbol from nm.
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6251 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6252 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255
6256 # These are sane defaults that work on at least a few old systems.
6257 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6258
6259 # Character class describing NM global symbol codes.
6260 symcode='[BCDEGRST]'
6261
6262 # Regexp to match symbols that can be accessed directly from C.
6263 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6264
6265 # Define system-specific variables.
6266 case $host_os in
6267 aix*)
6268   symcode='[BCDT]'
6269   ;;
6270 cygwin* | mingw* | pw32* | cegcc*)
6271   symcode='[ABCDGISTW]'
6272   ;;
6273 hpux*)
6274   if test "$host_cpu" = ia64; then
6275     symcode='[ABCDEGRST]'
6276   fi
6277   ;;
6278 irix* | nonstopux*)
6279   symcode='[BCDEGRST]'
6280   ;;
6281 osf*)
6282   symcode='[BCDEGQRST]'
6283   ;;
6284 solaris*)
6285   symcode='[BDRT]'
6286   ;;
6287 sco3.2v5*)
6288   symcode='[DT]'
6289   ;;
6290 sysv4.2uw2*)
6291   symcode='[DT]'
6292   ;;
6293 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6294   symcode='[ABDT]'
6295   ;;
6296 sysv4)
6297   symcode='[DFNSTU]'
6298   ;;
6299 esac
6300
6301 # If we're using GNU nm, then use its standard symbol codes.
6302 case `$NM -V 2>&1` in
6303 *GNU* | *'with BFD'*)
6304   symcode='[ABCDGIRSTW]' ;;
6305 esac
6306
6307 # Transform an extracted symbol line into a proper C declaration.
6308 # Some systems (esp. on ia64) link data and code symbols differently,
6309 # so use this general approach.
6310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311
6312 # Transform an extracted symbol line into symbol name and symbol address
6313 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6314 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'"
6315
6316 # Handle CRLF in mingw tool chain
6317 opt_cr=
6318 case $build_os in
6319 mingw*)
6320   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6321   ;;
6322 esac
6323
6324 # Try without a prefix underscore, then with it.
6325 for ac_symprfx in "" "_"; do
6326
6327   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6328   symxfrm="\\1 $ac_symprfx\\2 \\2"
6329
6330   # Write the raw and C identifiers.
6331   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6332     # Fake it for dumpbin and say T for any non-static function
6333     # and D for any global variable.
6334     # Also find C++ and __fastcall symbols from MSVC++,
6335     # which start with @ or ?.
6336     lt_cv_sys_global_symbol_pipe="$AWK '"\
6337 "     {last_section=section; section=\$ 3};"\
6338 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6339 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6340 "     \$ 0!~/External *\|/{next};"\
6341 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6342 "     {if(hide[section]) next};"\
6343 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6344 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6345 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6346 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6347 "     ' prfx=^$ac_symprfx"
6348   else
6349     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6350   fi
6351   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6352
6353   # Check to see that the pipe works correctly.
6354   pipe_works=no
6355
6356   rm -f conftest*
6357   cat > conftest.$ac_ext <<_LT_EOF
6358 #ifdef __cplusplus
6359 extern "C" {
6360 #endif
6361 char nm_test_var;
6362 void nm_test_func(void);
6363 void nm_test_func(void){}
6364 #ifdef __cplusplus
6365 }
6366 #endif
6367 int main(){nm_test_var='a';nm_test_func();return(0);}
6368 _LT_EOF
6369
6370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6371   (eval $ac_compile) 2>&5
6372   ac_status=$?
6373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6374   test $ac_status = 0; }; then
6375     # Now try to grab the symbols.
6376     nlist=conftest.nm
6377     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6378   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6379   ac_status=$?
6380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381   test $ac_status = 0; } && test -s "$nlist"; then
6382       # Try sorting and uniquifying the output.
6383       if sort "$nlist" | uniq > "$nlist"T; then
6384         mv -f "$nlist"T "$nlist"
6385       else
6386         rm -f "$nlist"T
6387       fi
6388
6389       # Make sure that we snagged all the symbols we need.
6390       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6391         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6392           cat <<_LT_EOF > conftest.$ac_ext
6393 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6394 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6395 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6396    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6397 # define LT_DLSYM_CONST
6398 #elif defined(__osf__)
6399 /* This system does not cope well with relocations in const data.  */
6400 # define LT_DLSYM_CONST
6401 #else
6402 # define LT_DLSYM_CONST const
6403 #endif
6404
6405 #ifdef __cplusplus
6406 extern "C" {
6407 #endif
6408
6409 _LT_EOF
6410           # Now generate the symbol file.
6411           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6412
6413           cat <<_LT_EOF >> conftest.$ac_ext
6414
6415 /* The mapping between symbol names and symbols.  */
6416 LT_DLSYM_CONST struct {
6417   const char *name;
6418   void       *address;
6419 }
6420 lt__PROGRAM__LTX_preloaded_symbols[] =
6421 {
6422   { "@PROGRAM@", (void *) 0 },
6423 _LT_EOF
6424           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6425           cat <<\_LT_EOF >> conftest.$ac_ext
6426   {0, (void *) 0}
6427 };
6428
6429 /* This works around a problem in FreeBSD linker */
6430 #ifdef FREEBSD_WORKAROUND
6431 static const void *lt_preloaded_setup() {
6432   return lt__PROGRAM__LTX_preloaded_symbols;
6433 }
6434 #endif
6435
6436 #ifdef __cplusplus
6437 }
6438 #endif
6439 _LT_EOF
6440           # Now try linking the two files.
6441           mv conftest.$ac_objext conftstm.$ac_objext
6442           lt_globsym_save_LIBS=$LIBS
6443           lt_globsym_save_CFLAGS=$CFLAGS
6444           LIBS="conftstm.$ac_objext"
6445           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6446           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6447   (eval $ac_link) 2>&5
6448   ac_status=$?
6449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6451             pipe_works=yes
6452           fi
6453           LIBS=$lt_globsym_save_LIBS
6454           CFLAGS=$lt_globsym_save_CFLAGS
6455         else
6456           echo "cannot find nm_test_func in $nlist" >&5
6457         fi
6458       else
6459         echo "cannot find nm_test_var in $nlist" >&5
6460       fi
6461     else
6462       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463     fi
6464   else
6465     echo "$progname: failed program was:" >&5
6466     cat conftest.$ac_ext >&5
6467   fi
6468   rm -rf conftest* conftst*
6469
6470   # Do not use the global_symbol_pipe unless it works.
6471   if test "$pipe_works" = yes; then
6472     break
6473   else
6474     lt_cv_sys_global_symbol_pipe=
6475   fi
6476 done
6477
6478 fi
6479
6480 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6481   lt_cv_sys_global_symbol_to_cdecl=
6482 fi
6483 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6485 $as_echo "failed" >&6; }
6486 else
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6488 $as_echo "ok" >&6; }
6489 fi
6490
6491 # Response file support.
6492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6493   nm_file_list_spec='@'
6494 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6495   nm_file_list_spec='@'
6496 fi
6497
6498
6499
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6525 $as_echo_n "checking for sysroot... " >&6; }
6526
6527 # Check whether --with-sysroot was given.
6528 if test "${with_sysroot+set}" = set; then :
6529   withval=$with_sysroot;
6530 else
6531   with_sysroot=no
6532 fi
6533
6534
6535 lt_sysroot=
6536 case ${with_sysroot} in #(
6537  yes)
6538    if test "$GCC" = yes; then
6539      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6540    fi
6541    ;; #(
6542  /*)
6543    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6544    ;; #(
6545  no|'')
6546    ;; #(
6547  *)
6548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6549 $as_echo "${with_sysroot}" >&6; }
6550    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6551    ;;
6552 esac
6553
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6555 $as_echo "${lt_sysroot:-no}" >&6; }
6556
6557
6558
6559
6560
6561 # Check whether --enable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then :
6563   enableval=$enable_libtool_lock;
6564 fi
6565
6566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6567
6568 # Some flags need to be propagated to the compiler or linker for good
6569 # libtool support.
6570 case $host in
6571 ia64-*-hpux*)
6572   # Find out which ABI we are using.
6573   echo 'int i;' > conftest.$ac_ext
6574   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6575   (eval $ac_compile) 2>&5
6576   ac_status=$?
6577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578   test $ac_status = 0; }; then
6579     case `/usr/bin/file conftest.$ac_objext` in
6580       *ELF-32*)
6581         HPUX_IA64_MODE="32"
6582         ;;
6583       *ELF-64*)
6584         HPUX_IA64_MODE="64"
6585         ;;
6586     esac
6587   fi
6588   rm -rf conftest*
6589   ;;
6590 *-*-irix6*)
6591   # Find out which ABI we are using.
6592   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6593   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594   (eval $ac_compile) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; }; then
6598     if test "$lt_cv_prog_gnu_ld" = yes; then
6599       case `/usr/bin/file conftest.$ac_objext` in
6600         *32-bit*)
6601           LD="${LD-ld} -melf32bsmip"
6602           ;;
6603         *N32*)
6604           LD="${LD-ld} -melf32bmipn32"
6605           ;;
6606         *64-bit*)
6607           LD="${LD-ld} -melf64bmip"
6608         ;;
6609       esac
6610     else
6611       case `/usr/bin/file conftest.$ac_objext` in
6612         *32-bit*)
6613           LD="${LD-ld} -32"
6614           ;;
6615         *N32*)
6616           LD="${LD-ld} -n32"
6617           ;;
6618         *64-bit*)
6619           LD="${LD-ld} -64"
6620           ;;
6621       esac
6622     fi
6623   fi
6624   rm -rf conftest*
6625   ;;
6626
6627 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6628 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6629   # Find out which ABI we are using.
6630   echo 'int i;' > conftest.$ac_ext
6631   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6632   (eval $ac_compile) 2>&5
6633   ac_status=$?
6634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635   test $ac_status = 0; }; then
6636     case `/usr/bin/file conftest.o` in
6637       *32-bit*)
6638         case $host in
6639           x86_64-*kfreebsd*-gnu)
6640             LD="${LD-ld} -m elf_i386_fbsd"
6641             ;;
6642           x86_64-*linux*)
6643             LD="${LD-ld} -m elf_i386"
6644             ;;
6645           ppc64-*linux*|powerpc64-*linux*)
6646             LD="${LD-ld} -m elf32ppclinux"
6647             ;;
6648           s390x-*linux*)
6649             LD="${LD-ld} -m elf_s390"
6650             ;;
6651           sparc64-*linux*)
6652             LD="${LD-ld} -m elf32_sparc"
6653             ;;
6654         esac
6655         ;;
6656       *64-bit*)
6657         case $host in
6658           x86_64-*kfreebsd*-gnu)
6659             LD="${LD-ld} -m elf_x86_64_fbsd"
6660             ;;
6661           x86_64-*linux*)
6662             LD="${LD-ld} -m elf_x86_64"
6663             ;;
6664           ppc*-*linux*|powerpc*-*linux*)
6665             LD="${LD-ld} -m elf64ppc"
6666             ;;
6667           s390*-*linux*|s390*-*tpf*)
6668             LD="${LD-ld} -m elf64_s390"
6669             ;;
6670           sparc*-*linux*)
6671             LD="${LD-ld} -m elf64_sparc"
6672             ;;
6673         esac
6674         ;;
6675     esac
6676   fi
6677   rm -rf conftest*
6678   ;;
6679
6680 *-*-sco3.2v5*)
6681   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6682   SAVE_CFLAGS="$CFLAGS"
6683   CFLAGS="$CFLAGS -belf"
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6685 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6686 if ${lt_cv_cc_needs_belf+:} false; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   ac_ext=c
6690 ac_cpp='$CPP $CPPFLAGS'
6691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
6695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h.  */
6697
6698 int
6699 main ()
6700 {
6701
6702   ;
6703   return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_link "$LINENO"; then :
6707   lt_cv_cc_needs_belf=yes
6708 else
6709   lt_cv_cc_needs_belf=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext \
6712     conftest$ac_exeext conftest.$ac_ext
6713      ac_ext=c
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6721 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6722   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6723     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6724     CFLAGS="$SAVE_CFLAGS"
6725   fi
6726   ;;
6727 *-*solaris*)
6728   # Find out which ABI we are using.
6729   echo 'int i;' > conftest.$ac_ext
6730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731   (eval $ac_compile) 2>&5
6732   ac_status=$?
6733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734   test $ac_status = 0; }; then
6735     case `/usr/bin/file conftest.o` in
6736     *64-bit*)
6737       case $lt_cv_prog_gnu_ld in
6738       yes*)
6739         case $host in
6740         i?86-*-solaris*)
6741           LD="${LD-ld} -m elf_x86_64"
6742           ;;
6743         sparc*-*-solaris*)
6744           LD="${LD-ld} -m elf64_sparc"
6745           ;;
6746         esac
6747         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6748         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6749           LD="${LD-ld}_sol2"
6750         fi
6751         ;;
6752       *)
6753         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6754           LD="${LD-ld} -64"
6755         fi
6756         ;;
6757       esac
6758       ;;
6759     esac
6760   fi
6761   rm -rf conftest*
6762   ;;
6763 esac
6764
6765 need_locks="$enable_libtool_lock"
6766
6767 if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}mt; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$MANIFEST_TOOL"; then
6776   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783     for ac_exec_ext in '' $ac_executable_extensions; do
6784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790   done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6796 if test -n "$MANIFEST_TOOL"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6798 $as_echo "$MANIFEST_TOOL" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6807   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6808   # Extract the first word of "mt", so it can be a program name with args.
6809 set dummy mt; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$ac_ct_MANIFEST_TOOL"; then
6816   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6836 if test -n "$ac_ct_MANIFEST_TOOL"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6838 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6845     MANIFEST_TOOL=":"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6854   fi
6855 else
6856   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6857 fi
6858
6859 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6861 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6862 if ${lt_cv_path_mainfest_tool+:} false; then :
6863   $as_echo_n "(cached) " >&6
6864 else
6865   lt_cv_path_mainfest_tool=no
6866   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6867   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6868   cat conftest.err >&5
6869   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6870     lt_cv_path_mainfest_tool=yes
6871   fi
6872   rm -f conftest*
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6875 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6876 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6877   MANIFEST_TOOL=:
6878 fi
6879
6880
6881
6882
6883
6884
6885   case $host_os in
6886     rhapsody* | darwin*)
6887     if test -n "$ac_tool_prefix"; then
6888   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   if test -n "$DSYMUTIL"; then
6896   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903     for ac_exec_ext in '' $ac_executable_extensions; do
6904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910   done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6916 if test -n "$DSYMUTIL"; then
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6918 $as_echo "$DSYMUTIL" >&6; }
6919 else
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923
6924
6925 fi
6926 if test -z "$ac_cv_prog_DSYMUTIL"; then
6927   ac_ct_DSYMUTIL=$DSYMUTIL
6928   # Extract the first word of "dsymutil", so it can be a program name with args.
6929 set dummy dsymutil; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   if test -n "$ac_ct_DSYMUTIL"; then
6936   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943     for ac_exec_ext in '' $ac_executable_extensions; do
6944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950   done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6956 if test -n "$ac_ct_DSYMUTIL"; then
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6958 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6959 else
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964   if test "x$ac_ct_DSYMUTIL" = x; then
6965     DSYMUTIL=":"
6966   else
6967     case $cross_compiling:$ac_tool_warned in
6968 yes:)
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971 ac_tool_warned=yes ;;
6972 esac
6973     DSYMUTIL=$ac_ct_DSYMUTIL
6974   fi
6975 else
6976   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6977 fi
6978
6979     if test -n "$ac_tool_prefix"; then
6980   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_NMEDIT+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   if test -n "$NMEDIT"; then
6988   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995     for ac_exec_ext in '' $ac_executable_extensions; do
6996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002   done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 NMEDIT=$ac_cv_prog_NMEDIT
7008 if test -n "$NMEDIT"; then
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7010 $as_echo "$NMEDIT" >&6; }
7011 else
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017 fi
7018 if test -z "$ac_cv_prog_NMEDIT"; then
7019   ac_ct_NMEDIT=$NMEDIT
7020   # Extract the first word of "nmedit", so it can be a program name with args.
7021 set dummy nmedit; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   if test -n "$ac_ct_NMEDIT"; then
7028   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035     for ac_exec_ext in '' $ac_executable_extensions; do
7036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042   done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7048 if test -n "$ac_ct_NMEDIT"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7050 $as_echo "$ac_ct_NMEDIT" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056   if test "x$ac_ct_NMEDIT" = x; then
7057     NMEDIT=":"
7058   else
7059     case $cross_compiling:$ac_tool_warned in
7060 yes:)
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7064 esac
7065     NMEDIT=$ac_ct_NMEDIT
7066   fi
7067 else
7068   NMEDIT="$ac_cv_prog_NMEDIT"
7069 fi
7070
7071     if test -n "$ac_tool_prefix"; then
7072   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_prog_LIPO+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   if test -n "$LIPO"; then
7080   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085   IFS=$as_save_IFS
7086   test -z "$as_dir" && as_dir=.
7087     for ac_exec_ext in '' $ac_executable_extensions; do
7088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091     break 2
7092   fi
7093 done
7094   done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 LIPO=$ac_cv_prog_LIPO
7100 if test -n "$LIPO"; then
7101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7102 $as_echo "$LIPO" >&6; }
7103 else
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108
7109 fi
7110 if test -z "$ac_cv_prog_LIPO"; then
7111   ac_ct_LIPO=$LIPO
7112   # Extract the first word of "lipo", so it can be a program name with args.
7113 set dummy lipo; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$ac_ct_LIPO"; then
7120   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129     ac_cv_prog_ac_ct_LIPO="lipo"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7140 if test -n "$ac_ct_LIPO"; then
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7142 $as_echo "$ac_ct_LIPO" >&6; }
7143 else
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148   if test "x$ac_ct_LIPO" = x; then
7149     LIPO=":"
7150   else
7151     case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157     LIPO=$ac_ct_LIPO
7158   fi
7159 else
7160   LIPO="$ac_cv_prog_LIPO"
7161 fi
7162
7163     if test -n "$ac_tool_prefix"; then
7164   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}otool; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_OTOOL+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$OTOOL"; then
7172   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 OTOOL=$ac_cv_prog_OTOOL
7192 if test -n "$OTOOL"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7194 $as_echo "$OTOOL" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201 fi
7202 if test -z "$ac_cv_prog_OTOOL"; then
7203   ac_ct_OTOOL=$OTOOL
7204   # Extract the first word of "otool", so it can be a program name with args.
7205 set dummy otool; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$ac_ct_OTOOL"; then
7212   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_ac_ct_OTOOL="otool"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7232 if test -n "$ac_ct_OTOOL"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7234 $as_echo "$ac_ct_OTOOL" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240   if test "x$ac_ct_OTOOL" = x; then
7241     OTOOL=":"
7242   else
7243     case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249     OTOOL=$ac_ct_OTOOL
7250   fi
7251 else
7252   OTOOL="$ac_cv_prog_OTOOL"
7253 fi
7254
7255     if test -n "$ac_tool_prefix"; then
7256   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7257 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_OTOOL64+:} false; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   if test -n "$OTOOL64"; then
7264   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271     for ac_exec_ext in '' $ac_executable_extensions; do
7272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278   done
7279 IFS=$as_save_IFS
7280
7281 fi
7282 fi
7283 OTOOL64=$ac_cv_prog_OTOOL64
7284 if test -n "$OTOOL64"; then
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7286 $as_echo "$OTOOL64" >&6; }
7287 else
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292
7293 fi
7294 if test -z "$ac_cv_prog_OTOOL64"; then
7295   ac_ct_OTOOL64=$OTOOL64
7296   # Extract the first word of "otool64", so it can be a program name with args.
7297 set dummy otool64; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   if test -n "$ac_ct_OTOOL64"; then
7304   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311     for ac_exec_ext in '' $ac_executable_extensions; do
7312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313     ac_cv_prog_ac_ct_OTOOL64="otool64"
7314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318   done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7324 if test -n "$ac_ct_OTOOL64"; then
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7326 $as_echo "$ac_ct_OTOOL64" >&6; }
7327 else
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332   if test "x$ac_ct_OTOOL64" = x; then
7333     OTOOL64=":"
7334   else
7335     case $cross_compiling:$ac_tool_warned in
7336 yes:)
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7340 esac
7341     OTOOL64=$ac_ct_OTOOL64
7342   fi
7343 else
7344   OTOOL64="$ac_cv_prog_OTOOL64"
7345 fi
7346
7347
7348
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7374 $as_echo_n "checking for -single_module linker flag... " >&6; }
7375 if ${lt_cv_apple_cc_single_mod+:} false; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   lt_cv_apple_cc_single_mod=no
7379       if test -z "${LT_MULTI_MODULE}"; then
7380         # By default we will add the -single_module flag. You can override
7381         # by either setting the environment variable LT_MULTI_MODULE
7382         # non-empty at configure time, or by adding -multi_module to the
7383         # link flags.
7384         rm -rf libconftest.dylib*
7385         echo "int foo(void){return 1;}" > conftest.c
7386         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7387 -dynamiclib -Wl,-single_module conftest.c" >&5
7388         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7389           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7390         _lt_result=$?
7391         # If there is a non-empty error log, and "single_module"
7392         # appears in it, assume the flag caused a linker warning
7393         if test -s conftest.err && $GREP single_module conftest.err; then
7394           cat conftest.err >&5
7395         # Otherwise, if the output was created with a 0 exit code from
7396         # the compiler, it worked.
7397         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7398           lt_cv_apple_cc_single_mod=yes
7399         else
7400           cat conftest.err >&5
7401         fi
7402         rm -rf libconftest.dylib*
7403         rm -f conftest.*
7404       fi
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7407 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7408
7409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7410 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7411 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   lt_cv_ld_exported_symbols_list=no
7415       save_LDFLAGS=$LDFLAGS
7416       echo "_main" > conftest.sym
7417       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7418       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h.  */
7420
7421 int
7422 main ()
7423 {
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 if ac_fn_c_try_link "$LINENO"; then :
7430   lt_cv_ld_exported_symbols_list=yes
7431 else
7432   lt_cv_ld_exported_symbols_list=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext \
7435     conftest$ac_exeext conftest.$ac_ext
7436         LDFLAGS="$save_LDFLAGS"
7437
7438 fi
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7440 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7441
7442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7443 $as_echo_n "checking for -force_load linker flag... " >&6; }
7444 if ${lt_cv_ld_force_load+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   lt_cv_ld_force_load=no
7448       cat > conftest.c << _LT_EOF
7449 int forced_loaded() { return 2;}
7450 _LT_EOF
7451       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7452       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7453       echo "$AR cru libconftest.a conftest.o" >&5
7454       $AR cru libconftest.a conftest.o 2>&5
7455       echo "$RANLIB libconftest.a" >&5
7456       $RANLIB libconftest.a 2>&5
7457       cat > conftest.c << _LT_EOF
7458 int main() { return 0;}
7459 _LT_EOF
7460       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7461       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7462       _lt_result=$?
7463       if test -s conftest.err && $GREP force_load conftest.err; then
7464         cat conftest.err >&5
7465       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7466         lt_cv_ld_force_load=yes
7467       else
7468         cat conftest.err >&5
7469       fi
7470         rm -f conftest.err libconftest.a conftest conftest.c
7471         rm -rf conftest.dSYM
7472
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7475 $as_echo "$lt_cv_ld_force_load" >&6; }
7476     case $host_os in
7477     rhapsody* | darwin1.[012])
7478       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7479     darwin1.*)
7480       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7481     darwin*) # darwin 5.x on
7482       # if running on 10.5 or later, the deployment target defaults
7483       # to the OS version, if on x86, and 10.4, the deployment
7484       # target defaults to 10.4. Don't you love it?
7485       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7486         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7487           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7488         10.[012]*)
7489           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7490         10.*)
7491           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7492       esac
7493     ;;
7494   esac
7495     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7496       _lt_dar_single_mod='$single_module'
7497     fi
7498     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7499       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7500     else
7501       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7502     fi
7503     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7504       _lt_dsymutil='~$DSYMUTIL $lib || :'
7505     else
7506       _lt_dsymutil=
7507     fi
7508     ;;
7509   esac
7510
7511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7513                   inttypes.h stdint.h unistd.h
7514 do :
7515   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7516 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7517 "
7518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7519   cat >>confdefs.h <<_ACEOF
7520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528 for ac_header in dlfcn.h
7529 do :
7530   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7531 "
7532 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7533   cat >>confdefs.h <<_ACEOF
7534 #define HAVE_DLFCN_H 1
7535 _ACEOF
7536
7537 fi
7538
7539 done
7540
7541
7542
7543
7544
7545 # Set options
7546 enable_win32_dll=yes
7547
7548 case $host in
7549 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7550   if test -n "$ac_tool_prefix"; then
7551   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}as; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_AS+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$AS"; then
7559   ac_cv_prog_AS="$AS" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568     ac_cv_prog_AS="${ac_tool_prefix}as"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 AS=$ac_cv_prog_AS
7579 if test -n "$AS"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7581 $as_echo "$AS" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587
7588 fi
7589 if test -z "$ac_cv_prog_AS"; then
7590   ac_ct_AS=$AS
7591   # Extract the first word of "as", so it can be a program name with args.
7592 set dummy as; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$ac_ct_AS"; then
7599   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606     for ac_exec_ext in '' $ac_executable_extensions; do
7607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608     ac_cv_prog_ac_ct_AS="as"
7609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613   done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7619 if test -n "$ac_ct_AS"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7621 $as_echo "$ac_ct_AS" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627   if test "x$ac_ct_AS" = x; then
7628     AS="false"
7629   else
7630     case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636     AS=$ac_ct_AS
7637   fi
7638 else
7639   AS="$ac_cv_prog_AS"
7640 fi
7641
7642   if test -n "$ac_tool_prefix"; then
7643   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_DLLTOOL+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   if test -n "$DLLTOOL"; then
7651   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658     for ac_exec_ext in '' $ac_executable_extensions; do
7659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665   done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 DLLTOOL=$ac_cv_prog_DLLTOOL
7671 if test -n "$DLLTOOL"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7673 $as_echo "$DLLTOOL" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680 fi
7681 if test -z "$ac_cv_prog_DLLTOOL"; then
7682   ac_ct_DLLTOOL=$DLLTOOL
7683   # Extract the first word of "dlltool", so it can be a program name with args.
7684 set dummy dlltool; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   if test -n "$ac_ct_DLLTOOL"; then
7691   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698     for ac_exec_ext in '' $ac_executable_extensions; do
7699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705   done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7711 if test -n "$ac_ct_DLLTOOL"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7713 $as_echo "$ac_ct_DLLTOOL" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719   if test "x$ac_ct_DLLTOOL" = x; then
7720     DLLTOOL="false"
7721   else
7722     case $cross_compiling:$ac_tool_warned in
7723 yes:)
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726 ac_tool_warned=yes ;;
7727 esac
7728     DLLTOOL=$ac_ct_DLLTOOL
7729   fi
7730 else
7731   DLLTOOL="$ac_cv_prog_DLLTOOL"
7732 fi
7733
7734   if test -n "$ac_tool_prefix"; then
7735   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7736 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_OBJDUMP+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   if test -n "$OBJDUMP"; then
7743   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750     for ac_exec_ext in '' $ac_executable_extensions; do
7751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757   done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 OBJDUMP=$ac_cv_prog_OBJDUMP
7763 if test -n "$OBJDUMP"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7765 $as_echo "$OBJDUMP" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771
7772 fi
7773 if test -z "$ac_cv_prog_OBJDUMP"; then
7774   ac_ct_OBJDUMP=$OBJDUMP
7775   # Extract the first word of "objdump", so it can be a program name with args.
7776 set dummy objdump; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   if test -n "$ac_ct_OBJDUMP"; then
7783   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790     for ac_exec_ext in '' $ac_executable_extensions; do
7791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797   done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7803 if test -n "$ac_ct_OBJDUMP"; then
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7805 $as_echo "$ac_ct_OBJDUMP" >&6; }
7806 else
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811   if test "x$ac_ct_OBJDUMP" = x; then
7812     OBJDUMP="false"
7813   else
7814     case $cross_compiling:$ac_tool_warned in
7815 yes:)
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818 ac_tool_warned=yes ;;
7819 esac
7820     OBJDUMP=$ac_ct_OBJDUMP
7821   fi
7822 else
7823   OBJDUMP="$ac_cv_prog_OBJDUMP"
7824 fi
7825
7826   ;;
7827 esac
7828
7829 test -z "$AS" && AS=as
7830
7831
7832
7833
7834
7835 test -z "$DLLTOOL" && DLLTOOL=dlltool
7836
7837
7838
7839
7840
7841 test -z "$OBJDUMP" && OBJDUMP=objdump
7842
7843
7844
7845
7846
7847
7848
7849         enable_dlopen=no
7850
7851
7852
7853             # Check whether --enable-shared was given.
7854 if test "${enable_shared+set}" = set; then :
7855   enableval=$enable_shared; p=${PACKAGE-default}
7856     case $enableval in
7857     yes) enable_shared=yes ;;
7858     no) enable_shared=no ;;
7859     *)
7860       enable_shared=no
7861       # Look at the argument we got.  We use all the common list separators.
7862       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7863       for pkg in $enableval; do
7864         IFS="$lt_save_ifs"
7865         if test "X$pkg" = "X$p"; then
7866           enable_shared=yes
7867         fi
7868       done
7869       IFS="$lt_save_ifs"
7870       ;;
7871     esac
7872 else
7873   enable_shared=yes
7874 fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884   # Check whether --enable-static was given.
7885 if test "${enable_static+set}" = set; then :
7886   enableval=$enable_static; p=${PACKAGE-default}
7887     case $enableval in
7888     yes) enable_static=yes ;;
7889     no) enable_static=no ;;
7890     *)
7891      enable_static=no
7892       # Look at the argument we got.  We use all the common list separators.
7893       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7894       for pkg in $enableval; do
7895         IFS="$lt_save_ifs"
7896         if test "X$pkg" = "X$p"; then
7897           enable_static=yes
7898         fi
7899       done
7900       IFS="$lt_save_ifs"
7901       ;;
7902     esac
7903 else
7904   enable_static=yes
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 # Check whether --with-pic was given.
7917 if test "${with_pic+set}" = set; then :
7918   withval=$with_pic; lt_p=${PACKAGE-default}
7919     case $withval in
7920     yes|no) pic_mode=$withval ;;
7921     *)
7922       pic_mode=default
7923       # Look at the argument we got.  We use all the common list separators.
7924       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7925       for lt_pkg in $withval; do
7926         IFS="$lt_save_ifs"
7927         if test "X$lt_pkg" = "X$lt_p"; then
7928           pic_mode=yes
7929         fi
7930       done
7931       IFS="$lt_save_ifs"
7932       ;;
7933     esac
7934 else
7935   pic_mode=default
7936 fi
7937
7938
7939 test -z "$pic_mode" && pic_mode=default
7940
7941
7942
7943
7944
7945
7946
7947   # Check whether --enable-fast-install was given.
7948 if test "${enable_fast_install+set}" = set; then :
7949   enableval=$enable_fast_install; p=${PACKAGE-default}
7950     case $enableval in
7951     yes) enable_fast_install=yes ;;
7952     no) enable_fast_install=no ;;
7953     *)
7954       enable_fast_install=no
7955       # Look at the argument we got.  We use all the common list separators.
7956       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7957       for pkg in $enableval; do
7958         IFS="$lt_save_ifs"
7959         if test "X$pkg" = "X$p"; then
7960           enable_fast_install=yes
7961         fi
7962       done
7963       IFS="$lt_save_ifs"
7964       ;;
7965     esac
7966 else
7967   enable_fast_install=yes
7968 fi
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980 # This can be used to rebuild libtool when needed
7981 LIBTOOL_DEPS="$ltmain"
7982
7983 # Always use our own libtool.
7984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7985
7986
7987
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 test -z "$LN_S" && LN_S="ln -s"
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 if test -n "${ZSH_VERSION+set}" ; then
8031    setopt NO_GLOB_SUBST
8032 fi
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8035 $as_echo_n "checking for objdir... " >&6; }
8036 if ${lt_cv_objdir+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   rm -f .libs 2>/dev/null
8040 mkdir .libs 2>/dev/null
8041 if test -d .libs; then
8042   lt_cv_objdir=.libs
8043 else
8044   # MS-DOS does not allow filenames that begin with a dot.
8045   lt_cv_objdir=_libs
8046 fi
8047 rmdir .libs 2>/dev/null
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8050 $as_echo "$lt_cv_objdir" >&6; }
8051 objdir=$lt_cv_objdir
8052
8053
8054
8055
8056
8057 cat >>confdefs.h <<_ACEOF
8058 #define LT_OBJDIR "$lt_cv_objdir/"
8059 _ACEOF
8060
8061
8062
8063
8064 case $host_os in
8065 aix3*)
8066   # AIX sometimes has problems with the GCC collect2 program.  For some
8067   # reason, if we set the COLLECT_NAMES environment variable, the problems
8068   # vanish in a puff of smoke.
8069   if test "X${COLLECT_NAMES+set}" != Xset; then
8070     COLLECT_NAMES=
8071     export COLLECT_NAMES
8072   fi
8073   ;;
8074 esac
8075
8076 # Global variables:
8077 ofile=libtool
8078 can_build_shared=yes
8079
8080 # All known linkers require a `.a' archive for static linking (except MSVC,
8081 # which needs '.lib').
8082 libext=a
8083
8084 with_gnu_ld="$lt_cv_prog_gnu_ld"
8085
8086 old_CC="$CC"
8087 old_CFLAGS="$CFLAGS"
8088
8089 # Set sane defaults for various variables
8090 test -z "$CC" && CC=cc
8091 test -z "$LTCC" && LTCC=$CC
8092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8093 test -z "$LD" && LD=ld
8094 test -z "$ac_objext" && ac_objext=o
8095
8096 for cc_temp in $compiler""; do
8097   case $cc_temp in
8098     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8099     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8100     \-*) ;;
8101     *) break;;
8102   esac
8103 done
8104 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8105
8106
8107 # Only perform the check for file, if the check method requires it
8108 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8109 case $deplibs_check_method in
8110 file_magic*)
8111   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8113 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8114 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   case $MAGIC_CMD in
8118 [\\/*] |  ?:[\\/]*)
8119   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8120   ;;
8121 *)
8122   lt_save_MAGIC_CMD="$MAGIC_CMD"
8123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8124   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8125   for ac_dir in $ac_dummy; do
8126     IFS="$lt_save_ifs"
8127     test -z "$ac_dir" && ac_dir=.
8128     if test -f $ac_dir/${ac_tool_prefix}file; then
8129       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8130       if test -n "$file_magic_test_file"; then
8131         case $deplibs_check_method in
8132         "file_magic "*)
8133           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8134           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8135           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8136             $EGREP "$file_magic_regex" > /dev/null; then
8137             :
8138           else
8139             cat <<_LT_EOF 1>&2
8140
8141 *** Warning: the command libtool uses to detect shared libraries,
8142 *** $file_magic_cmd, produces output that libtool cannot recognize.
8143 *** The result is that libtool may fail to recognize shared libraries
8144 *** as such.  This will affect the creation of libtool libraries that
8145 *** depend on shared libraries, but programs linked with such libtool
8146 *** libraries will work regardless of this problem.  Nevertheless, you
8147 *** may want to report the problem to your system manager and/or to
8148 *** bug-libtool@gnu.org
8149
8150 _LT_EOF
8151           fi ;;
8152         esac
8153       fi
8154       break
8155     fi
8156   done
8157   IFS="$lt_save_ifs"
8158   MAGIC_CMD="$lt_save_MAGIC_CMD"
8159   ;;
8160 esac
8161 fi
8162
8163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8164 if test -n "$MAGIC_CMD"; then
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8166 $as_echo "$MAGIC_CMD" >&6; }
8167 else
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8170 fi
8171
8172
8173
8174
8175
8176 if test -z "$lt_cv_path_MAGIC_CMD"; then
8177   if test -n "$ac_tool_prefix"; then
8178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8179 $as_echo_n "checking for file... " >&6; }
8180 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   case $MAGIC_CMD in
8184 [\\/*] |  ?:[\\/]*)
8185   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8186   ;;
8187 *)
8188   lt_save_MAGIC_CMD="$MAGIC_CMD"
8189   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8190   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8191   for ac_dir in $ac_dummy; do
8192     IFS="$lt_save_ifs"
8193     test -z "$ac_dir" && ac_dir=.
8194     if test -f $ac_dir/file; then
8195       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8196       if test -n "$file_magic_test_file"; then
8197         case $deplibs_check_method in
8198         "file_magic "*)
8199           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8202             $EGREP "$file_magic_regex" > /dev/null; then
8203             :
8204           else
8205             cat <<_LT_EOF 1>&2
8206
8207 *** Warning: the command libtool uses to detect shared libraries,
8208 *** $file_magic_cmd, produces output that libtool cannot recognize.
8209 *** The result is that libtool may fail to recognize shared libraries
8210 *** as such.  This will affect the creation of libtool libraries that
8211 *** depend on shared libraries, but programs linked with such libtool
8212 *** libraries will work regardless of this problem.  Nevertheless, you
8213 *** may want to report the problem to your system manager and/or to
8214 *** bug-libtool@gnu.org
8215
8216 _LT_EOF
8217           fi ;;
8218         esac
8219       fi
8220       break
8221     fi
8222   done
8223   IFS="$lt_save_ifs"
8224   MAGIC_CMD="$lt_save_MAGIC_CMD"
8225   ;;
8226 esac
8227 fi
8228
8229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8230 if test -n "$MAGIC_CMD"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8232 $as_echo "$MAGIC_CMD" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239   else
8240     MAGIC_CMD=:
8241   fi
8242 fi
8243
8244   fi
8245   ;;
8246 esac
8247
8248 # Use C for the default configuration in the libtool script
8249
8250 lt_save_CC="$CC"
8251 ac_ext=c
8252 ac_cpp='$CPP $CPPFLAGS'
8253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257
8258 # Source file extension for C test sources.
8259 ac_ext=c
8260
8261 # Object file extension for compiled C test sources.
8262 objext=o
8263 objext=$objext
8264
8265 # Code to be used in simple compile tests
8266 lt_simple_compile_test_code="int some_variable = 0;"
8267
8268 # Code to be used in simple link tests
8269 lt_simple_link_test_code='int main(){return(0);}'
8270
8271
8272
8273
8274
8275
8276
8277 # If no C compiler was specified, use CC.
8278 LTCC=${LTCC-"$CC"}
8279
8280 # If no C compiler flags were specified, use CFLAGS.
8281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8282
8283 # Allow CC to be a program name with arguments.
8284 compiler=$CC
8285
8286 # Save the default compiler, since it gets overwritten when the other
8287 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8288 compiler_DEFAULT=$CC
8289
8290 # save warnings/boilerplate of simple test code
8291 ac_outfile=conftest.$ac_objext
8292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8294 _lt_compiler_boilerplate=`cat conftest.err`
8295 $RM conftest*
8296
8297 ac_outfile=conftest.$ac_objext
8298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8300 _lt_linker_boilerplate=`cat conftest.err`
8301 $RM -r conftest*
8302
8303
8304 ## CAVEAT EMPTOR:
8305 ## There is no encapsulation within the following macros, do not change
8306 ## the running order or otherwise move them around unless you know exactly
8307 ## what you are doing...
8308 if test -n "$compiler"; then
8309
8310 lt_prog_compiler_no_builtin_flag=
8311
8312 if test "$GCC" = yes; then
8313   case $cc_basename in
8314   nvcc*)
8315     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8316   *)
8317     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8318   esac
8319
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8321 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8322 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   lt_cv_prog_compiler_rtti_exceptions=no
8326    ac_outfile=conftest.$ac_objext
8327    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328    lt_compiler_flag="-fno-rtti -fno-exceptions"
8329    # Insert the option either (1) after the last *FLAGS variable, or
8330    # (2) before a word containing "conftest.", or (3) at the end.
8331    # Note that $ac_compile itself does not contain backslashes and begins
8332    # with a dollar sign (not a hyphen), so the echo should work correctly.
8333    # The option is referenced via a variable to avoid confusing sed.
8334    lt_compile=`echo "$ac_compile" | $SED \
8335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337    -e 's:$: $lt_compiler_flag:'`
8338    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8339    (eval "$lt_compile" 2>conftest.err)
8340    ac_status=$?
8341    cat conftest.err >&5
8342    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343    if (exit $ac_status) && test -s "$ac_outfile"; then
8344      # The compiler can only warn and ignore the option if not recognized
8345      # So say no if there are warnings other than the usual output.
8346      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8347      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8348      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8349        lt_cv_prog_compiler_rtti_exceptions=yes
8350      fi
8351    fi
8352    $RM conftest*
8353
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8356 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8357
8358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8359     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8360 else
8361     :
8362 fi
8363
8364 fi
8365
8366
8367
8368
8369
8370
8371   lt_prog_compiler_wl=
8372 lt_prog_compiler_pic=
8373 lt_prog_compiler_static=
8374
8375
8376   if test "$GCC" = yes; then
8377     lt_prog_compiler_wl='-Wl,'
8378     lt_prog_compiler_static='-static'
8379
8380     case $host_os in
8381       aix*)
8382       # All AIX code is PIC.
8383       if test "$host_cpu" = ia64; then
8384         # AIX 5 now supports IA64 processor
8385         lt_prog_compiler_static='-Bstatic'
8386       fi
8387       ;;
8388
8389     amigaos*)
8390       case $host_cpu in
8391       powerpc)
8392             # see comment about AmigaOS4 .so support
8393             lt_prog_compiler_pic='-fPIC'
8394         ;;
8395       m68k)
8396             # FIXME: we need at least 68020 code to build shared libraries, but
8397             # adding the `-m68020' flag to GCC prevents building anything better,
8398             # like `-m68040'.
8399             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8400         ;;
8401       esac
8402       ;;
8403
8404     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8405       # PIC is the default for these OSes.
8406       ;;
8407
8408     mingw* | cygwin* | pw32* | os2* | cegcc*)
8409       # This hack is so that the source file can tell whether it is being
8410       # built for inclusion in a dll (and should export symbols for example).
8411       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8412       # (--disable-auto-import) libraries
8413       lt_prog_compiler_pic='-DDLL_EXPORT'
8414       ;;
8415
8416     darwin* | rhapsody*)
8417       # PIC is the default on this platform
8418       # Common symbols not allowed in MH_DYLIB files
8419       lt_prog_compiler_pic='-fno-common'
8420       ;;
8421
8422     haiku*)
8423       # PIC is the default for Haiku.
8424       # The "-static" flag exists, but is broken.
8425       lt_prog_compiler_static=
8426       ;;
8427
8428     hpux*)
8429       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8430       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8431       # sets the default TLS model and affects inlining.
8432       case $host_cpu in
8433       hppa*64*)
8434         # +Z the default
8435         ;;
8436       *)
8437         lt_prog_compiler_pic='-fPIC'
8438         ;;
8439       esac
8440       ;;
8441
8442     interix[3-9]*)
8443       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8444       # Instead, we relocate shared libraries at runtime.
8445       ;;
8446
8447     msdosdjgpp*)
8448       # Just because we use GCC doesn't mean we suddenly get shared libraries
8449       # on systems that don't support them.
8450       lt_prog_compiler_can_build_shared=no
8451       enable_shared=no
8452       ;;
8453
8454     *nto* | *qnx*)
8455       # QNX uses GNU C++, but need to define -shared option too, otherwise
8456       # it will coredump.
8457       lt_prog_compiler_pic='-fPIC -shared'
8458       ;;
8459
8460     sysv4*MP*)
8461       if test -d /usr/nec; then
8462         lt_prog_compiler_pic=-Kconform_pic
8463       fi
8464       ;;
8465
8466     *)
8467       lt_prog_compiler_pic='-fPIC'
8468       ;;
8469     esac
8470
8471     case $cc_basename in
8472     nvcc*) # Cuda Compiler Driver 2.2
8473       lt_prog_compiler_wl='-Xlinker '
8474       if test -n "$lt_prog_compiler_pic"; then
8475         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8476       fi
8477       ;;
8478     esac
8479   else
8480     # PORTME Check for flag to pass linker flags through the system compiler.
8481     case $host_os in
8482     aix*)
8483       lt_prog_compiler_wl='-Wl,'
8484       if test "$host_cpu" = ia64; then
8485         # AIX 5 now supports IA64 processor
8486         lt_prog_compiler_static='-Bstatic'
8487       else
8488         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8489       fi
8490       ;;
8491
8492     mingw* | cygwin* | pw32* | os2* | cegcc*)
8493       # This hack is so that the source file can tell whether it is being
8494       # built for inclusion in a dll (and should export symbols for example).
8495       lt_prog_compiler_pic='-DDLL_EXPORT'
8496       ;;
8497
8498     hpux9* | hpux10* | hpux11*)
8499       lt_prog_compiler_wl='-Wl,'
8500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8501       # not for PA HP-UX.
8502       case $host_cpu in
8503       hppa*64*|ia64*)
8504         # +Z the default
8505         ;;
8506       *)
8507         lt_prog_compiler_pic='+Z'
8508         ;;
8509       esac
8510       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8511       lt_prog_compiler_static='${wl}-a ${wl}archive'
8512       ;;
8513
8514     irix5* | irix6* | nonstopux*)
8515       lt_prog_compiler_wl='-Wl,'
8516       # PIC (with -KPIC) is the default.
8517       lt_prog_compiler_static='-non_shared'
8518       ;;
8519
8520     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8521       case $cc_basename in
8522       # old Intel for x86_64 which still supported -KPIC.
8523       ecc*)
8524         lt_prog_compiler_wl='-Wl,'
8525         lt_prog_compiler_pic='-KPIC'
8526         lt_prog_compiler_static='-static'
8527         ;;
8528       # icc used to be incompatible with GCC.
8529       # ICC 10 doesn't accept -KPIC any more.
8530       icc* | ifort*)
8531         lt_prog_compiler_wl='-Wl,'
8532         lt_prog_compiler_pic='-fPIC'
8533         lt_prog_compiler_static='-static'
8534         ;;
8535       # Lahey Fortran 8.1.
8536       lf95*)
8537         lt_prog_compiler_wl='-Wl,'
8538         lt_prog_compiler_pic='--shared'
8539         lt_prog_compiler_static='--static'
8540         ;;
8541       nagfor*)
8542         # NAG Fortran compiler
8543         lt_prog_compiler_wl='-Wl,-Wl,,'
8544         lt_prog_compiler_pic='-PIC'
8545         lt_prog_compiler_static='-Bstatic'
8546         ;;
8547       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8548         # Portland Group compilers (*not* the Pentium gcc compiler,
8549         # which looks to be a dead project)
8550         lt_prog_compiler_wl='-Wl,'
8551         lt_prog_compiler_pic='-fpic'
8552         lt_prog_compiler_static='-Bstatic'
8553         ;;
8554       ccc*)
8555         lt_prog_compiler_wl='-Wl,'
8556         # All Alpha code is PIC.
8557         lt_prog_compiler_static='-non_shared'
8558         ;;
8559       xl* | bgxl* | bgf* | mpixl*)
8560         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8561         lt_prog_compiler_wl='-Wl,'
8562         lt_prog_compiler_pic='-qpic'
8563         lt_prog_compiler_static='-qstaticlink'
8564         ;;
8565       *)
8566         case `$CC -V 2>&1 | sed 5q` in
8567         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8568           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8569           lt_prog_compiler_pic='-KPIC'
8570           lt_prog_compiler_static='-Bstatic'
8571           lt_prog_compiler_wl=''
8572           ;;
8573         *Sun\ F* | *Sun*Fortran*)
8574           lt_prog_compiler_pic='-KPIC'
8575           lt_prog_compiler_static='-Bstatic'
8576           lt_prog_compiler_wl='-Qoption ld '
8577           ;;
8578         *Sun\ C*)
8579           # Sun C 5.9
8580           lt_prog_compiler_pic='-KPIC'
8581           lt_prog_compiler_static='-Bstatic'
8582           lt_prog_compiler_wl='-Wl,'
8583           ;;
8584         *Intel*\ [CF]*Compiler*)
8585           lt_prog_compiler_wl='-Wl,'
8586           lt_prog_compiler_pic='-fPIC'
8587           lt_prog_compiler_static='-static'
8588           ;;
8589         *Portland\ Group*)
8590           lt_prog_compiler_wl='-Wl,'
8591           lt_prog_compiler_pic='-fpic'
8592           lt_prog_compiler_static='-Bstatic'
8593           ;;
8594         esac
8595         ;;
8596       esac
8597       ;;
8598
8599     newsos6)
8600       lt_prog_compiler_pic='-KPIC'
8601       lt_prog_compiler_static='-Bstatic'
8602       ;;
8603
8604     *nto* | *qnx*)
8605       # QNX uses GNU C++, but need to define -shared option too, otherwise
8606       # it will coredump.
8607       lt_prog_compiler_pic='-fPIC -shared'
8608       ;;
8609
8610     osf3* | osf4* | osf5*)
8611       lt_prog_compiler_wl='-Wl,'
8612       # All OSF/1 code is PIC.
8613       lt_prog_compiler_static='-non_shared'
8614       ;;
8615
8616     rdos*)
8617       lt_prog_compiler_static='-non_shared'
8618       ;;
8619
8620     solaris*)
8621       lt_prog_compiler_pic='-KPIC'
8622       lt_prog_compiler_static='-Bstatic'
8623       case $cc_basename in
8624       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8625         lt_prog_compiler_wl='-Qoption ld ';;
8626       *)
8627         lt_prog_compiler_wl='-Wl,';;
8628       esac
8629       ;;
8630
8631     sunos4*)
8632       lt_prog_compiler_wl='-Qoption ld '
8633       lt_prog_compiler_pic='-PIC'
8634       lt_prog_compiler_static='-Bstatic'
8635       ;;
8636
8637     sysv4 | sysv4.2uw2* | sysv4.3*)
8638       lt_prog_compiler_wl='-Wl,'
8639       lt_prog_compiler_pic='-KPIC'
8640       lt_prog_compiler_static='-Bstatic'
8641       ;;
8642
8643     sysv4*MP*)
8644       if test -d /usr/nec ;then
8645         lt_prog_compiler_pic='-Kconform_pic'
8646         lt_prog_compiler_static='-Bstatic'
8647       fi
8648       ;;
8649
8650     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8651       lt_prog_compiler_wl='-Wl,'
8652       lt_prog_compiler_pic='-KPIC'
8653       lt_prog_compiler_static='-Bstatic'
8654       ;;
8655
8656     unicos*)
8657       lt_prog_compiler_wl='-Wl,'
8658       lt_prog_compiler_can_build_shared=no
8659       ;;
8660
8661     uts4*)
8662       lt_prog_compiler_pic='-pic'
8663       lt_prog_compiler_static='-Bstatic'
8664       ;;
8665
8666     *)
8667       lt_prog_compiler_can_build_shared=no
8668       ;;
8669     esac
8670   fi
8671
8672 case $host_os in
8673   # For platforms which do not support PIC, -DPIC is meaningless:
8674   *djgpp*)
8675     lt_prog_compiler_pic=
8676     ;;
8677   *)
8678     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8679     ;;
8680 esac
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8683 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8684 if ${lt_cv_prog_compiler_pic+:} false; then :
8685   $as_echo_n "(cached) " >&6
8686 else
8687   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8690 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8691 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8692
8693 #
8694 # Check to make sure the PIC flag actually works.
8695 #
8696 if test -n "$lt_prog_compiler_pic"; then
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8698 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8699 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   lt_cv_prog_compiler_pic_works=no
8703    ac_outfile=conftest.$ac_objext
8704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8705    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8706    # Insert the option either (1) after the last *FLAGS variable, or
8707    # (2) before a word containing "conftest.", or (3) at the end.
8708    # Note that $ac_compile itself does not contain backslashes and begins
8709    # with a dollar sign (not a hyphen), so the echo should work correctly.
8710    # The option is referenced via a variable to avoid confusing sed.
8711    lt_compile=`echo "$ac_compile" | $SED \
8712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8714    -e 's:$: $lt_compiler_flag:'`
8715    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8716    (eval "$lt_compile" 2>conftest.err)
8717    ac_status=$?
8718    cat conftest.err >&5
8719    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720    if (exit $ac_status) && test -s "$ac_outfile"; then
8721      # The compiler can only warn and ignore the option if not recognized
8722      # So say no if there are warnings other than the usual output.
8723      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8726        lt_cv_prog_compiler_pic_works=yes
8727      fi
8728    fi
8729    $RM conftest*
8730
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8733 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8734
8735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8736     case $lt_prog_compiler_pic in
8737      "" | " "*) ;;
8738      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8739      esac
8740 else
8741     lt_prog_compiler_pic=
8742      lt_prog_compiler_can_build_shared=no
8743 fi
8744
8745 fi
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757 #
8758 # Check to make sure the static flag actually works.
8759 #
8760 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8762 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8763 if ${lt_cv_prog_compiler_static_works+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   lt_cv_prog_compiler_static_works=no
8767    save_LDFLAGS="$LDFLAGS"
8768    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8769    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8770    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8771      # The linker can only warn and ignore the option if not recognized
8772      # So say no if there are warnings
8773      if test -s conftest.err; then
8774        # Append any errors to the config.log.
8775        cat conftest.err 1>&5
8776        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8777        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8778        if diff conftest.exp conftest.er2 >/dev/null; then
8779          lt_cv_prog_compiler_static_works=yes
8780        fi
8781      else
8782        lt_cv_prog_compiler_static_works=yes
8783      fi
8784    fi
8785    $RM -r conftest*
8786    LDFLAGS="$save_LDFLAGS"
8787
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8790 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8791
8792 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8793     :
8794 else
8795     lt_prog_compiler_static=
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8806 if ${lt_cv_prog_compiler_c_o+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   lt_cv_prog_compiler_c_o=no
8810    $RM -r conftest 2>/dev/null
8811    mkdir conftest
8812    cd conftest
8813    mkdir out
8814    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815
8816    lt_compiler_flag="-o out/conftest2.$ac_objext"
8817    # Insert the option either (1) after the last *FLAGS variable, or
8818    # (2) before a word containing "conftest.", or (3) at the end.
8819    # Note that $ac_compile itself does not contain backslashes and begins
8820    # with a dollar sign (not a hyphen), so the echo should work correctly.
8821    lt_compile=`echo "$ac_compile" | $SED \
8822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824    -e 's:$: $lt_compiler_flag:'`
8825    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826    (eval "$lt_compile" 2>out/conftest.err)
8827    ac_status=$?
8828    cat out/conftest.err >&5
8829    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8831    then
8832      # The compiler can only warn and ignore the option if not recognized
8833      # So say no if there are warnings
8834      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8835      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8836      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8837        lt_cv_prog_compiler_c_o=yes
8838      fi
8839    fi
8840    chmod u+w . 2>&5
8841    $RM conftest*
8842    # SGI C++ compiler will create directory out/ii_files/ for
8843    # template instantiation
8844    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8845    $RM out/* && rmdir out
8846    cd ..
8847    $RM -r conftest
8848    $RM conftest*
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8853
8854
8855
8856
8857
8858
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8861 if ${lt_cv_prog_compiler_c_o+:} false; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864   lt_cv_prog_compiler_c_o=no
8865    $RM -r conftest 2>/dev/null
8866    mkdir conftest
8867    cd conftest
8868    mkdir out
8869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870
8871    lt_compiler_flag="-o out/conftest2.$ac_objext"
8872    # Insert the option either (1) after the last *FLAGS variable, or
8873    # (2) before a word containing "conftest.", or (3) at the end.
8874    # Note that $ac_compile itself does not contain backslashes and begins
8875    # with a dollar sign (not a hyphen), so the echo should work correctly.
8876    lt_compile=`echo "$ac_compile" | $SED \
8877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8879    -e 's:$: $lt_compiler_flag:'`
8880    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8881    (eval "$lt_compile" 2>out/conftest.err)
8882    ac_status=$?
8883    cat out/conftest.err >&5
8884    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8886    then
8887      # The compiler can only warn and ignore the option if not recognized
8888      # So say no if there are warnings
8889      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8890      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8891      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8892        lt_cv_prog_compiler_c_o=yes
8893      fi
8894    fi
8895    chmod u+w . 2>&5
8896    $RM conftest*
8897    # SGI C++ compiler will create directory out/ii_files/ for
8898    # template instantiation
8899    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8900    $RM out/* && rmdir out
8901    cd ..
8902    $RM -r conftest
8903    $RM conftest*
8904
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8907 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8908
8909
8910
8911
8912 hard_links="nottested"
8913 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8914   # do not overwrite the value of need_locks provided by the user
8915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8916 $as_echo_n "checking if we can lock with hard links... " >&6; }
8917   hard_links=yes
8918   $RM conftest*
8919   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8920   touch conftest.a
8921   ln conftest.a conftest.b 2>&5 || hard_links=no
8922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8924 $as_echo "$hard_links" >&6; }
8925   if test "$hard_links" = no; then
8926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8927 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8928     need_locks=warn
8929   fi
8930 else
8931   need_locks=no
8932 fi
8933
8934
8935
8936
8937
8938
8939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8941
8942   runpath_var=
8943   allow_undefined_flag=
8944   always_export_symbols=no
8945   archive_cmds=
8946   archive_expsym_cmds=
8947   compiler_needs_object=no
8948   enable_shared_with_static_runtimes=no
8949   export_dynamic_flag_spec=
8950   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8951   hardcode_automatic=no
8952   hardcode_direct=no
8953   hardcode_direct_absolute=no
8954   hardcode_libdir_flag_spec=
8955   hardcode_libdir_separator=
8956   hardcode_minus_L=no
8957   hardcode_shlibpath_var=unsupported
8958   inherit_rpath=no
8959   link_all_deplibs=unknown
8960   module_cmds=
8961   module_expsym_cmds=
8962   old_archive_from_new_cmds=
8963   old_archive_from_expsyms_cmds=
8964   thread_safe_flag_spec=
8965   whole_archive_flag_spec=
8966   # include_expsyms should be a list of space-separated symbols to be *always*
8967   # included in the symbol list
8968   include_expsyms=
8969   # exclude_expsyms can be an extended regexp of symbols to exclude
8970   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8971   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8972   # as well as any symbol that contains `d'.
8973   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8974   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8975   # platforms (ab)use it in PIC code, but their linkers get confused if
8976   # the symbol is explicitly referenced.  Since portable code cannot
8977   # rely on this symbol name, it's probably fine to never include it in
8978   # preloaded symbol tables.
8979   # Exclude shared library initialization/finalization symbols.
8980   extract_expsyms_cmds=
8981
8982   case $host_os in
8983   cygwin* | mingw* | pw32* | cegcc*)
8984     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8985     # When not using gcc, we currently assume that we are using
8986     # Microsoft Visual C++.
8987     if test "$GCC" != yes; then
8988       with_gnu_ld=no
8989     fi
8990     ;;
8991   interix*)
8992     # we just hope/assume this is gcc and not c89 (= MSVC++)
8993     with_gnu_ld=yes
8994     ;;
8995   openbsd*)
8996     with_gnu_ld=no
8997     ;;
8998   linux* | k*bsd*-gnu | gnu*)
8999     link_all_deplibs=no
9000     ;;
9001   esac
9002
9003   ld_shlibs=yes
9004
9005   # On some targets, GNU ld is compatible enough with the native linker
9006   # that we're better off using the native interface for both.
9007   lt_use_gnu_ld_interface=no
9008   if test "$with_gnu_ld" = yes; then
9009     case $host_os in
9010       aix*)
9011         # The AIX port of GNU ld has always aspired to compatibility
9012         # with the native linker.  However, as the warning in the GNU ld
9013         # block says, versions before 2.19.5* couldn't really create working
9014         # shared libraries, regardless of the interface used.
9015         case `$LD -v 2>&1` in
9016           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9017           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9018           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9019           *)
9020             lt_use_gnu_ld_interface=yes
9021             ;;
9022         esac
9023         ;;
9024       *)
9025         lt_use_gnu_ld_interface=yes
9026         ;;
9027     esac
9028   fi
9029
9030   if test "$lt_use_gnu_ld_interface" = yes; then
9031     # If archive_cmds runs LD, not CC, wlarc should be empty
9032     wlarc='${wl}'
9033
9034     # Set some defaults for GNU ld with shared library support. These
9035     # are reset later if shared libraries are not supported. Putting them
9036     # here allows them to be overridden if necessary.
9037     runpath_var=LD_RUN_PATH
9038     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039     export_dynamic_flag_spec='${wl}--export-dynamic'
9040     # ancient GNU ld didn't support --whole-archive et. al.
9041     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9042       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9043     else
9044       whole_archive_flag_spec=
9045     fi
9046     supports_anon_versioning=no
9047     case `$LD -v 2>&1` in
9048       *GNU\ gold*) supports_anon_versioning=yes ;;
9049       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9050       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9051       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9052       *\ 2.11.*) ;; # other 2.11 versions
9053       *) supports_anon_versioning=yes ;;
9054     esac
9055
9056     # See if GNU ld supports shared libraries.
9057     case $host_os in
9058     aix[3-9]*)
9059       # On AIX/PPC, the GNU linker is very broken
9060       if test "$host_cpu" != ia64; then
9061         ld_shlibs=no
9062         cat <<_LT_EOF 1>&2
9063
9064 *** Warning: the GNU linker, at least up to release 2.19, is reported
9065 *** to be unable to reliably create shared libraries on AIX.
9066 *** Therefore, libtool is disabling shared libraries support.  If you
9067 *** really care for shared libraries, you may want to install binutils
9068 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9069 *** You will then need to restart the configuration process.
9070
9071 _LT_EOF
9072       fi
9073       ;;
9074
9075     amigaos*)
9076       case $host_cpu in
9077       powerpc)
9078             # see comment about AmigaOS4 .so support
9079             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080             archive_expsym_cmds=''
9081         ;;
9082       m68k)
9083             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)'
9084             hardcode_libdir_flag_spec='-L$libdir'
9085             hardcode_minus_L=yes
9086         ;;
9087       esac
9088       ;;
9089
9090     beos*)
9091       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9092         allow_undefined_flag=unsupported
9093         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9094         # support --undefined.  This deserves some investigation.  FIXME
9095         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096       else
9097         ld_shlibs=no
9098       fi
9099       ;;
9100
9101     cygwin* | mingw* | pw32* | cegcc*)
9102       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9103       # as there is no search path for DLLs.
9104       hardcode_libdir_flag_spec='-L$libdir'
9105       export_dynamic_flag_spec='${wl}--export-all-symbols'
9106       allow_undefined_flag=unsupported
9107       always_export_symbols=no
9108       enable_shared_with_static_runtimes=yes
9109       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'
9110       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9111
9112       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9114         # If the export-symbols file already is a .def file (1st line
9115         # is EXPORTS), use it as is; otherwise, prepend...
9116         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9117           cp $export_symbols $output_objdir/$soname.def;
9118         else
9119           echo EXPORTS > $output_objdir/$soname.def;
9120           cat $export_symbols >> $output_objdir/$soname.def;
9121         fi~
9122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9123       else
9124         ld_shlibs=no
9125       fi
9126       ;;
9127
9128     haiku*)
9129       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130       link_all_deplibs=yes
9131       ;;
9132
9133     interix[3-9]*)
9134       hardcode_direct=no
9135       hardcode_shlibpath_var=no
9136       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9137       export_dynamic_flag_spec='${wl}-E'
9138       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9139       # Instead, shared libraries are loaded at an image base (0x10000000 by
9140       # default) and relocated if they conflict, which is a slow very memory
9141       # consuming and fragmenting process.  To avoid this, we pick a random,
9142       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9143       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9144       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9145       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'
9146       ;;
9147
9148     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9149       tmp_diet=no
9150       if test "$host_os" = linux-dietlibc; then
9151         case $cc_basename in
9152           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9153         esac
9154       fi
9155       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9156          && test "$tmp_diet" = no
9157       then
9158         tmp_addflag=' $pic_flag'
9159         tmp_sharedflag='-shared'
9160         case $cc_basename,$host_cpu in
9161         pgcc*)                          # Portland Group C compiler
9162           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'
9163           tmp_addflag=' $pic_flag'
9164           ;;
9165         pgf77* | pgf90* | pgf95* | pgfortran*)
9166                                         # Portland Group f77 and f90 compilers
9167           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'
9168           tmp_addflag=' $pic_flag -Mnomain' ;;
9169         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9170           tmp_addflag=' -i_dynamic' ;;
9171         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9172           tmp_addflag=' -i_dynamic -nofor_main' ;;
9173         ifc* | ifort*)                  # Intel Fortran compiler
9174           tmp_addflag=' -nofor_main' ;;
9175         lf95*)                          # Lahey Fortran 8.1
9176           whole_archive_flag_spec=
9177           tmp_sharedflag='--shared' ;;
9178         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9179           tmp_sharedflag='-qmkshrobj'
9180           tmp_addflag= ;;
9181         nvcc*)  # Cuda Compiler Driver 2.2
9182           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'
9183           compiler_needs_object=yes
9184           ;;
9185         esac
9186         case `$CC -V 2>&1 | sed 5q` in
9187         *Sun\ C*)                       # Sun C 5.9
9188           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'
9189           compiler_needs_object=yes
9190           tmp_sharedflag='-G' ;;
9191         *Sun\ F*)                       # Sun Fortran 8.3
9192           tmp_sharedflag='-G' ;;
9193         esac
9194         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195
9196         if test "x$supports_anon_versioning" = xyes; then
9197           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9198             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9199             echo "local: *; };" >> $output_objdir/$libname.ver~
9200             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9201         fi
9202
9203         case $cc_basename in
9204         xlf* | bgf* | bgxlf* | mpixlf*)
9205           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9206           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9207           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9208           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9209           if test "x$supports_anon_versioning" = xyes; then
9210             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9211               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9212               echo "local: *; };" >> $output_objdir/$libname.ver~
9213               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9214           fi
9215           ;;
9216         esac
9217       else
9218         ld_shlibs=no
9219       fi
9220       ;;
9221
9222     netbsd* | netbsdelf*-gnu)
9223       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9224         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9225         wlarc=
9226       else
9227         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9229       fi
9230       ;;
9231
9232     solaris*)
9233       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9234         ld_shlibs=no
9235         cat <<_LT_EOF 1>&2
9236
9237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9238 *** create shared libraries on Solaris systems.  Therefore, libtool
9239 *** is disabling shared libraries support.  We urge you to upgrade GNU
9240 *** binutils to release 2.9.1 or newer.  Another option is to modify
9241 *** your PATH or compiler configuration so that the native linker is
9242 *** used, and then restart.
9243
9244 _LT_EOF
9245       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9246         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9248       else
9249         ld_shlibs=no
9250       fi
9251       ;;
9252
9253     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9254       case `$LD -v 2>&1` in
9255         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9256         ld_shlibs=no
9257         cat <<_LT_EOF 1>&2
9258
9259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9260 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9261 *** is disabling shared libraries support.  We urge you to upgrade GNU
9262 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9263 *** your PATH or compiler configuration so that the native linker is
9264 *** used, and then restart.
9265
9266 _LT_EOF
9267         ;;
9268         *)
9269           # For security reasons, it is highly recommended that you always
9270           # use absolute paths for naming shared libraries, and exclude the
9271           # DT_RUNPATH tag from executables and libraries.  But doing so
9272           # requires that you compile everything twice, which is a pain.
9273           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9277           else
9278             ld_shlibs=no
9279           fi
9280         ;;
9281       esac
9282       ;;
9283
9284     sunos4*)
9285       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9286       wlarc=
9287       hardcode_direct=yes
9288       hardcode_shlibpath_var=no
9289       ;;
9290
9291     *)
9292       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295       else
9296         ld_shlibs=no
9297       fi
9298       ;;
9299     esac
9300
9301     if test "$ld_shlibs" = no; then
9302       runpath_var=
9303       hardcode_libdir_flag_spec=
9304       export_dynamic_flag_spec=
9305       whole_archive_flag_spec=
9306     fi
9307   else
9308     # PORTME fill in a description of your system's linker (not GNU ld)
9309     case $host_os in
9310     aix3*)
9311       allow_undefined_flag=unsupported
9312       always_export_symbols=yes
9313       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'
9314       # Note: this linker hardcodes the directories in LIBPATH if there
9315       # are no directories specified by -L.
9316       hardcode_minus_L=yes
9317       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9318         # Neither direct hardcoding nor static linking is supported with a
9319         # broken collect2.
9320         hardcode_direct=unsupported
9321       fi
9322       ;;
9323
9324     aix[4-9]*)
9325       if test "$host_cpu" = ia64; then
9326         # On IA64, the linker does run time linking by default, so we don't
9327         # have to do anything special.
9328         aix_use_runtimelinking=no
9329         exp_sym_flag='-Bexport'
9330         no_entry_flag=""
9331       else
9332         # If we're using GNU nm, then we don't want the "-C" option.
9333         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9334         # Also, AIX nm treats weak defined symbols like other global
9335         # defined symbols, whereas GNU nm marks them as "W".
9336         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9337           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'
9338         else
9339           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'
9340         fi
9341         aix_use_runtimelinking=no
9342
9343         # Test if we are trying to use run time linking or normal
9344         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9345         # need to do runtime linking.
9346         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9347           for ld_flag in $LDFLAGS; do
9348           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9349             aix_use_runtimelinking=yes
9350             break
9351           fi
9352           done
9353           ;;
9354         esac
9355
9356         exp_sym_flag='-bexport'
9357         no_entry_flag='-bnoentry'
9358       fi
9359
9360       # When large executables or shared objects are built, AIX ld can
9361       # have problems creating the table of contents.  If linking a library
9362       # or program results in "error TOC overflow" add -mminimal-toc to
9363       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9364       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9365
9366       archive_cmds=''
9367       hardcode_direct=yes
9368       hardcode_direct_absolute=yes
9369       hardcode_libdir_separator=':'
9370       link_all_deplibs=yes
9371       file_list_spec='${wl}-f,'
9372
9373       if test "$GCC" = yes; then
9374         case $host_os in aix4.[012]|aix4.[012].*)
9375         # We only want to do this on AIX 4.2 and lower, the check
9376         # below for broken collect2 doesn't work under 4.3+
9377           collect2name=`${CC} -print-prog-name=collect2`
9378           if test -f "$collect2name" &&
9379            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9380           then
9381           # We have reworked collect2
9382           :
9383           else
9384           # We have old collect2
9385           hardcode_direct=unsupported
9386           # It fails to find uninstalled libraries when the uninstalled
9387           # path is not listed in the libpath.  Setting hardcode_minus_L
9388           # to unsupported forces relinking
9389           hardcode_minus_L=yes
9390           hardcode_libdir_flag_spec='-L$libdir'
9391           hardcode_libdir_separator=
9392           fi
9393           ;;
9394         esac
9395         shared_flag='-shared'
9396         if test "$aix_use_runtimelinking" = yes; then
9397           shared_flag="$shared_flag "'${wl}-G'
9398         fi
9399         link_all_deplibs=no
9400       else
9401         # not using gcc
9402         if test "$host_cpu" = ia64; then
9403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9404         # chokes on -Wl,-G. The following line is correct:
9405           shared_flag='-G'
9406         else
9407           if test "$aix_use_runtimelinking" = yes; then
9408             shared_flag='${wl}-G'
9409           else
9410             shared_flag='${wl}-bM:SRE'
9411           fi
9412         fi
9413       fi
9414
9415       export_dynamic_flag_spec='${wl}-bexpall'
9416       # It seems that -bexpall does not export symbols beginning with
9417       # underscore (_), so it is better to generate a list of symbols to export.
9418       always_export_symbols=yes
9419       if test "$aix_use_runtimelinking" = yes; then
9420         # Warning - without using the other runtime loading flags (-brtl),
9421         # -berok will link without error, but may produce a broken library.
9422         allow_undefined_flag='-berok'
9423         # Determine the default libpath from the value encoded in an
9424         # empty executable.
9425         if test "${lt_cv_aix_libpath+set}" = set; then
9426   aix_libpath=$lt_cv_aix_libpath
9427 else
9428   if ${lt_cv_aix_libpath_+:} false; then :
9429   $as_echo_n "(cached) " >&6
9430 else
9431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h.  */
9433
9434 int
9435 main ()
9436 {
9437
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"; then :
9443
9444   lt_aix_libpath_sed='
9445       /Import File Strings/,/^$/ {
9446           /^0/ {
9447               s/^0  *\([^ ]*\) *$/\1/
9448               p
9449           }
9450       }'
9451   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9452   # Check for a 64-bit object if we didn't find anything.
9453   if test -z "$lt_cv_aix_libpath_"; then
9454     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9455   fi
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext \
9458     conftest$ac_exeext conftest.$ac_ext
9459   if test -z "$lt_cv_aix_libpath_"; then
9460     lt_cv_aix_libpath_="/usr/lib:/lib"
9461   fi
9462
9463 fi
9464
9465   aix_libpath=$lt_cv_aix_libpath_
9466 fi
9467
9468         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9469         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"
9470       else
9471         if test "$host_cpu" = ia64; then
9472           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9473           allow_undefined_flag="-z nodefs"
9474           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"
9475         else
9476          # Determine the default libpath from the value encoded in an
9477          # empty executable.
9478          if test "${lt_cv_aix_libpath+set}" = set; then
9479   aix_libpath=$lt_cv_aix_libpath
9480 else
9481   if ${lt_cv_aix_libpath_+:} false; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h.  */
9486
9487 int
9488 main ()
9489 {
9490
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496
9497   lt_aix_libpath_sed='
9498       /Import File Strings/,/^$/ {
9499           /^0/ {
9500               s/^0  *\([^ ]*\) *$/\1/
9501               p
9502           }
9503       }'
9504   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505   # Check for a 64-bit object if we didn't find anything.
9506   if test -z "$lt_cv_aix_libpath_"; then
9507     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508   fi
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext \
9511     conftest$ac_exeext conftest.$ac_ext
9512   if test -z "$lt_cv_aix_libpath_"; then
9513     lt_cv_aix_libpath_="/usr/lib:/lib"
9514   fi
9515
9516 fi
9517
9518   aix_libpath=$lt_cv_aix_libpath_
9519 fi
9520
9521          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9522           # Warning - without using the other run time loading flags,
9523           # -berok will link without error, but may produce a broken library.
9524           no_undefined_flag=' ${wl}-bernotok'
9525           allow_undefined_flag=' ${wl}-berok'
9526           if test "$with_gnu_ld" = yes; then
9527             # We only use this code for GNU lds that support --whole-archive.
9528             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9529           else
9530             # Exported symbols can be pulled into shared objects from archives
9531             whole_archive_flag_spec='$convenience'
9532           fi
9533           archive_cmds_need_lc=yes
9534           # This is similar to how AIX traditionally builds its shared libraries.
9535           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'
9536         fi
9537       fi
9538       ;;
9539
9540     amigaos*)
9541       case $host_cpu in
9542       powerpc)
9543             # see comment about AmigaOS4 .so support
9544             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545             archive_expsym_cmds=''
9546         ;;
9547       m68k)
9548             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)'
9549             hardcode_libdir_flag_spec='-L$libdir'
9550             hardcode_minus_L=yes
9551         ;;
9552       esac
9553       ;;
9554
9555     bsdi[45]*)
9556       export_dynamic_flag_spec=-rdynamic
9557       ;;
9558
9559     cygwin* | mingw* | pw32* | cegcc*)
9560       # When not using gcc, we currently assume that we are using
9561       # Microsoft Visual C++.
9562       # hardcode_libdir_flag_spec is actually meaningless, as there is
9563       # no search path for DLLs.
9564       case $cc_basename in
9565       cl*)
9566         # Native MSVC
9567         hardcode_libdir_flag_spec=' '
9568         allow_undefined_flag=unsupported
9569         always_export_symbols=yes
9570         file_list_spec='@'
9571         # Tell ltmain to make .lib files, not .a files.
9572         libext=lib
9573         # Tell ltmain to make .dll files, not .so files.
9574         shrext_cmds=".dll"
9575         # FIXME: Setting linknames here is a bad hack.
9576         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9577         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9578             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9579           else
9580             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9581           fi~
9582           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9583           linknames='
9584         # The linker will not automatically build a static lib if we build a DLL.
9585         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9586         enable_shared_with_static_runtimes=yes
9587         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9588         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9589         # Don't use ranlib
9590         old_postinstall_cmds='chmod 644 $oldlib'
9591         postlink_cmds='lt_outputfile="@OUTPUT@"~
9592           lt_tool_outputfile="@TOOL_OUTPUT@"~
9593           case $lt_outputfile in
9594             *.exe|*.EXE) ;;
9595             *)
9596               lt_outputfile="$lt_outputfile.exe"
9597               lt_tool_outputfile="$lt_tool_outputfile.exe"
9598               ;;
9599           esac~
9600           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9601             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9602             $RM "$lt_outputfile.manifest";
9603           fi'
9604         ;;
9605       *)
9606         # Assume MSVC wrapper
9607         hardcode_libdir_flag_spec=' '
9608         allow_undefined_flag=unsupported
9609         # Tell ltmain to make .lib files, not .a files.
9610         libext=lib
9611         # Tell ltmain to make .dll files, not .so files.
9612         shrext_cmds=".dll"
9613         # FIXME: Setting linknames here is a bad hack.
9614         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9615         # The linker will automatically build a .lib file if we build a DLL.
9616         old_archive_from_new_cmds='true'
9617         # FIXME: Should let the user specify the lib program.
9618         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9619         enable_shared_with_static_runtimes=yes
9620         ;;
9621       esac
9622       ;;
9623
9624     darwin* | rhapsody*)
9625
9626
9627   archive_cmds_need_lc=no
9628   hardcode_direct=no
9629   hardcode_automatic=yes
9630   hardcode_shlibpath_var=unsupported
9631   if test "$lt_cv_ld_force_load" = "yes"; then
9632     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\"`'
9633
9634   else
9635     whole_archive_flag_spec=''
9636   fi
9637   link_all_deplibs=yes
9638   allow_undefined_flag="$_lt_dar_allow_undefined"
9639   case $cc_basename in
9640      ifort*) _lt_dar_can_shared=yes ;;
9641      *) _lt_dar_can_shared=$GCC ;;
9642   esac
9643   if test "$_lt_dar_can_shared" = "yes"; then
9644     output_verbose_link_cmd=func_echo_all
9645     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9646     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9647     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}"
9648     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}"
9649
9650   else
9651   ld_shlibs=no
9652   fi
9653
9654       ;;
9655
9656     dgux*)
9657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658       hardcode_libdir_flag_spec='-L$libdir'
9659       hardcode_shlibpath_var=no
9660       ;;
9661
9662     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9663     # support.  Future versions do this automatically, but an explicit c++rt0.o
9664     # does not break anything, and helps significantly (at the cost of a little
9665     # extra space).
9666     freebsd2.2*)
9667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9668       hardcode_libdir_flag_spec='-R$libdir'
9669       hardcode_direct=yes
9670       hardcode_shlibpath_var=no
9671       ;;
9672
9673     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9674     freebsd2.*)
9675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9676       hardcode_direct=yes
9677       hardcode_minus_L=yes
9678       hardcode_shlibpath_var=no
9679       ;;
9680
9681     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9682     freebsd* | dragonfly*)
9683       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9684       hardcode_libdir_flag_spec='-R$libdir'
9685       hardcode_direct=yes
9686       hardcode_shlibpath_var=no
9687       ;;
9688
9689     hpux9*)
9690       if test "$GCC" = yes; then
9691         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'
9692       else
9693         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'
9694       fi
9695       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696       hardcode_libdir_separator=:
9697       hardcode_direct=yes
9698
9699       # hardcode_minus_L: Not really in the search PATH,
9700       # but as the default location of the library.
9701       hardcode_minus_L=yes
9702       export_dynamic_flag_spec='${wl}-E'
9703       ;;
9704
9705     hpux10*)
9706       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9707         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9708       else
9709         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9710       fi
9711       if test "$with_gnu_ld" = no; then
9712         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9713         hardcode_libdir_separator=:
9714         hardcode_direct=yes
9715         hardcode_direct_absolute=yes
9716         export_dynamic_flag_spec='${wl}-E'
9717         # hardcode_minus_L: Not really in the search PATH,
9718         # but as the default location of the library.
9719         hardcode_minus_L=yes
9720       fi
9721       ;;
9722
9723     hpux11*)
9724       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9725         case $host_cpu in
9726         hppa*64*)
9727           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9728           ;;
9729         ia64*)
9730           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9731           ;;
9732         *)
9733           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734           ;;
9735         esac
9736       else
9737         case $host_cpu in
9738         hppa*64*)
9739           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9740           ;;
9741         ia64*)
9742           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9743           ;;
9744         *)
9745
9746           # Older versions of the 11.00 compiler do not understand -b yet
9747           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9748           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9749 $as_echo_n "checking if $CC understands -b... " >&6; }
9750 if ${lt_cv_prog_compiler__b+:} false; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   lt_cv_prog_compiler__b=no
9754    save_LDFLAGS="$LDFLAGS"
9755    LDFLAGS="$LDFLAGS -b"
9756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9758      # The linker can only warn and ignore the option if not recognized
9759      # So say no if there are warnings
9760      if test -s conftest.err; then
9761        # Append any errors to the config.log.
9762        cat conftest.err 1>&5
9763        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9765        if diff conftest.exp conftest.er2 >/dev/null; then
9766          lt_cv_prog_compiler__b=yes
9767        fi
9768      else
9769        lt_cv_prog_compiler__b=yes
9770      fi
9771    fi
9772    $RM -r conftest*
9773    LDFLAGS="$save_LDFLAGS"
9774
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9777 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9778
9779 if test x"$lt_cv_prog_compiler__b" = xyes; then
9780     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9781 else
9782     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9783 fi
9784
9785           ;;
9786         esac
9787       fi
9788       if test "$with_gnu_ld" = no; then
9789         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9790         hardcode_libdir_separator=:
9791
9792         case $host_cpu in
9793         hppa*64*|ia64*)
9794           hardcode_direct=no
9795           hardcode_shlibpath_var=no
9796           ;;
9797         *)
9798           hardcode_direct=yes
9799           hardcode_direct_absolute=yes
9800           export_dynamic_flag_spec='${wl}-E'
9801
9802           # hardcode_minus_L: Not really in the search PATH,
9803           # but as the default location of the library.
9804           hardcode_minus_L=yes
9805           ;;
9806         esac
9807       fi
9808       ;;
9809
9810     irix5* | irix6* | nonstopux*)
9811       if test "$GCC" = yes; then
9812         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'
9813         # Try to use the -exported_symbol ld option, if it does not
9814         # work, assume that -exports_file does not work either and
9815         # implicitly export all symbols.
9816         # This should be the same for all languages, so no per-tag cache variable.
9817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9818 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9819 if ${lt_cv_irix_exported_symbol+:} false; then :
9820   $as_echo_n "(cached) " >&6
9821 else
9822   save_LDFLAGS="$LDFLAGS"
9823            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9824            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h.  */
9826 int foo (void) { return 0; }
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829   lt_cv_irix_exported_symbol=yes
9830 else
9831   lt_cv_irix_exported_symbol=no
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834     conftest$ac_exeext conftest.$ac_ext
9835            LDFLAGS="$save_LDFLAGS"
9836 fi
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9838 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9839         if test "$lt_cv_irix_exported_symbol" = yes; then
9840           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'
9841         fi
9842       else
9843         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'
9844         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'
9845       fi
9846       archive_cmds_need_lc='no'
9847       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9848       hardcode_libdir_separator=:
9849       inherit_rpath=yes
9850       link_all_deplibs=yes
9851       ;;
9852
9853     netbsd* | netbsdelf*-gnu)
9854       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9855         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9856       else
9857         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9858       fi
9859       hardcode_libdir_flag_spec='-R$libdir'
9860       hardcode_direct=yes
9861       hardcode_shlibpath_var=no
9862       ;;
9863
9864     newsos6)
9865       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866       hardcode_direct=yes
9867       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868       hardcode_libdir_separator=:
9869       hardcode_shlibpath_var=no
9870       ;;
9871
9872     *nto* | *qnx*)
9873       ;;
9874
9875     openbsd*)
9876       if test -f /usr/libexec/ld.so; then
9877         hardcode_direct=yes
9878         hardcode_shlibpath_var=no
9879         hardcode_direct_absolute=yes
9880         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9881           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9882           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9883           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9884           export_dynamic_flag_spec='${wl}-E'
9885         else
9886           case $host_os in
9887            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9888              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9889              hardcode_libdir_flag_spec='-R$libdir'
9890              ;;
9891            *)
9892              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9893              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9894              ;;
9895           esac
9896         fi
9897       else
9898         ld_shlibs=no
9899       fi
9900       ;;
9901
9902     os2*)
9903       hardcode_libdir_flag_spec='-L$libdir'
9904       hardcode_minus_L=yes
9905       allow_undefined_flag=unsupported
9906       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'
9907       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9908       ;;
9909
9910     osf3*)
9911       if test "$GCC" = yes; then
9912         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9913         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'
9914       else
9915         allow_undefined_flag=' -expect_unresolved \*'
9916         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'
9917       fi
9918       archive_cmds_need_lc='no'
9919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920       hardcode_libdir_separator=:
9921       ;;
9922
9923     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9924       if test "$GCC" = yes; then
9925         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9926         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'
9927         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9928       else
9929         allow_undefined_flag=' -expect_unresolved \*'
9930         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'
9931         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~
9932         $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'
9933
9934         # Both c and cxx compiler support -rpath directly
9935         hardcode_libdir_flag_spec='-rpath $libdir'
9936       fi
9937       archive_cmds_need_lc='no'
9938       hardcode_libdir_separator=:
9939       ;;
9940
9941     solaris*)
9942       no_undefined_flag=' -z defs'
9943       if test "$GCC" = yes; then
9944         wlarc='${wl}'
9945         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9946         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9947           $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'
9948       else
9949         case `$CC -V 2>&1` in
9950         *"Compilers 5.0"*)
9951           wlarc=''
9952           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9954           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9955           ;;
9956         *)
9957           wlarc='${wl}'
9958           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9959           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9960           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9961           ;;
9962         esac
9963       fi
9964       hardcode_libdir_flag_spec='-R$libdir'
9965       hardcode_shlibpath_var=no
9966       case $host_os in
9967       solaris2.[0-5] | solaris2.[0-5].*) ;;
9968       *)
9969         # The compiler driver will combine and reorder linker options,
9970         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9971         # but is careful enough not to reorder.
9972         # Supported since Solaris 2.6 (maybe 2.5.1?)
9973         if test "$GCC" = yes; then
9974           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9975         else
9976           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9977         fi
9978         ;;
9979       esac
9980       link_all_deplibs=yes
9981       ;;
9982
9983     sunos4*)
9984       if test "x$host_vendor" = xsequent; then
9985         # Use $CC to link under sequent, because it throws in some extra .o
9986         # files that make .init and .fini sections work.
9987         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9988       else
9989         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9990       fi
9991       hardcode_libdir_flag_spec='-L$libdir'
9992       hardcode_direct=yes
9993       hardcode_minus_L=yes
9994       hardcode_shlibpath_var=no
9995       ;;
9996
9997     sysv4)
9998       case $host_vendor in
9999         sni)
10000           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001           hardcode_direct=yes # is this really true???
10002         ;;
10003         siemens)
10004           ## LD is ld it makes a PLAMLIB
10005           ## CC just makes a GrossModule.
10006           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10007           reload_cmds='$CC -r -o $output$reload_objs'
10008           hardcode_direct=no
10009         ;;
10010         motorola)
10011           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10013         ;;
10014       esac
10015       runpath_var='LD_RUN_PATH'
10016       hardcode_shlibpath_var=no
10017       ;;
10018
10019     sysv4.3*)
10020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021       hardcode_shlibpath_var=no
10022       export_dynamic_flag_spec='-Bexport'
10023       ;;
10024
10025     sysv4*MP*)
10026       if test -d /usr/nec; then
10027         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028         hardcode_shlibpath_var=no
10029         runpath_var=LD_RUN_PATH
10030         hardcode_runpath_var=yes
10031         ld_shlibs=yes
10032       fi
10033       ;;
10034
10035     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10036       no_undefined_flag='${wl}-z,text'
10037       archive_cmds_need_lc=no
10038       hardcode_shlibpath_var=no
10039       runpath_var='LD_RUN_PATH'
10040
10041       if test "$GCC" = yes; then
10042         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044       else
10045         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047       fi
10048       ;;
10049
10050     sysv5* | sco3.2v5* | sco5v6*)
10051       # Note: We can NOT use -z defs as we might desire, because we do not
10052       # link with -lc, and that would cause any symbols used from libc to
10053       # always be unresolved, which means just about no library would
10054       # ever link correctly.  If we're not using GNU ld we use -z text
10055       # though, which does catch some bad symbols but isn't as heavy-handed
10056       # as -z defs.
10057       no_undefined_flag='${wl}-z,text'
10058       allow_undefined_flag='${wl}-z,nodefs'
10059       archive_cmds_need_lc=no
10060       hardcode_shlibpath_var=no
10061       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10062       hardcode_libdir_separator=':'
10063       link_all_deplibs=yes
10064       export_dynamic_flag_spec='${wl}-Bexport'
10065       runpath_var='LD_RUN_PATH'
10066
10067       if test "$GCC" = yes; then
10068         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070       else
10071         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10073       fi
10074       ;;
10075
10076     uts4*)
10077       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078       hardcode_libdir_flag_spec='-L$libdir'
10079       hardcode_shlibpath_var=no
10080       ;;
10081
10082     *)
10083       ld_shlibs=no
10084       ;;
10085     esac
10086
10087     if test x$host_vendor = xsni; then
10088       case $host in
10089       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10090         export_dynamic_flag_spec='${wl}-Blargedynsym'
10091         ;;
10092       esac
10093     fi
10094   fi
10095
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10097 $as_echo "$ld_shlibs" >&6; }
10098 test "$ld_shlibs" = no && can_build_shared=no
10099
10100 with_gnu_ld=$with_gnu_ld
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116 #
10117 # Do we need to explicitly link libc?
10118 #
10119 case "x$archive_cmds_need_lc" in
10120 x|xyes)
10121   # Assume -lc should be added
10122   archive_cmds_need_lc=yes
10123
10124   if test "$enable_shared" = yes && test "$GCC" = yes; then
10125     case $archive_cmds in
10126     *'~'*)
10127       # FIXME: we may have to deal with multi-command sequences.
10128       ;;
10129     '$CC '*)
10130       # Test whether the compiler implicitly links with -lc since on some
10131       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10132       # to ld, don't add -lc before -lgcc.
10133       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10134 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10135 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   $RM conftest*
10139         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10140
10141         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10142   (eval $ac_compile) 2>&5
10143   ac_status=$?
10144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145   test $ac_status = 0; } 2>conftest.err; then
10146           soname=conftest
10147           lib=conftest
10148           libobjs=conftest.$ac_objext
10149           deplibs=
10150           wl=$lt_prog_compiler_wl
10151           pic_flag=$lt_prog_compiler_pic
10152           compiler_flags=-v
10153           linker_flags=-v
10154           verstring=
10155           output_objdir=.
10156           libname=conftest
10157           lt_save_allow_undefined_flag=$allow_undefined_flag
10158           allow_undefined_flag=
10159           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10160   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10161   ac_status=$?
10162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10163   test $ac_status = 0; }
10164           then
10165             lt_cv_archive_cmds_need_lc=no
10166           else
10167             lt_cv_archive_cmds_need_lc=yes
10168           fi
10169           allow_undefined_flag=$lt_save_allow_undefined_flag
10170         else
10171           cat conftest.err 1>&5
10172         fi
10173         $RM conftest*
10174
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10177 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10178       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10179       ;;
10180     esac
10181   fi
10182   ;;
10183 esac
10184
10185
10186
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10338
10339 if test "$GCC" = yes; then
10340   case $host_os in
10341     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10342     *) lt_awk_arg="/^libraries:/" ;;
10343   esac
10344   case $host_os in
10345     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10346     *) lt_sed_strip_eq="s,=/,/,g" ;;
10347   esac
10348   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10349   case $lt_search_path_spec in
10350   *\;*)
10351     # if the path contains ";" then we assume it to be the separator
10352     # otherwise default to the standard path separator (i.e. ":") - it is
10353     # assumed that no part of a normal pathname contains ";" but that should
10354     # okay in the real world where ";" in dirpaths is itself problematic.
10355     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10356     ;;
10357   *)
10358     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10359     ;;
10360   esac
10361   # Ok, now we have the path, separated by spaces, we can step through it
10362   # and add multilib dir if necessary.
10363   lt_tmp_lt_search_path_spec=
10364   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10365   for lt_sys_path in $lt_search_path_spec; do
10366     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10367       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10368     else
10369       test -d "$lt_sys_path" && \
10370         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10371     fi
10372   done
10373   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10374 BEGIN {RS=" "; FS="/|\n";} {
10375   lt_foo="";
10376   lt_count=0;
10377   for (lt_i = NF; lt_i > 0; lt_i--) {
10378     if ($lt_i != "" && $lt_i != ".") {
10379       if ($lt_i == "..") {
10380         lt_count++;
10381       } else {
10382         if (lt_count == 0) {
10383           lt_foo="/" $lt_i lt_foo;
10384         } else {
10385           lt_count--;
10386         }
10387       }
10388     }
10389   }
10390   if (lt_foo != "") { lt_freq[lt_foo]++; }
10391   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10392 }'`
10393   # AWK program above erroneously prepends '/' to C:/dos/paths
10394   # for these hosts.
10395   case $host_os in
10396     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10397       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10398   esac
10399   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10400 else
10401   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10402 fi
10403 library_names_spec=
10404 libname_spec='lib$name'
10405 soname_spec=
10406 shrext_cmds=".so"
10407 postinstall_cmds=
10408 postuninstall_cmds=
10409 finish_cmds=
10410 finish_eval=
10411 shlibpath_var=
10412 shlibpath_overrides_runpath=unknown
10413 version_type=none
10414 dynamic_linker="$host_os ld.so"
10415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10416 need_lib_prefix=unknown
10417 hardcode_into_libs=no
10418
10419 # when you set need_version to no, make sure it does not cause -set_version
10420 # flags to be left without arguments
10421 need_version=unknown
10422
10423 case $host_os in
10424 aix3*)
10425   version_type=linux # correct to gnu/linux during the next big refactor
10426   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10427   shlibpath_var=LIBPATH
10428
10429   # AIX 3 has no versioning support, so we append a major version to the name.
10430   soname_spec='${libname}${release}${shared_ext}$major'
10431   ;;
10432
10433 aix[4-9]*)
10434   version_type=linux # correct to gnu/linux during the next big refactor
10435   need_lib_prefix=no
10436   need_version=no
10437   hardcode_into_libs=yes
10438   if test "$host_cpu" = ia64; then
10439     # AIX 5 supports IA64
10440     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10441     shlibpath_var=LD_LIBRARY_PATH
10442   else
10443     # With GCC up to 2.95.x, collect2 would create an import file
10444     # for dependence libraries.  The import file would start with
10445     # the line `#! .'.  This would cause the generated library to
10446     # depend on `.', always an invalid library.  This was fixed in
10447     # development snapshots of GCC prior to 3.0.
10448     case $host_os in
10449       aix4 | aix4.[01] | aix4.[01].*)
10450       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10451            echo ' yes '
10452            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10453         :
10454       else
10455         can_build_shared=no
10456       fi
10457       ;;
10458     esac
10459     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10460     # soname into executable. Probably we can add versioning support to
10461     # collect2, so additional links can be useful in future.
10462     if test "$aix_use_runtimelinking" = yes; then
10463       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10464       # instead of lib<name>.a to let people know that these are not
10465       # typical AIX shared libraries.
10466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467     else
10468       # We preserve .a as extension for shared libraries through AIX4.2
10469       # and later when we are not doing run time linking.
10470       library_names_spec='${libname}${release}.a $libname.a'
10471       soname_spec='${libname}${release}${shared_ext}$major'
10472     fi
10473     shlibpath_var=LIBPATH
10474   fi
10475   ;;
10476
10477 amigaos*)
10478   case $host_cpu in
10479   powerpc)
10480     # Since July 2007 AmigaOS4 officially supports .so libraries.
10481     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483     ;;
10484   m68k)
10485     library_names_spec='$libname.ixlibrary $libname.a'
10486     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10487     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'
10488     ;;
10489   esac
10490   ;;
10491
10492 beos*)
10493   library_names_spec='${libname}${shared_ext}'
10494   dynamic_linker="$host_os ld.so"
10495   shlibpath_var=LIBRARY_PATH
10496   ;;
10497
10498 bsdi[45]*)
10499   version_type=linux # correct to gnu/linux during the next big refactor
10500   need_version=no
10501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502   soname_spec='${libname}${release}${shared_ext}$major'
10503   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10504   shlibpath_var=LD_LIBRARY_PATH
10505   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10506   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10507   # the default ld.so.conf also contains /usr/contrib/lib and
10508   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10509   # libtool to hard-code these into programs
10510   ;;
10511
10512 cygwin* | mingw* | pw32* | cegcc*)
10513   version_type=windows
10514   shrext_cmds=".dll"
10515   need_version=no
10516   need_lib_prefix=no
10517
10518   case $GCC,$cc_basename in
10519   yes,*)
10520     # gcc
10521     library_names_spec='$libname.dll.a'
10522     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10523     postinstall_cmds='base_file=`basename \${file}`~
10524       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10525       dldir=$destdir/`dirname \$dlpath`~
10526       test -d \$dldir || mkdir -p \$dldir~
10527       $install_prog $dir/$dlname \$dldir/$dlname~
10528       chmod a+x \$dldir/$dlname~
10529       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10530         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10531       fi'
10532     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10533       dlpath=$dir/\$dldll~
10534        $RM \$dlpath'
10535     shlibpath_overrides_runpath=yes
10536
10537     case $host_os in
10538     cygwin*)
10539       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10540       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10541
10542       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10543       ;;
10544     mingw* | cegcc*)
10545       # MinGW DLLs use traditional 'lib' prefix
10546       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10547       ;;
10548     pw32*)
10549       # pw32 DLLs use 'pw' prefix rather than 'lib'
10550       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10551       ;;
10552     esac
10553     dynamic_linker='Win32 ld.exe'
10554     ;;
10555
10556   *,cl*)
10557     # Native MSVC
10558     libname_spec='$name'
10559     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10560     library_names_spec='${libname}.dll.lib'
10561
10562     case $build_os in
10563     mingw*)
10564       sys_lib_search_path_spec=
10565       lt_save_ifs=$IFS
10566       IFS=';'
10567       for lt_path in $LIB
10568       do
10569         IFS=$lt_save_ifs
10570         # Let DOS variable expansion print the short 8.3 style file name.
10571         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10572         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10573       done
10574       IFS=$lt_save_ifs
10575       # Convert to MSYS style.
10576       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10577       ;;
10578     cygwin*)
10579       # Convert to unix form, then to dos form, then back to unix form
10580       # but this time dos style (no spaces!) so that the unix form looks
10581       # like /cygdrive/c/PROGRA~1:/cygdr...
10582       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10583       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10584       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10585       ;;
10586     *)
10587       sys_lib_search_path_spec="$LIB"
10588       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10589         # It is most probably a Windows format PATH.
10590         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10591       else
10592         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10593       fi
10594       # FIXME: find the short name or the path components, as spaces are
10595       # common. (e.g. "Program Files" -> "PROGRA~1")
10596       ;;
10597     esac
10598
10599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10600     postinstall_cmds='base_file=`basename \${file}`~
10601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10602       dldir=$destdir/`dirname \$dlpath`~
10603       test -d \$dldir || mkdir -p \$dldir~
10604       $install_prog $dir/$dlname \$dldir/$dlname'
10605     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10606       dlpath=$dir/\$dldll~
10607        $RM \$dlpath'
10608     shlibpath_overrides_runpath=yes
10609     dynamic_linker='Win32 link.exe'
10610     ;;
10611
10612   *)
10613     # Assume MSVC wrapper
10614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10615     dynamic_linker='Win32 ld.exe'
10616     ;;
10617   esac
10618   # FIXME: first we should search . and the directory the executable is in
10619   shlibpath_var=PATH
10620   ;;
10621
10622 darwin* | rhapsody*)
10623   dynamic_linker="$host_os dyld"
10624   version_type=darwin
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10628   soname_spec='${libname}${release}${major}$shared_ext'
10629   shlibpath_overrides_runpath=yes
10630   shlibpath_var=DYLD_LIBRARY_PATH
10631   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10632
10633   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10634   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10635   ;;
10636
10637 dgux*)
10638   version_type=linux # correct to gnu/linux during the next big refactor
10639   need_lib_prefix=no
10640   need_version=no
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   ;;
10645
10646 freebsd* | dragonfly*)
10647   # DragonFly does not have aout.  When/if they implement a new
10648   # versioning mechanism, adjust this.
10649   if test -x /usr/bin/objformat; then
10650     objformat=`/usr/bin/objformat`
10651   else
10652     case $host_os in
10653     freebsd[23].*) objformat=aout ;;
10654     *) objformat=elf ;;
10655     esac
10656   fi
10657   version_type=freebsd-$objformat
10658   case $version_type in
10659     freebsd-elf*)
10660       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10661       need_version=no
10662       need_lib_prefix=no
10663       ;;
10664     freebsd-*)
10665       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10666       need_version=yes
10667       ;;
10668   esac
10669   shlibpath_var=LD_LIBRARY_PATH
10670   case $host_os in
10671   freebsd2.*)
10672     shlibpath_overrides_runpath=yes
10673     ;;
10674   freebsd3.[01]* | freebsdelf3.[01]*)
10675     shlibpath_overrides_runpath=yes
10676     hardcode_into_libs=yes
10677     ;;
10678   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10679   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10680     shlibpath_overrides_runpath=no
10681     hardcode_into_libs=yes
10682     ;;
10683   *) # from 4.6 on, and DragonFly
10684     shlibpath_overrides_runpath=yes
10685     hardcode_into_libs=yes
10686     ;;
10687   esac
10688   ;;
10689
10690 gnu*)
10691   version_type=linux # correct to gnu/linux during the next big refactor
10692   need_lib_prefix=no
10693   need_version=no
10694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695   soname_spec='${libname}${release}${shared_ext}$major'
10696   shlibpath_var=LD_LIBRARY_PATH
10697   shlibpath_overrides_runpath=no
10698   hardcode_into_libs=yes
10699   ;;
10700
10701 haiku*)
10702   version_type=linux # correct to gnu/linux during the next big refactor
10703   need_lib_prefix=no
10704   need_version=no
10705   dynamic_linker="$host_os runtime_loader"
10706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10707   soname_spec='${libname}${release}${shared_ext}$major'
10708   shlibpath_var=LIBRARY_PATH
10709   shlibpath_overrides_runpath=yes
10710   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10711   hardcode_into_libs=yes
10712   ;;
10713
10714 hpux9* | hpux10* | hpux11*)
10715   # Give a soname corresponding to the major version so that dld.sl refuses to
10716   # link against other versions.
10717   version_type=sunos
10718   need_lib_prefix=no
10719   need_version=no
10720   case $host_cpu in
10721   ia64*)
10722     shrext_cmds='.so'
10723     hardcode_into_libs=yes
10724     dynamic_linker="$host_os dld.so"
10725     shlibpath_var=LD_LIBRARY_PATH
10726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728     soname_spec='${libname}${release}${shared_ext}$major'
10729     if test "X$HPUX_IA64_MODE" = X32; then
10730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10731     else
10732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10733     fi
10734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10735     ;;
10736   hppa*64*)
10737     shrext_cmds='.sl'
10738     hardcode_into_libs=yes
10739     dynamic_linker="$host_os dld.sl"
10740     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743     soname_spec='${libname}${release}${shared_ext}$major'
10744     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10746     ;;
10747   *)
10748     shrext_cmds='.sl'
10749     dynamic_linker="$host_os dld.sl"
10750     shlibpath_var=SHLIB_PATH
10751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753     soname_spec='${libname}${release}${shared_ext}$major'
10754     ;;
10755   esac
10756   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10757   postinstall_cmds='chmod 555 $lib'
10758   # or fails outright, so override atomically:
10759   install_override_mode=555
10760   ;;
10761
10762 interix[3-9]*)
10763   version_type=linux # correct to gnu/linux during the next big refactor
10764   need_lib_prefix=no
10765   need_version=no
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767   soname_spec='${libname}${release}${shared_ext}$major'
10768   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10769   shlibpath_var=LD_LIBRARY_PATH
10770   shlibpath_overrides_runpath=no
10771   hardcode_into_libs=yes
10772   ;;
10773
10774 irix5* | irix6* | nonstopux*)
10775   case $host_os in
10776     nonstopux*) version_type=nonstopux ;;
10777     *)
10778         if test "$lt_cv_prog_gnu_ld" = yes; then
10779                 version_type=linux # correct to gnu/linux during the next big refactor
10780         else
10781                 version_type=irix
10782         fi ;;
10783   esac
10784   need_lib_prefix=no
10785   need_version=no
10786   soname_spec='${libname}${release}${shared_ext}$major'
10787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10788   case $host_os in
10789   irix5* | nonstopux*)
10790     libsuff= shlibsuff=
10791     ;;
10792   *)
10793     case $LD in # libtool.m4 will add one of these switches to LD
10794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10795       libsuff= shlibsuff= libmagic=32-bit;;
10796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10797       libsuff=32 shlibsuff=N32 libmagic=N32;;
10798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10800     *) libsuff= shlibsuff= libmagic=never-match;;
10801     esac
10802     ;;
10803   esac
10804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10805   shlibpath_overrides_runpath=no
10806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10808   hardcode_into_libs=yes
10809   ;;
10810
10811 # No shared lib support for Linux oldld, aout, or coff.
10812 linux*oldld* | linux*aout* | linux*coff*)
10813   dynamic_linker=no
10814   ;;
10815
10816 # This must be glibc/ELF.
10817 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10818   version_type=linux # correct to gnu/linux during the next big refactor
10819   need_lib_prefix=no
10820   need_version=no
10821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822   soname_spec='${libname}${release}${shared_ext}$major'
10823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10824   shlibpath_var=LD_LIBRARY_PATH
10825   shlibpath_overrides_runpath=no
10826
10827   # Some binutils ld are patched to set DT_RUNPATH
10828   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   lt_cv_shlibpath_overrides_runpath=no
10832     save_LDFLAGS=$LDFLAGS
10833     save_libdir=$libdir
10834     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10835          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h.  */
10838
10839 int
10840 main ()
10841 {
10842
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10849   lt_cv_shlibpath_overrides_runpath=yes
10850 fi
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext \
10853     conftest$ac_exeext conftest.$ac_ext
10854     LDFLAGS=$save_LDFLAGS
10855     libdir=$save_libdir
10856
10857 fi
10858
10859   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10860
10861   # This implies no fast_install, which is unacceptable.
10862   # Some rework will be needed to allow for fast_install
10863   # before this can be enabled.
10864   hardcode_into_libs=yes
10865
10866   # Append ld.so.conf contents to the search path
10867   if test -f /etc/ld.so.conf; then
10868     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' ' '`
10869     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10870   fi
10871
10872   # We used to test for /lib/ld.so.1 and disable shared libraries on
10873   # powerpc, because MkLinux only supported shared libraries with the
10874   # GNU dynamic linker.  Since this was broken with cross compilers,
10875   # most powerpc-linux boxes support dynamic linking these days and
10876   # people can always --disable-shared, the test was removed, and we
10877   # assume the GNU/Linux dynamic linker is in use.
10878   dynamic_linker='GNU/Linux ld.so'
10879   ;;
10880
10881 netbsdelf*-gnu)
10882   version_type=linux
10883   need_lib_prefix=no
10884   need_version=no
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886   soname_spec='${libname}${release}${shared_ext}$major'
10887   shlibpath_var=LD_LIBRARY_PATH
10888   shlibpath_overrides_runpath=no
10889   hardcode_into_libs=yes
10890   dynamic_linker='NetBSD ld.elf_so'
10891   ;;
10892
10893 netbsd*)
10894   version_type=sunos
10895   need_lib_prefix=no
10896   need_version=no
10897   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10899     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10900     dynamic_linker='NetBSD (a.out) ld.so'
10901   else
10902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10903     soname_spec='${libname}${release}${shared_ext}$major'
10904     dynamic_linker='NetBSD ld.elf_so'
10905   fi
10906   shlibpath_var=LD_LIBRARY_PATH
10907   shlibpath_overrides_runpath=yes
10908   hardcode_into_libs=yes
10909   ;;
10910
10911 newsos6)
10912   version_type=linux # correct to gnu/linux during the next big refactor
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   shlibpath_overrides_runpath=yes
10916   ;;
10917
10918 *nto* | *qnx*)
10919   version_type=qnx
10920   need_lib_prefix=no
10921   need_version=no
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923   soname_spec='${libname}${release}${shared_ext}$major'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   shlibpath_overrides_runpath=no
10926   hardcode_into_libs=yes
10927   dynamic_linker='ldqnx.so'
10928   ;;
10929
10930 openbsd*)
10931   version_type=sunos
10932   sys_lib_dlsearch_path_spec="/usr/lib"
10933   need_lib_prefix=no
10934   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10935   case $host_os in
10936     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10937     *)                          need_version=no  ;;
10938   esac
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10943     case $host_os in
10944       openbsd2.[89] | openbsd2.[89].*)
10945         shlibpath_overrides_runpath=no
10946         ;;
10947       *)
10948         shlibpath_overrides_runpath=yes
10949         ;;
10950       esac
10951   else
10952     shlibpath_overrides_runpath=yes
10953   fi
10954   ;;
10955
10956 os2*)
10957   libname_spec='$name'
10958   shrext_cmds=".dll"
10959   need_lib_prefix=no
10960   library_names_spec='$libname${shared_ext} $libname.a'
10961   dynamic_linker='OS/2 ld.exe'
10962   shlibpath_var=LIBPATH
10963   ;;
10964
10965 osf3* | osf4* | osf5*)
10966   version_type=osf
10967   need_lib_prefix=no
10968   need_version=no
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971   shlibpath_var=LD_LIBRARY_PATH
10972   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10973   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10974   ;;
10975
10976 rdos*)
10977   dynamic_linker=no
10978   ;;
10979
10980 solaris*)
10981   version_type=linux # correct to gnu/linux during the next big refactor
10982   need_lib_prefix=no
10983   need_version=no
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=yes
10988   hardcode_into_libs=yes
10989   # ldd complains unless libraries are executable
10990   postinstall_cmds='chmod +x $lib'
10991   ;;
10992
10993 sunos4*)
10994   version_type=sunos
10995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10996   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10997   shlibpath_var=LD_LIBRARY_PATH
10998   shlibpath_overrides_runpath=yes
10999   if test "$with_gnu_ld" = yes; then
11000     need_lib_prefix=no
11001   fi
11002   need_version=yes
11003   ;;
11004
11005 sysv4 | sysv4.3*)
11006   version_type=linux # correct to gnu/linux during the next big refactor
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   case $host_vendor in
11011     sni)
11012       shlibpath_overrides_runpath=no
11013       need_lib_prefix=no
11014       runpath_var=LD_RUN_PATH
11015       ;;
11016     siemens)
11017       need_lib_prefix=no
11018       ;;
11019     motorola)
11020       need_lib_prefix=no
11021       need_version=no
11022       shlibpath_overrides_runpath=no
11023       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11024       ;;
11025   esac
11026   ;;
11027
11028 sysv4*MP*)
11029   if test -d /usr/nec ;then
11030     version_type=linux # correct to gnu/linux during the next big refactor
11031     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11032     soname_spec='$libname${shared_ext}.$major'
11033     shlibpath_var=LD_LIBRARY_PATH
11034   fi
11035   ;;
11036
11037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11038   version_type=freebsd-elf
11039   need_lib_prefix=no
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   shlibpath_var=LD_LIBRARY_PATH
11044   shlibpath_overrides_runpath=yes
11045   hardcode_into_libs=yes
11046   if test "$with_gnu_ld" = yes; then
11047     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11048   else
11049     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11050     case $host_os in
11051       sco3.2v5*)
11052         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11053         ;;
11054     esac
11055   fi
11056   sys_lib_dlsearch_path_spec='/usr/lib'
11057   ;;
11058
11059 tpf*)
11060   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11061   version_type=linux # correct to gnu/linux during the next big refactor
11062   need_lib_prefix=no
11063   need_version=no
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   shlibpath_overrides_runpath=no
11067   hardcode_into_libs=yes
11068   ;;
11069
11070 uts4*)
11071   version_type=linux # correct to gnu/linux during the next big refactor
11072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073   soname_spec='${libname}${release}${shared_ext}$major'
11074   shlibpath_var=LD_LIBRARY_PATH
11075   ;;
11076
11077 *)
11078   dynamic_linker=no
11079   ;;
11080 esac
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11082 $as_echo "$dynamic_linker" >&6; }
11083 test "$dynamic_linker" = no && can_build_shared=no
11084
11085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11086 if test "$GCC" = yes; then
11087   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11088 fi
11089
11090 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11091   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11092 fi
11093 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11094   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11095 fi
11096
11097
11098
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11189 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11190 hardcode_action=
11191 if test -n "$hardcode_libdir_flag_spec" ||
11192    test -n "$runpath_var" ||
11193    test "X$hardcode_automatic" = "Xyes" ; then
11194
11195   # We can hardcode non-existent directories.
11196   if test "$hardcode_direct" != no &&
11197      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11198      # have to relink, otherwise we might link with an installed library
11199      # when we should be linking with a yet-to-be-installed one
11200      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11201      test "$hardcode_minus_L" != no; then
11202     # Linking always hardcodes the temporary library directory.
11203     hardcode_action=relink
11204   else
11205     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11206     hardcode_action=immediate
11207   fi
11208 else
11209   # We cannot hardcode anything, or else we can only hardcode existing
11210   # directories.
11211   hardcode_action=unsupported
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11214 $as_echo "$hardcode_action" >&6; }
11215
11216 if test "$hardcode_action" = relink ||
11217    test "$inherit_rpath" = yes; then
11218   # Fast installation is not supported
11219   enable_fast_install=no
11220 elif test "$shlibpath_overrides_runpath" = yes ||
11221      test "$enable_shared" = no; then
11222   # Fast installation is not necessary
11223   enable_fast_install=needless
11224 fi
11225
11226
11227
11228
11229
11230
11231   if test "x$enable_dlopen" != xyes; then
11232   enable_dlopen=unknown
11233   enable_dlopen_self=unknown
11234   enable_dlopen_self_static=unknown
11235 else
11236   lt_cv_dlopen=no
11237   lt_cv_dlopen_libs=
11238
11239   case $host_os in
11240   beos*)
11241     lt_cv_dlopen="load_add_on"
11242     lt_cv_dlopen_libs=
11243     lt_cv_dlopen_self=yes
11244     ;;
11245
11246   mingw* | pw32* | cegcc*)
11247     lt_cv_dlopen="LoadLibrary"
11248     lt_cv_dlopen_libs=
11249     ;;
11250
11251   cygwin*)
11252     lt_cv_dlopen="dlopen"
11253     lt_cv_dlopen_libs=
11254     ;;
11255
11256   darwin*)
11257   # if libdl is installed we need to link against it
11258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11259 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11260 if ${ac_cv_lib_dl_dlopen+:} false; then :
11261   $as_echo_n "(cached) " >&6
11262 else
11263   ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-ldl  $LIBS"
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h.  */
11267
11268 /* Override any GCC internal prototype to avoid an error.
11269    Use char because int might match the return type of a GCC
11270    builtin and then its argument prototype would still apply.  */
11271 #ifdef __cplusplus
11272 extern "C"
11273 #endif
11274 char dlopen ();
11275 int
11276 main ()
11277 {
11278 return dlopen ();
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 if ac_fn_c_try_link "$LINENO"; then :
11284   ac_cv_lib_dl_dlopen=yes
11285 else
11286   ac_cv_lib_dl_dlopen=no
11287 fi
11288 rm -f core conftest.err conftest.$ac_objext \
11289     conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11291 fi
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11293 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11294 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11296 else
11297
11298     lt_cv_dlopen="dyld"
11299     lt_cv_dlopen_libs=
11300     lt_cv_dlopen_self=yes
11301
11302 fi
11303
11304     ;;
11305
11306   *)
11307     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11308 if test "x$ac_cv_func_shl_load" = xyes; then :
11309   lt_cv_dlopen="shl_load"
11310 else
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11312 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11313 if ${ac_cv_lib_dld_shl_load+:} false; then :
11314   $as_echo_n "(cached) " >&6
11315 else
11316   ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-ldld  $LIBS"
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h.  */
11320
11321 /* Override any GCC internal prototype to avoid an error.
11322    Use char because int might match the return type of a GCC
11323    builtin and then its argument prototype would still apply.  */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char shl_load ();
11328 int
11329 main ()
11330 {
11331 return shl_load ();
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_c_try_link "$LINENO"; then :
11337   ac_cv_lib_dld_shl_load=yes
11338 else
11339   ac_cv_lib_dld_shl_load=no
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext \
11342     conftest$ac_exeext conftest.$ac_ext
11343 LIBS=$ac_check_lib_save_LIBS
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11346 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11347 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11348   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11349 else
11350   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11351 if test "x$ac_cv_func_dlopen" = xyes; then :
11352   lt_cv_dlopen="dlopen"
11353 else
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11356 if ${ac_cv_lib_dl_dlopen+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359   ac_check_lib_save_LIBS=$LIBS
11360 LIBS="-ldl  $LIBS"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h.  */
11363
11364 /* Override any GCC internal prototype to avoid an error.
11365    Use char because int might match the return type of a GCC
11366    builtin and then its argument prototype would still apply.  */
11367 #ifdef __cplusplus
11368 extern "C"
11369 #endif
11370 char dlopen ();
11371 int
11372 main ()
11373 {
11374 return dlopen ();
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 if ac_fn_c_try_link "$LINENO"; then :
11380   ac_cv_lib_dl_dlopen=yes
11381 else
11382   ac_cv_lib_dl_dlopen=no
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext \
11385     conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11390 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11392 else
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11394 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11395 if ${ac_cv_lib_svld_dlopen+:} false; then :
11396   $as_echo_n "(cached) " >&6
11397 else
11398   ac_check_lib_save_LIBS=$LIBS
11399 LIBS="-lsvld  $LIBS"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h.  */
11402
11403 /* Override any GCC internal prototype to avoid an error.
11404    Use char because int might match the return type of a GCC
11405    builtin and then its argument prototype would still apply.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char dlopen ();
11410 int
11411 main ()
11412 {
11413 return dlopen ();
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419   ac_cv_lib_svld_dlopen=yes
11420 else
11421   ac_cv_lib_svld_dlopen=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext \
11424     conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11428 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11429 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11433 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11434 if ${ac_cv_lib_dld_dld_link+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldld  $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h.  */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443    Use char because int might match the return type of a GCC
11444    builtin and then its argument prototype would still apply.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dld_link ();
11449 int
11450 main ()
11451 {
11452 return dld_link ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458   ac_cv_lib_dld_dld_link=yes
11459 else
11460   ac_cv_lib_dld_dld_link=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463     conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11467 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11468 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11469   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11470 fi
11471
11472
11473 fi
11474
11475
11476 fi
11477
11478
11479 fi
11480
11481
11482 fi
11483
11484
11485 fi
11486
11487     ;;
11488   esac
11489
11490   if test "x$lt_cv_dlopen" != xno; then
11491     enable_dlopen=yes
11492   else
11493     enable_dlopen=no
11494   fi
11495
11496   case $lt_cv_dlopen in
11497   dlopen)
11498     save_CPPFLAGS="$CPPFLAGS"
11499     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11500
11501     save_LDFLAGS="$LDFLAGS"
11502     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11503
11504     save_LIBS="$LIBS"
11505     LIBS="$lt_cv_dlopen_libs $LIBS"
11506
11507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11508 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11509 if ${lt_cv_dlopen_self+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512           if test "$cross_compiling" = yes; then :
11513   lt_cv_dlopen_self=cross
11514 else
11515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11516   lt_status=$lt_dlunknown
11517   cat > conftest.$ac_ext <<_LT_EOF
11518 #line $LINENO "configure"
11519 #include "confdefs.h"
11520
11521 #if HAVE_DLFCN_H
11522 #include <dlfcn.h>
11523 #endif
11524
11525 #include <stdio.h>
11526
11527 #ifdef RTLD_GLOBAL
11528 #  define LT_DLGLOBAL           RTLD_GLOBAL
11529 #else
11530 #  ifdef DL_GLOBAL
11531 #    define LT_DLGLOBAL         DL_GLOBAL
11532 #  else
11533 #    define LT_DLGLOBAL         0
11534 #  endif
11535 #endif
11536
11537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11538    find out it does not work in some platform. */
11539 #ifndef LT_DLLAZY_OR_NOW
11540 #  ifdef RTLD_LAZY
11541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11542 #  else
11543 #    ifdef DL_LAZY
11544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11545 #    else
11546 #      ifdef RTLD_NOW
11547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11548 #      else
11549 #        ifdef DL_NOW
11550 #          define LT_DLLAZY_OR_NOW      DL_NOW
11551 #        else
11552 #          define LT_DLLAZY_OR_NOW      0
11553 #        endif
11554 #      endif
11555 #    endif
11556 #  endif
11557 #endif
11558
11559 /* When -fvisbility=hidden is used, assume the code has been annotated
11560    correspondingly for the symbols needed.  */
11561 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11562 int fnord () __attribute__((visibility("default")));
11563 #endif
11564
11565 int fnord () { return 42; }
11566 int main ()
11567 {
11568   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11569   int status = $lt_dlunknown;
11570
11571   if (self)
11572     {
11573       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11574       else
11575         {
11576           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11577           else puts (dlerror ());
11578         }
11579       /* dlclose (self); */
11580     }
11581   else
11582     puts (dlerror ());
11583
11584   return status;
11585 }
11586 _LT_EOF
11587   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11588   (eval $ac_link) 2>&5
11589   ac_status=$?
11590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11591   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11592     (./conftest; exit; ) >&5 2>/dev/null
11593     lt_status=$?
11594     case x$lt_status in
11595       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11596       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11597       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11598     esac
11599   else :
11600     # compilation failed
11601     lt_cv_dlopen_self=no
11602   fi
11603 fi
11604 rm -fr conftest*
11605
11606
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11609 $as_echo "$lt_cv_dlopen_self" >&6; }
11610
11611     if test "x$lt_cv_dlopen_self" = xyes; then
11612       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11614 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11615 if ${lt_cv_dlopen_self_static+:} false; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618           if test "$cross_compiling" = yes; then :
11619   lt_cv_dlopen_self_static=cross
11620 else
11621   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11622   lt_status=$lt_dlunknown
11623   cat > conftest.$ac_ext <<_LT_EOF
11624 #line $LINENO "configure"
11625 #include "confdefs.h"
11626
11627 #if HAVE_DLFCN_H
11628 #include <dlfcn.h>
11629 #endif
11630
11631 #include <stdio.h>
11632
11633 #ifdef RTLD_GLOBAL
11634 #  define LT_DLGLOBAL           RTLD_GLOBAL
11635 #else
11636 #  ifdef DL_GLOBAL
11637 #    define LT_DLGLOBAL         DL_GLOBAL
11638 #  else
11639 #    define LT_DLGLOBAL         0
11640 #  endif
11641 #endif
11642
11643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11644    find out it does not work in some platform. */
11645 #ifndef LT_DLLAZY_OR_NOW
11646 #  ifdef RTLD_LAZY
11647 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11648 #  else
11649 #    ifdef DL_LAZY
11650 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11651 #    else
11652 #      ifdef RTLD_NOW
11653 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11654 #      else
11655 #        ifdef DL_NOW
11656 #          define LT_DLLAZY_OR_NOW      DL_NOW
11657 #        else
11658 #          define LT_DLLAZY_OR_NOW      0
11659 #        endif
11660 #      endif
11661 #    endif
11662 #  endif
11663 #endif
11664
11665 /* When -fvisbility=hidden is used, assume the code has been annotated
11666    correspondingly for the symbols needed.  */
11667 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11668 int fnord () __attribute__((visibility("default")));
11669 #endif
11670
11671 int fnord () { return 42; }
11672 int main ()
11673 {
11674   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11675   int status = $lt_dlunknown;
11676
11677   if (self)
11678     {
11679       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11680       else
11681         {
11682           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11683           else puts (dlerror ());
11684         }
11685       /* dlclose (self); */
11686     }
11687   else
11688     puts (dlerror ());
11689
11690   return status;
11691 }
11692 _LT_EOF
11693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11694   (eval $ac_link) 2>&5
11695   ac_status=$?
11696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11698     (./conftest; exit; ) >&5 2>/dev/null
11699     lt_status=$?
11700     case x$lt_status in
11701       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11702       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11703       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11704     esac
11705   else :
11706     # compilation failed
11707     lt_cv_dlopen_self_static=no
11708   fi
11709 fi
11710 rm -fr conftest*
11711
11712
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11715 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11716     fi
11717
11718     CPPFLAGS="$save_CPPFLAGS"
11719     LDFLAGS="$save_LDFLAGS"
11720     LIBS="$save_LIBS"
11721     ;;
11722   esac
11723
11724   case $lt_cv_dlopen_self in
11725   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11726   *) enable_dlopen_self=unknown ;;
11727   esac
11728
11729   case $lt_cv_dlopen_self_static in
11730   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11731   *) enable_dlopen_self_static=unknown ;;
11732   esac
11733 fi
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751 striplib=
11752 old_striplib=
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11754 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11755 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11756   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11757   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11759 $as_echo "yes" >&6; }
11760 else
11761 # FIXME - insert some real tests, host_os isn't really good enough
11762   case $host_os in
11763   darwin*)
11764     if test -n "$STRIP" ; then
11765       striplib="$STRIP -x"
11766       old_striplib="$STRIP -S"
11767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769     else
11770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772     fi
11773     ;;
11774   *)
11775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11777     ;;
11778   esac
11779 fi
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792   # Report which library types will actually be built
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11794 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11796 $as_echo "$can_build_shared" >&6; }
11797
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11799 $as_echo_n "checking whether to build shared libraries... " >&6; }
11800   test "$can_build_shared" = "no" && enable_shared=no
11801
11802   # On AIX, shared libraries and static libraries use the same namespace, and
11803   # are all built from PIC.
11804   case $host_os in
11805   aix3*)
11806     test "$enable_shared" = yes && enable_static=no
11807     if test -n "$RANLIB"; then
11808       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11809       postinstall_cmds='$RANLIB $lib'
11810     fi
11811     ;;
11812
11813   aix[4-9]*)
11814     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11815       test "$enable_shared" = yes && enable_static=no
11816     fi
11817     ;;
11818   esac
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11820 $as_echo "$enable_shared" >&6; }
11821
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11823 $as_echo_n "checking whether to build static libraries... " >&6; }
11824   # Make sure either enable_shared or enable_static is yes.
11825   test "$enable_shared" = yes || enable_static=yes
11826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11827 $as_echo "$enable_static" >&6; }
11828
11829
11830
11831
11832 fi
11833 ac_ext=c
11834 ac_cpp='$CPP $CPPFLAGS'
11835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11838
11839 CC="$lt_save_CC"
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855         ac_config_commands="$ac_config_commands libtool"
11856
11857
11858
11859
11860 # Only expand once:
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11872         if test -n "$ac_tool_prefix"; then
11873   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11874 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11878   $as_echo_n "(cached) " >&6
11879 else
11880   case $PKG_CONFIG in
11881   [\\/]* | ?:[\\/]*)
11882   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11883   ;;
11884   *)
11885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11887 do
11888   IFS=$as_save_IFS
11889   test -z "$as_dir" && as_dir=.
11890     for ac_exec_ext in '' $ac_executable_extensions; do
11891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894     break 2
11895   fi
11896 done
11897   done
11898 IFS=$as_save_IFS
11899
11900   ;;
11901 esac
11902 fi
11903 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11904 if test -n "$PKG_CONFIG"; then
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11906 $as_echo "$PKG_CONFIG" >&6; }
11907 else
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911
11912
11913 fi
11914 if test -z "$ac_cv_path_PKG_CONFIG"; then
11915   ac_pt_PKG_CONFIG=$PKG_CONFIG
11916   # Extract the first word of "pkg-config", so it can be a program name with args.
11917 set dummy pkg-config; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11921   $as_echo_n "(cached) " >&6
11922 else
11923   case $ac_pt_PKG_CONFIG in
11924   [\\/]* | ?:[\\/]*)
11925   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11926   ;;
11927   *)
11928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH
11930 do
11931   IFS=$as_save_IFS
11932   test -z "$as_dir" && as_dir=.
11933     for ac_exec_ext in '' $ac_executable_extensions; do
11934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937     break 2
11938   fi
11939 done
11940   done
11941 IFS=$as_save_IFS
11942
11943   ;;
11944 esac
11945 fi
11946 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11947 if test -n "$ac_pt_PKG_CONFIG"; then
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11949 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11950 else
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 fi
11954
11955   if test "x$ac_pt_PKG_CONFIG" = x; then
11956     PKG_CONFIG=""
11957   else
11958     case $cross_compiling:$ac_tool_warned in
11959 yes:)
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11962 ac_tool_warned=yes ;;
11963 esac
11964     PKG_CONFIG=$ac_pt_PKG_CONFIG
11965   fi
11966 else
11967   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11968 fi
11969
11970 fi
11971 if test -n "$PKG_CONFIG"; then
11972         _pkg_min_version=0.9.0
11973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11974 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11975         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11976                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11977 $as_echo "yes" >&6; }
11978         else
11979                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981                 PKG_CONFIG=""
11982         fi
11983 fi
11984
11985 pkg_failed=no
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
11987 $as_echo_n "checking for LIBXML... " >&6; }
11988
11989 if test -n "$LIBXML_CFLAGS"; then
11990     pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
11991  elif test -n "$PKG_CONFIG"; then
11992     if test -n "$PKG_CONFIG" && \
11993     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
11994   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
11995   ac_status=$?
11996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11997   test $ac_status = 0; }; then
11998   pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5.0" 2>/dev/null`
11999                       test "x$?" != "x0" && pkg_failed=yes
12000 else
12001   pkg_failed=yes
12002 fi
12003  else
12004     pkg_failed=untried
12005 fi
12006 if test -n "$LIBXML_LIBS"; then
12007     pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
12008  elif test -n "$PKG_CONFIG"; then
12009     if test -n "$PKG_CONFIG" && \
12010     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5
12011   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5
12012   ac_status=$?
12013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12014   test $ac_status = 0; }; then
12015   pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5.0" 2>/dev/null`
12016                       test "x$?" != "x0" && pkg_failed=yes
12017 else
12018   pkg_failed=yes
12019 fi
12020  else
12021     pkg_failed=untried
12022 fi
12023
12024
12025
12026 if test $pkg_failed = yes; then
12027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029
12030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12031         _pkg_short_errors_supported=yes
12032 else
12033         _pkg_short_errors_supported=no
12034 fi
12035         if test $_pkg_short_errors_supported = yes; then
12036                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
12037         else
12038                 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1`
12039         fi
12040         # Put the nasty error message in config.log where it belongs
12041         echo "$LIBXML_PKG_ERRORS" >&5
12042
12043         as_fn_error $? "Package requirements (libxml-2.0 >= 2.5.0) were not met:
12044
12045 $LIBXML_PKG_ERRORS
12046
12047 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12048 installed software in a non-standard prefix.
12049
12050 Alternatively, you may set the environment variables LIBXML_CFLAGS
12051 and LIBXML_LIBS to avoid the need to call pkg-config.
12052 See the pkg-config man page for more details." "$LINENO" 5
12053 elif test $pkg_failed = untried; then
12054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12058 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12059 is in your PATH or set the PKG_CONFIG environment variable to the full
12060 path to pkg-config.
12061
12062 Alternatively, you may set the environment variables LIBXML_CFLAGS
12063 and LIBXML_LIBS to avoid the need to call pkg-config.
12064 See the pkg-config man page for more details.
12065
12066 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12067 See \`config.log' for more details" "$LINENO" 5; }
12068 else
12069         LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
12070         LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
12071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12073
12074 fi
12075
12076 if test "x$CC" != xcc; then
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12078 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12081 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12082 fi
12083 set dummy $CC; ac_cc=`$as_echo "$2" |
12084                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12085 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090
12091 int
12092 main ()
12093 {
12094
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 # Make sure it works both with $CC and with simple cc.
12100 # We do the test twice because some compilers refuse to overwrite an
12101 # existing .o file with -o, though they will create one.
12102 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12103 rm -f conftest2.*
12104 if { { case "(($ac_try" in
12105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106   *) ac_try_echo=$ac_try;;
12107 esac
12108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12109 $as_echo "$ac_try_echo"; } >&5
12110   (eval "$ac_try") 2>&5
12111   ac_status=$?
12112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12113   test $ac_status = 0; } &&
12114    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12119 $as_echo "$ac_try_echo"; } >&5
12120   (eval "$ac_try") 2>&5
12121   ac_status=$?
12122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12123   test $ac_status = 0; };
12124 then
12125   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12126   if test "x$CC" != xcc; then
12127     # Test first that cc exists at all.
12128     if { ac_try='cc -c conftest.$ac_ext >&5'
12129   { { case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12134 $as_echo "$ac_try_echo"; } >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138   test $ac_status = 0; }; }; then
12139       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12140       rm -f conftest2.*
12141       if { { case "(($ac_try" in
12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143   *) ac_try_echo=$ac_try;;
12144 esac
12145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12146 $as_echo "$ac_try_echo"; } >&5
12147   (eval "$ac_try") 2>&5
12148   ac_status=$?
12149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12150   test $ac_status = 0; } &&
12151          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12156 $as_echo "$ac_try_echo"; } >&5
12157   (eval "$ac_try") 2>&5
12158   ac_status=$?
12159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160   test $ac_status = 0; };
12161       then
12162         # cc works too.
12163         :
12164       else
12165         # cc exists but doesn't like -o.
12166         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12167       fi
12168     fi
12169   fi
12170 else
12171   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12172 fi
12173 rm -f core conftest*
12174
12175 fi
12176 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 $as_echo "yes" >&6; }
12179 else
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182
12183 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12184
12185 fi
12186
12187 # FIXME: we rely on the cache variable name because
12188 # there is no other way.
12189 set dummy $CC
12190 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12191 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12192 if test "$am_t" != yes; then
12193    # Losing compiler, so override with the script.
12194    # FIXME: It is wrong to rewrite CC.
12195    # But if we don't then we get into trouble of one sort or another.
12196    # A longer-term fix would be to have automake use am__CC in this case,
12197    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12198    CC="$am_aux_dir/compile $CC"
12199 fi
12200
12201
12202
12203
12204 # Check whether --with-default-metadata-backend was given.
12205 if test "${with_default_metadata_backend+set}" = set; then :
12206   withval=$with_default_metadata_backend;
12207 fi
12208
12209
12210 if test "x$with_default_metadata_backend" = 'x'
12211 then
12212         with_default_metadata_backend='gstreamer'
12213 fi
12214
12215 if test "x$with_default_metadata_backend" = 'xyes' || test "x$with_default_metadata_backend" = 'xno'
12216 then
12217         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dubious default metadata backend name: $with_default_metadata_backend" >&5
12218 $as_echo "$as_me: WARNING: Dubious default metadata backend name: $with_default_metadata_backend" >&2;}
12219 fi
12220
12221 GUPNP_DLNA_METADATA_BACKEND_CFLAGS="$GUPNP_DLNA_METADATA_BACKEND_CFLAGS -DGUPNP_DLNA_DEFAULT_METADATA_BACKEND=\\\"$with_default_metadata_backend\\\""
12222
12223 # Check whether --enable-gstreamer-metadata-backend was given.
12224 if test "${enable_gstreamer_metadata_backend+set}" = set; then :
12225   enableval=$enable_gstreamer_metadata_backend;
12226 else
12227   enable_gstreamer_metadata_backend=auto
12228 fi
12229
12230
12231 if test "x$enable_gstreamer_metadata_backend" != 'xno'
12232 then
12233         gstreamer_found='yes'
12234         GST_MAJORMINOR=1.0
12235         GST_REQ=1.0
12236         GSTPBU_REQ=1.0
12237
12238
12239 pkg_failed=no
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
12241 $as_echo_n "checking for GST... " >&6; }
12242
12243 if test -n "$GST_CFLAGS"; then
12244     pkg_cv_GST_CFLAGS="$GST_CFLAGS"
12245  elif test -n "$PKG_CONFIG"; then
12246     if test -n "$PKG_CONFIG" && \
12247     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= \$GST_REQ\""; } >&5
12248   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQ") 2>&5
12249   ac_status=$?
12250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251   test $ac_status = 0; }; then
12252   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>/dev/null`
12253                       test "x$?" != "x0" && pkg_failed=yes
12254 else
12255   pkg_failed=yes
12256 fi
12257  else
12258     pkg_failed=untried
12259 fi
12260 if test -n "$GST_LIBS"; then
12261     pkg_cv_GST_LIBS="$GST_LIBS"
12262  elif test -n "$PKG_CONFIG"; then
12263     if test -n "$PKG_CONFIG" && \
12264     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= \$GST_REQ\""; } >&5
12265   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQ") 2>&5
12266   ac_status=$?
12267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12268   test $ac_status = 0; }; then
12269   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>/dev/null`
12270                       test "x$?" != "x0" && pkg_failed=yes
12271 else
12272   pkg_failed=yes
12273 fi
12274  else
12275     pkg_failed=untried
12276 fi
12277
12278
12279
12280 if test $pkg_failed = yes; then
12281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283
12284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12285         _pkg_short_errors_supported=yes
12286 else
12287         _pkg_short_errors_supported=no
12288 fi
12289         if test $_pkg_short_errors_supported = yes; then
12290                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>&1`
12291         else
12292                 GST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>&1`
12293         fi
12294         # Put the nasty error message in config.log where it belongs
12295         echo "$GST_PKG_ERRORS" >&5
12296
12297         gstreamer_found='no'
12298 elif test $pkg_failed = untried; then
12299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301         gstreamer_found='no'
12302 else
12303         GST_CFLAGS=$pkg_cv_GST_CFLAGS
12304         GST_LIBS=$pkg_cv_GST_LIBS
12305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12306 $as_echo "yes" >&6; }
12307
12308 fi
12309
12310 pkg_failed=no
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBU" >&5
12312 $as_echo_n "checking for GST_PBU... " >&6; }
12313
12314 if test -n "$GST_PBU_CFLAGS"; then
12315     pkg_cv_GST_PBU_CFLAGS="$GST_PBU_CFLAGS"
12316  elif test -n "$PKG_CONFIG"; then
12317     if test -n "$PKG_CONFIG" && \
12318     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_MAJORMINOR >= \$GSTPBU_REQ\""; } >&5
12319   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ") 2>&5
12320   ac_status=$?
12321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12322   test $ac_status = 0; }; then
12323   pkg_cv_GST_PBU_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>/dev/null`
12324                       test "x$?" != "x0" && pkg_failed=yes
12325 else
12326   pkg_failed=yes
12327 fi
12328  else
12329     pkg_failed=untried
12330 fi
12331 if test -n "$GST_PBU_LIBS"; then
12332     pkg_cv_GST_PBU_LIBS="$GST_PBU_LIBS"
12333  elif test -n "$PKG_CONFIG"; then
12334     if test -n "$PKG_CONFIG" && \
12335     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_MAJORMINOR >= \$GSTPBU_REQ\""; } >&5
12336   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ") 2>&5
12337   ac_status=$?
12338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12339   test $ac_status = 0; }; then
12340   pkg_cv_GST_PBU_LIBS=`$PKG_CONFIG --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>/dev/null`
12341                       test "x$?" != "x0" && pkg_failed=yes
12342 else
12343   pkg_failed=yes
12344 fi
12345  else
12346     pkg_failed=untried
12347 fi
12348
12349
12350
12351 if test $pkg_failed = yes; then
12352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12354
12355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12356         _pkg_short_errors_supported=yes
12357 else
12358         _pkg_short_errors_supported=no
12359 fi
12360         if test $_pkg_short_errors_supported = yes; then
12361                 GST_PBU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>&1`
12362         else
12363                 GST_PBU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>&1`
12364         fi
12365         # Put the nasty error message in config.log where it belongs
12366         echo "$GST_PBU_PKG_ERRORS" >&5
12367
12368         gstreamer_found='no'
12369 elif test $pkg_failed = untried; then
12370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12372         gstreamer_found='no'
12373 else
12374         GST_PBU_CFLAGS=$pkg_cv_GST_PBU_CFLAGS
12375         GST_PBU_LIBS=$pkg_cv_GST_PBU_LIBS
12376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; }
12378
12379 fi
12380
12381         if test "x$gstreamer_found" = 'xyes'
12382         then
12383
12384
12385                 GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
12386
12387                 enable_gstreamer_metadata_backend='yes'
12388         elif test "x$enable_gstreamer_metadata_backend" = 'xyes'
12389         then
12390                 as_fn_error $? "GStreamer $GST_MAJORMINOR not found." "$LINENO" 5
12391         else
12392                 enable_gstreamer_metadata_backend='no'
12393         fi
12394 fi
12395
12396 if test "x$enable_gstreamer_metadata_backend" = 'xyes'
12397 then
12398          if true; then
12399   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE=
12400   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE='#'
12401 else
12402   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE='#'
12403   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE=
12404 fi
12405
12406 else
12407          if false; then
12408   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE=
12409   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE='#'
12410 else
12411   GSTREAMER_METADATA_BACKEND_ENABLED_TRUE='#'
12412   GSTREAMER_METADATA_BACKEND_ENABLED_FALSE=
12413 fi
12414
12415 fi
12416
12417 # Check whether --enable-legacy-gstreamer-metadata-backend was given.
12418 if test "${enable_legacy_gstreamer_metadata_backend+set}" = set; then :
12419   enableval=$enable_legacy_gstreamer_metadata_backend;
12420 else
12421   enable_legacy_gstreamer_metadata_backend=no
12422 fi
12423
12424
12425 if test "x$enable_legacy_gstreamer_metadata_backend" != 'xno'
12426 then
12427         gstreamer_found='yes'
12428         GST_LEGACY_MAJORMINOR=0.10
12429         GST_LEGACY_REQ=0.10.36
12430         GSTPBU_LEGACY_REQ=0.10.36
12431
12432
12433 pkg_failed=no
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_LEGACY" >&5
12435 $as_echo_n "checking for GST_LEGACY... " >&6; }
12436
12437 if test -n "$GST_LEGACY_CFLAGS"; then
12438     pkg_cv_GST_LEGACY_CFLAGS="$GST_LEGACY_CFLAGS"
12439  elif test -n "$PKG_CONFIG"; then
12440     if test -n "$PKG_CONFIG" && \
12441     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_LEGACY_MAJORMINOR >= \$GST_LEGACY_REQ\""; } >&5
12442   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ") 2>&5
12443   ac_status=$?
12444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445   test $ac_status = 0; }; then
12446   pkg_cv_GST_LEGACY_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>/dev/null`
12447                       test "x$?" != "x0" && pkg_failed=yes
12448 else
12449   pkg_failed=yes
12450 fi
12451  else
12452     pkg_failed=untried
12453 fi
12454 if test -n "$GST_LEGACY_LIBS"; then
12455     pkg_cv_GST_LEGACY_LIBS="$GST_LEGACY_LIBS"
12456  elif test -n "$PKG_CONFIG"; then
12457     if test -n "$PKG_CONFIG" && \
12458     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_LEGACY_MAJORMINOR >= \$GST_LEGACY_REQ\""; } >&5
12459   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ") 2>&5
12460   ac_status=$?
12461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462   test $ac_status = 0; }; then
12463   pkg_cv_GST_LEGACY_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>/dev/null`
12464                       test "x$?" != "x0" && pkg_failed=yes
12465 else
12466   pkg_failed=yes
12467 fi
12468  else
12469     pkg_failed=untried
12470 fi
12471
12472
12473
12474 if test $pkg_failed = yes; then
12475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12477
12478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12479         _pkg_short_errors_supported=yes
12480 else
12481         _pkg_short_errors_supported=no
12482 fi
12483         if test $_pkg_short_errors_supported = yes; then
12484                 GST_LEGACY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>&1`
12485         else
12486                 GST_LEGACY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>&1`
12487         fi
12488         # Put the nasty error message in config.log where it belongs
12489         echo "$GST_LEGACY_PKG_ERRORS" >&5
12490
12491         gstreamer_found='no'
12492 elif test $pkg_failed = untried; then
12493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495         gstreamer_found='no'
12496 else
12497         GST_LEGACY_CFLAGS=$pkg_cv_GST_LEGACY_CFLAGS
12498         GST_LEGACY_LIBS=$pkg_cv_GST_LEGACY_LIBS
12499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; }
12501
12502 fi
12503
12504 pkg_failed=no
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBU_LEGACY" >&5
12506 $as_echo_n "checking for GST_PBU_LEGACY... " >&6; }
12507
12508 if test -n "$GST_PBU_LEGACY_CFLAGS"; then
12509     pkg_cv_GST_PBU_LEGACY_CFLAGS="$GST_PBU_LEGACY_CFLAGS"
12510  elif test -n "$PKG_CONFIG"; then
12511     if test -n "$PKG_CONFIG" && \
12512     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_LEGACY_MAJORMINOR >= \$GSTPBU_LEGACY_REQ\""; } >&5
12513   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ") 2>&5
12514   ac_status=$?
12515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12516   test $ac_status = 0; }; then
12517   pkg_cv_GST_PBU_LEGACY_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>/dev/null`
12518                       test "x$?" != "x0" && pkg_failed=yes
12519 else
12520   pkg_failed=yes
12521 fi
12522  else
12523     pkg_failed=untried
12524 fi
12525 if test -n "$GST_PBU_LEGACY_LIBS"; then
12526     pkg_cv_GST_PBU_LEGACY_LIBS="$GST_PBU_LEGACY_LIBS"
12527  elif test -n "$PKG_CONFIG"; then
12528     if test -n "$PKG_CONFIG" && \
12529     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_LEGACY_MAJORMINOR >= \$GSTPBU_LEGACY_REQ\""; } >&5
12530   ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ") 2>&5
12531   ac_status=$?
12532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533   test $ac_status = 0; }; then
12534   pkg_cv_GST_PBU_LEGACY_LIBS=`$PKG_CONFIG --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>/dev/null`
12535                       test "x$?" != "x0" && pkg_failed=yes
12536 else
12537   pkg_failed=yes
12538 fi
12539  else
12540     pkg_failed=untried
12541 fi
12542
12543
12544
12545 if test $pkg_failed = yes; then
12546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548
12549 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12550         _pkg_short_errors_supported=yes
12551 else
12552         _pkg_short_errors_supported=no
12553 fi
12554         if test $_pkg_short_errors_supported = yes; then
12555                 GST_PBU_LEGACY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>&1`
12556         else
12557                 GST_PBU_LEGACY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>&1`
12558         fi
12559         # Put the nasty error message in config.log where it belongs
12560         echo "$GST_PBU_LEGACY_PKG_ERRORS" >&5
12561
12562         gstreamer_found='no'
12563 elif test $pkg_failed = untried; then
12564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12566         gstreamer_found='no'
12567 else
12568         GST_PBU_LEGACY_CFLAGS=$pkg_cv_GST_PBU_LEGACY_CFLAGS
12569         GST_PBU_LEGACY_LIBS=$pkg_cv_GST_PBU_LEGACY_LIBS
12570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572
12573 fi
12574
12575         if test "x$gstreamer_found" = 'xyes'
12576         then
12577
12578                 enable_legacy_gstreamer_metadata_backend='yes'
12579         elif test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
12580         then
12581                 as_fn_error $? "GStreamer $GST_LEGACY_MAJORMINOR not found." "$LINENO" 5
12582         else
12583                 enable_legacy_gstreamer_metadata_backend='no'
12584         fi
12585 fi
12586
12587 if test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
12588 then
12589          if true; then
12590   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE=
12591   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE='#'
12592 else
12593   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE='#'
12594   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE=
12595 fi
12596
12597 else
12598          if false; then
12599   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE=
12600   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE='#'
12601 else
12602   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE='#'
12603   GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE=
12604 fi
12605
12606 fi
12607
12608
12609 # Check whether --with-default-metadata-backend-dir was given.
12610 if test "${with_default_metadata_backend_dir+set}" = set; then :
12611   withval=$with_default_metadata_backend_dir;
12612 fi
12613
12614
12615 if test "x$with_default_metadata_backend_dir" = 'x'
12616 then
12617         with_default_metadata_backend_dir="$libdir/$PACKAGE_NAME"
12618 fi
12619
12620 if test "x$with_default_metadata_backend_dir" = 'xyes' || test "x$with_default_metadata_backend_dir" = 'xno'
12621 then
12622         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dubious default metadata backend directory: $with_default_metadata_backend_dir" >&5
12623 $as_echo "$as_me: WARNING: Dubious default metadata backend directory: $with_default_metadata_backend_dir" >&2;}
12624 fi
12625
12626 METADATA_DIRECTORY=$with_default_metadata_backend_dir
12627
12628
12629 GUPNP_DLNA_METADATA_BACKEND_CFLAGS="$GUPNP_DLNA_METADATA_BACKEND_CFLAGS -DGUPNP_DLNA_DEFAULT_METADATA_BACKEND_DIR=\\\"$with_default_metadata_backend_dir\\\""
12630
12631
12632
12633
12634 pkg_failed=no
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12636 $as_echo_n "checking for GLIB... " >&6; }
12637
12638 if test -n "$GLIB_CFLAGS"; then
12639     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12640  elif test -n "$PKG_CONFIG"; then
12641     if test -n "$PKG_CONFIG" && \
12642     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5
12643   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5
12644   ac_status=$?
12645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12646   test $ac_status = 0; }; then
12647   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32" 2>/dev/null`
12648                       test "x$?" != "x0" && pkg_failed=yes
12649 else
12650   pkg_failed=yes
12651 fi
12652  else
12653     pkg_failed=untried
12654 fi
12655 if test -n "$GLIB_LIBS"; then
12656     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12657  elif test -n "$PKG_CONFIG"; then
12658     if test -n "$PKG_CONFIG" && \
12659     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5
12660   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5
12661   ac_status=$?
12662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12663   test $ac_status = 0; }; then
12664   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32" 2>/dev/null`
12665                       test "x$?" != "x0" && pkg_failed=yes
12666 else
12667   pkg_failed=yes
12668 fi
12669  else
12670     pkg_failed=untried
12671 fi
12672
12673
12674
12675 if test $pkg_failed = yes; then
12676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678
12679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12680         _pkg_short_errors_supported=yes
12681 else
12682         _pkg_short_errors_supported=no
12683 fi
12684         if test $_pkg_short_errors_supported = yes; then
12685                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1`
12686         else
12687                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1`
12688         fi
12689         # Put the nasty error message in config.log where it belongs
12690         echo "$GLIB_PKG_ERRORS" >&5
12691
12692         as_fn_error $? "Package requirements (glib-2.0 >= 2.32) were not met:
12693
12694 $GLIB_PKG_ERRORS
12695
12696 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12697 installed software in a non-standard prefix.
12698
12699 Alternatively, you may set the environment variables GLIB_CFLAGS
12700 and GLIB_LIBS to avoid the need to call pkg-config.
12701 See the pkg-config man page for more details." "$LINENO" 5
12702 elif test $pkg_failed = untried; then
12703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12707 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12708 is in your PATH or set the PKG_CONFIG environment variable to the full
12709 path to pkg-config.
12710
12711 Alternatively, you may set the environment variables GLIB_CFLAGS
12712 and GLIB_LIBS to avoid the need to call pkg-config.
12713 See the pkg-config man page for more details.
12714
12715 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12716 See \`config.log' for more details" "$LINENO" 5; }
12717 else
12718         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12719         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12721 $as_echo "yes" >&6; }
12722
12723 fi
12724
12725 pkg_failed=no
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
12727 $as_echo_n "checking for GOBJECT... " >&6; }
12728
12729 if test -n "$GOBJECT_CFLAGS"; then
12730     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
12731  elif test -n "$PKG_CONFIG"; then
12732     if test -n "$PKG_CONFIG" && \
12733     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12734   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12735   ac_status=$?
12736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737   test $ac_status = 0; }; then
12738   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
12739                       test "x$?" != "x0" && pkg_failed=yes
12740 else
12741   pkg_failed=yes
12742 fi
12743  else
12744     pkg_failed=untried
12745 fi
12746 if test -n "$GOBJECT_LIBS"; then
12747     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
12748  elif test -n "$PKG_CONFIG"; then
12749     if test -n "$PKG_CONFIG" && \
12750     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12751   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12752   ac_status=$?
12753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754   test $ac_status = 0; }; then
12755   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
12756                       test "x$?" != "x0" && pkg_failed=yes
12757 else
12758   pkg_failed=yes
12759 fi
12760  else
12761     pkg_failed=untried
12762 fi
12763
12764
12765
12766 if test $pkg_failed = yes; then
12767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769
12770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12771         _pkg_short_errors_supported=yes
12772 else
12773         _pkg_short_errors_supported=no
12774 fi
12775         if test $_pkg_short_errors_supported = yes; then
12776                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
12777         else
12778                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
12779         fi
12780         # Put the nasty error message in config.log where it belongs
12781         echo "$GOBJECT_PKG_ERRORS" >&5
12782
12783         as_fn_error $? "Package requirements (gobject-2.0) were not met:
12784
12785 $GOBJECT_PKG_ERRORS
12786
12787 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12788 installed software in a non-standard prefix.
12789
12790 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12791 and GOBJECT_LIBS to avoid the need to call pkg-config.
12792 See the pkg-config man page for more details." "$LINENO" 5
12793 elif test $pkg_failed = untried; then
12794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12798 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12799 is in your PATH or set the PKG_CONFIG environment variable to the full
12800 path to pkg-config.
12801
12802 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12803 and GOBJECT_LIBS to avoid the need to call pkg-config.
12804 See the pkg-config man page for more details.
12805
12806 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12807 See \`config.log' for more details" "$LINENO" 5; }
12808 else
12809         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
12810         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
12811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12812 $as_echo "yes" >&6; }
12813
12814 fi
12815
12816 pkg_failed=no
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12818 $as_echo_n "checking for GMODULE... " >&6; }
12819
12820 if test -n "$GMODULE_CFLAGS"; then
12821     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12822  elif test -n "$PKG_CONFIG"; then
12823     if test -n "$PKG_CONFIG" && \
12824     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12825   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12826   ac_status=$?
12827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828   test $ac_status = 0; }; then
12829   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12830                       test "x$?" != "x0" && pkg_failed=yes
12831 else
12832   pkg_failed=yes
12833 fi
12834  else
12835     pkg_failed=untried
12836 fi
12837 if test -n "$GMODULE_LIBS"; then
12838     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12839  elif test -n "$PKG_CONFIG"; then
12840     if test -n "$PKG_CONFIG" && \
12841     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12842   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12843   ac_status=$?
12844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845   test $ac_status = 0; }; then
12846   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12847                       test "x$?" != "x0" && pkg_failed=yes
12848 else
12849   pkg_failed=yes
12850 fi
12851  else
12852     pkg_failed=untried
12853 fi
12854
12855
12856
12857 if test $pkg_failed = yes; then
12858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12860
12861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12862         _pkg_short_errors_supported=yes
12863 else
12864         _pkg_short_errors_supported=no
12865 fi
12866         if test $_pkg_short_errors_supported = yes; then
12867                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12868         else
12869                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12870         fi
12871         # Put the nasty error message in config.log where it belongs
12872         echo "$GMODULE_PKG_ERRORS" >&5
12873
12874         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12875
12876 $GMODULE_PKG_ERRORS
12877
12878 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12879 installed software in a non-standard prefix.
12880
12881 Alternatively, you may set the environment variables GMODULE_CFLAGS
12882 and GMODULE_LIBS to avoid the need to call pkg-config.
12883 See the pkg-config man page for more details." "$LINENO" 5
12884 elif test $pkg_failed = untried; then
12885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12887         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12889 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12890 is in your PATH or set the PKG_CONFIG environment variable to the full
12891 path to pkg-config.
12892
12893 Alternatively, you may set the environment variables GMODULE_CFLAGS
12894 and GMODULE_LIBS to avoid the need to call pkg-config.
12895 See the pkg-config man page for more details.
12896
12897 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12898 See \`config.log' for more details" "$LINENO" 5; }
12899 else
12900         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12901         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 $as_echo "yes" >&6; }
12904
12905 fi
12906
12907
12908
12909
12910
12911
12912
12913
12914 # Check for g_clear_pointer
12915 have_g_clear_pointer='no'
12916 if test -n "$PKG_CONFIG" && \
12917     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34\""; } >&5
12918   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34") 2>&5
12919   ac_status=$?
12920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921   test $ac_status = 0; }; then
12922   have_g_clear_pointer='yes'
12923 fi
12924 if test "x$have_g_clear_pointer" = xno; then :
12925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_clear_pointer" >&5
12926 $as_echo_n "checking for g_clear_pointer... " >&6; }
12927            GUPNP_DLNA_TEMP_CFLAGS="$CFLAGS"
12928            CFLAGS="$CFLAGS $GLIB_CFLAGS"
12929            GUPNP_DLNA_TEMP_LIBS="$LIBS"
12930            LIBS="$LIBS $GLIB_LIBS"
12931            ac_ext=c
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h.  */
12939
12940                                              #include <glib.h>
12941
12942 int
12943 main ()
12944 {
12945
12946                                              gchar *test = g_malloc (2);
12947                                              g_clear_pointer (&test, g_free);
12948                                              return (test == NULL)
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12955   have_g_clear_pointer='yes'
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext \
12958     conftest$ac_exeext conftest.$ac_ext
12959           LIBS="$GUPNP_DLNA_TEMP_LIBS"
12960           CFLAGS="$GUPNP_DLNA_TEMP_CFLAGS"
12961           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_g_clear_pointer" >&5
12962 $as_echo "$have_g_clear_pointer" >&6; }
12963 fi
12964
12965 if test "x$have_g_clear_pointer" = xno; then :
12966
12967 $as_echo "#define g_clear_pointer(ptr, func) \\
12968                       G_STMT_START { \\
12969                         if (ptr != NULL && func != NULL) { \\
12970                           gpointer g_clear_pointer_tmp_var = *ptr; \\
12971                           *ptr = NULL; \\
12972                           func (g_clear_pointer_tmp_var); \\
12973                         } \\
12974                       } G_STMT_END" >>confdefs.h
12975
12976 fi
12977
12978 # Debugging
12979 # Check whether --enable-debug was given.
12980 if test "${enable_debug+set}" = set; then :
12981   enableval=$enable_debug;
12982 else
12983   enable_debug=no
12984 fi
12985
12986 if test "x$enable_debug" = "xyes"; then
12987         CFLAGS="$CFLAGS -g -Wall"
12988 fi
12989
12990
12991
12992
12993                 # Check whether --enable-introspection was given.
12994 if test "${enable_introspection+set}" = set; then :
12995   enableval=$enable_introspection;
12996 else
12997   enable_introspection=auto
12998 fi
12999
13000
13001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
13002 $as_echo_n "checking for gobject-introspection... " >&6; }
13003
13004         case $enable_introspection in #(
13005   no) :
13006             found_introspection="no (disabled, use --enable-introspection to enable)"
13007      ;; #(
13008       yes) :
13009             if test -n "$PKG_CONFIG" && \
13010     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13011   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13012   ac_status=$?
13013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014   test $ac_status = 0; }; then
13015   :
13016 else
13017   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13018 fi
13019         if test -n "$PKG_CONFIG" && \
13020     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
13021   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
13022   ac_status=$?
13023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13024   test $ac_status = 0; }; then
13025   found_introspection=yes
13026 else
13027   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp-dlna" "$LINENO" 5
13028 fi
13029      ;; #(
13030       auto) :
13031             if test -n "$PKG_CONFIG" && \
13032     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
13033   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
13034   ac_status=$?
13035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036   test $ac_status = 0; }; then
13037   found_introspection=yes
13038 else
13039   found_introspection=no
13040 fi
13041      ;; #(
13042   *) :
13043                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
13044      ;;
13045 esac
13046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
13047 $as_echo "$found_introspection" >&6; }
13048
13049     INTROSPECTION_SCANNER=
13050     INTROSPECTION_COMPILER=
13051     INTROSPECTION_GENERATE=
13052     INTROSPECTION_GIRDIR=
13053     INTROSPECTION_TYPELIBDIR=
13054     if test "x$found_introspection" = "xyes"; then
13055        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
13056        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
13057        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
13058        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
13059        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
13060        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
13061        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
13062        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
13063     fi
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073      if test "x$found_introspection" = "xyes"; then
13074   HAVE_INTROSPECTION_TRUE=
13075   HAVE_INTROSPECTION_FALSE='#'
13076 else
13077   HAVE_INTROSPECTION_TRUE='#'
13078   HAVE_INTROSPECTION_FALSE=
13079 fi
13080
13081
13082
13083
13084 # vapigen
13085 if test "x$found_introspection" = "xyes"; then :
13086
13087        # Extract the first word of "vapigen", so it can be a program name with args.
13088 set dummy vapigen; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if ${ac_cv_path_VAPIGEN+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   case $VAPIGEN in
13095   [\\/]* | ?:[\\/]*)
13096   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
13097   ;;
13098   *)
13099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102   IFS=$as_save_IFS
13103   test -z "$as_dir" && as_dir=.
13104     for ac_exec_ext in '' $ac_executable_extensions; do
13105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13106     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
13107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108     break 2
13109   fi
13110 done
13111   done
13112 IFS=$as_save_IFS
13113
13114   ;;
13115 esac
13116 fi
13117 VAPIGEN=$ac_cv_path_VAPIGEN
13118 if test -n "$VAPIGEN"; then
13119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
13120 $as_echo "$VAPIGEN" >&6; }
13121 else
13122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13124 fi
13125
13126
13127   if test -z "$VAPIGEN"; then :
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
13129 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
13130 else
13131   if test -n "0.18"; then :
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version 0.18" >&5
13133 $as_echo_n "checking $VAPIGEN is at least version 0.18... " >&6; }
13134          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
13135          as_arg_v1=0.18
13136 as_arg_v2="$am__vapigen_version"
13137 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13138 case $? in #(
13139   1) :
13140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141 $as_echo "yes" >&6; } ;; #(
13142   0) :
13143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 $as_echo "yes" >&6; } ;; #(
13145   2) :
13146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator 0.18 not found." >&5
13149 $as_echo "$as_me: WARNING: Vala API Generator 0.18 not found." >&2;} ;; #(
13150   *) :
13151      ;;
13152 esac
13153 fi
13154 fi
13155
13156
13157
13158 fi
13159  if test "x$VAPIGEN" != "x"; then
13160   HAVE_VAPIGEN_TRUE=
13161   HAVE_VAPIGEN_FALSE='#'
13162 else
13163   HAVE_VAPIGEN_TRUE='#'
13164   HAVE_VAPIGEN_FALSE=
13165 fi
13166
13167
13168
13169
13170
13171     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13172 set dummy gtkdoc-check; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
13176   $as_echo_n "(cached) " >&6
13177 else
13178   case $GTKDOC_CHECK in
13179   [\\/]* | ?:[\\/]*)
13180   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
13181   ;;
13182   *)
13183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186   IFS=$as_save_IFS
13187   test -z "$as_dir" && as_dir=.
13188     for ac_exec_ext in '' $ac_executable_extensions; do
13189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
13191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192     break 2
13193   fi
13194 done
13195   done
13196 IFS=$as_save_IFS
13197
13198   ;;
13199 esac
13200 fi
13201 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
13202 if test -n "$GTKDOC_CHECK"; then
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13204 $as_echo "$GTKDOC_CHECK" >&6; }
13205 else
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210
13211   for ac_prog in gtkdoc-rebase
13212 do
13213   # Extract the first word of "$ac_prog", so it can be a program name with args.
13214 set dummy $ac_prog; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   case $GTKDOC_REBASE in
13221   [\\/]* | ?:[\\/]*)
13222   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13223   ;;
13224   *)
13225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230     for ac_exec_ext in '' $ac_executable_extensions; do
13231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237   done
13238 IFS=$as_save_IFS
13239
13240   ;;
13241 esac
13242 fi
13243 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13244 if test -n "$GTKDOC_REBASE"; then
13245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13246 $as_echo "$GTKDOC_REBASE" >&6; }
13247 else
13248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250 fi
13251
13252
13253   test -n "$GTKDOC_REBASE" && break
13254 done
13255 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13256
13257   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13258 set dummy gtkdoc-mkpdf; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   case $GTKDOC_MKPDF in
13265   [\\/]* | ?:[\\/]*)
13266   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13267   ;;
13268   *)
13269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13271 do
13272   IFS=$as_save_IFS
13273   test -z "$as_dir" && as_dir=.
13274     for ac_exec_ext in '' $ac_executable_extensions; do
13275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13276     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278     break 2
13279   fi
13280 done
13281   done
13282 IFS=$as_save_IFS
13283
13284   ;;
13285 esac
13286 fi
13287 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13288 if test -n "$GTKDOC_MKPDF"; then
13289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13290 $as_echo "$GTKDOC_MKPDF" >&6; }
13291 else
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 $as_echo "no" >&6; }
13294 fi
13295
13296
13297
13298
13299 # Check whether --with-html-dir was given.
13300 if test "${with_html_dir+set}" = set; then :
13301   withval=$with_html_dir;
13302 else
13303   with_html_dir='${datadir}/gtk-doc/html'
13304 fi
13305
13306   HTML_DIR="$with_html_dir"
13307
13308
13309     # Check whether --enable-gtk-doc was given.
13310 if test "${enable_gtk_doc+set}" = set; then :
13311   enableval=$enable_gtk_doc;
13312 else
13313   enable_gtk_doc=no
13314 fi
13315
13316
13317   if test x$enable_gtk_doc = xyes; then
13318     if test -n "$PKG_CONFIG" && \
13319     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.11\""; } >&5
13320   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.11") 2>&5
13321   ac_status=$?
13322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13323   test $ac_status = 0; }; then
13324   :
13325 else
13326   as_fn_error $? "You need to have gtk-doc >= 1.11 installed to build $PACKAGE_NAME" "$LINENO" 5
13327 fi
13328         if test "x$PACKAGE_NAME" != "xglib"; then
13329
13330 pkg_failed=no
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13332 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13333
13334 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13335     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13336  elif test -n "$PKG_CONFIG"; then
13337     if test -n "$PKG_CONFIG" && \
13338     { { $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
13339   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13340   ac_status=$?
13341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13342   test $ac_status = 0; }; then
13343   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13344                       test "x$?" != "x0" && pkg_failed=yes
13345 else
13346   pkg_failed=yes
13347 fi
13348  else
13349     pkg_failed=untried
13350 fi
13351 if test -n "$GTKDOC_DEPS_LIBS"; then
13352     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13353  elif test -n "$PKG_CONFIG"; then
13354     if test -n "$PKG_CONFIG" && \
13355     { { $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
13356   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13357   ac_status=$?
13358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13359   test $ac_status = 0; }; then
13360   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13361                       test "x$?" != "x0" && pkg_failed=yes
13362 else
13363   pkg_failed=yes
13364 fi
13365  else
13366     pkg_failed=untried
13367 fi
13368
13369
13370
13371 if test $pkg_failed = yes; then
13372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374
13375 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13376         _pkg_short_errors_supported=yes
13377 else
13378         _pkg_short_errors_supported=no
13379 fi
13380         if test $_pkg_short_errors_supported = yes; then
13381                 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`
13382         else
13383                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13384         fi
13385         # Put the nasty error message in config.log where it belongs
13386         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13387
13388         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13389
13390 $GTKDOC_DEPS_PKG_ERRORS
13391
13392 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13393 installed software in a non-standard prefix.
13394
13395 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13396 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13397 See the pkg-config man page for more details." "$LINENO" 5
13398 elif test $pkg_failed = untried; then
13399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13403 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13404 is in your PATH or set the PKG_CONFIG environment variable to the full
13405 path to pkg-config.
13406
13407 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13408 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13409 See the pkg-config man page for more details.
13410
13411 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13412 See \`config.log' for more details" "$LINENO" 5; }
13413 else
13414         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13415         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13417 $as_echo "yes" >&6; }
13418
13419 fi
13420     fi
13421   fi
13422
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13424 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13426 $as_echo "$enable_gtk_doc" >&6; }
13427
13428     # Check whether --enable-gtk-doc-html was given.
13429 if test "${enable_gtk_doc_html+set}" = set; then :
13430   enableval=$enable_gtk_doc_html;
13431 else
13432   enable_gtk_doc_html=yes
13433 fi
13434
13435     # Check whether --enable-gtk-doc-pdf was given.
13436 if test "${enable_gtk_doc_pdf+set}" = set; then :
13437   enableval=$enable_gtk_doc_pdf;
13438 else
13439   enable_gtk_doc_pdf=no
13440 fi
13441
13442
13443   if test -z "$GTKDOC_MKPDF"; then
13444     enable_gtk_doc_pdf=no
13445   fi
13446
13447
13448    if test x$enable_gtk_doc = xyes; then
13449   ENABLE_GTK_DOC_TRUE=
13450   ENABLE_GTK_DOC_FALSE='#'
13451 else
13452   ENABLE_GTK_DOC_TRUE='#'
13453   ENABLE_GTK_DOC_FALSE=
13454 fi
13455
13456    if test x$enable_gtk_doc_html = xyes; then
13457   GTK_DOC_BUILD_HTML_TRUE=
13458   GTK_DOC_BUILD_HTML_FALSE='#'
13459 else
13460   GTK_DOC_BUILD_HTML_TRUE='#'
13461   GTK_DOC_BUILD_HTML_FALSE=
13462 fi
13463
13464    if test x$enable_gtk_doc_pdf = xyes; then
13465   GTK_DOC_BUILD_PDF_TRUE=
13466   GTK_DOC_BUILD_PDF_FALSE='#'
13467 else
13468   GTK_DOC_BUILD_PDF_TRUE='#'
13469   GTK_DOC_BUILD_PDF_FALSE=
13470 fi
13471
13472    if test -n "$LIBTOOL"; then
13473   GTK_DOC_USE_LIBTOOL_TRUE=
13474   GTK_DOC_USE_LIBTOOL_FALSE='#'
13475 else
13476   GTK_DOC_USE_LIBTOOL_TRUE='#'
13477   GTK_DOC_USE_LIBTOOL_FALSE=
13478 fi
13479
13480    if test -n "$GTKDOC_REBASE"; then
13481   GTK_DOC_USE_REBASE_TRUE=
13482   GTK_DOC_USE_REBASE_FALSE='#'
13483 else
13484   GTK_DOC_USE_REBASE_TRUE='#'
13485   GTK_DOC_USE_REBASE_FALSE=
13486 fi
13487
13488
13489 # for fixxref
13490 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
13491
13492
13493 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"
13494
13495 ac_config_files="$ac_config_files tests/test-discoverer.sh"
13496
13497 cat >confcache <<\_ACEOF
13498 # This file is a shell script that caches the results of configure
13499 # tests run on this system so they can be shared between configure
13500 # scripts and configure runs, see configure's option --config-cache.
13501 # It is not useful on other systems.  If it contains results you don't
13502 # want to keep, you may remove or edit it.
13503 #
13504 # config.status only pays attention to the cache file if you give it
13505 # the --recheck option to rerun configure.
13506 #
13507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13509 # following values.
13510
13511 _ACEOF
13512
13513 # The following way of writing the cache mishandles newlines in values,
13514 # but we know of no workaround that is simple, portable, and efficient.
13515 # So, we kill variables containing newlines.
13516 # Ultrix sh set writes to stderr and can't be redirected directly,
13517 # and sets the high bit in the cache file unless we assign to the vars.
13518 (
13519   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13520     eval ac_val=\$$ac_var
13521     case $ac_val in #(
13522     *${as_nl}*)
13523       case $ac_var in #(
13524       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13525 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13526       esac
13527       case $ac_var in #(
13528       _ | IFS | as_nl) ;; #(
13529       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13530       *) { eval $ac_var=; unset $ac_var;} ;;
13531       esac ;;
13532     esac
13533   done
13534
13535   (set) 2>&1 |
13536     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13537     *${as_nl}ac_space=\ *)
13538       # `set' does not quote correctly, so add quotes: double-quote
13539       # substitution turns \\\\ into \\, and sed turns \\ into \.
13540       sed -n \
13541         "s/'/'\\\\''/g;
13542           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13543       ;; #(
13544     *)
13545       # `set' quotes correctly as required by POSIX, so do not add quotes.
13546       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13547       ;;
13548     esac |
13549     sort
13550 ) |
13551   sed '
13552      /^ac_cv_env_/b end
13553      t clear
13554      :clear
13555      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13556      t end
13557      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13558      :end' >>confcache
13559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13560   if test -w "$cache_file"; then
13561     if test "x$cache_file" != "x/dev/null"; then
13562       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13563 $as_echo "$as_me: updating cache $cache_file" >&6;}
13564       if test ! -f "$cache_file" || test -h "$cache_file"; then
13565         cat confcache >"$cache_file"
13566       else
13567         case $cache_file in #(
13568         */* | ?:*)
13569           mv -f confcache "$cache_file"$$ &&
13570           mv -f "$cache_file"$$ "$cache_file" ;; #(
13571         *)
13572           mv -f confcache "$cache_file" ;;
13573         esac
13574       fi
13575     fi
13576   else
13577     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13578 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13579   fi
13580 fi
13581 rm -f confcache
13582
13583 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13584 # Let make expand exec_prefix.
13585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13586
13587 DEFS=-DHAVE_CONFIG_H
13588
13589 ac_libobjs=
13590 ac_ltlibobjs=
13591 U=
13592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13593   # 1. Remove the extension, and $U if already installed.
13594   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13595   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13596   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13597   #    will be set to the directory where LIBOBJS objects are built.
13598   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13599   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13600 done
13601 LIBOBJS=$ac_libobjs
13602
13603 LTLIBOBJS=$ac_ltlibobjs
13604
13605
13606  if test -n "$EXEEXT"; then
13607   am__EXEEXT_TRUE=
13608   am__EXEEXT_FALSE='#'
13609 else
13610   am__EXEEXT_TRUE='#'
13611   am__EXEEXT_FALSE=
13612 fi
13613
13614 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13615   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13617 fi
13618 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13619   as_fn_error $? "conditional \"AMDEP\" was never defined.
13620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13621 fi
13622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13623   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13625 fi
13626 if test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_FALSE}"; then
13627   as_fn_error $? "conditional \"GSTREAMER_METADATA_BACKEND_ENABLED\" was never defined.
13628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13629 fi
13630 if test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_FALSE}"; then
13631   as_fn_error $? "conditional \"GSTREAMER_METADATA_BACKEND_ENABLED\" was never defined.
13632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13633 fi
13634 if test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE}"; then
13635   as_fn_error $? "conditional \"GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED\" was never defined.
13636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13637 fi
13638 if test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE}"; then
13639   as_fn_error $? "conditional \"GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED\" was never defined.
13640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13641 fi
13642 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13643   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13645 fi
13646 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13647   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13649 fi
13650 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13651   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13653 fi
13654 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13655   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13657 fi
13658 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13659   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13661 fi
13662 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13663   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13665 fi
13666 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13667   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13669 fi
13670
13671 : "${CONFIG_STATUS=./config.status}"
13672 ac_write_fail=0
13673 ac_clean_files_save=$ac_clean_files
13674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13676 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13677 as_write_fail=0
13678 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13679 #! $SHELL
13680 # Generated by $as_me.
13681 # Run this file to recreate the current configuration.
13682 # Compiler output produced by configure, useful for debugging
13683 # configure, is in config.log if it exists.
13684
13685 debug=false
13686 ac_cs_recheck=false
13687 ac_cs_silent=false
13688
13689 SHELL=\${CONFIG_SHELL-$SHELL}
13690 export SHELL
13691 _ASEOF
13692 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13693 ## -------------------- ##
13694 ## M4sh Initialization. ##
13695 ## -------------------- ##
13696
13697 # Be more Bourne compatible
13698 DUALCASE=1; export DUALCASE # for MKS sh
13699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13700   emulate sh
13701   NULLCMD=:
13702   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13703   # is contrary to our usage.  Disable this feature.
13704   alias -g '${1+"$@"}'='"$@"'
13705   setopt NO_GLOB_SUBST
13706 else
13707   case `(set -o) 2>/dev/null` in #(
13708   *posix*) :
13709     set -o posix ;; #(
13710   *) :
13711      ;;
13712 esac
13713 fi
13714
13715
13716 as_nl='
13717 '
13718 export as_nl
13719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13723 # Prefer a ksh shell builtin over an external printf program on Solaris,
13724 # but without wasting forks for bash or zsh.
13725 if test -z "$BASH_VERSION$ZSH_VERSION" \
13726     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13727   as_echo='print -r --'
13728   as_echo_n='print -rn --'
13729 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13730   as_echo='printf %s\n'
13731   as_echo_n='printf %s'
13732 else
13733   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13734     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13735     as_echo_n='/usr/ucb/echo -n'
13736   else
13737     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13738     as_echo_n_body='eval
13739       arg=$1;
13740       case $arg in #(
13741       *"$as_nl"*)
13742         expr "X$arg" : "X\\(.*\\)$as_nl";
13743         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13744       esac;
13745       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13746     '
13747     export as_echo_n_body
13748     as_echo_n='sh -c $as_echo_n_body as_echo'
13749   fi
13750   export as_echo_body
13751   as_echo='sh -c $as_echo_body as_echo'
13752 fi
13753
13754 # The user is always right.
13755 if test "${PATH_SEPARATOR+set}" != set; then
13756   PATH_SEPARATOR=:
13757   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13758     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13759       PATH_SEPARATOR=';'
13760   }
13761 fi
13762
13763
13764 # IFS
13765 # We need space, tab and new line, in precisely that order.  Quoting is
13766 # there to prevent editors from complaining about space-tab.
13767 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13768 # splitting by setting IFS to empty value.)
13769 IFS=" ""        $as_nl"
13770
13771 # Find who we are.  Look in the path if we contain no directory separator.
13772 as_myself=
13773 case $0 in #((
13774   *[\\/]* ) as_myself=$0 ;;
13775   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13777 do
13778   IFS=$as_save_IFS
13779   test -z "$as_dir" && as_dir=.
13780     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13781   done
13782 IFS=$as_save_IFS
13783
13784      ;;
13785 esac
13786 # We did not find ourselves, most probably we were run as `sh COMMAND'
13787 # in which case we are not to be found in the path.
13788 if test "x$as_myself" = x; then
13789   as_myself=$0
13790 fi
13791 if test ! -f "$as_myself"; then
13792   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13793   exit 1
13794 fi
13795
13796 # Unset variables that we do not need and which cause bugs (e.g. in
13797 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13798 # suppresses any "Segmentation fault" message there.  '((' could
13799 # trigger a bug in pdksh 5.2.14.
13800 for as_var in BASH_ENV ENV MAIL MAILPATH
13801 do eval test x\${$as_var+set} = xset \
13802   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13803 done
13804 PS1='$ '
13805 PS2='> '
13806 PS4='+ '
13807
13808 # NLS nuisances.
13809 LC_ALL=C
13810 export LC_ALL
13811 LANGUAGE=C
13812 export LANGUAGE
13813
13814 # CDPATH.
13815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13816
13817
13818 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13819 # ----------------------------------------
13820 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13821 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13822 # script with STATUS, using 1 if that was 0.
13823 as_fn_error ()
13824 {
13825   as_status=$1; test $as_status -eq 0 && as_status=1
13826   if test "$4"; then
13827     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13828     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13829   fi
13830   $as_echo "$as_me: error: $2" >&2
13831   as_fn_exit $as_status
13832 } # as_fn_error
13833
13834
13835 # as_fn_set_status STATUS
13836 # -----------------------
13837 # Set $? to STATUS, without forking.
13838 as_fn_set_status ()
13839 {
13840   return $1
13841 } # as_fn_set_status
13842
13843 # as_fn_exit STATUS
13844 # -----------------
13845 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13846 as_fn_exit ()
13847 {
13848   set +e
13849   as_fn_set_status $1
13850   exit $1
13851 } # as_fn_exit
13852
13853 # as_fn_unset VAR
13854 # ---------------
13855 # Portably unset VAR.
13856 as_fn_unset ()
13857 {
13858   { eval $1=; unset $1;}
13859 }
13860 as_unset=as_fn_unset
13861 # as_fn_append VAR VALUE
13862 # ----------------------
13863 # Append the text in VALUE to the end of the definition contained in VAR. Take
13864 # advantage of any shell optimizations that allow amortized linear growth over
13865 # repeated appends, instead of the typical quadratic growth present in naive
13866 # implementations.
13867 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13868   eval 'as_fn_append ()
13869   {
13870     eval $1+=\$2
13871   }'
13872 else
13873   as_fn_append ()
13874   {
13875     eval $1=\$$1\$2
13876   }
13877 fi # as_fn_append
13878
13879 # as_fn_arith ARG...
13880 # ------------------
13881 # Perform arithmetic evaluation on the ARGs, and store the result in the
13882 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13883 # must be portable across $(()) and expr.
13884 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13885   eval 'as_fn_arith ()
13886   {
13887     as_val=$(( $* ))
13888   }'
13889 else
13890   as_fn_arith ()
13891   {
13892     as_val=`expr "$@" || test $? -eq 1`
13893   }
13894 fi # as_fn_arith
13895
13896
13897 if expr a : '\(a\)' >/dev/null 2>&1 &&
13898    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13899   as_expr=expr
13900 else
13901   as_expr=false
13902 fi
13903
13904 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13905   as_basename=basename
13906 else
13907   as_basename=false
13908 fi
13909
13910 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13911   as_dirname=dirname
13912 else
13913   as_dirname=false
13914 fi
13915
13916 as_me=`$as_basename -- "$0" ||
13917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13918          X"$0" : 'X\(//\)$' \| \
13919          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13920 $as_echo X/"$0" |
13921     sed '/^.*\/\([^/][^/]*\)\/*$/{
13922             s//\1/
13923             q
13924           }
13925           /^X\/\(\/\/\)$/{
13926             s//\1/
13927             q
13928           }
13929           /^X\/\(\/\).*/{
13930             s//\1/
13931             q
13932           }
13933           s/.*/./; q'`
13934
13935 # Avoid depending upon Character Ranges.
13936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13939 as_cr_digits='0123456789'
13940 as_cr_alnum=$as_cr_Letters$as_cr_digits
13941
13942 ECHO_C= ECHO_N= ECHO_T=
13943 case `echo -n x` in #(((((
13944 -n*)
13945   case `echo 'xy\c'` in
13946   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13947   xy)  ECHO_C='\c';;
13948   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13949        ECHO_T=' ';;
13950   esac;;
13951 *)
13952   ECHO_N='-n';;
13953 esac
13954
13955 rm -f conf$$ conf$$.exe conf$$.file
13956 if test -d conf$$.dir; then
13957   rm -f conf$$.dir/conf$$.file
13958 else
13959   rm -f conf$$.dir
13960   mkdir conf$$.dir 2>/dev/null
13961 fi
13962 if (echo >conf$$.file) 2>/dev/null; then
13963   if ln -s conf$$.file conf$$ 2>/dev/null; then
13964     as_ln_s='ln -s'
13965     # ... but there are two gotchas:
13966     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13967     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13968     # In both cases, we have to default to `cp -pR'.
13969     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13970       as_ln_s='cp -pR'
13971   elif ln conf$$.file conf$$ 2>/dev/null; then
13972     as_ln_s=ln
13973   else
13974     as_ln_s='cp -pR'
13975   fi
13976 else
13977   as_ln_s='cp -pR'
13978 fi
13979 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13980 rmdir conf$$.dir 2>/dev/null
13981
13982
13983 # as_fn_mkdir_p
13984 # -------------
13985 # Create "$as_dir" as a directory, including parents if necessary.
13986 as_fn_mkdir_p ()
13987 {
13988
13989   case $as_dir in #(
13990   -*) as_dir=./$as_dir;;
13991   esac
13992   test -d "$as_dir" || eval $as_mkdir_p || {
13993     as_dirs=
13994     while :; do
13995       case $as_dir in #(
13996       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13997       *) as_qdir=$as_dir;;
13998       esac
13999       as_dirs="'$as_qdir' $as_dirs"
14000       as_dir=`$as_dirname -- "$as_dir" ||
14001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14002          X"$as_dir" : 'X\(//\)[^/]' \| \
14003          X"$as_dir" : 'X\(//\)$' \| \
14004          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14005 $as_echo X"$as_dir" |
14006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14007             s//\1/
14008             q
14009           }
14010           /^X\(\/\/\)[^/].*/{
14011             s//\1/
14012             q
14013           }
14014           /^X\(\/\/\)$/{
14015             s//\1/
14016             q
14017           }
14018           /^X\(\/\).*/{
14019             s//\1/
14020             q
14021           }
14022           s/.*/./; q'`
14023       test -d "$as_dir" && break
14024     done
14025     test -z "$as_dirs" || eval "mkdir $as_dirs"
14026   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14027
14028
14029 } # as_fn_mkdir_p
14030 if mkdir -p . 2>/dev/null; then
14031   as_mkdir_p='mkdir -p "$as_dir"'
14032 else
14033   test -d ./-p && rmdir ./-p
14034   as_mkdir_p=false
14035 fi
14036
14037
14038 # as_fn_executable_p FILE
14039 # -----------------------
14040 # Test if FILE is an executable regular file.
14041 as_fn_executable_p ()
14042 {
14043   test -f "$1" && test -x "$1"
14044 } # as_fn_executable_p
14045 as_test_x='test -x'
14046 as_executable_p=as_fn_executable_p
14047
14048 # Sed expression to map a string onto a valid CPP name.
14049 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14050
14051 # Sed expression to map a string onto a valid variable name.
14052 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14053
14054
14055 exec 6>&1
14056 ## ----------------------------------- ##
14057 ## Main body of $CONFIG_STATUS script. ##
14058 ## ----------------------------------- ##
14059 _ASEOF
14060 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14061
14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14063 # Save the log message, to keep $0 and so on meaningful, and to
14064 # report actual input values of CONFIG_FILES etc. instead of their
14065 # values after options handling.
14066 ac_log="
14067 This file was extended by gupnp-dlna $as_me 0.10.0, which was
14068 generated by GNU Autoconf 2.69.  Invocation command line was
14069
14070   CONFIG_FILES    = $CONFIG_FILES
14071   CONFIG_HEADERS  = $CONFIG_HEADERS
14072   CONFIG_LINKS    = $CONFIG_LINKS
14073   CONFIG_COMMANDS = $CONFIG_COMMANDS
14074   $ $0 $@
14075
14076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14077 "
14078
14079 _ACEOF
14080
14081 case $ac_config_files in *"
14082 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14083 esac
14084
14085 case $ac_config_headers in *"
14086 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14087 esac
14088
14089
14090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14091 # Files that config.status was made for.
14092 config_files="$ac_config_files"
14093 config_headers="$ac_config_headers"
14094 config_commands="$ac_config_commands"
14095
14096 _ACEOF
14097
14098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14099 ac_cs_usage="\
14100 \`$as_me' instantiates files and other configuration actions
14101 from templates according to the current configuration.  Unless the files
14102 and actions are specified as TAGs, all are instantiated by default.
14103
14104 Usage: $0 [OPTION]... [TAG]...
14105
14106   -h, --help       print this help, then exit
14107   -V, --version    print version number and configuration settings, then exit
14108       --config     print configuration, then exit
14109   -q, --quiet, --silent
14110                    do not print progress messages
14111   -d, --debug      don't remove temporary files
14112       --recheck    update $as_me by reconfiguring in the same conditions
14113       --file=FILE[:TEMPLATE]
14114                    instantiate the configuration file FILE
14115       --header=FILE[:TEMPLATE]
14116                    instantiate the configuration header FILE
14117
14118 Configuration files:
14119 $config_files
14120
14121 Configuration headers:
14122 $config_headers
14123
14124 Configuration commands:
14125 $config_commands
14126
14127 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>.
14128 gupnp-dlna home page: <http://www.gupnp.org/>."
14129
14130 _ACEOF
14131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14133 ac_cs_version="\\
14134 gupnp-dlna config.status 0.10.0
14135 configured by $0, generated by GNU Autoconf 2.69,
14136   with options \\"\$ac_cs_config\\"
14137
14138 Copyright (C) 2012 Free Software Foundation, Inc.
14139 This config.status script is free software; the Free Software Foundation
14140 gives unlimited permission to copy, distribute and modify it."
14141
14142 ac_pwd='$ac_pwd'
14143 srcdir='$srcdir'
14144 INSTALL='$INSTALL'
14145 MKDIR_P='$MKDIR_P'
14146 AWK='$AWK'
14147 test -n "\$AWK" || AWK=awk
14148 _ACEOF
14149
14150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14151 # The default lists apply if the user does not specify any file.
14152 ac_need_defaults=:
14153 while test $# != 0
14154 do
14155   case $1 in
14156   --*=?*)
14157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14159     ac_shift=:
14160     ;;
14161   --*=)
14162     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14163     ac_optarg=
14164     ac_shift=:
14165     ;;
14166   *)
14167     ac_option=$1
14168     ac_optarg=$2
14169     ac_shift=shift
14170     ;;
14171   esac
14172
14173   case $ac_option in
14174   # Handling of the options.
14175   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14176     ac_cs_recheck=: ;;
14177   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14178     $as_echo "$ac_cs_version"; exit ;;
14179   --config | --confi | --conf | --con | --co | --c )
14180     $as_echo "$ac_cs_config"; exit ;;
14181   --debug | --debu | --deb | --de | --d | -d )
14182     debug=: ;;
14183   --file | --fil | --fi | --f )
14184     $ac_shift
14185     case $ac_optarg in
14186     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14187     '') as_fn_error $? "missing file argument" ;;
14188     esac
14189     as_fn_append CONFIG_FILES " '$ac_optarg'"
14190     ac_need_defaults=false;;
14191   --header | --heade | --head | --hea )
14192     $ac_shift
14193     case $ac_optarg in
14194     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14195     esac
14196     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14197     ac_need_defaults=false;;
14198   --he | --h)
14199     # Conflict between --help and --header
14200     as_fn_error $? "ambiguous option: \`$1'
14201 Try \`$0 --help' for more information.";;
14202   --help | --hel | -h )
14203     $as_echo "$ac_cs_usage"; exit ;;
14204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14205   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14206     ac_cs_silent=: ;;
14207
14208   # This is an error.
14209   -*) as_fn_error $? "unrecognized option: \`$1'
14210 Try \`$0 --help' for more information." ;;
14211
14212   *) as_fn_append ac_config_targets " $1"
14213      ac_need_defaults=false ;;
14214
14215   esac
14216   shift
14217 done
14218
14219 ac_configure_extra_args=
14220
14221 if $ac_cs_silent; then
14222   exec 6>/dev/null
14223   ac_configure_extra_args="$ac_configure_extra_args --silent"
14224 fi
14225
14226 _ACEOF
14227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14228 if \$ac_cs_recheck; then
14229   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14230   shift
14231   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14232   CONFIG_SHELL='$SHELL'
14233   export CONFIG_SHELL
14234   exec "\$@"
14235 fi
14236
14237 _ACEOF
14238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239 exec 5>>config.log
14240 {
14241   echo
14242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14243 ## Running $as_me. ##
14244 _ASBOX
14245   $as_echo "$ac_log"
14246 } >&5
14247
14248 _ACEOF
14249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250 #
14251 # INIT-COMMANDS
14252 #
14253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14254
14255
14256 # The HP-UX ksh and POSIX shell print the target directory to stdout
14257 # if CDPATH is set.
14258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14259
14260 sed_quote_subst='$sed_quote_subst'
14261 double_quote_subst='$double_quote_subst'
14262 delay_variable_subst='$delay_variable_subst'
14263 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14264 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14265 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14266 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14267 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14268 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14269 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14270 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14271 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14272 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14273 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14274 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14275 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14276 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14277 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14278 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14279 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14280 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14281 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14282 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14283 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14284 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14285 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14286 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14287 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14288 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14289 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14290 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14291 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14292 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14293 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14294 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14295 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14296 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14297 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14298 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14299 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14300 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14301 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14302 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14303 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14304 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14305 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14306 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14307 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14308 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14309 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14310 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14311 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14312 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14313 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14314 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14315 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14316 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14317 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14318 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14319 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14320 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"`'
14321 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14322 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14323 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14324 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14325 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14326 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14327 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14328 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14329 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14330 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14331 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14332 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14333 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14334 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14335 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14336 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14337 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14338 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14339 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14340 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14341 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14342 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14343 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14344 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14345 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14346 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14347 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14348 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14349 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14350 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14351 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14352 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14353 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14354 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14355 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14356 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14357 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14358 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14359 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14360 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14361 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14362 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14363 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14364 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14365 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14366 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14367 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14368 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14369 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14370 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14371 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14372 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14373 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14374 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14375 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14376 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14377 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14378 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14379 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14380 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14381 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14382 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14383 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14384 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14385 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14386 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14387 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14388 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14389 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14390 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14391 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14392 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14393 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14394
14395 LTCC='$LTCC'
14396 LTCFLAGS='$LTCFLAGS'
14397 compiler='$compiler_DEFAULT'
14398
14399 # A function that is used when there is no print builtin or printf.
14400 func_fallback_echo ()
14401 {
14402   eval 'cat <<_LTECHO_EOF
14403 \$1
14404 _LTECHO_EOF'
14405 }
14406
14407 # Quote evaled strings.
14408 for var in AS \
14409 DLLTOOL \
14410 OBJDUMP \
14411 SHELL \
14412 ECHO \
14413 PATH_SEPARATOR \
14414 SED \
14415 GREP \
14416 EGREP \
14417 FGREP \
14418 LD \
14419 NM \
14420 LN_S \
14421 lt_SP2NL \
14422 lt_NL2SP \
14423 reload_flag \
14424 deplibs_check_method \
14425 file_magic_cmd \
14426 file_magic_glob \
14427 want_nocaseglob \
14428 sharedlib_from_linklib_cmd \
14429 AR \
14430 AR_FLAGS \
14431 archiver_list_spec \
14432 STRIP \
14433 RANLIB \
14434 CC \
14435 CFLAGS \
14436 compiler \
14437 lt_cv_sys_global_symbol_pipe \
14438 lt_cv_sys_global_symbol_to_cdecl \
14439 lt_cv_sys_global_symbol_to_c_name_address \
14440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14441 nm_file_list_spec \
14442 lt_prog_compiler_no_builtin_flag \
14443 lt_prog_compiler_pic \
14444 lt_prog_compiler_wl \
14445 lt_prog_compiler_static \
14446 lt_cv_prog_compiler_c_o \
14447 need_locks \
14448 MANIFEST_TOOL \
14449 DSYMUTIL \
14450 NMEDIT \
14451 LIPO \
14452 OTOOL \
14453 OTOOL64 \
14454 shrext_cmds \
14455 export_dynamic_flag_spec \
14456 whole_archive_flag_spec \
14457 compiler_needs_object \
14458 with_gnu_ld \
14459 allow_undefined_flag \
14460 no_undefined_flag \
14461 hardcode_libdir_flag_spec \
14462 hardcode_libdir_separator \
14463 exclude_expsyms \
14464 include_expsyms \
14465 file_list_spec \
14466 variables_saved_for_relink \
14467 libname_spec \
14468 library_names_spec \
14469 soname_spec \
14470 install_override_mode \
14471 finish_eval \
14472 old_striplib \
14473 striplib; do
14474     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14475     *[\\\\\\\`\\"\\\$]*)
14476       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14477       ;;
14478     *)
14479       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14480       ;;
14481     esac
14482 done
14483
14484 # Double-quote double-evaled strings.
14485 for var in reload_cmds \
14486 old_postinstall_cmds \
14487 old_postuninstall_cmds \
14488 old_archive_cmds \
14489 extract_expsyms_cmds \
14490 old_archive_from_new_cmds \
14491 old_archive_from_expsyms_cmds \
14492 archive_cmds \
14493 archive_expsym_cmds \
14494 module_cmds \
14495 module_expsym_cmds \
14496 export_symbols_cmds \
14497 prelink_cmds \
14498 postlink_cmds \
14499 postinstall_cmds \
14500 postuninstall_cmds \
14501 finish_cmds \
14502 sys_lib_search_path_spec \
14503 sys_lib_dlsearch_path_spec; do
14504     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14505     *[\\\\\\\`\\"\\\$]*)
14506       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14507       ;;
14508     *)
14509       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14510       ;;
14511     esac
14512 done
14513
14514 ac_aux_dir='$ac_aux_dir'
14515 xsi_shell='$xsi_shell'
14516 lt_shell_append='$lt_shell_append'
14517
14518 # See if we are running on zsh, and set the options which allow our
14519 # commands through without removal of \ escapes INIT.
14520 if test -n "\${ZSH_VERSION+set}" ; then
14521    setopt NO_GLOB_SUBST
14522 fi
14523
14524
14525     PACKAGE='$PACKAGE'
14526     VERSION='$VERSION'
14527     TIMESTAMP='$TIMESTAMP'
14528     RM='$RM'
14529     ofile='$ofile'
14530
14531
14532
14533
14534 _ACEOF
14535
14536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14537
14538 # Handling of arguments.
14539 for ac_config_target in $ac_config_targets
14540 do
14541   case $ac_config_target in
14542     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14543     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14544     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14545     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14546     "libgupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-dlna/Makefile" ;;
14547     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14548     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14549     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14550     "gupnp-dlna-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-2.0.pc" ;;
14551     "gupnp-dlna-metadata-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-metadata-2.0.pc" ;;
14552     "gupnp-dlna-gst-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-gst-2.0.pc" ;;
14553     "gupnp-dlna-gst-legacy-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-gst-legacy-2.0.pc" ;;
14554     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14555     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14556     "doc/gupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna/Makefile" ;;
14557     "doc/gupnp-dlna-metadata/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna-metadata/Makefile" ;;
14558     "doc/gupnp-dlna-gst/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna-gst/Makefile" ;;
14559     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14560     "tests/test-discoverer.sh") CONFIG_FILES="$CONFIG_FILES tests/test-discoverer.sh" ;;
14561
14562   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14563   esac
14564 done
14565
14566
14567 # If the user did not use the arguments to specify the items to instantiate,
14568 # then the envvar interface is used.  Set only those that are not.
14569 # We use the long form for the default assignment because of an extremely
14570 # bizarre bug on SunOS 4.1.3.
14571 if $ac_need_defaults; then
14572   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14573   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14574   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14575 fi
14576
14577 # Have a temporary directory for convenience.  Make it in the build tree
14578 # simply because there is no reason against having it here, and in addition,
14579 # creating and moving files from /tmp can sometimes cause problems.
14580 # Hook for its removal unless debugging.
14581 # Note that there is a small window in which the directory will not be cleaned:
14582 # after its creation but before its name has been assigned to `$tmp'.
14583 $debug ||
14584 {
14585   tmp= ac_tmp=
14586   trap 'exit_status=$?
14587   : "${ac_tmp:=$tmp}"
14588   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14589 ' 0
14590   trap 'as_fn_exit 1' 1 2 13 15
14591 }
14592 # Create a (secure) tmp directory for tmp files.
14593
14594 {
14595   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14596   test -d "$tmp"
14597 }  ||
14598 {
14599   tmp=./conf$$-$RANDOM
14600   (umask 077 && mkdir "$tmp")
14601 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14602 ac_tmp=$tmp
14603
14604 # Set up the scripts for CONFIG_FILES section.
14605 # No need to generate them if there are no CONFIG_FILES.
14606 # This happens for instance with `./config.status config.h'.
14607 if test -n "$CONFIG_FILES"; then
14608
14609
14610 ac_cr=`echo X | tr X '\015'`
14611 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14612 # But we know of no other shell where ac_cr would be empty at this
14613 # point, so we can use a bashism as a fallback.
14614 if test "x$ac_cr" = x; then
14615   eval ac_cr=\$\'\\r\'
14616 fi
14617 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14619   ac_cs_awk_cr='\\r'
14620 else
14621   ac_cs_awk_cr=$ac_cr
14622 fi
14623
14624 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14625 _ACEOF
14626
14627
14628 {
14629   echo "cat >conf$$subs.awk <<_ACEOF" &&
14630   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14631   echo "_ACEOF"
14632 } >conf$$subs.sh ||
14633   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14634 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14635 ac_delim='%!_!# '
14636 for ac_last_try in false false false false false :; do
14637   . ./conf$$subs.sh ||
14638     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14639
14640   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14641   if test $ac_delim_n = $ac_delim_num; then
14642     break
14643   elif $ac_last_try; then
14644     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14645   else
14646     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14647   fi
14648 done
14649 rm -f conf$$subs.sh
14650
14651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14652 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14653 _ACEOF
14654 sed -n '
14655 h
14656 s/^/S["/; s/!.*/"]=/
14657 p
14658 g
14659 s/^[^!]*!//
14660 :repl
14661 t repl
14662 s/'"$ac_delim"'$//
14663 t delim
14664 :nl
14665 h
14666 s/\(.\{148\}\)..*/\1/
14667 t more1
14668 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14669 p
14670 n
14671 b repl
14672 :more1
14673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14674 p
14675 g
14676 s/.\{148\}//
14677 t nl
14678 :delim
14679 h
14680 s/\(.\{148\}\)..*/\1/
14681 t more2
14682 s/["\\]/\\&/g; s/^/"/; s/$/"/
14683 p
14684 b
14685 :more2
14686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14687 p
14688 g
14689 s/.\{148\}//
14690 t delim
14691 ' <conf$$subs.awk | sed '
14692 /^[^""]/{
14693   N
14694   s/\n//
14695 }
14696 ' >>$CONFIG_STATUS || ac_write_fail=1
14697 rm -f conf$$subs.awk
14698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14699 _ACAWK
14700 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14701   for (key in S) S_is_set[key] = 1
14702   FS = "\a"
14703
14704 }
14705 {
14706   line = $ 0
14707   nfields = split(line, field, "@")
14708   substed = 0
14709   len = length(field[1])
14710   for (i = 2; i < nfields; i++) {
14711     key = field[i]
14712     keylen = length(key)
14713     if (S_is_set[key]) {
14714       value = S[key]
14715       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14716       len += length(value) + length(field[++i])
14717       substed = 1
14718     } else
14719       len += 1 + keylen
14720   }
14721
14722   print line
14723 }
14724
14725 _ACAWK
14726 _ACEOF
14727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14728 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14729   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14730 else
14731   cat
14732 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14733   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14734 _ACEOF
14735
14736 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14737 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14738 # trailing colons and then remove the whole line if VPATH becomes empty
14739 # (actually we leave an empty line to preserve line numbers).
14740 if test "x$srcdir" = x.; then
14741   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14742 h
14743 s///
14744 s/^/:/
14745 s/[      ]*$/:/
14746 s/:\$(srcdir):/:/g
14747 s/:\${srcdir}:/:/g
14748 s/:@srcdir@:/:/g
14749 s/^:*//
14750 s/:*$//
14751 x
14752 s/\(=[   ]*\).*/\1/
14753 G
14754 s/\n//
14755 s/^[^=]*=[       ]*$//
14756 }'
14757 fi
14758
14759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14760 fi # test -n "$CONFIG_FILES"
14761
14762 # Set up the scripts for CONFIG_HEADERS section.
14763 # No need to generate them if there are no CONFIG_HEADERS.
14764 # This happens for instance with `./config.status Makefile'.
14765 if test -n "$CONFIG_HEADERS"; then
14766 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14767 BEGIN {
14768 _ACEOF
14769
14770 # Transform confdefs.h into an awk script `defines.awk', embedded as
14771 # here-document in config.status, that substitutes the proper values into
14772 # config.h.in to produce config.h.
14773
14774 # Create a delimiter string that does not exist in confdefs.h, to ease
14775 # handling of long lines.
14776 ac_delim='%!_!# '
14777 for ac_last_try in false false :; do
14778   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14779   if test -z "$ac_tt"; then
14780     break
14781   elif $ac_last_try; then
14782     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14783   else
14784     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14785   fi
14786 done
14787
14788 # For the awk script, D is an array of macro values keyed by name,
14789 # likewise P contains macro parameters if any.  Preserve backslash
14790 # newline sequences.
14791
14792 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14793 sed -n '
14794 s/.\{148\}/&'"$ac_delim"'/g
14795 t rset
14796 :rset
14797 s/^[     ]*#[    ]*define[       ][      ]*/ /
14798 t def
14799 d
14800 :def
14801 s/\\$//
14802 t bsnl
14803 s/["\\]/\\&/g
14804 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14805 D["\1"]=" \3"/p
14806 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14807 d
14808 :bsnl
14809 s/["\\]/\\&/g
14810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14811 D["\1"]=" \3\\\\\\n"\\/p
14812 t cont
14813 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14814 t cont
14815 d
14816 :cont
14817 n
14818 s/.\{148\}/&'"$ac_delim"'/g
14819 t clear
14820 :clear
14821 s/\\$//
14822 t bsnlc
14823 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14824 d
14825 :bsnlc
14826 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14827 b cont
14828 ' <confdefs.h | sed '
14829 s/'"$ac_delim"'/"\\\
14830 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14831
14832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14833   for (key in D) D_is_set[key] = 1
14834   FS = "\a"
14835 }
14836 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14837   line = \$ 0
14838   split(line, arg, " ")
14839   if (arg[1] == "#") {
14840     defundef = arg[2]
14841     mac1 = arg[3]
14842   } else {
14843     defundef = substr(arg[1], 2)
14844     mac1 = arg[2]
14845   }
14846   split(mac1, mac2, "(") #)
14847   macro = mac2[1]
14848   prefix = substr(line, 1, index(line, defundef) - 1)
14849   if (D_is_set[macro]) {
14850     # Preserve the white space surrounding the "#".
14851     print prefix "define", macro P[macro] D[macro]
14852     next
14853   } else {
14854     # Replace #undef with comments.  This is necessary, for example,
14855     # in the case of _POSIX_SOURCE, which is predefined and required
14856     # on some systems where configure will not decide to define it.
14857     if (defundef == "undef") {
14858       print "/*", prefix defundef, macro, "*/"
14859       next
14860     }
14861   }
14862 }
14863 { print }
14864 _ACAWK
14865 _ACEOF
14866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14867   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14868 fi # test -n "$CONFIG_HEADERS"
14869
14870
14871 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14872 shift
14873 for ac_tag
14874 do
14875   case $ac_tag in
14876   :[FHLC]) ac_mode=$ac_tag; continue;;
14877   esac
14878   case $ac_mode$ac_tag in
14879   :[FHL]*:*);;
14880   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14881   :[FH]-) ac_tag=-:-;;
14882   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14883   esac
14884   ac_save_IFS=$IFS
14885   IFS=:
14886   set x $ac_tag
14887   IFS=$ac_save_IFS
14888   shift
14889   ac_file=$1
14890   shift
14891
14892   case $ac_mode in
14893   :L) ac_source=$1;;
14894   :[FH])
14895     ac_file_inputs=
14896     for ac_f
14897     do
14898       case $ac_f in
14899       -) ac_f="$ac_tmp/stdin";;
14900       *) # Look for the file first in the build tree, then in the source tree
14901          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14902          # because $ac_f cannot contain `:'.
14903          test -f "$ac_f" ||
14904            case $ac_f in
14905            [\\/$]*) false;;
14906            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14907            esac ||
14908            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14909       esac
14910       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14911       as_fn_append ac_file_inputs " '$ac_f'"
14912     done
14913
14914     # Let's still pretend it is `configure' which instantiates (i.e., don't
14915     # use $as_me), people would be surprised to read:
14916     #    /* config.h.  Generated by config.status.  */
14917     configure_input='Generated from '`
14918           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14919         `' by configure.'
14920     if test x"$ac_file" != x-; then
14921       configure_input="$ac_file.  $configure_input"
14922       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14923 $as_echo "$as_me: creating $ac_file" >&6;}
14924     fi
14925     # Neutralize special characters interpreted by sed in replacement strings.
14926     case $configure_input in #(
14927     *\&* | *\|* | *\\* )
14928        ac_sed_conf_input=`$as_echo "$configure_input" |
14929        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14930     *) ac_sed_conf_input=$configure_input;;
14931     esac
14932
14933     case $ac_tag in
14934     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14935       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14936     esac
14937     ;;
14938   esac
14939
14940   ac_dir=`$as_dirname -- "$ac_file" ||
14941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942          X"$ac_file" : 'X\(//\)[^/]' \| \
14943          X"$ac_file" : 'X\(//\)$' \| \
14944          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14945 $as_echo X"$ac_file" |
14946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947             s//\1/
14948             q
14949           }
14950           /^X\(\/\/\)[^/].*/{
14951             s//\1/
14952             q
14953           }
14954           /^X\(\/\/\)$/{
14955             s//\1/
14956             q
14957           }
14958           /^X\(\/\).*/{
14959             s//\1/
14960             q
14961           }
14962           s/.*/./; q'`
14963   as_dir="$ac_dir"; as_fn_mkdir_p
14964   ac_builddir=.
14965
14966 case "$ac_dir" in
14967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14968 *)
14969   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14970   # A ".." for each directory in $ac_dir_suffix.
14971   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14972   case $ac_top_builddir_sub in
14973   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14974   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14975   esac ;;
14976 esac
14977 ac_abs_top_builddir=$ac_pwd
14978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14979 # for backward compatibility:
14980 ac_top_builddir=$ac_top_build_prefix
14981
14982 case $srcdir in
14983   .)  # We are building in place.
14984     ac_srcdir=.
14985     ac_top_srcdir=$ac_top_builddir_sub
14986     ac_abs_top_srcdir=$ac_pwd ;;
14987   [\\/]* | ?:[\\/]* )  # Absolute name.
14988     ac_srcdir=$srcdir$ac_dir_suffix;
14989     ac_top_srcdir=$srcdir
14990     ac_abs_top_srcdir=$srcdir ;;
14991   *) # Relative name.
14992     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14993     ac_top_srcdir=$ac_top_build_prefix$srcdir
14994     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14995 esac
14996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14997
14998
14999   case $ac_mode in
15000   :F)
15001   #
15002   # CONFIG_FILE
15003   #
15004
15005   case $INSTALL in
15006   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15007   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15008   esac
15009   ac_MKDIR_P=$MKDIR_P
15010   case $MKDIR_P in
15011   [\\/$]* | ?:[\\/]* ) ;;
15012   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15013   esac
15014 _ACEOF
15015
15016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15017 # If the template does not know about datarootdir, expand it.
15018 # FIXME: This hack should be removed a few years after 2.60.
15019 ac_datarootdir_hack=; ac_datarootdir_seen=
15020 ac_sed_dataroot='
15021 /datarootdir/ {
15022   p
15023   q
15024 }
15025 /@datadir@/p
15026 /@docdir@/p
15027 /@infodir@/p
15028 /@localedir@/p
15029 /@mandir@/p'
15030 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15031 *datarootdir*) ac_datarootdir_seen=yes;;
15032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15034 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15035 _ACEOF
15036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037   ac_datarootdir_hack='
15038   s&@datadir@&$datadir&g
15039   s&@docdir@&$docdir&g
15040   s&@infodir@&$infodir&g
15041   s&@localedir@&$localedir&g
15042   s&@mandir@&$mandir&g
15043   s&\\\${datarootdir}&$datarootdir&g' ;;
15044 esac
15045 _ACEOF
15046
15047 # Neutralize VPATH when `$srcdir' = `.'.
15048 # Shell code in configure.ac might set extrasub.
15049 # FIXME: do we really want to maintain this feature?
15050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15051 ac_sed_extra="$ac_vpsub
15052 $extrasub
15053 _ACEOF
15054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15055 :t
15056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15057 s|@configure_input@|$ac_sed_conf_input|;t t
15058 s&@top_builddir@&$ac_top_builddir_sub&;t t
15059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15060 s&@srcdir@&$ac_srcdir&;t t
15061 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15062 s&@top_srcdir@&$ac_top_srcdir&;t t
15063 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15064 s&@builddir@&$ac_builddir&;t t
15065 s&@abs_builddir@&$ac_abs_builddir&;t t
15066 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15067 s&@INSTALL@&$ac_INSTALL&;t t
15068 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15069 $ac_datarootdir_hack
15070 "
15071 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15072   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15073
15074 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15075   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15076   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15077       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15079 which seems to be undefined.  Please make sure it is defined" >&5
15080 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15081 which seems to be undefined.  Please make sure it is defined" >&2;}
15082
15083   rm -f "$ac_tmp/stdin"
15084   case $ac_file in
15085   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15086   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15087   esac \
15088   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15089  ;;
15090   :H)
15091   #
15092   # CONFIG_HEADER
15093   #
15094   if test x"$ac_file" != x-; then
15095     {
15096       $as_echo "/* $configure_input  */" \
15097       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15098     } >"$ac_tmp/config.h" \
15099       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15100     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15101       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15102 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15103     else
15104       rm -f "$ac_file"
15105       mv "$ac_tmp/config.h" "$ac_file" \
15106         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15107     fi
15108   else
15109     $as_echo "/* $configure_input  */" \
15110       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15111       || as_fn_error $? "could not create -" "$LINENO" 5
15112   fi
15113 # Compute "$ac_file"'s index in $config_headers.
15114 _am_arg="$ac_file"
15115 _am_stamp_count=1
15116 for _am_header in $config_headers :; do
15117   case $_am_header in
15118     $_am_arg | $_am_arg:* )
15119       break ;;
15120     * )
15121       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15122   esac
15123 done
15124 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15125 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126          X"$_am_arg" : 'X\(//\)[^/]' \| \
15127          X"$_am_arg" : 'X\(//\)$' \| \
15128          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15129 $as_echo X"$_am_arg" |
15130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15131             s//\1/
15132             q
15133           }
15134           /^X\(\/\/\)[^/].*/{
15135             s//\1/
15136             q
15137           }
15138           /^X\(\/\/\)$/{
15139             s//\1/
15140             q
15141           }
15142           /^X\(\/\).*/{
15143             s//\1/
15144             q
15145           }
15146           s/.*/./; q'`/stamp-h$_am_stamp_count
15147  ;;
15148
15149   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15150 $as_echo "$as_me: executing $ac_file commands" >&6;}
15151  ;;
15152   esac
15153
15154
15155   case $ac_file$ac_mode in
15156     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15157   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15158   # are listed without --file.  Let's play safe and only enable the eval
15159   # if we detect the quoting.
15160   case $CONFIG_FILES in
15161   *\'*) eval set x "$CONFIG_FILES" ;;
15162   *)   set x $CONFIG_FILES ;;
15163   esac
15164   shift
15165   for mf
15166   do
15167     # Strip MF so we end up with the name of the file.
15168     mf=`echo "$mf" | sed -e 's/:.*$//'`
15169     # Check whether this is an Automake generated Makefile or not.
15170     # We used to match only the files named `Makefile.in', but
15171     # some people rename them; so instead we look at the file content.
15172     # Grep'ing the first line is not enough: some people post-process
15173     # each Makefile.in and add a new line on top of each file to say so.
15174     # Grep'ing the whole file is not good either: AIX grep has a line
15175     # limit of 2048, but all sed's we know have understand at least 4000.
15176     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15177       dirpart=`$as_dirname -- "$mf" ||
15178 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15179          X"$mf" : 'X\(//\)[^/]' \| \
15180          X"$mf" : 'X\(//\)$' \| \
15181          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15182 $as_echo X"$mf" |
15183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15184             s//\1/
15185             q
15186           }
15187           /^X\(\/\/\)[^/].*/{
15188             s//\1/
15189             q
15190           }
15191           /^X\(\/\/\)$/{
15192             s//\1/
15193             q
15194           }
15195           /^X\(\/\).*/{
15196             s//\1/
15197             q
15198           }
15199           s/.*/./; q'`
15200     else
15201       continue
15202     fi
15203     # Extract the definition of DEPDIR, am__include, and am__quote
15204     # from the Makefile without running `make'.
15205     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15206     test -z "$DEPDIR" && continue
15207     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15208     test -z "am__include" && continue
15209     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15210     # When using ansi2knr, U may be empty or an underscore; expand it
15211     U=`sed -n 's/^U = //p' < "$mf"`
15212     # Find all dependency output files, they are included files with
15213     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15214     # simplest approach to changing $(DEPDIR) to its actual value in the
15215     # expansion.
15216     for file in `sed -n "
15217       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15218          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15219       # Make sure the directory exists.
15220       test -f "$dirpart/$file" && continue
15221       fdir=`$as_dirname -- "$file" ||
15222 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15223          X"$file" : 'X\(//\)[^/]' \| \
15224          X"$file" : 'X\(//\)$' \| \
15225          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15226 $as_echo X"$file" |
15227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15228             s//\1/
15229             q
15230           }
15231           /^X\(\/\/\)[^/].*/{
15232             s//\1/
15233             q
15234           }
15235           /^X\(\/\/\)$/{
15236             s//\1/
15237             q
15238           }
15239           /^X\(\/\).*/{
15240             s//\1/
15241             q
15242           }
15243           s/.*/./; q'`
15244       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15245       # echo "creating $dirpart/$file"
15246       echo '# dummy' > "$dirpart/$file"
15247     done
15248   done
15249 }
15250  ;;
15251     "libtool":C)
15252
15253     # See if we are running on zsh, and set the options which allow our
15254     # commands through without removal of \ escapes.
15255     if test -n "${ZSH_VERSION+set}" ; then
15256       setopt NO_GLOB_SUBST
15257     fi
15258
15259     cfgfile="${ofile}T"
15260     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15261     $RM "$cfgfile"
15262
15263     cat <<_LT_EOF >> "$cfgfile"
15264 #! $SHELL
15265
15266 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15267 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15269 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15270 #
15271 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15272 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15273 #                 Foundation, Inc.
15274 #   Written by Gordon Matzigkeit, 1996
15275 #
15276 #   This file is part of GNU Libtool.
15277 #
15278 # GNU Libtool is free software; you can redistribute it and/or
15279 # modify it under the terms of the GNU General Public License as
15280 # published by the Free Software Foundation; either version 2 of
15281 # the License, or (at your option) any later version.
15282 #
15283 # As a special exception to the GNU General Public License,
15284 # if you distribute this file as part of a program or library that
15285 # is built using GNU Libtool, you may include this file under the
15286 # same distribution terms that you use for the rest of that program.
15287 #
15288 # GNU Libtool is distributed in the hope that it will be useful,
15289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15291 # GNU General Public License for more details.
15292 #
15293 # You should have received a copy of the GNU General Public License
15294 # along with GNU Libtool; see the file COPYING.  If not, a copy
15295 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15296 # obtained by writing to the Free Software Foundation, Inc.,
15297 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15298
15299
15300 # The names of the tagged configurations supported by this script.
15301 available_tags=""
15302
15303 # ### BEGIN LIBTOOL CONFIG
15304
15305 # Which release of libtool.m4 was used?
15306 macro_version=$macro_version
15307 macro_revision=$macro_revision
15308
15309 # Assembler program.
15310 AS=$lt_AS
15311
15312 # DLL creation program.
15313 DLLTOOL=$lt_DLLTOOL
15314
15315 # Object dumper program.
15316 OBJDUMP=$lt_OBJDUMP
15317
15318 # Whether or not to build shared libraries.
15319 build_libtool_libs=$enable_shared
15320
15321 # Whether or not to build static libraries.
15322 build_old_libs=$enable_static
15323
15324 # What type of objects to build.
15325 pic_mode=$pic_mode
15326
15327 # Whether or not to optimize for fast installation.
15328 fast_install=$enable_fast_install
15329
15330 # Shell to use when invoking shell scripts.
15331 SHELL=$lt_SHELL
15332
15333 # An echo program that protects backslashes.
15334 ECHO=$lt_ECHO
15335
15336 # The PATH separator for the build system.
15337 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15338
15339 # The host system.
15340 host_alias=$host_alias
15341 host=$host
15342 host_os=$host_os
15343
15344 # The build system.
15345 build_alias=$build_alias
15346 build=$build
15347 build_os=$build_os
15348
15349 # A sed program that does not truncate output.
15350 SED=$lt_SED
15351
15352 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15353 Xsed="\$SED -e 1s/^X//"
15354
15355 # A grep program that handles long lines.
15356 GREP=$lt_GREP
15357
15358 # An ERE matcher.
15359 EGREP=$lt_EGREP
15360
15361 # A literal string matcher.
15362 FGREP=$lt_FGREP
15363
15364 # A BSD- or MS-compatible name lister.
15365 NM=$lt_NM
15366
15367 # Whether we need soft or hard links.
15368 LN_S=$lt_LN_S
15369
15370 # What is the maximum length of a command?
15371 max_cmd_len=$max_cmd_len
15372
15373 # Object file suffix (normally "o").
15374 objext=$ac_objext
15375
15376 # Executable file suffix (normally "").
15377 exeext=$exeext
15378
15379 # whether the shell understands "unset".
15380 lt_unset=$lt_unset
15381
15382 # turn spaces into newlines.
15383 SP2NL=$lt_lt_SP2NL
15384
15385 # turn newlines into spaces.
15386 NL2SP=$lt_lt_NL2SP
15387
15388 # convert \$build file names to \$host format.
15389 to_host_file_cmd=$lt_cv_to_host_file_cmd
15390
15391 # convert \$build files to toolchain format.
15392 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15393
15394 # Method to check whether dependent libraries are shared objects.
15395 deplibs_check_method=$lt_deplibs_check_method
15396
15397 # Command to use when deplibs_check_method = "file_magic".
15398 file_magic_cmd=$lt_file_magic_cmd
15399
15400 # How to find potential files when deplibs_check_method = "file_magic".
15401 file_magic_glob=$lt_file_magic_glob
15402
15403 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15404 want_nocaseglob=$lt_want_nocaseglob
15405
15406 # Command to associate shared and link libraries.
15407 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15408
15409 # The archiver.
15410 AR=$lt_AR
15411
15412 # Flags to create an archive.
15413 AR_FLAGS=$lt_AR_FLAGS
15414
15415 # How to feed a file listing to the archiver.
15416 archiver_list_spec=$lt_archiver_list_spec
15417
15418 # A symbol stripping program.
15419 STRIP=$lt_STRIP
15420
15421 # Commands used to install an old-style archive.
15422 RANLIB=$lt_RANLIB
15423 old_postinstall_cmds=$lt_old_postinstall_cmds
15424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15425
15426 # Whether to use a lock for old archive extraction.
15427 lock_old_archive_extraction=$lock_old_archive_extraction
15428
15429 # A C compiler.
15430 LTCC=$lt_CC
15431
15432 # LTCC compiler flags.
15433 LTCFLAGS=$lt_CFLAGS
15434
15435 # Take the output of nm and produce a listing of raw symbols and C names.
15436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15437
15438 # Transform the output of nm in a proper C declaration.
15439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15440
15441 # Transform the output of nm in a C name address pair.
15442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15443
15444 # Transform the output of nm in a C name address pair when lib prefix is needed.
15445 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15446
15447 # Specify filename containing input files for \$NM.
15448 nm_file_list_spec=$lt_nm_file_list_spec
15449
15450 # The root where to search for dependent libraries,and in which our libraries should be installed.
15451 lt_sysroot=$lt_sysroot
15452
15453 # The name of the directory that contains temporary libtool files.
15454 objdir=$objdir
15455
15456 # Used to examine libraries when file_magic_cmd begins with "file".
15457 MAGIC_CMD=$MAGIC_CMD
15458
15459 # Must we lock files when doing compilation?
15460 need_locks=$lt_need_locks
15461
15462 # Manifest tool.
15463 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15464
15465 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15466 DSYMUTIL=$lt_DSYMUTIL
15467
15468 # Tool to change global to local symbols on Mac OS X.
15469 NMEDIT=$lt_NMEDIT
15470
15471 # Tool to manipulate fat objects and archives on Mac OS X.
15472 LIPO=$lt_LIPO
15473
15474 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15475 OTOOL=$lt_OTOOL
15476
15477 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15478 OTOOL64=$lt_OTOOL64
15479
15480 # Old archive suffix (normally "a").
15481 libext=$libext
15482
15483 # Shared library suffix (normally ".so").
15484 shrext_cmds=$lt_shrext_cmds
15485
15486 # The commands to extract the exported symbol list from a shared archive.
15487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15488
15489 # Variables whose values should be saved in libtool wrapper scripts and
15490 # restored at link time.
15491 variables_saved_for_relink=$lt_variables_saved_for_relink
15492
15493 # Do we need the "lib" prefix for modules?
15494 need_lib_prefix=$need_lib_prefix
15495
15496 # Do we need a version for libraries?
15497 need_version=$need_version
15498
15499 # Library versioning type.
15500 version_type=$version_type
15501
15502 # Shared library runtime path variable.
15503 runpath_var=$runpath_var
15504
15505 # Shared library path variable.
15506 shlibpath_var=$shlibpath_var
15507
15508 # Is shlibpath searched before the hard-coded library search path?
15509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15510
15511 # Format of library name prefix.
15512 libname_spec=$lt_libname_spec
15513
15514 # List of archive names.  First name is the real one, the rest are links.
15515 # The last name is the one that the linker finds with -lNAME
15516 library_names_spec=$lt_library_names_spec
15517
15518 # The coded name of the library, if different from the real name.
15519 soname_spec=$lt_soname_spec
15520
15521 # Permission mode override for installation of shared libraries.
15522 install_override_mode=$lt_install_override_mode
15523
15524 # Command to use after installation of a shared archive.
15525 postinstall_cmds=$lt_postinstall_cmds
15526
15527 # Command to use after uninstallation of a shared archive.
15528 postuninstall_cmds=$lt_postuninstall_cmds
15529
15530 # Commands used to finish a libtool library installation in a directory.
15531 finish_cmds=$lt_finish_cmds
15532
15533 # As "finish_cmds", except a single script fragment to be evaled but
15534 # not shown.
15535 finish_eval=$lt_finish_eval
15536
15537 # Whether we should hardcode library paths into libraries.
15538 hardcode_into_libs=$hardcode_into_libs
15539
15540 # Compile-time system search path for libraries.
15541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15542
15543 # Run-time system search path for libraries.
15544 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15545
15546 # Whether dlopen is supported.
15547 dlopen_support=$enable_dlopen
15548
15549 # Whether dlopen of programs is supported.
15550 dlopen_self=$enable_dlopen_self
15551
15552 # Whether dlopen of statically linked programs is supported.
15553 dlopen_self_static=$enable_dlopen_self_static
15554
15555 # Commands to strip libraries.
15556 old_striplib=$lt_old_striplib
15557 striplib=$lt_striplib
15558
15559
15560 # The linker used to build libraries.
15561 LD=$lt_LD
15562
15563 # How to create reloadable object files.
15564 reload_flag=$lt_reload_flag
15565 reload_cmds=$lt_reload_cmds
15566
15567 # Commands used to build an old-style archive.
15568 old_archive_cmds=$lt_old_archive_cmds
15569
15570 # A language specific compiler.
15571 CC=$lt_compiler
15572
15573 # Is the compiler the GNU compiler?
15574 with_gcc=$GCC
15575
15576 # Compiler flag to turn off builtin functions.
15577 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15578
15579 # Additional compiler flags for building library objects.
15580 pic_flag=$lt_lt_prog_compiler_pic
15581
15582 # How to pass a linker flag through the compiler.
15583 wl=$lt_lt_prog_compiler_wl
15584
15585 # Compiler flag to prevent dynamic linking.
15586 link_static_flag=$lt_lt_prog_compiler_static
15587
15588 # Does compiler simultaneously support -c and -o options?
15589 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15590
15591 # Whether or not to add -lc for building shared libraries.
15592 build_libtool_need_lc=$archive_cmds_need_lc
15593
15594 # Whether or not to disallow shared libs when runtime libs are static.
15595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15596
15597 # Compiler flag to allow reflexive dlopens.
15598 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15599
15600 # Compiler flag to generate shared objects directly from archives.
15601 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15602
15603 # Whether the compiler copes with passing no objects directly.
15604 compiler_needs_object=$lt_compiler_needs_object
15605
15606 # Create an old-style archive from a shared archive.
15607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15608
15609 # Create a temporary old-style archive to link instead of a shared archive.
15610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15611
15612 # Commands used to build a shared archive.
15613 archive_cmds=$lt_archive_cmds
15614 archive_expsym_cmds=$lt_archive_expsym_cmds
15615
15616 # Commands used to build a loadable module if different from building
15617 # a shared archive.
15618 module_cmds=$lt_module_cmds
15619 module_expsym_cmds=$lt_module_expsym_cmds
15620
15621 # Whether we are building with GNU ld or not.
15622 with_gnu_ld=$lt_with_gnu_ld
15623
15624 # Flag that allows shared libraries with undefined symbols to be built.
15625 allow_undefined_flag=$lt_allow_undefined_flag
15626
15627 # Flag that enforces no undefined symbols.
15628 no_undefined_flag=$lt_no_undefined_flag
15629
15630 # Flag to hardcode \$libdir into a binary during linking.
15631 # This must work even if \$libdir does not exist
15632 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15633
15634 # Whether we need a single "-rpath" flag with a separated argument.
15635 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15636
15637 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15638 # DIR into the resulting binary.
15639 hardcode_direct=$hardcode_direct
15640
15641 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15642 # DIR into the resulting binary and the resulting library dependency is
15643 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15644 # library is relocated.
15645 hardcode_direct_absolute=$hardcode_direct_absolute
15646
15647 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15648 # into the resulting binary.
15649 hardcode_minus_L=$hardcode_minus_L
15650
15651 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15652 # into the resulting binary.
15653 hardcode_shlibpath_var=$hardcode_shlibpath_var
15654
15655 # Set to "yes" if building a shared library automatically hardcodes DIR
15656 # into the library and all subsequent libraries and executables linked
15657 # against it.
15658 hardcode_automatic=$hardcode_automatic
15659
15660 # Set to yes if linker adds runtime paths of dependent libraries
15661 # to runtime path list.
15662 inherit_rpath=$inherit_rpath
15663
15664 # Whether libtool must link a program against all its dependency libraries.
15665 link_all_deplibs=$link_all_deplibs
15666
15667 # Set to "yes" if exported symbols are required.
15668 always_export_symbols=$always_export_symbols
15669
15670 # The commands to list exported symbols.
15671 export_symbols_cmds=$lt_export_symbols_cmds
15672
15673 # Symbols that should not be listed in the preloaded symbols.
15674 exclude_expsyms=$lt_exclude_expsyms
15675
15676 # Symbols that must always be exported.
15677 include_expsyms=$lt_include_expsyms
15678
15679 # Commands necessary for linking programs (against libraries) with templates.
15680 prelink_cmds=$lt_prelink_cmds
15681
15682 # Commands necessary for finishing linking programs.
15683 postlink_cmds=$lt_postlink_cmds
15684
15685 # Specify filename containing input files.
15686 file_list_spec=$lt_file_list_spec
15687
15688 # How to hardcode a shared library path into an executable.
15689 hardcode_action=$hardcode_action
15690
15691 # ### END LIBTOOL CONFIG
15692
15693 _LT_EOF
15694
15695   case $host_os in
15696   aix3*)
15697     cat <<\_LT_EOF >> "$cfgfile"
15698 # AIX sometimes has problems with the GCC collect2 program.  For some
15699 # reason, if we set the COLLECT_NAMES environment variable, the problems
15700 # vanish in a puff of smoke.
15701 if test "X${COLLECT_NAMES+set}" != Xset; then
15702   COLLECT_NAMES=
15703   export COLLECT_NAMES
15704 fi
15705 _LT_EOF
15706     ;;
15707   esac
15708
15709
15710 ltmain="$ac_aux_dir/ltmain.sh"
15711
15712
15713   # We use sed instead of cat because bash on DJGPP gets confused if
15714   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15715   # text mode, it properly converts lines to CR/LF.  This bash problem
15716   # is reportedly fixed, but why not run on old versions too?
15717   sed '$q' "$ltmain" >> "$cfgfile" \
15718      || (rm -f "$cfgfile"; exit 1)
15719
15720   if test x"$xsi_shell" = xyes; then
15721   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15722 func_dirname ()\
15723 {\
15724 \    case ${1} in\
15725 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15726 \      *  ) func_dirname_result="${3}" ;;\
15727 \    esac\
15728 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15729   && mv -f "$cfgfile.tmp" "$cfgfile" \
15730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15731 test 0 -eq $? || _lt_function_replace_fail=:
15732
15733
15734   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15735 func_basename ()\
15736 {\
15737 \    func_basename_result="${1##*/}"\
15738 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15739   && mv -f "$cfgfile.tmp" "$cfgfile" \
15740     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15741 test 0 -eq $? || _lt_function_replace_fail=:
15742
15743
15744   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15745 func_dirname_and_basename ()\
15746 {\
15747 \    case ${1} in\
15748 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15749 \      *  ) func_dirname_result="${3}" ;;\
15750 \    esac\
15751 \    func_basename_result="${1##*/}"\
15752 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15753   && mv -f "$cfgfile.tmp" "$cfgfile" \
15754     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15755 test 0 -eq $? || _lt_function_replace_fail=:
15756
15757
15758   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15759 func_stripname ()\
15760 {\
15761 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15762 \    # positional parameters, so assign one to ordinary parameter first.\
15763 \    func_stripname_result=${3}\
15764 \    func_stripname_result=${func_stripname_result#"${1}"}\
15765 \    func_stripname_result=${func_stripname_result%"${2}"}\
15766 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15767   && mv -f "$cfgfile.tmp" "$cfgfile" \
15768     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15769 test 0 -eq $? || _lt_function_replace_fail=:
15770
15771
15772   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15773 func_split_long_opt ()\
15774 {\
15775 \    func_split_long_opt_name=${1%%=*}\
15776 \    func_split_long_opt_arg=${1#*=}\
15777 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15778   && mv -f "$cfgfile.tmp" "$cfgfile" \
15779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15780 test 0 -eq $? || _lt_function_replace_fail=:
15781
15782
15783   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15784 func_split_short_opt ()\
15785 {\
15786 \    func_split_short_opt_arg=${1#??}\
15787 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15788 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15789   && mv -f "$cfgfile.tmp" "$cfgfile" \
15790     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15791 test 0 -eq $? || _lt_function_replace_fail=:
15792
15793
15794   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15795 func_lo2o ()\
15796 {\
15797 \    case ${1} in\
15798 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15799 \      *)    func_lo2o_result=${1} ;;\
15800 \    esac\
15801 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15802   && mv -f "$cfgfile.tmp" "$cfgfile" \
15803     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15804 test 0 -eq $? || _lt_function_replace_fail=:
15805
15806
15807   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15808 func_xform ()\
15809 {\
15810     func_xform_result=${1%.*}.lo\
15811 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15812   && mv -f "$cfgfile.tmp" "$cfgfile" \
15813     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15814 test 0 -eq $? || _lt_function_replace_fail=:
15815
15816
15817   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15818 func_arith ()\
15819 {\
15820     func_arith_result=$(( $* ))\
15821 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
15828 func_len ()\
15829 {\
15830     func_len_result=${#1}\
15831 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15832   && mv -f "$cfgfile.tmp" "$cfgfile" \
15833     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15834 test 0 -eq $? || _lt_function_replace_fail=:
15835
15836 fi
15837
15838 if test x"$lt_shell_append" = xyes; then
15839   sed -e '/^func_append ()$/,/^} # func_append /c\
15840 func_append ()\
15841 {\
15842     eval "${1}+=\\${2}"\
15843 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15844   && mv -f "$cfgfile.tmp" "$cfgfile" \
15845     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15846 test 0 -eq $? || _lt_function_replace_fail=:
15847
15848
15849   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15850 func_append_quoted ()\
15851 {\
15852 \    func_quote_for_eval "${2}"\
15853 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15854 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15855   && mv -f "$cfgfile.tmp" "$cfgfile" \
15856     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15857 test 0 -eq $? || _lt_function_replace_fail=:
15858
15859
15860   # Save a `func_append' function call where possible by direct use of '+='
15861   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15862     && mv -f "$cfgfile.tmp" "$cfgfile" \
15863       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15864   test 0 -eq $? || _lt_function_replace_fail=:
15865 else
15866   # Save a `func_append' function call even when '+=' is not available
15867   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15868     && mv -f "$cfgfile.tmp" "$cfgfile" \
15869       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15870   test 0 -eq $? || _lt_function_replace_fail=:
15871 fi
15872
15873 if test x"$_lt_function_replace_fail" = x":"; then
15874   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15875 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15876 fi
15877
15878
15879    mv -f "$cfgfile" "$ofile" ||
15880     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15881   chmod +x "$ofile"
15882
15883  ;;
15884     "tests/test-discoverer.sh":F) chmod a+x tests/test-discoverer.sh ;;
15885
15886   esac
15887 done # for ac_tag
15888
15889
15890 as_fn_exit 0
15891 _ACEOF
15892 ac_clean_files=$ac_clean_files_save
15893
15894 test $ac_write_fail = 0 ||
15895   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15896
15897
15898 # configure is writing to config.log, and then calls config.status.
15899 # config.status does its own redirection, appending to config.log.
15900 # Unfortunately, on DOS this fails, as config.log is still kept open
15901 # by configure, so config.status won't be able to write to it; its
15902 # output is simply discarded.  So we exec the FD to /dev/null,
15903 # effectively closing config.log, so it can be properly (re)opened and
15904 # appended to by config.status.  When coming back to configure, we
15905 # need to make the FD available again.
15906 if test "$no_create" != yes; then
15907   ac_cs_success=:
15908   ac_config_status_args=
15909   test "$silent" = yes &&
15910     ac_config_status_args="$ac_config_status_args --quiet"
15911   exec 5>/dev/null
15912   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15913   exec 5>>config.log
15914   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15915   # would make configure fail if this is the last instruction.
15916   $ac_cs_success || as_fn_exit 1
15917 fi
15918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15919   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15920 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15921 fi
15922
15923
15924 echo
15925 echo 'Configuration status:'
15926 echo
15927 echo "Default metadata backend:                $with_default_metadata_backend"
15928 echo "Default metadata backend directory:      $with_default_metadata_backend_dir"
15929 echo "Build GStreamer metadata backend:        $enable_gstreamer_metadata_backend"
15930 echo "Build legacy GStreamer metadata backend: $enable_legacy_gstreamer_metadata_backend"
15931 echo