Update dLeyna to v0.2.1
[profile/ivi/dLeyna.git] / dleyna-core / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dleyna-core 0.2.2.
4 #
5 # Report bugs to <https://github.com/01org/dleyna-core/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/01org/dleyna-core/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='dleyna-core'
592 PACKAGE_TARNAME='dleyna-core'
593 PACKAGE_VERSION='0.2.2'
594 PACKAGE_STRING='dleyna-core 0.2.2'
595 PACKAGE_BUGREPORT='https://github.com/01org/dleyna-core/issues/new'
596 PACKAGE_URL='https://01.org/dleyna/'
597
598 ac_unique_file="libdleyna/core/main-loop.c"
599 ac_default_prefix=/usr/local
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 with_log_level
640 with_connector_name
641 never_quit
642 DLEYNA_CONNECTOR_LIB_PATTERN
643 LIBOBJS
644 GUPNP_LIBS
645 GUPNP_CFLAGS
646 GMODULE_LIBS
647 GMODULE_CFLAGS
648 GIO_LIBS
649 GIO_CFLAGS
650 GLIB_LIBS
651 GLIB_CFLAGS
652 PKG_CONFIG_LIBDIR
653 PKG_CONFIG_PATH
654 PKG_CONFIG
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 EGREP
674 GREP
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 LIBTOOL
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 AM_BACKSLASH
703 AM_DEFAULT_VERBOSITY
704 AM_DEFAULT_V
705 AM_V
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_maintainer_mode
774 enable_silent_rules
775 enable_dependency_tracking
776 enable_static
777 enable_shared
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 enable_debug
784 enable_werror
785 enable_optimization
786 with_log_level
787 '
788       ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP
797 PKG_CONFIG
798 PKG_CONFIG_PATH
799 PKG_CONFIG_LIBDIR
800 GLIB_CFLAGS
801 GLIB_LIBS
802 GIO_CFLAGS
803 GIO_LIBS
804 GMODULE_CFLAGS
805 GMODULE_LIBS
806 GUPNP_CFLAGS
807 GUPNP_LIBS'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862   # If the previous option needs an argument, assign it.
863   if test -n "$ac_prev"; then
864     eval $ac_prev=\$ac_option
865     ac_prev=
866     continue
867   fi
868
869   case $ac_option in
870   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871   *=)   ac_optarg= ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error $? "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error $? "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263   elif test "x$build_alias" != "x$host_alias"; then
1264     cross_compiling=yes
1265   fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277   as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279   as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284   ac_srcdir_defaulted=yes
1285   # Try the directory containing this script, then the parent directory.
1286   ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288          X"$as_myself" : 'X\(//\)[^/]' \| \
1289          X"$as_myself" : 'X\(//\)$' \| \
1290          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)[^/].*/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\).*/{
1305             s//\1/
1306             q
1307           }
1308           s/.*/./; q'`
1309   srcdir=$ac_confdir
1310   if test ! -r "$srcdir/$ac_unique_file"; then
1311     srcdir=..
1312   fi
1313 else
1314   ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323         pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326   srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_env_${ac_var}_value=\$${ac_var}
1337   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345   # Omit some internal or obsolete options to make the list less imposing.
1346   # This message is too long to be a string in the A/UX 3.1 sh.
1347   cat <<_ACEOF
1348 \`configure' configures dleyna-core 0.2.2 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358   -h, --help              display this help and exit
1359       --help=short        display options specific to this package
1360       --help=recursive    display the short help of all the included packages
1361   -V, --version           display version information and exit
1362   -q, --quiet, --silent   do not print \`checking ...' messages
1363       --cache-file=FILE   cache test results in FILE [disabled]
1364   -C, --config-cache      alias for \`--cache-file=config.cache'
1365   -n, --no-create         do not create output files
1366       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369   --prefix=PREFIX         install architecture-independent files in PREFIX
1370                           [$ac_default_prefix]
1371   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                           [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382   --bindir=DIR            user executables [EPREFIX/bin]
1383   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384   --libexecdir=DIR        program executables [EPREFIX/libexec]
1385   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388   --libdir=DIR            object code libraries [EPREFIX/lib]
1389   --includedir=DIR        C header files [PREFIX/include]
1390   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393   --infodir=DIR           info documentation [DATAROOTDIR/info]
1394   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395   --mandir=DIR            man documentation [DATAROOTDIR/man]
1396   --docdir=DIR            documentation root [DATAROOTDIR/doc/dleyna-core]
1397   --htmldir=DIR           html documentation [DOCDIR]
1398   --dvidir=DIR            dvi documentation [DOCDIR]
1399   --pdfdir=DIR            pdf documentation [DOCDIR]
1400   --psdir=DIR             ps documentation [DOCDIR]
1401 _ACEOF
1402
1403   cat <<\_ACEOF
1404
1405 Program names:
1406   --program-prefix=PREFIX            prepend PREFIX to installed program names
1407   --program-suffix=SUFFIX            append SUFFIX to installed program names
1408   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410 System types:
1411   --build=BUILD     configure for building on BUILD [guessed]
1412   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417   case $ac_init_help in
1418      short | recursive ) echo "Configuration of dleyna-core 0.2.2:";;
1419    esac
1420   cat <<\_ACEOF
1421
1422 Optional Features:
1423   --disable-option-checking  ignore unrecognized --enable/--with options
1424   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426   --enable-maintainer-mode  enable make rules and dependencies not useful
1427                           (and sometimes confusing) to the casual installer
1428   --enable-silent-rules          less verbose build output (undo: `make V=1')
1429   --disable-silent-rules         verbose build output (undo: `make V=0')
1430   --disable-dependency-tracking  speeds up one-time build
1431   --enable-dependency-tracking   do not reject slow dependency extractors
1432   --enable-static[=PKGS]  build static libraries [default=no]
1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
1434   --enable-fast-install[=PKGS]
1435                           optimize for fast installation [default=yes]
1436   --disable-libtool-lock  avoid locking (might break parallel builds)
1437   --enable-debug          enable compiling with debugging information
1438   --enable-werror         warnings are treated as errors
1439   --disable-optimization  disable code optimization through compiler
1440
1441 Optional Packages:
1442   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1445                           both]
1446   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447   --with-sysroot=DIR Search for dependent libraries within DIR
1448                         (or the compiler's sysroot if not specified).
1449   --with-log-level        enable logging information (0,1..6,7,8) 0=disabled
1450                           7=default (=1,2,5) 8=all (=1,2,3,4,5,6) 1,..,6=a
1451                           comma separated list of log level
1452
1453 Some influential environment variables:
1454   CC          C compiler command
1455   CFLAGS      C compiler flags
1456   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1457               nonstandard directory <lib dir>
1458   LIBS        libraries to pass to the linker, e.g. -l<library>
1459   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460               you have headers in a nonstandard directory <include dir>
1461   CPP         C preprocessor
1462   PKG_CONFIG  path to pkg-config utility
1463   PKG_CONFIG_PATH
1464               directories to add to pkg-config's search path
1465   PKG_CONFIG_LIBDIR
1466               path overriding pkg-config's built-in search path
1467   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1468   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1469   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1470   GIO_LIBS    linker flags for GIO, overriding pkg-config
1471   GMODULE_CFLAGS
1472               C compiler flags for GMODULE, overriding pkg-config
1473   GMODULE_LIBS
1474               linker flags for GMODULE, overriding pkg-config
1475   GUPNP_CFLAGS
1476               C compiler flags for GUPNP, overriding pkg-config
1477   GUPNP_LIBS  linker flags for GUPNP, overriding pkg-config
1478
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1481
1482 Report bugs to <https://github.com/01org/dleyna-core/issues/new>.
1483 dleyna-core home page: <https://01.org/dleyna/>.
1484 _ACEOF
1485 ac_status=$?
1486 fi
1487
1488 if test "$ac_init_help" = "recursive"; then
1489   # If there are subdirs, report their specific --help.
1490   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491     test -d "$ac_dir" ||
1492       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493       continue
1494     ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500   # A ".." for each directory in $ac_dir_suffix.
1501   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502   case $ac_top_builddir_sub in
1503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505   esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513   .)  # We are building in place.
1514     ac_srcdir=.
1515     ac_top_srcdir=$ac_top_builddir_sub
1516     ac_abs_top_srcdir=$ac_pwd ;;
1517   [\\/]* | ?:[\\/]* )  # Absolute name.
1518     ac_srcdir=$srcdir$ac_dir_suffix;
1519     ac_top_srcdir=$srcdir
1520     ac_abs_top_srcdir=$srcdir ;;
1521   *) # Relative name.
1522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523     ac_top_srcdir=$ac_top_build_prefix$srcdir
1524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528     cd "$ac_dir" || { ac_status=$?; continue; }
1529     # Check for guested configure.
1530     if test -f "$ac_srcdir/configure.gnu"; then
1531       echo &&
1532       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533     elif test -f "$ac_srcdir/configure"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure" --help=recursive
1536     else
1537       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538     fi || ac_status=$?
1539     cd "$ac_pwd" || { ac_status=$?; break; }
1540   done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545   cat <<\_ACEOF
1546 dleyna-core configure 0.2.2
1547 generated by GNU Autoconf 2.69
1548
1549 Copyright (C) 2012 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553   exit
1554 fi
1555
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1559
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1564 {
1565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566   rm -f conftest.$ac_objext
1567   if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570   *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574   (eval "$ac_compile") 2>conftest.err
1575   ac_status=$?
1576   if test -s conftest.err; then
1577     grep -v '^ *+' conftest.err >conftest.er1
1578     cat conftest.er1 >&5
1579     mv -f conftest.er1 conftest.err
1580   fi
1581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582   test $ac_status = 0; } && {
1583          test -z "$ac_c_werror_flag" ||
1584          test ! -s conftest.err
1585        } && test -s conftest.$ac_objext; then :
1586   ac_retval=0
1587 else
1588   $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591         ac_retval=1
1592 fi
1593   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594   as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_compile
1597
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1602 {
1603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604   rm -f conftest.$ac_objext conftest$ac_exeext
1605   if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608   *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612   (eval "$ac_link") 2>conftest.err
1613   ac_status=$?
1614   if test -s conftest.err; then
1615     grep -v '^ *+' conftest.err >conftest.er1
1616     cat conftest.er1 >&5
1617     mv -f conftest.er1 conftest.err
1618   fi
1619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620   test $ac_status = 0; } && {
1621          test -z "$ac_c_werror_flag" ||
1622          test ! -s conftest.err
1623        } && test -s conftest$ac_exeext && {
1624          test "$cross_compiling" = yes ||
1625          test -x conftest$ac_exeext
1626        }; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632         ac_retval=1
1633 fi
1634   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636   # interfere with the next link command; also delete a directory that is
1637   # left behind by Apple's compiler.  We do this before executing the actions.
1638   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_link
1643
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654   $as_echo_n "(cached) " >&6
1655 else
1656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h.  */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662   eval "$3=yes"
1663 else
1664   eval "$3=no"
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$3
1669                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_compile
1674
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689   ac_status=$?
1690   if test -s conftest.err; then
1691     grep -v '^ *+' conftest.err >conftest.er1
1692     cat conftest.er1 >&5
1693     mv -f conftest.er1 conftest.err
1694   fi
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } > conftest.i && {
1697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698          test ! -s conftest.err
1699        }; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705     ac_retval=1
1706 fi
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708   as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_cpp
1711
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_link") 2>&5
1727   ac_status=$?
1728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730   { { case "(($ac_try" in
1731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732   *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736   (eval "$ac_try") 2>&5
1737   ac_status=$?
1738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; }; }; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: program exited with status $ac_status" >&5
1743        $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746        ac_retval=$ac_status
1747 fi
1748   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750   as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_run
1753
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763   $as_echo_n "(cached) " >&6
1764 else
1765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h.  */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1769 #define $2 innocuous_$2
1770
1771 /* System header to define __stub macros and hopefully few prototypes,
1772     which can conflict with char $2 (); below.
1773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774     <limits.h> exists even on freestanding compilers.  */
1775
1776 #ifdef __STDC__
1777 # include <limits.h>
1778 #else
1779 # include <assert.h>
1780 #endif
1781
1782 #undef $2
1783
1784 /* Override any GCC internal prototype to avoid an error.
1785    Use char because int might match the return type of a GCC
1786    builtin and then its argument prototype would still apply.  */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 ();
1791 /* The GNU C library defines this for functions which it implements
1792     to always fail with ENOSYS.  Some functions are actually named
1793     something starting with __ and the normal name is an alias.  */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1797
1798 int
1799 main ()
1800 {
1801 return $2 ();
1802   ;
1803   return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"; then :
1807   eval "$3=yes"
1808 else
1809   eval "$3=no"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext \
1812     conftest$ac_exeext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_func
1820
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   if eval \${$3+:} false; then :
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833   $as_echo_n "(cached) " >&6
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839   # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848   ac_header_compiler=yes
1849 else
1850   ac_header_compiler=no
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1855
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864   ac_header_preproc=yes
1865 else
1866   ac_header_preproc=no
1867 fi
1868 rm -f conftest.err conftest.i conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1871
1872 # So?  What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874   yes:no: )
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879     ;;
1880   no:yes:* )
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891 ( $as_echo "## -------------------------------------------------------------- ##
1892 ## Report this to https://github.com/01org/dleyna-core/issues/new ##
1893 ## -------------------------------------------------------------- ##"
1894      ) | sed "s/^/$as_me: WARNING:     /" >&2
1895     ;;
1896 esac
1897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900   $as_echo_n "(cached) " >&6
1901 else
1902   eval "$3=\$ac_header_compiler"
1903 fi
1904 eval ac_res=\$$3
1905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 fi
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_header_mongrel
1911
1912 # ac_fn_c_find_uintX_t LINENO BITS VAR
1913 # ------------------------------------
1914 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1915 # accordingly.
1916 ac_fn_c_find_uintX_t ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1920 $as_echo_n "checking for uint$2_t... " >&6; }
1921 if eval \${$3+:} false; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   eval "$3=no"
1925      # Order is important - never check a type that is potentially smaller
1926      # than half of the expected target width.
1927      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1928          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1929        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $ac_includes_default
1932 int
1933 main ()
1934 {
1935 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944   case $ac_type in #(
1945   uint$2_t) :
1946     eval "$3=yes" ;; #(
1947   *) :
1948     eval "$3=\$ac_type" ;;
1949 esac
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952        if eval test \"x\$"$3"\" = x"no"; then :
1953
1954 else
1955   break
1956 fi
1957      done
1958 fi
1959 eval ac_res=\$$3
1960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_find_uintX_t
1965
1966 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1967 # -------------------------------------------
1968 # Tests whether TYPE exists after having included INCLUDES, setting cache
1969 # variable VAR accordingly.
1970 ac_fn_c_check_type ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   eval "$3=no"
1979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 $4
1982 int
1983 main ()
1984 {
1985 if (sizeof ($2))
1986          return 0;
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 $4
1995 int
1996 main ()
1997 {
1998 if (sizeof (($2)))
1999             return 0;
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005
2006 else
2007   eval "$3=yes"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 fi
2013 eval ac_res=\$$3
2014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018 } # ac_fn_c_check_type
2019 cat >config.log <<_ACEOF
2020 This file contains any messages produced by compilers while
2021 running configure, to aid debugging if configure makes a mistake.
2022
2023 It was created by dleyna-core $as_me 0.2.2, which was
2024 generated by GNU Autoconf 2.69.  Invocation command line was
2025
2026   $ $0 $@
2027
2028 _ACEOF
2029 exec 5>>config.log
2030 {
2031 cat <<_ASUNAME
2032 ## --------- ##
2033 ## Platform. ##
2034 ## --------- ##
2035
2036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2041
2042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2043 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2044
2045 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2046 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2048 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2049 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2050 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2051 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2052
2053 _ASUNAME
2054
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060     $as_echo "PATH: $as_dir"
2061   done
2062 IFS=$as_save_IFS
2063
2064 } >&5
2065
2066 cat >&5 <<_ACEOF
2067
2068
2069 ## ----------- ##
2070 ## Core tests. ##
2071 ## ----------- ##
2072
2073 _ACEOF
2074
2075
2076 # Keep a trace of the command line.
2077 # Strip out --no-create and --no-recursion so they do not pile up.
2078 # Strip out --silent because we don't want to record it for future runs.
2079 # Also quote any args containing shell meta-characters.
2080 # Make two passes to allow for proper duplicate-argument suppression.
2081 ac_configure_args=
2082 ac_configure_args0=
2083 ac_configure_args1=
2084 ac_must_keep_next=false
2085 for ac_pass in 1 2
2086 do
2087   for ac_arg
2088   do
2089     case $ac_arg in
2090     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2091     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2092     | -silent | --silent | --silen | --sile | --sil)
2093       continue ;;
2094     *\'*)
2095       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2096     esac
2097     case $ac_pass in
2098     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2099     2)
2100       as_fn_append ac_configure_args1 " '$ac_arg'"
2101       if test $ac_must_keep_next = true; then
2102         ac_must_keep_next=false # Got value, back to normal.
2103       else
2104         case $ac_arg in
2105           *=* | --config-cache | -C | -disable-* | --disable-* \
2106           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2107           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2108           | -with-* | --with-* | -without-* | --without-* | --x)
2109             case "$ac_configure_args0 " in
2110               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2111             esac
2112             ;;
2113           -* ) ac_must_keep_next=true ;;
2114         esac
2115       fi
2116       as_fn_append ac_configure_args " '$ac_arg'"
2117       ;;
2118     esac
2119   done
2120 done
2121 { ac_configure_args0=; unset ac_configure_args0;}
2122 { ac_configure_args1=; unset ac_configure_args1;}
2123
2124 # When interrupted or exit'd, cleanup temporary files, and complete
2125 # config.log.  We remove comments because anyway the quotes in there
2126 # would cause problems or look ugly.
2127 # WARNING: Use '\'' to represent an apostrophe within the trap.
2128 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2129 trap 'exit_status=$?
2130   # Save into config.log some information that might help in debugging.
2131   {
2132     echo
2133
2134     $as_echo "## ---------------- ##
2135 ## Cache variables. ##
2136 ## ---------------- ##"
2137     echo
2138     # The following way of writing the cache mishandles newlines in values,
2139 (
2140   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2141     eval ac_val=\$$ac_var
2142     case $ac_val in #(
2143     *${as_nl}*)
2144       case $ac_var in #(
2145       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2146 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2147       esac
2148       case $ac_var in #(
2149       _ | IFS | as_nl) ;; #(
2150       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2151       *) { eval $ac_var=; unset $ac_var;} ;;
2152       esac ;;
2153     esac
2154   done
2155   (set) 2>&1 |
2156     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2157     *${as_nl}ac_space=\ *)
2158       sed -n \
2159         "s/'\''/'\''\\\\'\'''\''/g;
2160           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2161       ;; #(
2162     *)
2163       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2164       ;;
2165     esac |
2166     sort
2167 )
2168     echo
2169
2170     $as_echo "## ----------------- ##
2171 ## Output variables. ##
2172 ## ----------------- ##"
2173     echo
2174     for ac_var in $ac_subst_vars
2175     do
2176       eval ac_val=\$$ac_var
2177       case $ac_val in
2178       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179       esac
2180       $as_echo "$ac_var='\''$ac_val'\''"
2181     done | sort
2182     echo
2183
2184     if test -n "$ac_subst_files"; then
2185       $as_echo "## ------------------- ##
2186 ## File substitutions. ##
2187 ## ------------------- ##"
2188       echo
2189       for ac_var in $ac_subst_files
2190       do
2191         eval ac_val=\$$ac_var
2192         case $ac_val in
2193         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194         esac
2195         $as_echo "$ac_var='\''$ac_val'\''"
2196       done | sort
2197       echo
2198     fi
2199
2200     if test -s confdefs.h; then
2201       $as_echo "## ----------- ##
2202 ## confdefs.h. ##
2203 ## ----------- ##"
2204       echo
2205       cat confdefs.h
2206       echo
2207     fi
2208     test "$ac_signal" != 0 &&
2209       $as_echo "$as_me: caught signal $ac_signal"
2210     $as_echo "$as_me: exit $exit_status"
2211   } >&5
2212   rm -f core *.core core.conftest.* &&
2213     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214     exit $exit_status
2215 ' 0
2216 for ac_signal in 1 2 13 15; do
2217   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2218 done
2219 ac_signal=0
2220
2221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2222 rm -f -r conftest* confdefs.h
2223
2224 $as_echo "/* confdefs.h */" > confdefs.h
2225
2226 # Predefined preprocessor variables.
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_NAME "$PACKAGE_NAME"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_STRING "$PACKAGE_STRING"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_URL "$PACKAGE_URL"
2250 _ACEOF
2251
2252
2253 # Let the site file select an alternate cache file if it wants to.
2254 # Prefer an explicitly selected file to automatically selected ones.
2255 ac_site_file1=NONE
2256 ac_site_file2=NONE
2257 if test -n "$CONFIG_SITE"; then
2258   # We do not want a PATH search for config.site.
2259   case $CONFIG_SITE in #((
2260     -*)  ac_site_file1=./$CONFIG_SITE;;
2261     */*) ac_site_file1=$CONFIG_SITE;;
2262     *)   ac_site_file1=./$CONFIG_SITE;;
2263   esac
2264 elif test "x$prefix" != xNONE; then
2265   ac_site_file1=$prefix/share/config.site
2266   ac_site_file2=$prefix/etc/config.site
2267 else
2268   ac_site_file1=$ac_default_prefix/share/config.site
2269   ac_site_file2=$ac_default_prefix/etc/config.site
2270 fi
2271 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2272 do
2273   test "x$ac_site_file" = xNONE && continue
2274   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2275     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2276 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2277     sed 's/^/| /' "$ac_site_file" >&5
2278     . "$ac_site_file" \
2279       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 as_fn_error $? "failed to load site script $ac_site_file
2282 See \`config.log' for more details" "$LINENO" 5; }
2283   fi
2284 done
2285
2286 if test -r "$cache_file"; then
2287   # Some versions of bash will fail to source /dev/null (special files
2288   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2289   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2291 $as_echo "$as_me: loading cache $cache_file" >&6;}
2292     case $cache_file in
2293       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2294       *)                      . "./$cache_file";;
2295     esac
2296   fi
2297 else
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2299 $as_echo "$as_me: creating cache $cache_file" >&6;}
2300   >$cache_file
2301 fi
2302
2303 # Check that the precious variables saved in the cache have kept the same
2304 # value.
2305 ac_cache_corrupted=false
2306 for ac_var in $ac_precious_vars; do
2307   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2308   eval ac_new_set=\$ac_env_${ac_var}_set
2309   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2310   eval ac_new_val=\$ac_env_${ac_var}_value
2311   case $ac_old_set,$ac_new_set in
2312     set,)
2313       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2314 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2315       ac_cache_corrupted=: ;;
2316     ,set)
2317       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2319       ac_cache_corrupted=: ;;
2320     ,);;
2321     *)
2322       if test "x$ac_old_val" != "x$ac_new_val"; then
2323         # differences in whitespace do not lead to failure.
2324         ac_old_val_w=`echo x $ac_old_val`
2325         ac_new_val_w=`echo x $ac_new_val`
2326         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2327           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2328 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2329           ac_cache_corrupted=:
2330         else
2331           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2332 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2333           eval $ac_var=\$ac_old_val
2334         fi
2335         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2336 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2337         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2338 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2339       fi;;
2340   esac
2341   # Pass precious variables to config.status.
2342   if test "$ac_new_set" = set; then
2343     case $ac_new_val in
2344     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2345     *) ac_arg=$ac_var=$ac_new_val ;;
2346     esac
2347     case " $ac_configure_args " in
2348       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2349       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2350     esac
2351   fi
2352 done
2353 if $ac_cache_corrupted; then
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2357 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2358   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2359 fi
2360 ## -------------------- ##
2361 ## Main body of script. ##
2362 ## -------------------- ##
2363
2364 ac_ext=c
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369
2370
2371
2372 ac_config_headers="$ac_config_headers config.h"
2373
2374 ac_aux_dir=
2375 for ac_dir in build-aux "$srcdir"/build-aux; do
2376   if test -f "$ac_dir/install-sh"; then
2377     ac_aux_dir=$ac_dir
2378     ac_install_sh="$ac_aux_dir/install-sh -c"
2379     break
2380   elif test -f "$ac_dir/install.sh"; then
2381     ac_aux_dir=$ac_dir
2382     ac_install_sh="$ac_aux_dir/install.sh -c"
2383     break
2384   elif test -f "$ac_dir/shtool"; then
2385     ac_aux_dir=$ac_dir
2386     ac_install_sh="$ac_aux_dir/shtool install -c"
2387     break
2388   fi
2389 done
2390 if test -z "$ac_aux_dir"; then
2391   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2392 fi
2393
2394 # These three variables are undocumented and unsupported,
2395 # and are intended to be withdrawn in a future Autoconf release.
2396 # They can cause serious problems if a builder's source tree is in a directory
2397 # whose full name contains unusual characters.
2398 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2399 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2400 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2401
2402
2403
2404
2405
2406
2407
2408 am__api_version='1.11'
2409
2410 # Find a good install program.  We prefer a C program (faster),
2411 # so one script is as good as another.  But avoid the broken or
2412 # incompatible versions:
2413 # SysV /etc/install, /usr/sbin/install
2414 # SunOS /usr/etc/install
2415 # IRIX /sbin/install
2416 # AIX /bin/install
2417 # AmigaOS /C/install, which installs bootblocks on floppy discs
2418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2421 # OS/2's system install, which has a completely different semantic
2422 # ./install, which can be erroneously created by make from ./install.sh.
2423 # Reject install programs that cannot install multiple files.
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2426 if test -z "$INSTALL"; then
2427 if ${ac_cv_path_install+:} false; then :
2428   $as_echo_n "(cached) " >&6
2429 else
2430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435     # Account for people who put trailing slashes in PATH elements.
2436 case $as_dir/ in #((
2437   ./ | .// | /[cC]/* | \
2438   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2439   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2440   /usr/ucb/* ) ;;
2441   *)
2442     # OSF1 and SCO ODT 3.0 have their own names for install.
2443     # Don't use installbsd from OSF since it installs stuff as root
2444     # by default.
2445     for ac_prog in ginstall scoinst install; do
2446       for ac_exec_ext in '' $ac_executable_extensions; do
2447         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2448           if test $ac_prog = install &&
2449             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450             # AIX install.  It has an incompatible calling convention.
2451             :
2452           elif test $ac_prog = install &&
2453             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2454             # program-specific install script used by HP pwplus--don't use.
2455             :
2456           else
2457             rm -rf conftest.one conftest.two conftest.dir
2458             echo one > conftest.one
2459             echo two > conftest.two
2460             mkdir conftest.dir
2461             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2462               test -s conftest.one && test -s conftest.two &&
2463               test -s conftest.dir/conftest.one &&
2464               test -s conftest.dir/conftest.two
2465             then
2466               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2467               break 3
2468             fi
2469           fi
2470         fi
2471       done
2472     done
2473     ;;
2474 esac
2475
2476   done
2477 IFS=$as_save_IFS
2478
2479 rm -rf conftest.one conftest.two conftest.dir
2480
2481 fi
2482   if test "${ac_cv_path_install+set}" = set; then
2483     INSTALL=$ac_cv_path_install
2484   else
2485     # As a last resort, use the slow shell script.  Don't cache a
2486     # value for INSTALL within a source directory, because that will
2487     # break other packages using the cache if that directory is
2488     # removed, or if the value is a relative name.
2489     INSTALL=$ac_install_sh
2490   fi
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2493 $as_echo "$INSTALL" >&6; }
2494
2495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2496 # It thinks the first close brace ends the variable substitution.
2497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2498
2499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2500
2501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2504 $as_echo_n "checking whether build environment is sane... " >&6; }
2505 # Just in case
2506 sleep 1
2507 echo timestamp > conftest.file
2508 # Reject unsafe characters in $srcdir or the absolute working directory
2509 # name.  Accept space and tab only in the latter.
2510 am_lf='
2511 '
2512 case `pwd` in
2513   *[\\\"\#\$\&\'\`$am_lf]*)
2514     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515 esac
2516 case $srcdir in
2517   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2518     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2519 esac
2520
2521 # Do `set' in a subshell so we don't clobber the current shell's
2522 # arguments.  Must try -L first in case configure is actually a
2523 # symlink; some systems play weird games with the mod time of symlinks
2524 # (eg FreeBSD returns the mod time of the symlink's containing
2525 # directory).
2526 if (
2527    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2528    if test "$*" = "X"; then
2529       # -L didn't work.
2530       set X `ls -t "$srcdir/configure" conftest.file`
2531    fi
2532    rm -f conftest.file
2533    if test "$*" != "X $srcdir/configure conftest.file" \
2534       && test "$*" != "X conftest.file $srcdir/configure"; then
2535
2536       # If neither matched, then we have a broken ls.  This can happen
2537       # if, for instance, CONFIG_SHELL is bash and it inherits a
2538       # broken ls alias from the environment.  This has actually
2539       # happened.  Such a system could not be considered "sane".
2540       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2541 alias in your environment" "$LINENO" 5
2542    fi
2543
2544    test "$2" = conftest.file
2545    )
2546 then
2547    # Ok.
2548    :
2549 else
2550    as_fn_error $? "newly created file is older than distributed files!
2551 Check your system clock" "$LINENO" 5
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2555 test "$program_prefix" != NONE &&
2556   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2557 # Use a double $ so make ignores it.
2558 test "$program_suffix" != NONE &&
2559   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2560 # Double any \ or $.
2561 # By default was `s,x,x', remove it if useless.
2562 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2563 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2564
2565 # expand $ac_aux_dir to an absolute path
2566 am_aux_dir=`cd $ac_aux_dir && pwd`
2567
2568 if test x"${MISSING+set}" != xset; then
2569   case $am_aux_dir in
2570   *\ * | *\     *)
2571     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2572   *)
2573     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2574   esac
2575 fi
2576 # Use eval to expand $SHELL
2577 if eval "$MISSING --run true"; then
2578   am_missing_run="$MISSING --run "
2579 else
2580   am_missing_run=
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2582 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2583 fi
2584
2585 if test x"${install_sh}" != xset; then
2586   case $am_aux_dir in
2587   *\ * | *\     *)
2588     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2589   *)
2590     install_sh="\${SHELL} $am_aux_dir/install-sh"
2591   esac
2592 fi
2593
2594 # Installed binaries are usually stripped using `strip' when the user
2595 # run `make install-strip'.  However `strip' might not be the right
2596 # tool to use in cross-compilation environments, therefore Automake
2597 # will honor the `STRIP' environment variable to overrule this program.
2598 if test "$cross_compiling" != no; then
2599   if test -n "$ac_tool_prefix"; then
2600   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_STRIP+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$STRIP"; then
2608   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     for ac_exec_ext in '' $ac_executable_extensions; do
2616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 STRIP=$ac_cv_prog_STRIP
2628 if test -n "$STRIP"; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2630 $as_echo "$STRIP" >&6; }
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 fi
2638 if test -z "$ac_cv_prog_STRIP"; then
2639   ac_ct_STRIP=$STRIP
2640   # Extract the first word of "strip", so it can be a program name with args.
2641 set dummy strip; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$ac_ct_STRIP"; then
2648   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     for ac_exec_ext in '' $ac_executable_extensions; do
2656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657     ac_cv_prog_ac_ct_STRIP="strip"
2658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662   done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2668 if test -n "$ac_ct_STRIP"; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2670 $as_echo "$ac_ct_STRIP" >&6; }
2671 else
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676   if test "x$ac_ct_STRIP" = x; then
2677     STRIP=":"
2678   else
2679     case $cross_compiling:$ac_tool_warned in
2680 yes:)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     STRIP=$ac_ct_STRIP
2686   fi
2687 else
2688   STRIP="$ac_cv_prog_STRIP"
2689 fi
2690
2691 fi
2692 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2695 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2696 if test -z "$MKDIR_P"; then
2697   if ${ac_cv_path_mkdir+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705     for ac_prog in mkdir gmkdir; do
2706          for ac_exec_ext in '' $ac_executable_extensions; do
2707            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2708            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2709              'mkdir (GNU coreutils) '* | \
2710              'mkdir (coreutils) '* | \
2711              'mkdir (fileutils) '4.1*)
2712                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2713                break 3;;
2714            esac
2715          done
2716        done
2717   done
2718 IFS=$as_save_IFS
2719
2720 fi
2721
2722   test -d ./--version && rmdir ./--version
2723   if test "${ac_cv_path_mkdir+set}" = set; then
2724     MKDIR_P="$ac_cv_path_mkdir -p"
2725   else
2726     # As a last resort, use the slow shell script.  Don't cache a
2727     # value for MKDIR_P within a source directory, because that will
2728     # break other packages using the cache if that directory is
2729     # removed, or if the value is a relative name.
2730     MKDIR_P="$ac_install_sh -d"
2731   fi
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2734 $as_echo "$MKDIR_P" >&6; }
2735
2736 mkdir_p="$MKDIR_P"
2737 case $mkdir_p in
2738   [\\/$]* | ?:[\\/]*) ;;
2739   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2740 esac
2741
2742 for ac_prog in gawk mawk nawk awk
2743 do
2744   # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy $ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_AWK+:} false; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   if test -n "$AWK"; then
2752   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757   IFS=$as_save_IFS
2758   test -z "$as_dir" && as_dir=.
2759     for ac_exec_ext in '' $ac_executable_extensions; do
2760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761     ac_cv_prog_AWK="$ac_prog"
2762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764   fi
2765 done
2766   done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 AWK=$ac_cv_prog_AWK
2772 if test -n "$AWK"; then
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2774 $as_echo "$AWK" >&6; }
2775 else
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781   test -n "$AWK" && break
2782 done
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2786 set x ${MAKE-make}
2787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2788 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   cat >conftest.make <<\_ACEOF
2792 SHELL = /bin/sh
2793 all:
2794         @echo '@@@%%%=$(MAKE)=@@@%%%'
2795 _ACEOF
2796 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2798   *@@@%%%=?*=@@@%%%*)
2799     eval ac_cv_prog_make_${ac_make}_set=yes;;
2800   *)
2801     eval ac_cv_prog_make_${ac_make}_set=no;;
2802 esac
2803 rm -f conftest.make
2804 fi
2805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2807 $as_echo "yes" >&6; }
2808   SET_MAKE=
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812   SET_MAKE="MAKE=${MAKE-make}"
2813 fi
2814
2815 rm -rf .tst 2>/dev/null
2816 mkdir .tst 2>/dev/null
2817 if test -d .tst; then
2818   am__leading_dot=.
2819 else
2820   am__leading_dot=_
2821 fi
2822 rmdir .tst 2>/dev/null
2823
2824 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2825   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2826   # is not polluted with repeated "-I."
2827   am__isrc=' -I$(srcdir)'
2828   # test to see if srcdir already configured
2829   if test -f $srcdir/config.status; then
2830     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2831   fi
2832 fi
2833
2834 # test whether we have cygpath
2835 if test -z "$CYGPATH_W"; then
2836   if (cygpath --version) >/dev/null 2>/dev/null; then
2837     CYGPATH_W='cygpath -w'
2838   else
2839     CYGPATH_W=echo
2840   fi
2841 fi
2842
2843
2844 # Define the identity of the package.
2845  PACKAGE='dleyna-core'
2846  VERSION='0.2.2'
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE "$PACKAGE"
2851 _ACEOF
2852
2853
2854 cat >>confdefs.h <<_ACEOF
2855 #define VERSION "$VERSION"
2856 _ACEOF
2857
2858 # Some tools Automake needs.
2859
2860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2861
2862
2863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2864
2865
2866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2867
2868
2869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2870
2871
2872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2873
2874 # We need awk for the "check" target.  The system "awk" is bad on
2875 # some platforms.
2876 # Always define AMTAR for backward compatibility.  Yes, it's still used
2877 # in the wild :-(  We should find a proper way to deprecate it ...
2878 AMTAR='$${TAR-tar}'
2879
2880 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2881
2882
2883
2884
2885
2886
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2889 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2890     # Check whether --enable-maintainer-mode was given.
2891 if test "${enable_maintainer_mode+set}" = set; then :
2892   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2893 else
2894   USE_MAINTAINER_MODE=no
2895 fi
2896
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2898 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2899    if test $USE_MAINTAINER_MODE = yes; then
2900   MAINTAINER_MODE_TRUE=
2901   MAINTAINER_MODE_FALSE='#'
2902 else
2903   MAINTAINER_MODE_TRUE='#'
2904   MAINTAINER_MODE_FALSE=
2905 fi
2906
2907   MAINT=$MAINTAINER_MODE_TRUE
2908
2909
2910 # Check whether --enable-silent-rules was given.
2911 if test "${enable_silent_rules+set}" = set; then :
2912   enableval=$enable_silent_rules;
2913 fi
2914
2915 case $enable_silent_rules in
2916 yes) AM_DEFAULT_VERBOSITY=0;;
2917 no)  AM_DEFAULT_VERBOSITY=1;;
2918 *)   AM_DEFAULT_VERBOSITY=0;;
2919 esac
2920 am_make=${MAKE-make}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2922 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2923 if ${am_cv_make_support_nested_variables+:} false; then :
2924   $as_echo_n "(cached) " >&6
2925 else
2926   if $as_echo 'TRUE=$(BAR$(V))
2927 BAR0=false
2928 BAR1=true
2929 V=1
2930 am__doit:
2931         @$(TRUE)
2932 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2933   am_cv_make_support_nested_variables=yes
2934 else
2935   am_cv_make_support_nested_variables=no
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2939 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2940 if test $am_cv_make_support_nested_variables = yes; then
2941     AM_V='$(V)'
2942   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2943 else
2944   AM_V=$AM_DEFAULT_VERBOSITY
2945   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2946 fi
2947 AM_BACKSLASH='\'
2948
2949
2950
2951         if (test x"${CFLAGS}" = x""); then
2952                 CFLAGS="-Wall"
2953                 CFLAGS+=" -O2"
2954                 CFLAGS+=" -D_FORTIFY_SOURCE=2"
2955         fi
2956
2957         if (test x"$USE_MAINTAINER_MODE" = x"yes"); then
2958                 CFLAGS+=" -Wextra"
2959                 CFLAGS+=" -Wno-unused-parameter"
2960                 CFLAGS+=" -Wno-missing-field-initializers"
2961                 CFLAGS+=" -Wdeclaration-after-statement"
2962                 CFLAGS+=" -Wmissing-declarations"
2963                 CFLAGS+=" -Wredundant-decls"
2964                 CFLAGS+=" -Wcast-align"
2965
2966                 CFLAGS+=" -Wstrict-prototypes"
2967                 CFLAGS+=" -Wmissing-prototypes"
2968                 CFLAGS+=" -Wnested-externs"
2969                 CFLAGS+=" -Wshadow"
2970                 CFLAGS+=" -Wformat=2"
2971                 CFLAGS+=" -Winit-self"
2972
2973                 CFLAGS+=" -std=gnu99"
2974                 CFLAGS+=" -pedantic"
2975                 CFLAGS+=" -Wno-overlength-strings"
2976
2977                 CFLAGS+=" -DG_DISABLE_DEPRECATED"
2978                 CFLAGS+=" -DGLIB_DISABLE_DEPRECATION_WARNINGS"
2979         fi
2980
2981         CFLAGS+=" -Wno-format-extra-args"
2982
2983
2984 # Checks for languages.
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990
2991
2992 # Checks for programs.
2993 ac_ext=c
2994 ac_cpp='$CPP $CPPFLAGS'
2995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 if test -n "$ac_tool_prefix"; then
2999   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   if test -n "$CC"; then
3007   ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     for ac_exec_ext in '' $ac_executable_extensions; do
3015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021   done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035
3036 fi
3037 if test -z "$ac_cv_prog_CC"; then
3038   ac_ct_CC=$CC
3039   # Extract the first word of "gcc", so it can be a program name with args.
3040 set dummy gcc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$ac_ct_CC"; then
3047   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054     for ac_exec_ext in '' $ac_executable_extensions; do
3055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056     ac_cv_prog_ac_ct_CC="gcc"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3069 $as_echo "$ac_ct_CC" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075   if test "x$ac_ct_CC" = x; then
3076     CC=""
3077   else
3078     case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3083 esac
3084     CC=$ac_ct_CC
3085   fi
3086 else
3087   CC="$ac_cv_prog_CC"
3088 fi
3089
3090 if test -z "$CC"; then
3091           if test -n "$ac_tool_prefix"; then
3092     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3093 set dummy ${ac_tool_prefix}cc; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_CC+:} false; then :
3097   $as_echo_n "(cached) " >&6
3098 else
3099   if test -n "$CC"; then
3100   ac_cv_prog_CC="$CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105   IFS=$as_save_IFS
3106   test -z "$as_dir" && as_dir=.
3107     for ac_exec_ext in '' $ac_executable_extensions; do
3108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109     ac_cv_prog_CC="${ac_tool_prefix}cc"
3110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111     break 2
3112   fi
3113 done
3114   done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 CC=$ac_cv_prog_CC
3120 if test -n "$CC"; then
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122 $as_echo "$CC" >&6; }
3123 else
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129   fi
3130 fi
3131 if test -z "$CC"; then
3132   # Extract the first word of "cc", so it can be a program name with args.
3133 set dummy cc; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142   ac_prog_rejected=no
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3151        ac_prog_rejected=yes
3152        continue
3153      fi
3154     ac_cv_prog_CC="cc"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 if test $ac_prog_rejected = yes; then
3163   # We found a bogon in the path, so make sure we never use it.
3164   set dummy $ac_cv_prog_CC
3165   shift
3166   if test $# != 0; then
3167     # We chose a different compiler from the bogus one.
3168     # However, it has the same basename, so the bogon will be chosen
3169     # first if we set CC to just the basename; use the full file name.
3170     shift
3171     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172   fi
3173 fi
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$CC"; then
3188   if test -n "$ac_tool_prefix"; then
3189   for ac_prog in cl.exe
3190   do
3191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_CC+:} false; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$CC"; then
3199   ac_cv_prog_CC="$CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 CC=$ac_cv_prog_CC
3219 if test -n "$CC"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228     test -n "$CC" && break
3229   done
3230 fi
3231 if test -z "$CC"; then
3232   ac_ct_CC=$CC
3233   for ac_prog in cl.exe
3234 do
3235   # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   if test -n "$ac_ct_CC"; then
3243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248   IFS=$as_save_IFS
3249   test -z "$as_dir" && as_dir=.
3250     for ac_exec_ext in '' $ac_executable_extensions; do
3251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252     ac_cv_prog_ac_ct_CC="$ac_prog"
3253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254     break 2
3255   fi
3256 done
3257   done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263 if test -n "$ac_ct_CC"; then
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265 $as_echo "$ac_ct_CC" >&6; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272   test -n "$ac_ct_CC" && break
3273 done
3274
3275   if test "x$ac_ct_CC" = x; then
3276     CC=""
3277   else
3278     case $cross_compiling:$ac_tool_warned in
3279 yes:)
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282 ac_tool_warned=yes ;;
3283 esac
3284     CC=$ac_ct_CC
3285   fi
3286 fi
3287
3288 fi
3289
3290
3291 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "no acceptable C compiler found in \$PATH
3294 See \`config.log' for more details" "$LINENO" 5; }
3295
3296 # Provide some information about the compiler.
3297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3298 set X $ac_compile
3299 ac_compiler=$2
3300 for ac_option in --version -v -V -qversion; do
3301   { { ac_try="$ac_compiler $ac_option >&5"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3309   ac_status=$?
3310   if test -s conftest.err; then
3311     sed '10a\
3312 ... rest of stderr output deleted ...
3313          10q' conftest.err >conftest.er1
3314     cat conftest.er1 >&5
3315   fi
3316   rm -f conftest.er1 conftest.err
3317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318   test $ac_status = 0; }
3319 done
3320
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323
3324 int
3325 main ()
3326 {
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 ac_clean_files_save=$ac_clean_files
3333 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3334 # Try to create an executable without -o first, disregard a.out.
3335 # It will help us diagnose broken compilers, and finding out an intuition
3336 # of exeext.
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3338 $as_echo_n "checking whether the C compiler works... " >&6; }
3339 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3340
3341 # The possible output files:
3342 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3343
3344 ac_rmfiles=
3345 for ac_file in $ac_files
3346 do
3347   case $ac_file in
3348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3349     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3350   esac
3351 done
3352 rm -f $ac_rmfiles
3353
3354 if { { ac_try="$ac_link_default"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361   (eval "$ac_link_default") 2>&5
3362   ac_status=$?
3363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364   test $ac_status = 0; }; then :
3365   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3366 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3367 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3368 # so that the user can short-circuit this test for compilers unknown to
3369 # Autoconf.
3370 for ac_file in $ac_files ''
3371 do
3372   test -f "$ac_file" || continue
3373   case $ac_file in
3374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3375         ;;
3376     [ab].out )
3377         # We found the default executable, but exeext='' is most
3378         # certainly right.
3379         break;;
3380     *.* )
3381         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3382         then :; else
3383            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384         fi
3385         # We set ac_cv_exeext here because the later test for it is not
3386         # safe: cross compilers may not add the suffix if given an `-o'
3387         # argument, so we may need to know it at that point already.
3388         # Even if this section looks crufty: it has the advantage of
3389         # actually working.
3390         break;;
3391     * )
3392         break;;
3393   esac
3394 done
3395 test "$ac_cv_exeext" = no && ac_cv_exeext=
3396
3397 else
3398   ac_file=''
3399 fi
3400 if test -z "$ac_file"; then :
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error 77 "C compiler cannot create executables
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 else
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3412 $as_echo "yes" >&6; }
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3415 $as_echo_n "checking for C compiler default output file name... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3417 $as_echo "$ac_file" >&6; }
3418 ac_exeext=$ac_cv_exeext
3419
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { { ac_try="$ac_link"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_link") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; }; then :
3435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 # `rm'.
3439 for ac_file in conftest.exe conftest conftest.*; do
3440   test -f "$ac_file" || continue
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444           break;;
3445     * ) break;;
3446   esac
3447 done
3448 else
3449   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details" "$LINENO" 5; }
3453 fi
3454 rm -f conftest conftest$ac_cv_exeext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3456 $as_echo "$ac_cv_exeext" >&6; }
3457
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3460 ac_exeext=$EXEEXT
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463 #include <stdio.h>
3464 int
3465 main ()
3466 {
3467 FILE *f = fopen ("conftest.out", "w");
3468  return ferror (f) || fclose (f) != 0;
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 ac_clean_files="$ac_clean_files conftest.out"
3475 # Check that the compiler produces executables we can run.  If not, either
3476 # the compiler is broken, or we cross compile.
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3478 $as_echo_n "checking whether we are cross compiling... " >&6; }
3479 if test "$cross_compiling" != yes; then
3480   { { ac_try="$ac_link"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487   (eval "$ac_link") 2>&5
3488   ac_status=$?
3489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490   test $ac_status = 0; }
3491   if { ac_try='./conftest$ac_cv_exeext'
3492   { { case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498   (eval "$ac_try") 2>&5
3499   ac_status=$?
3500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501   test $ac_status = 0; }; }; then
3502     cross_compiling=no
3503   else
3504     if test "$cross_compiling" = maybe; then
3505         cross_compiling=yes
3506     else
3507         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error $? "cannot run C compiled programs.
3510 If you meant to cross compile, use \`--host'.
3511 See \`config.log' for more details" "$LINENO" 5; }
3512     fi
3513   fi
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3517
3518 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3519 ac_clean_files=$ac_clean_files_save
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3521 $as_echo_n "checking for suffix of object files... " >&6; }
3522 if ${ac_cv_objext+:} false; then :
3523   $as_echo_n "(cached) " >&6
3524 else
3525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.o conftest.obj
3537 if { { ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544   (eval "$ac_compile") 2>&5
3545   ac_status=$?
3546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547   test $ac_status = 0; }; then :
3548   for ac_file in conftest.o conftest.obj conftest.*; do
3549   test -f "$ac_file" || continue;
3550   case $ac_file in
3551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3553        break;;
3554   esac
3555 done
3556 else
3557   $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 as_fn_error $? "cannot compute suffix of object files: cannot compile
3563 See \`config.log' for more details" "$LINENO" 5; }
3564 fi
3565 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3568 $as_echo "$ac_cv_objext" >&6; }
3569 OBJEXT=$ac_cv_objext
3570 ac_objext=$OBJEXT
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3572 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3573 if ${ac_cv_c_compiler_gnu+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582 #ifndef __GNUC__
3583        choke me
3584 #endif
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591   ac_compiler_gnu=yes
3592 else
3593   ac_compiler_gnu=no
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3597
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3600 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3601 if test $ac_compiler_gnu = yes; then
3602   GCC=yes
3603 else
3604   GCC=
3605 fi
3606 ac_test_CFLAGS=${CFLAGS+set}
3607 ac_save_CFLAGS=$CFLAGS
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3609 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3610 if ${ac_cv_prog_cc_g+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_save_c_werror_flag=$ac_c_werror_flag
3614    ac_c_werror_flag=yes
3615    ac_cv_prog_cc_g=no
3616    CFLAGS="-g"
3617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629   ac_cv_prog_cc_g=yes
3630 else
3631   CFLAGS=""
3632       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h.  */
3634
3635 int
3636 main ()
3637 {
3638
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644
3645 else
3646   ac_c_werror_flag=$ac_save_c_werror_flag
3647          CFLAGS="-g"
3648          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660   ac_cv_prog_cc_g=yes
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667    ac_c_werror_flag=$ac_save_c_werror_flag
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3670 $as_echo "$ac_cv_prog_cc_g" >&6; }
3671 if test "$ac_test_CFLAGS" = set; then
3672   CFLAGS=$ac_save_CFLAGS
3673 elif test $ac_cv_prog_cc_g = yes; then
3674   if test "$GCC" = yes; then
3675     CFLAGS="-g -O2"
3676   else
3677     CFLAGS="-g"
3678   fi
3679 else
3680   if test "$GCC" = yes; then
3681     CFLAGS="-O2"
3682   else
3683     CFLAGS=
3684   fi
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3687 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3688 if ${ac_cv_prog_cc_c89+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   ac_cv_prog_cc_c89=no
3692 ac_save_CC=$CC
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h.  */
3695 #include <stdarg.h>
3696 #include <stdio.h>
3697 struct stat;
3698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3699 struct buf { int x; };
3700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3701 static char *e (p, i)
3702      char **p;
3703      int i;
3704 {
3705   return p[i];
3706 }
3707 static char *f (char * (*g) (char **, int), char **p, ...)
3708 {
3709   char *s;
3710   va_list v;
3711   va_start (v,p);
3712   s = g (p, va_arg (v,int));
3713   va_end (v);
3714   return s;
3715 }
3716
3717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3718    function prototypes and stuff, but not '\xHH' hex character constants.
3719    These don't provoke an error unfortunately, instead are silently treated
3720    as 'x'.  The following induces an error, until -std is added to get
3721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3722    array size at least.  It's necessary to write '\x00'==0 to get something
3723    that's true only with -std.  */
3724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3725
3726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3727    inside strings and character constants.  */
3728 #define FOO(x) 'x'
3729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3730
3731 int test (int i, double x);
3732 struct s1 {int (*f) (int a);};
3733 struct s2 {int (*f) (double a);};
3734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3735 int argc;
3736 char **argv;
3737 int
3738 main ()
3739 {
3740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3747 do
3748   CC="$ac_save_CC $ac_arg"
3749   if ac_fn_c_try_compile "$LINENO"; then :
3750   ac_cv_prog_cc_c89=$ac_arg
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext
3753   test "x$ac_cv_prog_cc_c89" != "xno" && break
3754 done
3755 rm -f conftest.$ac_ext
3756 CC=$ac_save_CC
3757
3758 fi
3759 # AC_CACHE_VAL
3760 case "x$ac_cv_prog_cc_c89" in
3761   x)
3762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3763 $as_echo "none needed" >&6; } ;;
3764   xno)
3765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3766 $as_echo "unsupported" >&6; } ;;
3767   *)
3768     CC="$CC $ac_cv_prog_cc_c89"
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3771 esac
3772 if test "x$ac_cv_prog_cc_c89" != xno; then :
3773
3774 fi
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 DEPDIR="${am__leading_dot}deps"
3782
3783 ac_config_commands="$ac_config_commands depfiles"
3784
3785
3786 am_make=${MAKE-make}
3787 cat > confinc << 'END'
3788 am__doit:
3789         @echo this is the am__doit target
3790 .PHONY: am__doit
3791 END
3792 # If we don't find an include directive, just comment out the code.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3794 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3795 am__include="#"
3796 am__quote=
3797 _am_result=none
3798 # First try GNU make style include.
3799 echo "include confinc" > confmf
3800 # Ignore all kinds of additional output from `make'.
3801 case `$am_make -s -f confmf 2> /dev/null` in #(
3802 *the\ am__doit\ target*)
3803   am__include=include
3804   am__quote=
3805   _am_result=GNU
3806   ;;
3807 esac
3808 # Now try BSD make style include.
3809 if test "$am__include" = "#"; then
3810    echo '.include "confinc"' > confmf
3811    case `$am_make -s -f confmf 2> /dev/null` in #(
3812    *the\ am__doit\ target*)
3813      am__include=.include
3814      am__quote="\""
3815      _am_result=BSD
3816      ;;
3817    esac
3818 fi
3819
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3822 $as_echo "$_am_result" >&6; }
3823 rm -f confinc confmf
3824
3825 # Check whether --enable-dependency-tracking was given.
3826 if test "${enable_dependency_tracking+set}" = set; then :
3827   enableval=$enable_dependency_tracking;
3828 fi
3829
3830 if test "x$enable_dependency_tracking" != xno; then
3831   am_depcomp="$ac_aux_dir/depcomp"
3832   AMDEPBACKSLASH='\'
3833   am__nodep='_no'
3834 fi
3835  if test "x$enable_dependency_tracking" != xno; then
3836   AMDEP_TRUE=
3837   AMDEP_FALSE='#'
3838 else
3839   AMDEP_TRUE='#'
3840   AMDEP_FALSE=
3841 fi
3842
3843
3844
3845 depcc="$CC"   am_compiler_list=
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853   # We make a subdir and do the tests there.  Otherwise we can end up
3854   # making bogus files that we don't know about and never remove.  For
3855   # instance it was reported that on HP-UX the gcc test will end up
3856   # making a dummy file named `D' -- because `-MD' means `put the output
3857   # in D'.
3858   rm -rf conftest.dir
3859   mkdir conftest.dir
3860   # Copy depcomp to subdir because otherwise we won't find it if we're
3861   # using a relative directory.
3862   cp "$am_depcomp" conftest.dir
3863   cd conftest.dir
3864   # We will build objects and dependencies in a subdirectory because
3865   # it helps to detect inapplicable dependency modes.  For instance
3866   # both Tru64's cc and ICC support -MD to output dependencies as a
3867   # side effect of compilation, but ICC will put the dependencies in
3868   # the current directory while Tru64 will put them in the object
3869   # directory.
3870   mkdir sub
3871
3872   am_cv_CC_dependencies_compiler_type=none
3873   if test "$am_compiler_list" = ""; then
3874      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875   fi
3876   am__universal=false
3877   case " $depcc " in #(
3878      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3879      esac
3880
3881   for depmode in $am_compiler_list; do
3882     # Setup a source with many dependencies, because some compilers
3883     # like to wrap large dependency lists on column 80 (with \), and
3884     # we should not choose a depcomp mode which is confused by this.
3885     #
3886     # We need to recreate these files for each test, as the compiler may
3887     # overwrite some of them when testing with obscure command lines.
3888     # This happens at least with the AIX C compiler.
3889     : > sub/conftest.c
3890     for i in 1 2 3 4 5 6; do
3891       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3893       # Solaris 8's {/usr,}/bin/sh.
3894       touch sub/conftst$i.h
3895     done
3896     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897
3898     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3899     # mode.  It turns out that the SunPro C++ compiler does not properly
3900     # handle `-M -o', and we need to detect this.  Also, some Intel
3901     # versions had trouble with output in subdirs
3902     am__obj=sub/conftest.${OBJEXT-o}
3903     am__minus_obj="-o $am__obj"
3904     case $depmode in
3905     gcc)
3906       # This depmode causes a compiler race in universal mode.
3907       test "$am__universal" = false || continue
3908       ;;
3909     nosideeffect)
3910       # after this tag, mechanisms are not by side-effect, so they'll
3911       # only be used when explicitly requested
3912       if test "x$enable_dependency_tracking" = xyes; then
3913         continue
3914       else
3915         break
3916       fi
3917       ;;
3918     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3919       # This compiler won't grok `-c -o', but also, the minuso test has
3920       # not run yet.  These depmodes are late enough in the game, and
3921       # so weak that their functioning should not be impacted.
3922       am__obj=conftest.${OBJEXT-o}
3923       am__minus_obj=
3924       ;;
3925     none) break ;;
3926     esac
3927     if depmode=$depmode \
3928        source=sub/conftest.c object=$am__obj \
3929        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3931          >/dev/null 2>conftest.err &&
3932        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936       # icc doesn't choke on unknown options, it will just issue warnings
3937       # or remarks (even with -Werror).  So we grep stderr for any message
3938       # that says an option was ignored or not supported.
3939       # When given -MP, icc 7.0 and 7.1 complain thusly:
3940       #   icc: Command line warning: ignoring option '-M'; no argument required
3941       # The diagnosis changed in icc 8.0:
3942       #   icc: Command line remark: option '-MP' not supported
3943       if (grep 'ignoring option' conftest.err ||
3944           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945         am_cv_CC_dependencies_compiler_type=$depmode
3946         break
3947       fi
3948     fi
3949   done
3950
3951   cd ..
3952   rm -rf conftest.dir
3953 else
3954   am_cv_CC_dependencies_compiler_type=none
3955 fi
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3959 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3961
3962  if
3963   test "x$enable_dependency_tracking" != xno \
3964   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965   am__fastdepCC_TRUE=
3966   am__fastdepCC_FALSE='#'
3967 else
3968   am__fastdepCC_TRUE='#'
3969   am__fastdepCC_FALSE=
3970 fi
3971
3972
3973 if test "x$CC" != xcc; then
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3975 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3976 else
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3978 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3979 fi
3980 set dummy $CC; ac_cc=`$as_echo "$2" |
3981                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3982 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 # Make sure it works both with $CC and with simple cc.
3997 # We do the test twice because some compilers refuse to overwrite an
3998 # existing .o file with -o, though they will create one.
3999 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4000 rm -f conftest2.*
4001 if { { case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007   (eval "$ac_try") 2>&5
4008   ac_status=$?
4009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010   test $ac_status = 0; } &&
4011    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017   (eval "$ac_try") 2>&5
4018   ac_status=$?
4019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020   test $ac_status = 0; };
4021 then
4022   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4023   if test "x$CC" != xcc; then
4024     # Test first that cc exists at all.
4025     if { ac_try='cc -c conftest.$ac_ext >&5'
4026   { { case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 $as_echo "$ac_try_echo"; } >&5
4032   (eval "$ac_try") 2>&5
4033   ac_status=$?
4034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035   test $ac_status = 0; }; }; then
4036       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4037       rm -f conftest2.*
4038       if { { case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044   (eval "$ac_try") 2>&5
4045   ac_status=$?
4046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047   test $ac_status = 0; } &&
4048          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053 $as_echo "$ac_try_echo"; } >&5
4054   (eval "$ac_try") 2>&5
4055   ac_status=$?
4056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057   test $ac_status = 0; };
4058       then
4059         # cc works too.
4060         :
4061       else
4062         # cc exists but doesn't like -o.
4063         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4064       fi
4065     fi
4066   fi
4067 else
4068   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4069 fi
4070 rm -f core conftest*
4071
4072 fi
4073 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 $as_echo "yes" >&6; }
4076 else
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079
4080 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4081
4082 fi
4083
4084 # FIXME: we rely on the cache variable name because
4085 # there is no other way.
4086 set dummy $CC
4087 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4088 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4089 if test "$am_t" != yes; then
4090    # Losing compiler, so override with the script.
4091    # FIXME: It is wrong to rewrite CC.
4092    # But if we don't then we get into trouble of one sort or another.
4093    # A longer-term fix would be to have automake use am__CC in this case,
4094    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4095    CC="$am_aux_dir/compile $CC"
4096 fi
4097
4098
4099
4100
4101 # Initialize libtool
4102 # Disable generation of static libraries
4103
4104 case `pwd` in
4105   *\ * | *\     *)
4106     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4107 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4108 esac
4109
4110
4111
4112 macro_version='2.4.2'
4113 macro_revision='1.3337'
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 ltmain="$ac_aux_dir/ltmain.sh"
4128
4129 # Make sure we can run config.sub.
4130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4131   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4134 $as_echo_n "checking build system type... " >&6; }
4135 if ${ac_cv_build+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   ac_build_alias=$build_alias
4139 test "x$ac_build_alias" = x &&
4140   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4141 test "x$ac_build_alias" = x &&
4142   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4144   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4148 $as_echo "$ac_cv_build" >&6; }
4149 case $ac_cv_build in
4150 *-*-*) ;;
4151 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4152 esac
4153 build=$ac_cv_build
4154 ac_save_IFS=$IFS; IFS='-'
4155 set x $ac_cv_build
4156 shift
4157 build_cpu=$1
4158 build_vendor=$2
4159 shift; shift
4160 # Remember, the first character of IFS is used to create $*,
4161 # except with old shells:
4162 build_os=$*
4163 IFS=$ac_save_IFS
4164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4168 $as_echo_n "checking host system type... " >&6; }
4169 if ${ac_cv_host+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   if test "x$host_alias" = x; then
4173   ac_cv_host=$ac_cv_build
4174 else
4175   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4176     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4181 $as_echo "$ac_cv_host" >&6; }
4182 case $ac_cv_host in
4183 *-*-*) ;;
4184 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4185 esac
4186 host=$ac_cv_host
4187 ac_save_IFS=$IFS; IFS='-'
4188 set x $ac_cv_host
4189 shift
4190 host_cpu=$1
4191 host_vendor=$2
4192 shift; shift
4193 # Remember, the first character of IFS is used to create $*,
4194 # except with old shells:
4195 host_os=$*
4196 IFS=$ac_save_IFS
4197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4198
4199
4200 # Backslashify metacharacters that are still active within
4201 # double-quoted strings.
4202 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4203
4204 # Same as above, but do not quote variable references.
4205 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4206
4207 # Sed substitution to delay expansion of an escaped shell variable in a
4208 # double_quote_subst'ed string.
4209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4210
4211 # Sed substitution to delay expansion of an escaped single quote.
4212 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4213
4214 # Sed substitution to avoid accidental globbing in evaled expressions
4215 no_glob_subst='s/\*/\\\*/g'
4216
4217 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4219 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4222 $as_echo_n "checking how to print strings... " >&6; }
4223 # Test print first, because it will be a builtin if present.
4224 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4225    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4226   ECHO='print -r --'
4227 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4228   ECHO='printf %s\n'
4229 else
4230   # Use this function as a fallback that always works.
4231   func_fallback_echo ()
4232   {
4233     eval 'cat <<_LTECHO_EOF
4234 $1
4235 _LTECHO_EOF'
4236   }
4237   ECHO='func_fallback_echo'
4238 fi
4239
4240 # func_echo_all arg...
4241 # Invoke $ECHO with all args, space-separated.
4242 func_echo_all ()
4243 {
4244     $ECHO ""
4245 }
4246
4247 case "$ECHO" in
4248   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4249 $as_echo "printf" >&6; } ;;
4250   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4251 $as_echo "print -r" >&6; } ;;
4252   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4253 $as_echo "cat" >&6; } ;;
4254 esac
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4270 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4271 if ${ac_cv_path_SED+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4275      for ac_i in 1 2 3 4 5 6 7; do
4276        ac_script="$ac_script$as_nl$ac_script"
4277      done
4278      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4279      { ac_script=; unset ac_script;}
4280      if test -z "$SED"; then
4281   ac_path_SED_found=false
4282   # Loop through the user's path and test for each of PROGNAME-LIST
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_prog in sed gsed; do
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4291       as_fn_executable_p "$ac_path_SED" || continue
4292 # Check for GNU ac_path_SED and select it if it is found.
4293   # Check for GNU $ac_path_SED
4294 case `"$ac_path_SED" --version 2>&1` in
4295 *GNU*)
4296   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4297 *)
4298   ac_count=0
4299   $as_echo_n 0123456789 >"conftest.in"
4300   while :
4301   do
4302     cat "conftest.in" "conftest.in" >"conftest.tmp"
4303     mv "conftest.tmp" "conftest.in"
4304     cp "conftest.in" "conftest.nl"
4305     $as_echo '' >> "conftest.nl"
4306     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308     as_fn_arith $ac_count + 1 && ac_count=$as_val
4309     if test $ac_count -gt ${ac_path_SED_max-0}; then
4310       # Best one so far, save it but keep looking for a better one
4311       ac_cv_path_SED="$ac_path_SED"
4312       ac_path_SED_max=$ac_count
4313     fi
4314     # 10*(2^10) chars as input seems more than enough
4315     test $ac_count -gt 10 && break
4316   done
4317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4319
4320       $ac_path_SED_found && break 3
4321     done
4322   done
4323   done
4324 IFS=$as_save_IFS
4325   if test -z "$ac_cv_path_SED"; then
4326     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4327   fi
4328 else
4329   ac_cv_path_SED=$SED
4330 fi
4331
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4334 $as_echo "$ac_cv_path_SED" >&6; }
4335  SED="$ac_cv_path_SED"
4336   rm -f conftest.sed
4337
4338 test -z "$SED" && SED=sed
4339 Xsed="$SED -e 1s/^X//"
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4352 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4353 if ${ac_cv_path_GREP+:} false; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   if test -z "$GREP"; then
4357   ac_path_GREP_found=false
4358   # Loop through the user's path and test for each of PROGNAME-LIST
4359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364     for ac_prog in grep ggrep; do
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4367       as_fn_executable_p "$ac_path_GREP" || continue
4368 # Check for GNU ac_path_GREP and select it if it is found.
4369   # Check for GNU $ac_path_GREP
4370 case `"$ac_path_GREP" --version 2>&1` in
4371 *GNU*)
4372   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4373 *)
4374   ac_count=0
4375   $as_echo_n 0123456789 >"conftest.in"
4376   while :
4377   do
4378     cat "conftest.in" "conftest.in" >"conftest.tmp"
4379     mv "conftest.tmp" "conftest.in"
4380     cp "conftest.in" "conftest.nl"
4381     $as_echo 'GREP' >> "conftest.nl"
4382     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4383     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4384     as_fn_arith $ac_count + 1 && ac_count=$as_val
4385     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4386       # Best one so far, save it but keep looking for a better one
4387       ac_cv_path_GREP="$ac_path_GREP"
4388       ac_path_GREP_max=$ac_count
4389     fi
4390     # 10*(2^10) chars as input seems more than enough
4391     test $ac_count -gt 10 && break
4392   done
4393   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394 esac
4395
4396       $ac_path_GREP_found && break 3
4397     done
4398   done
4399   done
4400 IFS=$as_save_IFS
4401   if test -z "$ac_cv_path_GREP"; then
4402     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4403   fi
4404 else
4405   ac_cv_path_GREP=$GREP
4406 fi
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4410 $as_echo "$ac_cv_path_GREP" >&6; }
4411  GREP="$ac_cv_path_GREP"
4412
4413
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4415 $as_echo_n "checking for egrep... " >&6; }
4416 if ${ac_cv_path_EGREP+:} false; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4420    then ac_cv_path_EGREP="$GREP -E"
4421    else
4422      if test -z "$EGREP"; then
4423   ac_path_EGREP_found=false
4424   # Loop through the user's path and test for each of PROGNAME-LIST
4425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430     for ac_prog in egrep; do
4431     for ac_exec_ext in '' $ac_executable_extensions; do
4432       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4433       as_fn_executable_p "$ac_path_EGREP" || continue
4434 # Check for GNU ac_path_EGREP and select it if it is found.
4435   # Check for GNU $ac_path_EGREP
4436 case `"$ac_path_EGREP" --version 2>&1` in
4437 *GNU*)
4438   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4439 *)
4440   ac_count=0
4441   $as_echo_n 0123456789 >"conftest.in"
4442   while :
4443   do
4444     cat "conftest.in" "conftest.in" >"conftest.tmp"
4445     mv "conftest.tmp" "conftest.in"
4446     cp "conftest.in" "conftest.nl"
4447     $as_echo 'EGREP' >> "conftest.nl"
4448     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4449     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4450     as_fn_arith $ac_count + 1 && ac_count=$as_val
4451     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4452       # Best one so far, save it but keep looking for a better one
4453       ac_cv_path_EGREP="$ac_path_EGREP"
4454       ac_path_EGREP_max=$ac_count
4455     fi
4456     # 10*(2^10) chars as input seems more than enough
4457     test $ac_count -gt 10 && break
4458   done
4459   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4460 esac
4461
4462       $ac_path_EGREP_found && break 3
4463     done
4464   done
4465   done
4466 IFS=$as_save_IFS
4467   if test -z "$ac_cv_path_EGREP"; then
4468     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4469   fi
4470 else
4471   ac_cv_path_EGREP=$EGREP
4472 fi
4473
4474    fi
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4477 $as_echo "$ac_cv_path_EGREP" >&6; }
4478  EGREP="$ac_cv_path_EGREP"
4479
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4482 $as_echo_n "checking for fgrep... " >&6; }
4483 if ${ac_cv_path_FGREP+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4487    then ac_cv_path_FGREP="$GREP -F"
4488    else
4489      if test -z "$FGREP"; then
4490   ac_path_FGREP_found=false
4491   # Loop through the user's path and test for each of PROGNAME-LIST
4492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497     for ac_prog in fgrep; do
4498     for ac_exec_ext in '' $ac_executable_extensions; do
4499       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4500       as_fn_executable_p "$ac_path_FGREP" || continue
4501 # Check for GNU ac_path_FGREP and select it if it is found.
4502   # Check for GNU $ac_path_FGREP
4503 case `"$ac_path_FGREP" --version 2>&1` in
4504 *GNU*)
4505   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4506 *)
4507   ac_count=0
4508   $as_echo_n 0123456789 >"conftest.in"
4509   while :
4510   do
4511     cat "conftest.in" "conftest.in" >"conftest.tmp"
4512     mv "conftest.tmp" "conftest.in"
4513     cp "conftest.in" "conftest.nl"
4514     $as_echo 'FGREP' >> "conftest.nl"
4515     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517     as_fn_arith $ac_count + 1 && ac_count=$as_val
4518     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4519       # Best one so far, save it but keep looking for a better one
4520       ac_cv_path_FGREP="$ac_path_FGREP"
4521       ac_path_FGREP_max=$ac_count
4522     fi
4523     # 10*(2^10) chars as input seems more than enough
4524     test $ac_count -gt 10 && break
4525   done
4526   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4528
4529       $ac_path_FGREP_found && break 3
4530     done
4531   done
4532   done
4533 IFS=$as_save_IFS
4534   if test -z "$ac_cv_path_FGREP"; then
4535     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536   fi
4537 else
4538   ac_cv_path_FGREP=$FGREP
4539 fi
4540
4541    fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4544 $as_echo "$ac_cv_path_FGREP" >&6; }
4545  FGREP="$ac_cv_path_FGREP"
4546
4547
4548 test -z "$GREP" && GREP=grep
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568 # Check whether --with-gnu-ld was given.
4569 if test "${with_gnu_ld+set}" = set; then :
4570   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4571 else
4572   with_gnu_ld=no
4573 fi
4574
4575 ac_prog=ld
4576 if test "$GCC" = yes; then
4577   # Check if gcc -print-prog-name=ld gives a path.
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4579 $as_echo_n "checking for ld used by $CC... " >&6; }
4580   case $host in
4581   *-*-mingw*)
4582     # gcc leaves a trailing carriage return which upsets mingw
4583     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4584   *)
4585     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4586   esac
4587   case $ac_prog in
4588     # Accept absolute paths.
4589     [\\/]* | ?:[\\/]*)
4590       re_direlt='/[^/][^/]*/\.\./'
4591       # Canonicalize the pathname of ld
4592       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4593       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4594         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4595       done
4596       test -z "$LD" && LD="$ac_prog"
4597       ;;
4598   "")
4599     # If it fails, then pretend we aren't using GCC.
4600     ac_prog=ld
4601     ;;
4602   *)
4603     # If it is relative, then search for the first ld in PATH.
4604     with_gnu_ld=unknown
4605     ;;
4606   esac
4607 elif test "$with_gnu_ld" = yes; then
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4609 $as_echo_n "checking for GNU ld... " >&6; }
4610 else
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4612 $as_echo_n "checking for non-GNU ld... " >&6; }
4613 fi
4614 if ${lt_cv_path_LD+:} false; then :
4615   $as_echo_n "(cached) " >&6
4616 else
4617   if test -z "$LD"; then
4618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4619   for ac_dir in $PATH; do
4620     IFS="$lt_save_ifs"
4621     test -z "$ac_dir" && ac_dir=.
4622     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4623       lt_cv_path_LD="$ac_dir/$ac_prog"
4624       # Check to see if the program is GNU ld.  I'd rather use --version,
4625       # but apparently some variants of GNU ld only accept -v.
4626       # Break only if it was the GNU/non-GNU ld that we prefer.
4627       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4628       *GNU* | *'with BFD'*)
4629         test "$with_gnu_ld" != no && break
4630         ;;
4631       *)
4632         test "$with_gnu_ld" != yes && break
4633         ;;
4634       esac
4635     fi
4636   done
4637   IFS="$lt_save_ifs"
4638 else
4639   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4640 fi
4641 fi
4642
4643 LD="$lt_cv_path_LD"
4644 if test -n "$LD"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4646 $as_echo "$LD" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4653 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4654 if ${lt_cv_prog_gnu_ld+:} false; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4658 case `$LD -v 2>&1 </dev/null` in
4659 *GNU* | *'with BFD'*)
4660   lt_cv_prog_gnu_ld=yes
4661   ;;
4662 *)
4663   lt_cv_prog_gnu_ld=no
4664   ;;
4665 esac
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4668 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4669 with_gnu_ld=$lt_cv_prog_gnu_ld
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4680 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4681 if ${lt_cv_path_NM+:} false; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   if test -n "$NM"; then
4685   # Let the user override the test.
4686   lt_cv_path_NM="$NM"
4687 else
4688   lt_nm_to_check="${ac_tool_prefix}nm"
4689   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4690     lt_nm_to_check="$lt_nm_to_check nm"
4691   fi
4692   for lt_tmp_nm in $lt_nm_to_check; do
4693     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4694     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4695       IFS="$lt_save_ifs"
4696       test -z "$ac_dir" && ac_dir=.
4697       tmp_nm="$ac_dir/$lt_tmp_nm"
4698       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4699         # Check to see if the nm accepts a BSD-compat flag.
4700         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4701         #   nm: unknown option "B" ignored
4702         # Tru64's nm complains that /dev/null is an invalid object file
4703         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4704         */dev/null* | *'Invalid file or object type'*)
4705           lt_cv_path_NM="$tmp_nm -B"
4706           break
4707           ;;
4708         *)
4709           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4710           */dev/null*)
4711             lt_cv_path_NM="$tmp_nm -p"
4712             break
4713             ;;
4714           *)
4715             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4716             continue # so that we can try to find one that supports BSD flags
4717             ;;
4718           esac
4719           ;;
4720         esac
4721       fi
4722     done
4723     IFS="$lt_save_ifs"
4724   done
4725   : ${lt_cv_path_NM=no}
4726 fi
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4729 $as_echo "$lt_cv_path_NM" >&6; }
4730 if test "$lt_cv_path_NM" != "no"; then
4731   NM="$lt_cv_path_NM"
4732 else
4733   # Didn't find any BSD compatible name lister, look for dumpbin.
4734   if test -n "$DUMPBIN"; then :
4735     # Let the user override the test.
4736   else
4737     if test -n "$ac_tool_prefix"; then
4738   for ac_prog in dumpbin "link -dump"
4739   do
4740     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_DUMPBIN+:} false; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   if test -n "$DUMPBIN"; then
4748   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 DUMPBIN=$ac_cv_prog_DUMPBIN
4768 if test -n "$DUMPBIN"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4770 $as_echo "$DUMPBIN" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777     test -n "$DUMPBIN" && break
4778   done
4779 fi
4780 if test -z "$DUMPBIN"; then
4781   ac_ct_DUMPBIN=$DUMPBIN
4782   for ac_prog in dumpbin "link -dump"
4783 do
4784   # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   if test -n "$ac_ct_DUMPBIN"; then
4792   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806   done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4812 if test -n "$ac_ct_DUMPBIN"; then
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4814 $as_echo "$ac_ct_DUMPBIN" >&6; }
4815 else
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820
4821   test -n "$ac_ct_DUMPBIN" && break
4822 done
4823
4824   if test "x$ac_ct_DUMPBIN" = x; then
4825     DUMPBIN=":"
4826   else
4827     case $cross_compiling:$ac_tool_warned in
4828 yes:)
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833     DUMPBIN=$ac_ct_DUMPBIN
4834   fi
4835 fi
4836
4837     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4838     *COFF*)
4839       DUMPBIN="$DUMPBIN -symbols"
4840       ;;
4841     *)
4842       DUMPBIN=:
4843       ;;
4844     esac
4845   fi
4846
4847   if test "$DUMPBIN" != ":"; then
4848     NM="$DUMPBIN"
4849   fi
4850 fi
4851 test -z "$NM" && NM=nm
4852
4853
4854
4855
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4859 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4860 if ${lt_cv_nm_interface+:} false; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   lt_cv_nm_interface="BSD nm"
4864   echo "int some_variable = 0;" > conftest.$ac_ext
4865   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4866   (eval "$ac_compile" 2>conftest.err)
4867   cat conftest.err >&5
4868   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4869   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4870   cat conftest.err >&5
4871   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4872   cat conftest.out >&5
4873   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4874     lt_cv_nm_interface="MS dumpbin"
4875   fi
4876   rm -f conftest*
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4879 $as_echo "$lt_cv_nm_interface" >&6; }
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4882 $as_echo_n "checking whether ln -s works... " >&6; }
4883 LN_S=$as_ln_s
4884 if test "$LN_S" = "ln -s"; then
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4886 $as_echo "yes" >&6; }
4887 else
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4889 $as_echo "no, using $LN_S" >&6; }
4890 fi
4891
4892 # find the maximum length of command line arguments
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4894 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4895 if ${lt_cv_sys_max_cmd_len+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898     i=0
4899   teststring="ABCD"
4900
4901   case $build_os in
4902   msdosdjgpp*)
4903     # On DJGPP, this test can blow up pretty badly due to problems in libc
4904     # (any single argument exceeding 2000 bytes causes a buffer overrun
4905     # during glob expansion).  Even if it were fixed, the result of this
4906     # check would be larger than it should be.
4907     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4908     ;;
4909
4910   gnu*)
4911     # Under GNU Hurd, this test is not required because there is
4912     # no limit to the length of command line arguments.
4913     # Libtool will interpret -1 as no limit whatsoever
4914     lt_cv_sys_max_cmd_len=-1;
4915     ;;
4916
4917   cygwin* | mingw* | cegcc*)
4918     # On Win9x/ME, this test blows up -- it succeeds, but takes
4919     # about 5 minutes as the teststring grows exponentially.
4920     # Worse, since 9x/ME are not pre-emptively multitasking,
4921     # you end up with a "frozen" computer, even though with patience
4922     # the test eventually succeeds (with a max line length of 256k).
4923     # Instead, let's just punt: use the minimum linelength reported by
4924     # all of the supported platforms: 8192 (on NT/2K/XP).
4925     lt_cv_sys_max_cmd_len=8192;
4926     ;;
4927
4928   mint*)
4929     # On MiNT this can take a long time and run out of memory.
4930     lt_cv_sys_max_cmd_len=8192;
4931     ;;
4932
4933   amigaos*)
4934     # On AmigaOS with pdksh, this test takes hours, literally.
4935     # So we just punt and use a minimum line length of 8192.
4936     lt_cv_sys_max_cmd_len=8192;
4937     ;;
4938
4939   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4940     # This has been around since 386BSD, at least.  Likely further.
4941     if test -x /sbin/sysctl; then
4942       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4943     elif test -x /usr/sbin/sysctl; then
4944       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4945     else
4946       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4947     fi
4948     # And add a safety zone
4949     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4950     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4951     ;;
4952
4953   interix*)
4954     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4955     lt_cv_sys_max_cmd_len=196608
4956     ;;
4957
4958   os2*)
4959     # The test takes a long time on OS/2.
4960     lt_cv_sys_max_cmd_len=8192
4961     ;;
4962
4963   osf*)
4964     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4965     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4966     # nice to cause kernel panics so lets avoid the loop below.
4967     # First set a reasonable default.
4968     lt_cv_sys_max_cmd_len=16384
4969     #
4970     if test -x /sbin/sysconfig; then
4971       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4972         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4973       esac
4974     fi
4975     ;;
4976   sco3.2v5*)
4977     lt_cv_sys_max_cmd_len=102400
4978     ;;
4979   sysv5* | sco5v6* | sysv4.2uw2*)
4980     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4981     if test -n "$kargmax"; then
4982       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4983     else
4984       lt_cv_sys_max_cmd_len=32768
4985     fi
4986     ;;
4987   *)
4988     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4989     if test -n "$lt_cv_sys_max_cmd_len" && \
4990         test undefined != "$lt_cv_sys_max_cmd_len"; then
4991       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4992       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4993     else
4994       # Make teststring a little bigger before we do anything with it.
4995       # a 1K string should be a reasonable start.
4996       for i in 1 2 3 4 5 6 7 8 ; do
4997         teststring=$teststring$teststring
4998       done
4999       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5000       # If test is not a shell built-in, we'll probably end up computing a
5001       # maximum length that is only half of the actual maximum length, but
5002       # we can't tell.
5003       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5004                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5005               test $i != 17 # 1/2 MB should be enough
5006       do
5007         i=`expr $i + 1`
5008         teststring=$teststring$teststring
5009       done
5010       # Only check the string length outside the loop.
5011       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5012       teststring=
5013       # Add a significant safety factor because C++ compilers can tack on
5014       # massive amounts of additional arguments before passing them to the
5015       # linker.  It appears as though 1/2 is a usable value.
5016       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5017     fi
5018     ;;
5019   esac
5020
5021 fi
5022
5023 if test -n $lt_cv_sys_max_cmd_len ; then
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5025 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5026 else
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5028 $as_echo "none" >&6; }
5029 fi
5030 max_cmd_len=$lt_cv_sys_max_cmd_len
5031
5032
5033
5034
5035
5036
5037 : ${CP="cp -f"}
5038 : ${MV="mv -f"}
5039 : ${RM="rm -f"}
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5042 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5043 # Try some XSI features
5044 xsi_shell=no
5045 ( _lt_dummy="a/b/c"
5046   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5047       = c,a/b,b/c, \
5048     && eval 'test $(( 1 + 1 )) -eq 2 \
5049     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5050   && xsi_shell=yes
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5052 $as_echo "$xsi_shell" >&6; }
5053
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5056 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5057 lt_shell_append=no
5058 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5059     >/dev/null 2>&1 \
5060   && lt_shell_append=yes
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5062 $as_echo "$lt_shell_append" >&6; }
5063
5064
5065 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5066   lt_unset=unset
5067 else
5068   lt_unset=false
5069 fi
5070
5071
5072
5073
5074
5075 # test EBCDIC or ASCII
5076 case `echo X|tr X '\101'` in
5077  A) # ASCII based system
5078     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5079   lt_SP2NL='tr \040 \012'
5080   lt_NL2SP='tr \015\012 \040\040'
5081   ;;
5082  *) # EBCDIC based system
5083   lt_SP2NL='tr \100 \n'
5084   lt_NL2SP='tr \r\n \100\100'
5085   ;;
5086 esac
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5097 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5098 if ${lt_cv_to_host_file_cmd+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   case $host in
5102   *-*-mingw* )
5103     case $build in
5104       *-*-mingw* ) # actually msys
5105         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5106         ;;
5107       *-*-cygwin* )
5108         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5109         ;;
5110       * ) # otherwise, assume *nix
5111         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5112         ;;
5113     esac
5114     ;;
5115   *-*-cygwin* )
5116     case $build in
5117       *-*-mingw* ) # actually msys
5118         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5119         ;;
5120       *-*-cygwin* )
5121         lt_cv_to_host_file_cmd=func_convert_file_noop
5122         ;;
5123       * ) # otherwise, assume *nix
5124         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5125         ;;
5126     esac
5127     ;;
5128   * ) # unhandled hosts (and "normal" native builds)
5129     lt_cv_to_host_file_cmd=func_convert_file_noop
5130     ;;
5131 esac
5132
5133 fi
5134
5135 to_host_file_cmd=$lt_cv_to_host_file_cmd
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5137 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5138
5139
5140
5141
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5144 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5145 if ${lt_cv_to_tool_file_cmd+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   #assume ordinary cross tools, or native build.
5149 lt_cv_to_tool_file_cmd=func_convert_file_noop
5150 case $host in
5151   *-*-mingw* )
5152     case $build in
5153       *-*-mingw* ) # actually msys
5154         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5155         ;;
5156     esac
5157     ;;
5158 esac
5159
5160 fi
5161
5162 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5164 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5165
5166
5167
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5171 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5172 if ${lt_cv_ld_reload_flag+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   lt_cv_ld_reload_flag='-r'
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5178 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5179 reload_flag=$lt_cv_ld_reload_flag
5180 case $reload_flag in
5181 "" | " "*) ;;
5182 *) reload_flag=" $reload_flag" ;;
5183 esac
5184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5185 case $host_os in
5186   cygwin* | mingw* | pw32* | cegcc*)
5187     if test "$GCC" != yes; then
5188       reload_cmds=false
5189     fi
5190     ;;
5191   darwin*)
5192     if test "$GCC" = yes; then
5193       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5194     else
5195       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5196     fi
5197     ;;
5198 esac
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208 if test -n "$ac_tool_prefix"; then
5209   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_prog_OBJDUMP+:} false; then :
5214   $as_echo_n "(cached) " >&6
5215 else
5216   if test -n "$OBJDUMP"; then
5217   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222   IFS=$as_save_IFS
5223   test -z "$as_dir" && as_dir=.
5224     for ac_exec_ext in '' $ac_executable_extensions; do
5225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228     break 2
5229   fi
5230 done
5231   done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 OBJDUMP=$ac_cv_prog_OBJDUMP
5237 if test -n "$OBJDUMP"; then
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5239 $as_echo "$OBJDUMP" >&6; }
5240 else
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244
5245
5246 fi
5247 if test -z "$ac_cv_prog_OBJDUMP"; then
5248   ac_ct_OBJDUMP=$OBJDUMP
5249   # Extract the first word of "objdump", so it can be a program name with args.
5250 set dummy objdump; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -n "$ac_ct_OBJDUMP"; then
5257   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5277 if test -n "$ac_ct_OBJDUMP"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5279 $as_echo "$ac_ct_OBJDUMP" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285   if test "x$ac_ct_OBJDUMP" = x; then
5286     OBJDUMP="false"
5287   else
5288     case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned=yes ;;
5293 esac
5294     OBJDUMP=$ac_ct_OBJDUMP
5295   fi
5296 else
5297   OBJDUMP="$ac_cv_prog_OBJDUMP"
5298 fi
5299
5300 test -z "$OBJDUMP" && OBJDUMP=objdump
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5311 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5312 if ${lt_cv_deplibs_check_method+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   lt_cv_file_magic_cmd='$MAGIC_CMD'
5316 lt_cv_file_magic_test_file=
5317 lt_cv_deplibs_check_method='unknown'
5318 # Need to set the preceding variable on all platforms that support
5319 # interlibrary dependencies.
5320 # 'none' -- dependencies not supported.
5321 # `unknown' -- same as none, but documents that we really don't know.
5322 # 'pass_all' -- all dependencies passed with no checks.
5323 # 'test_compile' -- check by making test program.
5324 # 'file_magic [[regex]]' -- check by looking for files in library path
5325 # which responds to the $file_magic_cmd with a given extended regex.
5326 # If you have `file' or equivalent on your system and you're not sure
5327 # whether `pass_all' will *always* work, you probably want this one.
5328
5329 case $host_os in
5330 aix[4-9]*)
5331   lt_cv_deplibs_check_method=pass_all
5332   ;;
5333
5334 beos*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337
5338 bsdi[45]*)
5339   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5340   lt_cv_file_magic_cmd='/usr/bin/file -L'
5341   lt_cv_file_magic_test_file=/shlib/libc.so
5342   ;;
5343
5344 cygwin*)
5345   # func_win32_libid is a shell function defined in ltmain.sh
5346   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5347   lt_cv_file_magic_cmd='func_win32_libid'
5348   ;;
5349
5350 mingw* | pw32*)
5351   # Base MSYS/MinGW do not provide the 'file' command needed by
5352   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5353   # unless we find 'file', for example because we are cross-compiling.
5354   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5355   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5356     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5357     lt_cv_file_magic_cmd='func_win32_libid'
5358   else
5359     # Keep this pattern in sync with the one in func_win32_libid.
5360     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5361     lt_cv_file_magic_cmd='$OBJDUMP -f'
5362   fi
5363   ;;
5364
5365 cegcc*)
5366   # use the weaker test based on 'objdump'. See mingw*.
5367   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5368   lt_cv_file_magic_cmd='$OBJDUMP -f'
5369   ;;
5370
5371 darwin* | rhapsody*)
5372   lt_cv_deplibs_check_method=pass_all
5373   ;;
5374
5375 freebsd* | dragonfly*)
5376   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5377     case $host_cpu in
5378     i*86 )
5379       # Not sure whether the presence of OpenBSD here was a mistake.
5380       # Let's accept both of them until this is cleared up.
5381       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5382       lt_cv_file_magic_cmd=/usr/bin/file
5383       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5384       ;;
5385     esac
5386   else
5387     lt_cv_deplibs_check_method=pass_all
5388   fi
5389   ;;
5390
5391 haiku*)
5392   lt_cv_deplibs_check_method=pass_all
5393   ;;
5394
5395 hpux10.20* | hpux11*)
5396   lt_cv_file_magic_cmd=/usr/bin/file
5397   case $host_cpu in
5398   ia64*)
5399     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5400     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5401     ;;
5402   hppa*64*)
5403     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]'
5404     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5405     ;;
5406   *)
5407     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5408     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5409     ;;
5410   esac
5411   ;;
5412
5413 interix[3-9]*)
5414   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5415   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5416   ;;
5417
5418 irix5* | irix6* | nonstopux*)
5419   case $LD in
5420   *-32|*"-32 ") libmagic=32-bit;;
5421   *-n32|*"-n32 ") libmagic=N32;;
5422   *-64|*"-64 ") libmagic=64-bit;;
5423   *) libmagic=never-match;;
5424   esac
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 # This must be glibc/ELF.
5429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5430   lt_cv_deplibs_check_method=pass_all
5431   ;;
5432
5433 netbsd* | netbsdelf*-gnu)
5434   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5435     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5436   else
5437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5438   fi
5439   ;;
5440
5441 newos6*)
5442   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5443   lt_cv_file_magic_cmd=/usr/bin/file
5444   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5445   ;;
5446
5447 *nto* | *qnx*)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 openbsd*)
5452   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5454   else
5455     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5456   fi
5457   ;;
5458
5459 osf3* | osf4* | osf5*)
5460   lt_cv_deplibs_check_method=pass_all
5461   ;;
5462
5463 rdos*)
5464   lt_cv_deplibs_check_method=pass_all
5465   ;;
5466
5467 solaris*)
5468   lt_cv_deplibs_check_method=pass_all
5469   ;;
5470
5471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5472   lt_cv_deplibs_check_method=pass_all
5473   ;;
5474
5475 sysv4 | sysv4.3*)
5476   case $host_vendor in
5477   motorola)
5478     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]'
5479     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5480     ;;
5481   ncr)
5482     lt_cv_deplibs_check_method=pass_all
5483     ;;
5484   sequent)
5485     lt_cv_file_magic_cmd='/bin/file'
5486     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5487     ;;
5488   sni)
5489     lt_cv_file_magic_cmd='/bin/file'
5490     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5491     lt_cv_file_magic_test_file=/lib/libc.so
5492     ;;
5493   siemens)
5494     lt_cv_deplibs_check_method=pass_all
5495     ;;
5496   pc)
5497     lt_cv_deplibs_check_method=pass_all
5498     ;;
5499   esac
5500   ;;
5501
5502 tpf*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505 esac
5506
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5509 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5510
5511 file_magic_glob=
5512 want_nocaseglob=no
5513 if test "$build" = "$host"; then
5514   case $host_os in
5515   mingw* | pw32*)
5516     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5517       want_nocaseglob=yes
5518     else
5519       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5520     fi
5521     ;;
5522   esac
5523 fi
5524
5525 file_magic_cmd=$lt_cv_file_magic_cmd
5526 deplibs_check_method=$lt_cv_deplibs_check_method
5527 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 if test -n "$ac_tool_prefix"; then
5551   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5552 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_DLLTOOL+:} false; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   if test -n "$DLLTOOL"; then
5559   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_exec_ext in '' $ac_executable_extensions; do
5567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570     break 2
5571   fi
5572 done
5573   done
5574 IFS=$as_save_IFS
5575
5576 fi
5577 fi
5578 DLLTOOL=$ac_cv_prog_DLLTOOL
5579 if test -n "$DLLTOOL"; then
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5581 $as_echo "$DLLTOOL" >&6; }
5582 else
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588 fi
5589 if test -z "$ac_cv_prog_DLLTOOL"; then
5590   ac_ct_DLLTOOL=$DLLTOOL
5591   # Extract the first word of "dlltool", so it can be a program name with args.
5592 set dummy dlltool; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   if test -n "$ac_ct_DLLTOOL"; then
5599   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604   IFS=$as_save_IFS
5605   test -z "$as_dir" && as_dir=.
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610     break 2
5611   fi
5612 done
5613   done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5619 if test -n "$ac_ct_DLLTOOL"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5621 $as_echo "$ac_ct_DLLTOOL" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627   if test "x$ac_ct_DLLTOOL" = x; then
5628     DLLTOOL="false"
5629   else
5630     case $cross_compiling:$ac_tool_warned in
5631 yes:)
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634 ac_tool_warned=yes ;;
5635 esac
5636     DLLTOOL=$ac_ct_DLLTOOL
5637   fi
5638 else
5639   DLLTOOL="$ac_cv_prog_DLLTOOL"
5640 fi
5641
5642 test -z "$DLLTOOL" && DLLTOOL=dlltool
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5654 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5655 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   lt_cv_sharedlib_from_linklib_cmd='unknown'
5659
5660 case $host_os in
5661 cygwin* | mingw* | pw32* | cegcc*)
5662   # two different shell functions defined in ltmain.sh
5663   # decide which to use based on capabilities of $DLLTOOL
5664   case `$DLLTOOL --help 2>&1` in
5665   *--identify-strict*)
5666     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5667     ;;
5668   *)
5669     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5670     ;;
5671   esac
5672   ;;
5673 *)
5674   # fallback: assume linklib IS sharedlib
5675   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5676   ;;
5677 esac
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5681 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5682 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5683 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5684
5685
5686
5687
5688
5689
5690
5691
5692 if test -n "$ac_tool_prefix"; then
5693   for ac_prog in ar
5694   do
5695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_AR+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   if test -n "$AR"; then
5703   ac_cv_prog_AR="$AR" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710     for ac_exec_ext in '' $ac_executable_extensions; do
5711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717   done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 AR=$ac_cv_prog_AR
5723 if test -n "$AR"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5725 $as_echo "$AR" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732     test -n "$AR" && break
5733   done
5734 fi
5735 if test -z "$AR"; then
5736   ac_ct_AR=$AR
5737   for ac_prog in ar
5738 do
5739   # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$ac_ct_AR"; then
5747   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_ac_ct_AR="$ac_prog"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5767 if test -n "$ac_ct_AR"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5769 $as_echo "$ac_ct_AR" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776   test -n "$ac_ct_AR" && break
5777 done
5778
5779   if test "x$ac_ct_AR" = x; then
5780     AR="false"
5781   else
5782     case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788     AR=$ac_ct_AR
5789   fi
5790 fi
5791
5792 : ${AR=ar}
5793 : ${AR_FLAGS=cru}
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5806 $as_echo_n "checking for archiver @FILE support... " >&6; }
5807 if ${lt_cv_ar_at_file+:} false; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   lt_cv_ar_at_file=no
5811    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h.  */
5813
5814 int
5815 main ()
5816 {
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_compile "$LINENO"; then :
5823   echo conftest.$ac_objext > conftest.lst
5824       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5825       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5826   (eval $lt_ar_try) 2>&5
5827   ac_status=$?
5828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829   test $ac_status = 0; }
5830       if test "$ac_status" -eq 0; then
5831         # Ensure the archiver fails upon bogus file names.
5832         rm -f conftest.$ac_objext libconftest.a
5833         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5834   (eval $lt_ar_try) 2>&5
5835   ac_status=$?
5836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837   test $ac_status = 0; }
5838         if test "$ac_status" -ne 0; then
5839           lt_cv_ar_at_file=@
5840         fi
5841       fi
5842       rm -f conftest.* libconftest.a
5843
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5849 $as_echo "$lt_cv_ar_at_file" >&6; }
5850
5851 if test "x$lt_cv_ar_at_file" = xno; then
5852   archiver_list_spec=
5853 else
5854   archiver_list_spec=$lt_cv_ar_at_file
5855 fi
5856
5857
5858
5859
5860
5861
5862
5863 if test -n "$ac_tool_prefix"; then
5864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5865 set dummy ${ac_tool_prefix}strip; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_STRIP+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   if test -n "$STRIP"; then
5872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879     for ac_exec_ext in '' $ac_executable_extensions; do
5880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886   done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 STRIP=$ac_cv_prog_STRIP
5892 if test -n "$STRIP"; then
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5894 $as_echo "$STRIP" >&6; }
5895 else
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900
5901 fi
5902 if test -z "$ac_cv_prog_STRIP"; then
5903   ac_ct_STRIP=$STRIP
5904   # Extract the first word of "strip", so it can be a program name with args.
5905 set dummy strip; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   if test -n "$ac_ct_STRIP"; then
5912   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919     for ac_exec_ext in '' $ac_executable_extensions; do
5920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921     ac_cv_prog_ac_ct_STRIP="strip"
5922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926   done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5932 if test -n "$ac_ct_STRIP"; then
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5934 $as_echo "$ac_ct_STRIP" >&6; }
5935 else
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940   if test "x$ac_ct_STRIP" = x; then
5941     STRIP=":"
5942   else
5943     case $cross_compiling:$ac_tool_warned in
5944 yes:)
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947 ac_tool_warned=yes ;;
5948 esac
5949     STRIP=$ac_ct_STRIP
5950   fi
5951 else
5952   STRIP="$ac_cv_prog_STRIP"
5953 fi
5954
5955 test -z "$STRIP" && STRIP=:
5956
5957
5958
5959
5960
5961
5962 if test -n "$ac_tool_prefix"; then
5963   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_prog_RANLIB+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   if test -n "$RANLIB"; then
5971   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978     for ac_exec_ext in '' $ac_executable_extensions; do
5979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985   done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 RANLIB=$ac_cv_prog_RANLIB
5991 if test -n "$RANLIB"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5993 $as_echo "$RANLIB" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999
6000 fi
6001 if test -z "$ac_cv_prog_RANLIB"; then
6002   ac_ct_RANLIB=$RANLIB
6003   # Extract the first word of "ranlib", so it can be a program name with args.
6004 set dummy ranlib; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test -n "$ac_ct_RANLIB"; then
6011   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020     ac_cv_prog_ac_ct_RANLIB="ranlib"
6021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025   done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6031 if test -n "$ac_ct_RANLIB"; then
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6033 $as_echo "$ac_ct_RANLIB" >&6; }
6034 else
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039   if test "x$ac_ct_RANLIB" = x; then
6040     RANLIB=":"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     RANLIB=$ac_ct_RANLIB
6049   fi
6050 else
6051   RANLIB="$ac_cv_prog_RANLIB"
6052 fi
6053
6054 test -z "$RANLIB" && RANLIB=:
6055
6056
6057
6058
6059
6060
6061 # Determine commands to create old-style static archives.
6062 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6063 old_postinstall_cmds='chmod 644 $oldlib'
6064 old_postuninstall_cmds=
6065
6066 if test -n "$RANLIB"; then
6067   case $host_os in
6068   openbsd*)
6069     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6070     ;;
6071   *)
6072     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6073     ;;
6074   esac
6075   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6076 fi
6077
6078 case $host_os in
6079   darwin*)
6080     lock_old_archive_extraction=yes ;;
6081   *)
6082     lock_old_archive_extraction=no ;;
6083 esac
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 # If no C compiler was specified, use CC.
6124 LTCC=${LTCC-"$CC"}
6125
6126 # If no C compiler flags were specified, use CFLAGS.
6127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6128
6129 # Allow CC to be a program name with arguments.
6130 compiler=$CC
6131
6132
6133 # Check for command to grab the raw symbol name followed by C symbol from nm.
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6135 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6136 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139
6140 # These are sane defaults that work on at least a few old systems.
6141 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6142
6143 # Character class describing NM global symbol codes.
6144 symcode='[BCDEGRST]'
6145
6146 # Regexp to match symbols that can be accessed directly from C.
6147 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6148
6149 # Define system-specific variables.
6150 case $host_os in
6151 aix*)
6152   symcode='[BCDT]'
6153   ;;
6154 cygwin* | mingw* | pw32* | cegcc*)
6155   symcode='[ABCDGISTW]'
6156   ;;
6157 hpux*)
6158   if test "$host_cpu" = ia64; then
6159     symcode='[ABCDEGRST]'
6160   fi
6161   ;;
6162 irix* | nonstopux*)
6163   symcode='[BCDEGRST]'
6164   ;;
6165 osf*)
6166   symcode='[BCDEGQRST]'
6167   ;;
6168 solaris*)
6169   symcode='[BDRT]'
6170   ;;
6171 sco3.2v5*)
6172   symcode='[DT]'
6173   ;;
6174 sysv4.2uw2*)
6175   symcode='[DT]'
6176   ;;
6177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6178   symcode='[ABDT]'
6179   ;;
6180 sysv4)
6181   symcode='[DFNSTU]'
6182   ;;
6183 esac
6184
6185 # If we're using GNU nm, then use its standard symbol codes.
6186 case `$NM -V 2>&1` in
6187 *GNU* | *'with BFD'*)
6188   symcode='[ABCDGIRSTW]' ;;
6189 esac
6190
6191 # Transform an extracted symbol line into a proper C declaration.
6192 # Some systems (esp. on ia64) link data and code symbols differently,
6193 # so use this general approach.
6194 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6195
6196 # Transform an extracted symbol line into symbol name and symbol address
6197 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6198 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'"
6199
6200 # Handle CRLF in mingw tool chain
6201 opt_cr=
6202 case $build_os in
6203 mingw*)
6204   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6205   ;;
6206 esac
6207
6208 # Try without a prefix underscore, then with it.
6209 for ac_symprfx in "" "_"; do
6210
6211   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6212   symxfrm="\\1 $ac_symprfx\\2 \\2"
6213
6214   # Write the raw and C identifiers.
6215   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6216     # Fake it for dumpbin and say T for any non-static function
6217     # and D for any global variable.
6218     # Also find C++ and __fastcall symbols from MSVC++,
6219     # which start with @ or ?.
6220     lt_cv_sys_global_symbol_pipe="$AWK '"\
6221 "     {last_section=section; section=\$ 3};"\
6222 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6223 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6224 "     \$ 0!~/External *\|/{next};"\
6225 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6226 "     {if(hide[section]) next};"\
6227 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6228 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6229 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6230 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6231 "     ' prfx=^$ac_symprfx"
6232   else
6233     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6234   fi
6235   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6236
6237   # Check to see that the pipe works correctly.
6238   pipe_works=no
6239
6240   rm -f conftest*
6241   cat > conftest.$ac_ext <<_LT_EOF
6242 #ifdef __cplusplus
6243 extern "C" {
6244 #endif
6245 char nm_test_var;
6246 void nm_test_func(void);
6247 void nm_test_func(void){}
6248 #ifdef __cplusplus
6249 }
6250 #endif
6251 int main(){nm_test_var='a';nm_test_func();return(0);}
6252 _LT_EOF
6253
6254   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255   (eval $ac_compile) 2>&5
6256   ac_status=$?
6257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258   test $ac_status = 0; }; then
6259     # Now try to grab the symbols.
6260     nlist=conftest.nm
6261     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6262   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6263   ac_status=$?
6264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265   test $ac_status = 0; } && test -s "$nlist"; then
6266       # Try sorting and uniquifying the output.
6267       if sort "$nlist" | uniq > "$nlist"T; then
6268         mv -f "$nlist"T "$nlist"
6269       else
6270         rm -f "$nlist"T
6271       fi
6272
6273       # Make sure that we snagged all the symbols we need.
6274       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6275         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6276           cat <<_LT_EOF > conftest.$ac_ext
6277 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6278 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6279 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6280    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6281 # define LT_DLSYM_CONST
6282 #elif defined(__osf__)
6283 /* This system does not cope well with relocations in const data.  */
6284 # define LT_DLSYM_CONST
6285 #else
6286 # define LT_DLSYM_CONST const
6287 #endif
6288
6289 #ifdef __cplusplus
6290 extern "C" {
6291 #endif
6292
6293 _LT_EOF
6294           # Now generate the symbol file.
6295           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6296
6297           cat <<_LT_EOF >> conftest.$ac_ext
6298
6299 /* The mapping between symbol names and symbols.  */
6300 LT_DLSYM_CONST struct {
6301   const char *name;
6302   void       *address;
6303 }
6304 lt__PROGRAM__LTX_preloaded_symbols[] =
6305 {
6306   { "@PROGRAM@", (void *) 0 },
6307 _LT_EOF
6308           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6309           cat <<\_LT_EOF >> conftest.$ac_ext
6310   {0, (void *) 0}
6311 };
6312
6313 /* This works around a problem in FreeBSD linker */
6314 #ifdef FREEBSD_WORKAROUND
6315 static const void *lt_preloaded_setup() {
6316   return lt__PROGRAM__LTX_preloaded_symbols;
6317 }
6318 #endif
6319
6320 #ifdef __cplusplus
6321 }
6322 #endif
6323 _LT_EOF
6324           # Now try linking the two files.
6325           mv conftest.$ac_objext conftstm.$ac_objext
6326           lt_globsym_save_LIBS=$LIBS
6327           lt_globsym_save_CFLAGS=$CFLAGS
6328           LIBS="conftstm.$ac_objext"
6329           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6330           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6331   (eval $ac_link) 2>&5
6332   ac_status=$?
6333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6335             pipe_works=yes
6336           fi
6337           LIBS=$lt_globsym_save_LIBS
6338           CFLAGS=$lt_globsym_save_CFLAGS
6339         else
6340           echo "cannot find nm_test_func in $nlist" >&5
6341         fi
6342       else
6343         echo "cannot find nm_test_var in $nlist" >&5
6344       fi
6345     else
6346       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6347     fi
6348   else
6349     echo "$progname: failed program was:" >&5
6350     cat conftest.$ac_ext >&5
6351   fi
6352   rm -rf conftest* conftst*
6353
6354   # Do not use the global_symbol_pipe unless it works.
6355   if test "$pipe_works" = yes; then
6356     break
6357   else
6358     lt_cv_sys_global_symbol_pipe=
6359   fi
6360 done
6361
6362 fi
6363
6364 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6365   lt_cv_sys_global_symbol_to_cdecl=
6366 fi
6367 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6369 $as_echo "failed" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6372 $as_echo "ok" >&6; }
6373 fi
6374
6375 # Response file support.
6376 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6377   nm_file_list_spec='@'
6378 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6379   nm_file_list_spec='@'
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6409 $as_echo_n "checking for sysroot... " >&6; }
6410
6411 # Check whether --with-sysroot was given.
6412 if test "${with_sysroot+set}" = set; then :
6413   withval=$with_sysroot;
6414 else
6415   with_sysroot=no
6416 fi
6417
6418
6419 lt_sysroot=
6420 case ${with_sysroot} in #(
6421  yes)
6422    if test "$GCC" = yes; then
6423      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6424    fi
6425    ;; #(
6426  /*)
6427    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6428    ;; #(
6429  no|'')
6430    ;; #(
6431  *)
6432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6433 $as_echo "${with_sysroot}" >&6; }
6434    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6435    ;;
6436 esac
6437
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6439 $as_echo "${lt_sysroot:-no}" >&6; }
6440
6441
6442
6443
6444
6445 # Check whether --enable-libtool-lock was given.
6446 if test "${enable_libtool_lock+set}" = set; then :
6447   enableval=$enable_libtool_lock;
6448 fi
6449
6450 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6451
6452 # Some flags need to be propagated to the compiler or linker for good
6453 # libtool support.
6454 case $host in
6455 ia64-*-hpux*)
6456   # Find out which ABI we are using.
6457   echo 'int i;' > conftest.$ac_ext
6458   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459   (eval $ac_compile) 2>&5
6460   ac_status=$?
6461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462   test $ac_status = 0; }; then
6463     case `/usr/bin/file conftest.$ac_objext` in
6464       *ELF-32*)
6465         HPUX_IA64_MODE="32"
6466         ;;
6467       *ELF-64*)
6468         HPUX_IA64_MODE="64"
6469         ;;
6470     esac
6471   fi
6472   rm -rf conftest*
6473   ;;
6474 *-*-irix6*)
6475   # Find out which ABI we are using.
6476   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6477   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6478   (eval $ac_compile) 2>&5
6479   ac_status=$?
6480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481   test $ac_status = 0; }; then
6482     if test "$lt_cv_prog_gnu_ld" = yes; then
6483       case `/usr/bin/file conftest.$ac_objext` in
6484         *32-bit*)
6485           LD="${LD-ld} -melf32bsmip"
6486           ;;
6487         *N32*)
6488           LD="${LD-ld} -melf32bmipn32"
6489           ;;
6490         *64-bit*)
6491           LD="${LD-ld} -melf64bmip"
6492         ;;
6493       esac
6494     else
6495       case `/usr/bin/file conftest.$ac_objext` in
6496         *32-bit*)
6497           LD="${LD-ld} -32"
6498           ;;
6499         *N32*)
6500           LD="${LD-ld} -n32"
6501           ;;
6502         *64-bit*)
6503           LD="${LD-ld} -64"
6504           ;;
6505       esac
6506     fi
6507   fi
6508   rm -rf conftest*
6509   ;;
6510
6511 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6512 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6513   # Find out which ABI we are using.
6514   echo 'int i;' > conftest.$ac_ext
6515   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516   (eval $ac_compile) 2>&5
6517   ac_status=$?
6518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519   test $ac_status = 0; }; then
6520     case `/usr/bin/file conftest.o` in
6521       *32-bit*)
6522         case $host in
6523           x86_64-*kfreebsd*-gnu)
6524             LD="${LD-ld} -m elf_i386_fbsd"
6525             ;;
6526           x86_64-*linux*)
6527             case `/usr/bin/file conftest.o` in
6528               *x86-64*)
6529                 LD="${LD-ld} -m elf32_x86_64"
6530                 ;;
6531               *)
6532                 LD="${LD-ld} -m elf_i386"
6533                 ;;
6534             esac
6535             ;;
6536           ppc64-*linux*|powerpc64-*linux*)
6537             LD="${LD-ld} -m elf32ppclinux"
6538             ;;
6539           s390x-*linux*)
6540             LD="${LD-ld} -m elf_s390"
6541             ;;
6542           sparc64-*linux*)
6543             LD="${LD-ld} -m elf32_sparc"
6544             ;;
6545         esac
6546         ;;
6547       *64-bit*)
6548         case $host in
6549           x86_64-*kfreebsd*-gnu)
6550             LD="${LD-ld} -m elf_x86_64_fbsd"
6551             ;;
6552           x86_64-*linux*)
6553             LD="${LD-ld} -m elf_x86_64"
6554             ;;
6555           ppc*-*linux*|powerpc*-*linux*)
6556             LD="${LD-ld} -m elf64ppc"
6557             ;;
6558           s390*-*linux*|s390*-*tpf*)
6559             LD="${LD-ld} -m elf64_s390"
6560             ;;
6561           sparc*-*linux*)
6562             LD="${LD-ld} -m elf64_sparc"
6563             ;;
6564         esac
6565         ;;
6566     esac
6567   fi
6568   rm -rf conftest*
6569   ;;
6570
6571 *-*-sco3.2v5*)
6572   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6573   SAVE_CFLAGS="$CFLAGS"
6574   CFLAGS="$CFLAGS -belf"
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6577 if ${lt_cv_cc_needs_belf+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   ac_ext=c
6581 ac_cpp='$CPP $CPPFLAGS'
6582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585
6586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h.  */
6588
6589 int
6590 main ()
6591 {
6592
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 if ac_fn_c_try_link "$LINENO"; then :
6598   lt_cv_cc_needs_belf=yes
6599 else
6600   lt_cv_cc_needs_belf=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext \
6603     conftest$ac_exeext conftest.$ac_ext
6604      ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6615     CFLAGS="$SAVE_CFLAGS"
6616   fi
6617   ;;
6618 *-*solaris*)
6619   # Find out which ABI we are using.
6620   echo 'int i;' > conftest.$ac_ext
6621   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622   (eval $ac_compile) 2>&5
6623   ac_status=$?
6624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625   test $ac_status = 0; }; then
6626     case `/usr/bin/file conftest.o` in
6627     *64-bit*)
6628       case $lt_cv_prog_gnu_ld in
6629       yes*)
6630         case $host in
6631         i?86-*-solaris*)
6632           LD="${LD-ld} -m elf_x86_64"
6633           ;;
6634         sparc*-*-solaris*)
6635           LD="${LD-ld} -m elf64_sparc"
6636           ;;
6637         esac
6638         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6639         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6640           LD="${LD-ld}_sol2"
6641         fi
6642         ;;
6643       *)
6644         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6645           LD="${LD-ld} -64"
6646         fi
6647         ;;
6648       esac
6649       ;;
6650     esac
6651   fi
6652   rm -rf conftest*
6653   ;;
6654 esac
6655
6656 need_locks="$enable_libtool_lock"
6657
6658 if test -n "$ac_tool_prefix"; then
6659   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}mt; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   if test -n "$MANIFEST_TOOL"; then
6667   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674     for ac_exec_ext in '' $ac_executable_extensions; do
6675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681   done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6687 if test -n "$MANIFEST_TOOL"; then
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6689 $as_echo "$MANIFEST_TOOL" >&6; }
6690 else
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693 fi
6694
6695
6696 fi
6697 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6698   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6699   # Extract the first word of "mt", so it can be a program name with args.
6700 set dummy mt; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$ac_ct_MANIFEST_TOOL"; then
6707   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6727 if test -n "$ac_ct_MANIFEST_TOOL"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6729 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6730 else
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6736     MANIFEST_TOOL=":"
6737   else
6738     case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6745   fi
6746 else
6747   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6748 fi
6749
6750 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6752 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6753 if ${lt_cv_path_mainfest_tool+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   lt_cv_path_mainfest_tool=no
6757   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6758   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6759   cat conftest.err >&5
6760   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6761     lt_cv_path_mainfest_tool=yes
6762   fi
6763   rm -f conftest*
6764 fi
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6766 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6767 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6768   MANIFEST_TOOL=:
6769 fi
6770
6771
6772
6773
6774
6775
6776   case $host_os in
6777     rhapsody* | darwin*)
6778     if test -n "$ac_tool_prefix"; then
6779   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$DSYMUTIL"; then
6787   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6807 if test -n "$DSYMUTIL"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6809 $as_echo "$DSYMUTIL" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_DSYMUTIL"; then
6818   ac_ct_DSYMUTIL=$DSYMUTIL
6819   # Extract the first word of "dsymutil", so it can be a program name with args.
6820 set dummy dsymutil; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$ac_ct_DSYMUTIL"; then
6827   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6847 if test -n "$ac_ct_DSYMUTIL"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6849 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855   if test "x$ac_ct_DSYMUTIL" = x; then
6856     DSYMUTIL=":"
6857   else
6858     case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864     DSYMUTIL=$ac_ct_DSYMUTIL
6865   fi
6866 else
6867   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6868 fi
6869
6870     if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_NMEDIT+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$NMEDIT"; then
6879   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 NMEDIT=$ac_cv_prog_NMEDIT
6899 if test -n "$NMEDIT"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6901 $as_echo "$NMEDIT" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_NMEDIT"; then
6910   ac_ct_NMEDIT=$NMEDIT
6911   # Extract the first word of "nmedit", so it can be a program name with args.
6912 set dummy nmedit; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$ac_ct_NMEDIT"; then
6919   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6939 if test -n "$ac_ct_NMEDIT"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6941 $as_echo "$ac_ct_NMEDIT" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_NMEDIT" = x; then
6948     NMEDIT=":"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     NMEDIT=$ac_ct_NMEDIT
6957   fi
6958 else
6959   NMEDIT="$ac_cv_prog_NMEDIT"
6960 fi
6961
6962     if test -n "$ac_tool_prefix"; then
6963   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_LIPO+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   if test -n "$LIPO"; then
6971   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985   done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 LIPO=$ac_cv_prog_LIPO
6991 if test -n "$LIPO"; then
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6993 $as_echo "$LIPO" >&6; }
6994 else
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999
7000 fi
7001 if test -z "$ac_cv_prog_LIPO"; then
7002   ac_ct_LIPO=$LIPO
7003   # Extract the first word of "lipo", so it can be a program name with args.
7004 set dummy lipo; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   if test -n "$ac_ct_LIPO"; then
7011   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018     for ac_exec_ext in '' $ac_executable_extensions; do
7019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020     ac_cv_prog_ac_ct_LIPO="lipo"
7021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025   done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7031 if test -n "$ac_ct_LIPO"; then
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7033 $as_echo "$ac_ct_LIPO" >&6; }
7034 else
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039   if test "x$ac_ct_LIPO" = x; then
7040     LIPO=":"
7041   else
7042     case $cross_compiling:$ac_tool_warned in
7043 yes:)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7047 esac
7048     LIPO=$ac_ct_LIPO
7049   fi
7050 else
7051   LIPO="$ac_cv_prog_LIPO"
7052 fi
7053
7054     if test -n "$ac_tool_prefix"; then
7055   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}otool; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_OTOOL+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   if test -n "$OTOOL"; then
7063   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 OTOOL=$ac_cv_prog_OTOOL
7083 if test -n "$OTOOL"; then
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7085 $as_echo "$OTOOL" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091
7092 fi
7093 if test -z "$ac_cv_prog_OTOOL"; then
7094   ac_ct_OTOOL=$OTOOL
7095   # Extract the first word of "otool", so it can be a program name with args.
7096 set dummy otool; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$ac_ct_OTOOL"; then
7103   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_prog_ac_ct_OTOOL="otool"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7123 if test -n "$ac_ct_OTOOL"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7125 $as_echo "$ac_ct_OTOOL" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131   if test "x$ac_ct_OTOOL" = x; then
7132     OTOOL=":"
7133   else
7134     case $cross_compiling:$ac_tool_warned in
7135 yes:)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7139 esac
7140     OTOOL=$ac_ct_OTOOL
7141   fi
7142 else
7143   OTOOL="$ac_cv_prog_OTOOL"
7144 fi
7145
7146     if test -n "$ac_tool_prefix"; then
7147   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7148 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if ${ac_cv_prog_OTOOL64+:} false; then :
7152   $as_echo_n "(cached) " >&6
7153 else
7154   if test -n "$OTOOL64"; then
7155   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162     for ac_exec_ext in '' $ac_executable_extensions; do
7163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169   done
7170 IFS=$as_save_IFS
7171
7172 fi
7173 fi
7174 OTOOL64=$ac_cv_prog_OTOOL64
7175 if test -n "$OTOOL64"; then
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7177 $as_echo "$OTOOL64" >&6; }
7178 else
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181 fi
7182
7183
7184 fi
7185 if test -z "$ac_cv_prog_OTOOL64"; then
7186   ac_ct_OTOOL64=$OTOOL64
7187   # Extract the first word of "otool64", so it can be a program name with args.
7188 set dummy otool64; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$ac_ct_OTOOL64"; then
7195   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_ac_ct_OTOOL64="otool64"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7215 if test -n "$ac_ct_OTOOL64"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7217 $as_echo "$ac_ct_OTOOL64" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223   if test "x$ac_ct_OTOOL64" = x; then
7224     OTOOL64=":"
7225   else
7226     case $cross_compiling:$ac_tool_warned in
7227 yes:)
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230 ac_tool_warned=yes ;;
7231 esac
7232     OTOOL64=$ac_ct_OTOOL64
7233   fi
7234 else
7235   OTOOL64="$ac_cv_prog_OTOOL64"
7236 fi
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7265 $as_echo_n "checking for -single_module linker flag... " >&6; }
7266 if ${lt_cv_apple_cc_single_mod+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   lt_cv_apple_cc_single_mod=no
7270       if test -z "${LT_MULTI_MODULE}"; then
7271         # By default we will add the -single_module flag. You can override
7272         # by either setting the environment variable LT_MULTI_MODULE
7273         # non-empty at configure time, or by adding -multi_module to the
7274         # link flags.
7275         rm -rf libconftest.dylib*
7276         echo "int foo(void){return 1;}" > conftest.c
7277         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7278 -dynamiclib -Wl,-single_module conftest.c" >&5
7279         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7280           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7281         _lt_result=$?
7282         # If there is a non-empty error log, and "single_module"
7283         # appears in it, assume the flag caused a linker warning
7284         if test -s conftest.err && $GREP single_module conftest.err; then
7285           cat conftest.err >&5
7286         # Otherwise, if the output was created with a 0 exit code from
7287         # the compiler, it worked.
7288         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7289           lt_cv_apple_cc_single_mod=yes
7290         else
7291           cat conftest.err >&5
7292         fi
7293         rm -rf libconftest.dylib*
7294         rm -f conftest.*
7295       fi
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7298 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7299
7300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7301 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7302 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   lt_cv_ld_exported_symbols_list=no
7306       save_LDFLAGS=$LDFLAGS
7307       echo "_main" > conftest.sym
7308       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7309       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h.  */
7311
7312 int
7313 main ()
7314 {
7315
7316   ;
7317   return 0;
7318 }
7319 _ACEOF
7320 if ac_fn_c_try_link "$LINENO"; then :
7321   lt_cv_ld_exported_symbols_list=yes
7322 else
7323   lt_cv_ld_exported_symbols_list=no
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext \
7326     conftest$ac_exeext conftest.$ac_ext
7327         LDFLAGS="$save_LDFLAGS"
7328
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7331 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7332
7333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7334 $as_echo_n "checking for -force_load linker flag... " >&6; }
7335 if ${lt_cv_ld_force_load+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   lt_cv_ld_force_load=no
7339       cat > conftest.c << _LT_EOF
7340 int forced_loaded() { return 2;}
7341 _LT_EOF
7342       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7343       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7344       echo "$AR cru libconftest.a conftest.o" >&5
7345       $AR cru libconftest.a conftest.o 2>&5
7346       echo "$RANLIB libconftest.a" >&5
7347       $RANLIB libconftest.a 2>&5
7348       cat > conftest.c << _LT_EOF
7349 int main() { return 0;}
7350 _LT_EOF
7351       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7352       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7353       _lt_result=$?
7354       if test -s conftest.err && $GREP force_load conftest.err; then
7355         cat conftest.err >&5
7356       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7357         lt_cv_ld_force_load=yes
7358       else
7359         cat conftest.err >&5
7360       fi
7361         rm -f conftest.err libconftest.a conftest conftest.c
7362         rm -rf conftest.dSYM
7363
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7366 $as_echo "$lt_cv_ld_force_load" >&6; }
7367     case $host_os in
7368     rhapsody* | darwin1.[012])
7369       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7370     darwin1.*)
7371       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7372     darwin*) # darwin 5.x on
7373       # if running on 10.5 or later, the deployment target defaults
7374       # to the OS version, if on x86, and 10.4, the deployment
7375       # target defaults to 10.4. Don't you love it?
7376       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7377         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7378           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7379         10.[012]*)
7380           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7381         10.*)
7382           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7383       esac
7384     ;;
7385   esac
7386     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7387       _lt_dar_single_mod='$single_module'
7388     fi
7389     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7390       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7391     else
7392       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7393     fi
7394     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7395       _lt_dsymutil='~$DSYMUTIL $lib || :'
7396     else
7397       _lt_dsymutil=
7398     fi
7399     ;;
7400   esac
7401
7402 ac_ext=c
7403 ac_cpp='$CPP $CPPFLAGS'
7404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7409 # On Suns, sometimes $CPP names a directory.
7410 if test -n "$CPP" && test -d "$CPP"; then
7411   CPP=
7412 fi
7413 if test -z "$CPP"; then
7414   if ${ac_cv_prog_CPP+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417       # Double quotes because CPP needs to be expanded
7418     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7419     do
7420       ac_preproc_ok=false
7421 for ac_c_preproc_warn_flag in '' yes
7422 do
7423   # Use a header file that comes with gcc, so configuring glibc
7424   # with a fresh cross-compiler works.
7425   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426   # <limits.h> exists even on freestanding compilers.
7427   # On the NeXT, cc -E runs the code through the compiler's parser,
7428   # not just through cpp. "Syntax error" is here to catch this case.
7429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h.  */
7431 #ifdef __STDC__
7432 # include <limits.h>
7433 #else
7434 # include <assert.h>
7435 #endif
7436                      Syntax error
7437 _ACEOF
7438 if ac_fn_c_try_cpp "$LINENO"; then :
7439
7440 else
7441   # Broken: fails on valid input.
7442 continue
7443 fi
7444 rm -f conftest.err conftest.i conftest.$ac_ext
7445
7446   # OK, works on sane cases.  Now check whether nonexistent headers
7447   # can be detected and how.
7448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h.  */
7450 #include <ac_nonexistent.h>
7451 _ACEOF
7452 if ac_fn_c_try_cpp "$LINENO"; then :
7453   # Broken: success on invalid input.
7454 continue
7455 else
7456   # Passes both tests.
7457 ac_preproc_ok=:
7458 break
7459 fi
7460 rm -f conftest.err conftest.i conftest.$ac_ext
7461
7462 done
7463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7464 rm -f conftest.i conftest.err conftest.$ac_ext
7465 if $ac_preproc_ok; then :
7466   break
7467 fi
7468
7469     done
7470     ac_cv_prog_CPP=$CPP
7471
7472 fi
7473   CPP=$ac_cv_prog_CPP
7474 else
7475   ac_cv_prog_CPP=$CPP
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7478 $as_echo "$CPP" >&6; }
7479 ac_preproc_ok=false
7480 for ac_c_preproc_warn_flag in '' yes
7481 do
7482   # Use a header file that comes with gcc, so configuring glibc
7483   # with a fresh cross-compiler works.
7484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7485   # <limits.h> exists even on freestanding compilers.
7486   # On the NeXT, cc -E runs the code through the compiler's parser,
7487   # not just through cpp. "Syntax error" is here to catch this case.
7488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h.  */
7490 #ifdef __STDC__
7491 # include <limits.h>
7492 #else
7493 # include <assert.h>
7494 #endif
7495                      Syntax error
7496 _ACEOF
7497 if ac_fn_c_try_cpp "$LINENO"; then :
7498
7499 else
7500   # Broken: fails on valid input.
7501 continue
7502 fi
7503 rm -f conftest.err conftest.i conftest.$ac_ext
7504
7505   # OK, works on sane cases.  Now check whether nonexistent headers
7506   # can be detected and how.
7507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h.  */
7509 #include <ac_nonexistent.h>
7510 _ACEOF
7511 if ac_fn_c_try_cpp "$LINENO"; then :
7512   # Broken: success on invalid input.
7513 continue
7514 else
7515   # Passes both tests.
7516 ac_preproc_ok=:
7517 break
7518 fi
7519 rm -f conftest.err conftest.i conftest.$ac_ext
7520
7521 done
7522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7523 rm -f conftest.i conftest.err conftest.$ac_ext
7524 if $ac_preproc_ok; then :
7525
7526 else
7527   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7530 See \`config.log' for more details" "$LINENO" 5; }
7531 fi
7532
7533 ac_ext=c
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538
7539
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7541 $as_echo_n "checking for ANSI C header files... " >&6; }
7542 if ${ac_cv_header_stdc+:} false; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547 #include <stdlib.h>
7548 #include <stdarg.h>
7549 #include <string.h>
7550 #include <float.h>
7551
7552 int
7553 main ()
7554 {
7555
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 if ac_fn_c_try_compile "$LINENO"; then :
7561   ac_cv_header_stdc=yes
7562 else
7563   ac_cv_header_stdc=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566
7567 if test $ac_cv_header_stdc = yes; then
7568   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h.  */
7571 #include <string.h>
7572
7573 _ACEOF
7574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7575   $EGREP "memchr" >/dev/null 2>&1; then :
7576
7577 else
7578   ac_cv_header_stdc=no
7579 fi
7580 rm -f conftest*
7581
7582 fi
7583
7584 if test $ac_cv_header_stdc = yes; then
7585   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h.  */
7588 #include <stdlib.h>
7589
7590 _ACEOF
7591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7592   $EGREP "free" >/dev/null 2>&1; then :
7593
7594 else
7595   ac_cv_header_stdc=no
7596 fi
7597 rm -f conftest*
7598
7599 fi
7600
7601 if test $ac_cv_header_stdc = yes; then
7602   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7603   if test "$cross_compiling" = yes; then :
7604   :
7605 else
7606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h.  */
7608 #include <ctype.h>
7609 #include <stdlib.h>
7610 #if ((' ' & 0x0FF) == 0x020)
7611 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7612 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7613 #else
7614 # define ISLOWER(c) \
7615                    (('a' <= (c) && (c) <= 'i') \
7616                      || ('j' <= (c) && (c) <= 'r') \
7617                      || ('s' <= (c) && (c) <= 'z'))
7618 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7619 #endif
7620
7621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7622 int
7623 main ()
7624 {
7625   int i;
7626   for (i = 0; i < 256; i++)
7627     if (XOR (islower (i), ISLOWER (i))
7628         || toupper (i) != TOUPPER (i))
7629       return 2;
7630   return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_run "$LINENO"; then :
7634
7635 else
7636   ac_cv_header_stdc=no
7637 fi
7638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7639   conftest.$ac_objext conftest.beam conftest.$ac_ext
7640 fi
7641
7642 fi
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7645 $as_echo "$ac_cv_header_stdc" >&6; }
7646 if test $ac_cv_header_stdc = yes; then
7647
7648 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7649
7650 fi
7651
7652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7653 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7654                   inttypes.h stdint.h unistd.h
7655 do :
7656   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7657 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7658 "
7659 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7660   cat >>confdefs.h <<_ACEOF
7661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662 _ACEOF
7663
7664 fi
7665
7666 done
7667
7668
7669 for ac_header in dlfcn.h
7670 do :
7671   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7672 "
7673 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7674   cat >>confdefs.h <<_ACEOF
7675 #define HAVE_DLFCN_H 1
7676 _ACEOF
7677
7678 fi
7679
7680 done
7681
7682
7683
7684
7685
7686 # Set options
7687 enable_dlopen=yes
7688 # Check whether --enable-static was given.
7689 if test "${enable_static+set}" = set; then :
7690   enableval=$enable_static; p=${PACKAGE-default}
7691     case $enableval in
7692     yes) enable_static=yes ;;
7693     no) enable_static=no ;;
7694     *)
7695      enable_static=no
7696       # Look at the argument we got.  We use all the common list separators.
7697       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698       for pkg in $enableval; do
7699         IFS="$lt_save_ifs"
7700         if test "X$pkg" = "X$p"; then
7701           enable_static=yes
7702         fi
7703       done
7704       IFS="$lt_save_ifs"
7705       ;;
7706     esac
7707 else
7708   enable_static=no
7709 fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721   enable_win32_dll=no
7722
7723
7724             # Check whether --enable-shared was given.
7725 if test "${enable_shared+set}" = set; then :
7726   enableval=$enable_shared; p=${PACKAGE-default}
7727     case $enableval in
7728     yes) enable_shared=yes ;;
7729     no) enable_shared=no ;;
7730     *)
7731       enable_shared=no
7732       # Look at the argument we got.  We use all the common list separators.
7733       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734       for pkg in $enableval; do
7735         IFS="$lt_save_ifs"
7736         if test "X$pkg" = "X$p"; then
7737           enable_shared=yes
7738         fi
7739       done
7740       IFS="$lt_save_ifs"
7741       ;;
7742     esac
7743 else
7744   enable_shared=yes
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 # Check whether --with-pic was given.
7758 if test "${with_pic+set}" = set; then :
7759   withval=$with_pic; lt_p=${PACKAGE-default}
7760     case $withval in
7761     yes|no) pic_mode=$withval ;;
7762     *)
7763       pic_mode=default
7764       # Look at the argument we got.  We use all the common list separators.
7765       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7766       for lt_pkg in $withval; do
7767         IFS="$lt_save_ifs"
7768         if test "X$lt_pkg" = "X$lt_p"; then
7769           pic_mode=yes
7770         fi
7771       done
7772       IFS="$lt_save_ifs"
7773       ;;
7774     esac
7775 else
7776   pic_mode=default
7777 fi
7778
7779
7780 test -z "$pic_mode" && pic_mode=default
7781
7782
7783
7784
7785
7786
7787
7788   # Check whether --enable-fast-install was given.
7789 if test "${enable_fast_install+set}" = set; then :
7790   enableval=$enable_fast_install; p=${PACKAGE-default}
7791     case $enableval in
7792     yes) enable_fast_install=yes ;;
7793     no) enable_fast_install=no ;;
7794     *)
7795       enable_fast_install=no
7796       # Look at the argument we got.  We use all the common list separators.
7797       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7798       for pkg in $enableval; do
7799         IFS="$lt_save_ifs"
7800         if test "X$pkg" = "X$p"; then
7801           enable_fast_install=yes
7802         fi
7803       done
7804       IFS="$lt_save_ifs"
7805       ;;
7806     esac
7807 else
7808   enable_fast_install=yes
7809 fi
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 # This can be used to rebuild libtool when needed
7822 LIBTOOL_DEPS="$ltmain"
7823
7824 # Always use our own libtool.
7825 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856 test -z "$LN_S" && LN_S="ln -s"
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 if test -n "${ZSH_VERSION+set}" ; then
7872    setopt NO_GLOB_SUBST
7873 fi
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7876 $as_echo_n "checking for objdir... " >&6; }
7877 if ${lt_cv_objdir+:} false; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   rm -f .libs 2>/dev/null
7881 mkdir .libs 2>/dev/null
7882 if test -d .libs; then
7883   lt_cv_objdir=.libs
7884 else
7885   # MS-DOS does not allow filenames that begin with a dot.
7886   lt_cv_objdir=_libs
7887 fi
7888 rmdir .libs 2>/dev/null
7889 fi
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7891 $as_echo "$lt_cv_objdir" >&6; }
7892 objdir=$lt_cv_objdir
7893
7894
7895
7896
7897
7898 cat >>confdefs.h <<_ACEOF
7899 #define LT_OBJDIR "$lt_cv_objdir/"
7900 _ACEOF
7901
7902
7903
7904
7905 case $host_os in
7906 aix3*)
7907   # AIX sometimes has problems with the GCC collect2 program.  For some
7908   # reason, if we set the COLLECT_NAMES environment variable, the problems
7909   # vanish in a puff of smoke.
7910   if test "X${COLLECT_NAMES+set}" != Xset; then
7911     COLLECT_NAMES=
7912     export COLLECT_NAMES
7913   fi
7914   ;;
7915 esac
7916
7917 # Global variables:
7918 ofile=libtool
7919 can_build_shared=yes
7920
7921 # All known linkers require a `.a' archive for static linking (except MSVC,
7922 # which needs '.lib').
7923 libext=a
7924
7925 with_gnu_ld="$lt_cv_prog_gnu_ld"
7926
7927 old_CC="$CC"
7928 old_CFLAGS="$CFLAGS"
7929
7930 # Set sane defaults for various variables
7931 test -z "$CC" && CC=cc
7932 test -z "$LTCC" && LTCC=$CC
7933 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7934 test -z "$LD" && LD=ld
7935 test -z "$ac_objext" && ac_objext=o
7936
7937 for cc_temp in $compiler""; do
7938   case $cc_temp in
7939     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7940     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7941     \-*) ;;
7942     *) break;;
7943   esac
7944 done
7945 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7946
7947
7948 # Only perform the check for file, if the check method requires it
7949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7950 case $deplibs_check_method in
7951 file_magic*)
7952   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7954 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7955 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   case $MAGIC_CMD in
7959 [\\/*] |  ?:[\\/]*)
7960   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961   ;;
7962 *)
7963   lt_save_MAGIC_CMD="$MAGIC_CMD"
7964   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7966   for ac_dir in $ac_dummy; do
7967     IFS="$lt_save_ifs"
7968     test -z "$ac_dir" && ac_dir=.
7969     if test -f $ac_dir/${ac_tool_prefix}file; then
7970       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7971       if test -n "$file_magic_test_file"; then
7972         case $deplibs_check_method in
7973         "file_magic "*)
7974           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7975           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7977             $EGREP "$file_magic_regex" > /dev/null; then
7978             :
7979           else
7980             cat <<_LT_EOF 1>&2
7981
7982 *** Warning: the command libtool uses to detect shared libraries,
7983 *** $file_magic_cmd, produces output that libtool cannot recognize.
7984 *** The result is that libtool may fail to recognize shared libraries
7985 *** as such.  This will affect the creation of libtool libraries that
7986 *** depend on shared libraries, but programs linked with such libtool
7987 *** libraries will work regardless of this problem.  Nevertheless, you
7988 *** may want to report the problem to your system manager and/or to
7989 *** bug-libtool@gnu.org
7990
7991 _LT_EOF
7992           fi ;;
7993         esac
7994       fi
7995       break
7996     fi
7997   done
7998   IFS="$lt_save_ifs"
7999   MAGIC_CMD="$lt_save_MAGIC_CMD"
8000   ;;
8001 esac
8002 fi
8003
8004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005 if test -n "$MAGIC_CMD"; then
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8007 $as_echo "$MAGIC_CMD" >&6; }
8008 else
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013
8014
8015
8016
8017 if test -z "$lt_cv_path_MAGIC_CMD"; then
8018   if test -n "$ac_tool_prefix"; then
8019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8020 $as_echo_n "checking for file... " >&6; }
8021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   case $MAGIC_CMD in
8025 [\\/*] |  ?:[\\/]*)
8026   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8027   ;;
8028 *)
8029   lt_save_MAGIC_CMD="$MAGIC_CMD"
8030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032   for ac_dir in $ac_dummy; do
8033     IFS="$lt_save_ifs"
8034     test -z "$ac_dir" && ac_dir=.
8035     if test -f $ac_dir/file; then
8036       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8037       if test -n "$file_magic_test_file"; then
8038         case $deplibs_check_method in
8039         "file_magic "*)
8040           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043             $EGREP "$file_magic_regex" > /dev/null; then
8044             :
8045           else
8046             cat <<_LT_EOF 1>&2
8047
8048 *** Warning: the command libtool uses to detect shared libraries,
8049 *** $file_magic_cmd, produces output that libtool cannot recognize.
8050 *** The result is that libtool may fail to recognize shared libraries
8051 *** as such.  This will affect the creation of libtool libraries that
8052 *** depend on shared libraries, but programs linked with such libtool
8053 *** libraries will work regardless of this problem.  Nevertheless, you
8054 *** may want to report the problem to your system manager and/or to
8055 *** bug-libtool@gnu.org
8056
8057 _LT_EOF
8058           fi ;;
8059         esac
8060       fi
8061       break
8062     fi
8063   done
8064   IFS="$lt_save_ifs"
8065   MAGIC_CMD="$lt_save_MAGIC_CMD"
8066   ;;
8067 esac
8068 fi
8069
8070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071 if test -n "$MAGIC_CMD"; then
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8073 $as_echo "$MAGIC_CMD" >&6; }
8074 else
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079
8080   else
8081     MAGIC_CMD=:
8082   fi
8083 fi
8084
8085   fi
8086   ;;
8087 esac
8088
8089 # Use C for the default configuration in the libtool script
8090
8091 lt_save_CC="$CC"
8092 ac_ext=c
8093 ac_cpp='$CPP $CPPFLAGS'
8094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098
8099 # Source file extension for C test sources.
8100 ac_ext=c
8101
8102 # Object file extension for compiled C test sources.
8103 objext=o
8104 objext=$objext
8105
8106 # Code to be used in simple compile tests
8107 lt_simple_compile_test_code="int some_variable = 0;"
8108
8109 # Code to be used in simple link tests
8110 lt_simple_link_test_code='int main(){return(0);}'
8111
8112
8113
8114
8115
8116
8117
8118 # If no C compiler was specified, use CC.
8119 LTCC=${LTCC-"$CC"}
8120
8121 # If no C compiler flags were specified, use CFLAGS.
8122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8123
8124 # Allow CC to be a program name with arguments.
8125 compiler=$CC
8126
8127 # Save the default compiler, since it gets overwritten when the other
8128 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8129 compiler_DEFAULT=$CC
8130
8131 # save warnings/boilerplate of simple test code
8132 ac_outfile=conftest.$ac_objext
8133 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8135 _lt_compiler_boilerplate=`cat conftest.err`
8136 $RM conftest*
8137
8138 ac_outfile=conftest.$ac_objext
8139 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8141 _lt_linker_boilerplate=`cat conftest.err`
8142 $RM -r conftest*
8143
8144
8145 ## CAVEAT EMPTOR:
8146 ## There is no encapsulation within the following macros, do not change
8147 ## the running order or otherwise move them around unless you know exactly
8148 ## what you are doing...
8149 if test -n "$compiler"; then
8150
8151 lt_prog_compiler_no_builtin_flag=
8152
8153 if test "$GCC" = yes; then
8154   case $cc_basename in
8155   nvcc*)
8156     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8157   *)
8158     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8159   esac
8160
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8162 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8163 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8164   $as_echo_n "(cached) " >&6
8165 else
8166   lt_cv_prog_compiler_rtti_exceptions=no
8167    ac_outfile=conftest.$ac_objext
8168    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8169    lt_compiler_flag="-fno-rtti -fno-exceptions"
8170    # Insert the option either (1) after the last *FLAGS variable, or
8171    # (2) before a word containing "conftest.", or (3) at the end.
8172    # Note that $ac_compile itself does not contain backslashes and begins
8173    # with a dollar sign (not a hyphen), so the echo should work correctly.
8174    # The option is referenced via a variable to avoid confusing sed.
8175    lt_compile=`echo "$ac_compile" | $SED \
8176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8178    -e 's:$: $lt_compiler_flag:'`
8179    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8180    (eval "$lt_compile" 2>conftest.err)
8181    ac_status=$?
8182    cat conftest.err >&5
8183    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184    if (exit $ac_status) && test -s "$ac_outfile"; then
8185      # The compiler can only warn and ignore the option if not recognized
8186      # So say no if there are warnings other than the usual output.
8187      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8188      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8189      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8190        lt_cv_prog_compiler_rtti_exceptions=yes
8191      fi
8192    fi
8193    $RM conftest*
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8197 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8198
8199 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8200     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8201 else
8202     :
8203 fi
8204
8205 fi
8206
8207
8208
8209
8210
8211
8212   lt_prog_compiler_wl=
8213 lt_prog_compiler_pic=
8214 lt_prog_compiler_static=
8215
8216
8217   if test "$GCC" = yes; then
8218     lt_prog_compiler_wl='-Wl,'
8219     lt_prog_compiler_static='-static'
8220
8221     case $host_os in
8222       aix*)
8223       # All AIX code is PIC.
8224       if test "$host_cpu" = ia64; then
8225         # AIX 5 now supports IA64 processor
8226         lt_prog_compiler_static='-Bstatic'
8227       fi
8228       ;;
8229
8230     amigaos*)
8231       case $host_cpu in
8232       powerpc)
8233             # see comment about AmigaOS4 .so support
8234             lt_prog_compiler_pic='-fPIC'
8235         ;;
8236       m68k)
8237             # FIXME: we need at least 68020 code to build shared libraries, but
8238             # adding the `-m68020' flag to GCC prevents building anything better,
8239             # like `-m68040'.
8240             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8241         ;;
8242       esac
8243       ;;
8244
8245     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8246       # PIC is the default for these OSes.
8247       ;;
8248
8249     mingw* | cygwin* | pw32* | os2* | cegcc*)
8250       # This hack is so that the source file can tell whether it is being
8251       # built for inclusion in a dll (and should export symbols for example).
8252       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8253       # (--disable-auto-import) libraries
8254       lt_prog_compiler_pic='-DDLL_EXPORT'
8255       ;;
8256
8257     darwin* | rhapsody*)
8258       # PIC is the default on this platform
8259       # Common symbols not allowed in MH_DYLIB files
8260       lt_prog_compiler_pic='-fno-common'
8261       ;;
8262
8263     haiku*)
8264       # PIC is the default for Haiku.
8265       # The "-static" flag exists, but is broken.
8266       lt_prog_compiler_static=
8267       ;;
8268
8269     hpux*)
8270       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8271       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8272       # sets the default TLS model and affects inlining.
8273       case $host_cpu in
8274       hppa*64*)
8275         # +Z the default
8276         ;;
8277       *)
8278         lt_prog_compiler_pic='-fPIC'
8279         ;;
8280       esac
8281       ;;
8282
8283     interix[3-9]*)
8284       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8285       # Instead, we relocate shared libraries at runtime.
8286       ;;
8287
8288     msdosdjgpp*)
8289       # Just because we use GCC doesn't mean we suddenly get shared libraries
8290       # on systems that don't support them.
8291       lt_prog_compiler_can_build_shared=no
8292       enable_shared=no
8293       ;;
8294
8295     *nto* | *qnx*)
8296       # QNX uses GNU C++, but need to define -shared option too, otherwise
8297       # it will coredump.
8298       lt_prog_compiler_pic='-fPIC -shared'
8299       ;;
8300
8301     sysv4*MP*)
8302       if test -d /usr/nec; then
8303         lt_prog_compiler_pic=-Kconform_pic
8304       fi
8305       ;;
8306
8307     *)
8308       lt_prog_compiler_pic='-fPIC'
8309       ;;
8310     esac
8311
8312     case $cc_basename in
8313     nvcc*) # Cuda Compiler Driver 2.2
8314       lt_prog_compiler_wl='-Xlinker '
8315       if test -n "$lt_prog_compiler_pic"; then
8316         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8317       fi
8318       ;;
8319     esac
8320   else
8321     # PORTME Check for flag to pass linker flags through the system compiler.
8322     case $host_os in
8323     aix*)
8324       lt_prog_compiler_wl='-Wl,'
8325       if test "$host_cpu" = ia64; then
8326         # AIX 5 now supports IA64 processor
8327         lt_prog_compiler_static='-Bstatic'
8328       else
8329         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8330       fi
8331       ;;
8332
8333     mingw* | cygwin* | pw32* | os2* | cegcc*)
8334       # This hack is so that the source file can tell whether it is being
8335       # built for inclusion in a dll (and should export symbols for example).
8336       lt_prog_compiler_pic='-DDLL_EXPORT'
8337       ;;
8338
8339     hpux9* | hpux10* | hpux11*)
8340       lt_prog_compiler_wl='-Wl,'
8341       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8342       # not for PA HP-UX.
8343       case $host_cpu in
8344       hppa*64*|ia64*)
8345         # +Z the default
8346         ;;
8347       *)
8348         lt_prog_compiler_pic='+Z'
8349         ;;
8350       esac
8351       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8352       lt_prog_compiler_static='${wl}-a ${wl}archive'
8353       ;;
8354
8355     irix5* | irix6* | nonstopux*)
8356       lt_prog_compiler_wl='-Wl,'
8357       # PIC (with -KPIC) is the default.
8358       lt_prog_compiler_static='-non_shared'
8359       ;;
8360
8361     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8362       case $cc_basename in
8363       # old Intel for x86_64 which still supported -KPIC.
8364       ecc*)
8365         lt_prog_compiler_wl='-Wl,'
8366         lt_prog_compiler_pic='-KPIC'
8367         lt_prog_compiler_static='-static'
8368         ;;
8369       # icc used to be incompatible with GCC.
8370       # ICC 10 doesn't accept -KPIC any more.
8371       icc* | ifort*)
8372         lt_prog_compiler_wl='-Wl,'
8373         lt_prog_compiler_pic='-fPIC'
8374         lt_prog_compiler_static='-static'
8375         ;;
8376       # Lahey Fortran 8.1.
8377       lf95*)
8378         lt_prog_compiler_wl='-Wl,'
8379         lt_prog_compiler_pic='--shared'
8380         lt_prog_compiler_static='--static'
8381         ;;
8382       nagfor*)
8383         # NAG Fortran compiler
8384         lt_prog_compiler_wl='-Wl,-Wl,,'
8385         lt_prog_compiler_pic='-PIC'
8386         lt_prog_compiler_static='-Bstatic'
8387         ;;
8388       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8389         # Portland Group compilers (*not* the Pentium gcc compiler,
8390         # which looks to be a dead project)
8391         lt_prog_compiler_wl='-Wl,'
8392         lt_prog_compiler_pic='-fpic'
8393         lt_prog_compiler_static='-Bstatic'
8394         ;;
8395       ccc*)
8396         lt_prog_compiler_wl='-Wl,'
8397         # All Alpha code is PIC.
8398         lt_prog_compiler_static='-non_shared'
8399         ;;
8400       xl* | bgxl* | bgf* | mpixl*)
8401         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8402         lt_prog_compiler_wl='-Wl,'
8403         lt_prog_compiler_pic='-qpic'
8404         lt_prog_compiler_static='-qstaticlink'
8405         ;;
8406       *)
8407         case `$CC -V 2>&1 | sed 5q` in
8408         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8409           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8410           lt_prog_compiler_pic='-KPIC'
8411           lt_prog_compiler_static='-Bstatic'
8412           lt_prog_compiler_wl=''
8413           ;;
8414         *Sun\ F* | *Sun*Fortran*)
8415           lt_prog_compiler_pic='-KPIC'
8416           lt_prog_compiler_static='-Bstatic'
8417           lt_prog_compiler_wl='-Qoption ld '
8418           ;;
8419         *Sun\ C*)
8420           # Sun C 5.9
8421           lt_prog_compiler_pic='-KPIC'
8422           lt_prog_compiler_static='-Bstatic'
8423           lt_prog_compiler_wl='-Wl,'
8424           ;;
8425         *Intel*\ [CF]*Compiler*)
8426           lt_prog_compiler_wl='-Wl,'
8427           lt_prog_compiler_pic='-fPIC'
8428           lt_prog_compiler_static='-static'
8429           ;;
8430         *Portland\ Group*)
8431           lt_prog_compiler_wl='-Wl,'
8432           lt_prog_compiler_pic='-fpic'
8433           lt_prog_compiler_static='-Bstatic'
8434           ;;
8435         esac
8436         ;;
8437       esac
8438       ;;
8439
8440     newsos6)
8441       lt_prog_compiler_pic='-KPIC'
8442       lt_prog_compiler_static='-Bstatic'
8443       ;;
8444
8445     *nto* | *qnx*)
8446       # QNX uses GNU C++, but need to define -shared option too, otherwise
8447       # it will coredump.
8448       lt_prog_compiler_pic='-fPIC -shared'
8449       ;;
8450
8451     osf3* | osf4* | osf5*)
8452       lt_prog_compiler_wl='-Wl,'
8453       # All OSF/1 code is PIC.
8454       lt_prog_compiler_static='-non_shared'
8455       ;;
8456
8457     rdos*)
8458       lt_prog_compiler_static='-non_shared'
8459       ;;
8460
8461     solaris*)
8462       lt_prog_compiler_pic='-KPIC'
8463       lt_prog_compiler_static='-Bstatic'
8464       case $cc_basename in
8465       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8466         lt_prog_compiler_wl='-Qoption ld ';;
8467       *)
8468         lt_prog_compiler_wl='-Wl,';;
8469       esac
8470       ;;
8471
8472     sunos4*)
8473       lt_prog_compiler_wl='-Qoption ld '
8474       lt_prog_compiler_pic='-PIC'
8475       lt_prog_compiler_static='-Bstatic'
8476       ;;
8477
8478     sysv4 | sysv4.2uw2* | sysv4.3*)
8479       lt_prog_compiler_wl='-Wl,'
8480       lt_prog_compiler_pic='-KPIC'
8481       lt_prog_compiler_static='-Bstatic'
8482       ;;
8483
8484     sysv4*MP*)
8485       if test -d /usr/nec ;then
8486         lt_prog_compiler_pic='-Kconform_pic'
8487         lt_prog_compiler_static='-Bstatic'
8488       fi
8489       ;;
8490
8491     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8492       lt_prog_compiler_wl='-Wl,'
8493       lt_prog_compiler_pic='-KPIC'
8494       lt_prog_compiler_static='-Bstatic'
8495       ;;
8496
8497     unicos*)
8498       lt_prog_compiler_wl='-Wl,'
8499       lt_prog_compiler_can_build_shared=no
8500       ;;
8501
8502     uts4*)
8503       lt_prog_compiler_pic='-pic'
8504       lt_prog_compiler_static='-Bstatic'
8505       ;;
8506
8507     *)
8508       lt_prog_compiler_can_build_shared=no
8509       ;;
8510     esac
8511   fi
8512
8513 case $host_os in
8514   # For platforms which do not support PIC, -DPIC is meaningless:
8515   *djgpp*)
8516     lt_prog_compiler_pic=
8517     ;;
8518   *)
8519     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8520     ;;
8521 esac
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8524 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8525 if ${lt_cv_prog_compiler_pic+:} false; then :
8526   $as_echo_n "(cached) " >&6
8527 else
8528   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8531 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8532 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8533
8534 #
8535 # Check to make sure the PIC flag actually works.
8536 #
8537 if test -n "$lt_prog_compiler_pic"; then
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8539 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8540 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   lt_cv_prog_compiler_pic_works=no
8544    ac_outfile=conftest.$ac_objext
8545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8547    # Insert the option either (1) after the last *FLAGS variable, or
8548    # (2) before a word containing "conftest.", or (3) at the end.
8549    # Note that $ac_compile itself does not contain backslashes and begins
8550    # with a dollar sign (not a hyphen), so the echo should work correctly.
8551    # The option is referenced via a variable to avoid confusing sed.
8552    lt_compile=`echo "$ac_compile" | $SED \
8553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8555    -e 's:$: $lt_compiler_flag:'`
8556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8557    (eval "$lt_compile" 2>conftest.err)
8558    ac_status=$?
8559    cat conftest.err >&5
8560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561    if (exit $ac_status) && test -s "$ac_outfile"; then
8562      # The compiler can only warn and ignore the option if not recognized
8563      # So say no if there are warnings other than the usual output.
8564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8567        lt_cv_prog_compiler_pic_works=yes
8568      fi
8569    fi
8570    $RM conftest*
8571
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8574 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8575
8576 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8577     case $lt_prog_compiler_pic in
8578      "" | " "*) ;;
8579      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8580      esac
8581 else
8582     lt_prog_compiler_pic=
8583      lt_prog_compiler_can_build_shared=no
8584 fi
8585
8586 fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598 #
8599 # Check to make sure the static flag actually works.
8600 #
8601 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8603 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8604 if ${lt_cv_prog_compiler_static_works+:} false; then :
8605   $as_echo_n "(cached) " >&6
8606 else
8607   lt_cv_prog_compiler_static_works=no
8608    save_LDFLAGS="$LDFLAGS"
8609    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8610    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8611    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8612      # The linker can only warn and ignore the option if not recognized
8613      # So say no if there are warnings
8614      if test -s conftest.err; then
8615        # Append any errors to the config.log.
8616        cat conftest.err 1>&5
8617        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8618        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8619        if diff conftest.exp conftest.er2 >/dev/null; then
8620          lt_cv_prog_compiler_static_works=yes
8621        fi
8622      else
8623        lt_cv_prog_compiler_static_works=yes
8624      fi
8625    fi
8626    $RM -r conftest*
8627    LDFLAGS="$save_LDFLAGS"
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8631 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8632
8633 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8634     :
8635 else
8636     lt_prog_compiler_static=
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8647 if ${lt_cv_prog_compiler_c_o+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   lt_cv_prog_compiler_c_o=no
8651    $RM -r conftest 2>/dev/null
8652    mkdir conftest
8653    cd conftest
8654    mkdir out
8655    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8656
8657    lt_compiler_flag="-o out/conftest2.$ac_objext"
8658    # Insert the option either (1) after the last *FLAGS variable, or
8659    # (2) before a word containing "conftest.", or (3) at the end.
8660    # Note that $ac_compile itself does not contain backslashes and begins
8661    # with a dollar sign (not a hyphen), so the echo should work correctly.
8662    lt_compile=`echo "$ac_compile" | $SED \
8663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665    -e 's:$: $lt_compiler_flag:'`
8666    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8667    (eval "$lt_compile" 2>out/conftest.err)
8668    ac_status=$?
8669    cat out/conftest.err >&5
8670    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8672    then
8673      # The compiler can only warn and ignore the option if not recognized
8674      # So say no if there are warnings
8675      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8676      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8677      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8678        lt_cv_prog_compiler_c_o=yes
8679      fi
8680    fi
8681    chmod u+w . 2>&5
8682    $RM conftest*
8683    # SGI C++ compiler will create directory out/ii_files/ for
8684    # template instantiation
8685    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8686    $RM out/* && rmdir out
8687    cd ..
8688    $RM -r conftest
8689    $RM conftest*
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694
8695
8696
8697
8698
8699
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8701 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8702 if ${lt_cv_prog_compiler_c_o+:} false; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   lt_cv_prog_compiler_c_o=no
8706    $RM -r conftest 2>/dev/null
8707    mkdir conftest
8708    cd conftest
8709    mkdir out
8710    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711
8712    lt_compiler_flag="-o out/conftest2.$ac_objext"
8713    # Insert the option either (1) after the last *FLAGS variable, or
8714    # (2) before a word containing "conftest.", or (3) at the end.
8715    # Note that $ac_compile itself does not contain backslashes and begins
8716    # with a dollar sign (not a hyphen), so the echo should work correctly.
8717    lt_compile=`echo "$ac_compile" | $SED \
8718    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720    -e 's:$: $lt_compiler_flag:'`
8721    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8722    (eval "$lt_compile" 2>out/conftest.err)
8723    ac_status=$?
8724    cat out/conftest.err >&5
8725    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8727    then
8728      # The compiler can only warn and ignore the option if not recognized
8729      # So say no if there are warnings
8730      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8731      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8732      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8733        lt_cv_prog_compiler_c_o=yes
8734      fi
8735    fi
8736    chmod u+w . 2>&5
8737    $RM conftest*
8738    # SGI C++ compiler will create directory out/ii_files/ for
8739    # template instantiation
8740    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8741    $RM out/* && rmdir out
8742    cd ..
8743    $RM -r conftest
8744    $RM conftest*
8745
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8748 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8749
8750
8751
8752
8753 hard_links="nottested"
8754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8755   # do not overwrite the value of need_locks provided by the user
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8757 $as_echo_n "checking if we can lock with hard links... " >&6; }
8758   hard_links=yes
8759   $RM conftest*
8760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8761   touch conftest.a
8762   ln conftest.a conftest.b 2>&5 || hard_links=no
8763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8765 $as_echo "$hard_links" >&6; }
8766   if test "$hard_links" = no; then
8767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8768 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8769     need_locks=warn
8770   fi
8771 else
8772   need_locks=no
8773 fi
8774
8775
8776
8777
8778
8779
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8781 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8782
8783   runpath_var=
8784   allow_undefined_flag=
8785   always_export_symbols=no
8786   archive_cmds=
8787   archive_expsym_cmds=
8788   compiler_needs_object=no
8789   enable_shared_with_static_runtimes=no
8790   export_dynamic_flag_spec=
8791   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8792   hardcode_automatic=no
8793   hardcode_direct=no
8794   hardcode_direct_absolute=no
8795   hardcode_libdir_flag_spec=
8796   hardcode_libdir_separator=
8797   hardcode_minus_L=no
8798   hardcode_shlibpath_var=unsupported
8799   inherit_rpath=no
8800   link_all_deplibs=unknown
8801   module_cmds=
8802   module_expsym_cmds=
8803   old_archive_from_new_cmds=
8804   old_archive_from_expsyms_cmds=
8805   thread_safe_flag_spec=
8806   whole_archive_flag_spec=
8807   # include_expsyms should be a list of space-separated symbols to be *always*
8808   # included in the symbol list
8809   include_expsyms=
8810   # exclude_expsyms can be an extended regexp of symbols to exclude
8811   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8812   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8813   # as well as any symbol that contains `d'.
8814   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8815   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8816   # platforms (ab)use it in PIC code, but their linkers get confused if
8817   # the symbol is explicitly referenced.  Since portable code cannot
8818   # rely on this symbol name, it's probably fine to never include it in
8819   # preloaded symbol tables.
8820   # Exclude shared library initialization/finalization symbols.
8821   extract_expsyms_cmds=
8822
8823   case $host_os in
8824   cygwin* | mingw* | pw32* | cegcc*)
8825     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8826     # When not using gcc, we currently assume that we are using
8827     # Microsoft Visual C++.
8828     if test "$GCC" != yes; then
8829       with_gnu_ld=no
8830     fi
8831     ;;
8832   interix*)
8833     # we just hope/assume this is gcc and not c89 (= MSVC++)
8834     with_gnu_ld=yes
8835     ;;
8836   openbsd*)
8837     with_gnu_ld=no
8838     ;;
8839   linux* | k*bsd*-gnu | gnu*)
8840     link_all_deplibs=no
8841     ;;
8842   esac
8843
8844   ld_shlibs=yes
8845
8846   # On some targets, GNU ld is compatible enough with the native linker
8847   # that we're better off using the native interface for both.
8848   lt_use_gnu_ld_interface=no
8849   if test "$with_gnu_ld" = yes; then
8850     case $host_os in
8851       aix*)
8852         # The AIX port of GNU ld has always aspired to compatibility
8853         # with the native linker.  However, as the warning in the GNU ld
8854         # block says, versions before 2.19.5* couldn't really create working
8855         # shared libraries, regardless of the interface used.
8856         case `$LD -v 2>&1` in
8857           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8858           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8859           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8860           *)
8861             lt_use_gnu_ld_interface=yes
8862             ;;
8863         esac
8864         ;;
8865       *)
8866         lt_use_gnu_ld_interface=yes
8867         ;;
8868     esac
8869   fi
8870
8871   if test "$lt_use_gnu_ld_interface" = yes; then
8872     # If archive_cmds runs LD, not CC, wlarc should be empty
8873     wlarc='${wl}'
8874
8875     # Set some defaults for GNU ld with shared library support. These
8876     # are reset later if shared libraries are not supported. Putting them
8877     # here allows them to be overridden if necessary.
8878     runpath_var=LD_RUN_PATH
8879     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880     export_dynamic_flag_spec='${wl}--export-dynamic'
8881     # ancient GNU ld didn't support --whole-archive et. al.
8882     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8883       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8884     else
8885       whole_archive_flag_spec=
8886     fi
8887     supports_anon_versioning=no
8888     case `$LD -v 2>&1` in
8889       *GNU\ gold*) supports_anon_versioning=yes ;;
8890       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8891       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8892       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8893       *\ 2.11.*) ;; # other 2.11 versions
8894       *) supports_anon_versioning=yes ;;
8895     esac
8896
8897     # See if GNU ld supports shared libraries.
8898     case $host_os in
8899     aix[3-9]*)
8900       # On AIX/PPC, the GNU linker is very broken
8901       if test "$host_cpu" != ia64; then
8902         ld_shlibs=no
8903         cat <<_LT_EOF 1>&2
8904
8905 *** Warning: the GNU linker, at least up to release 2.19, is reported
8906 *** to be unable to reliably create shared libraries on AIX.
8907 *** Therefore, libtool is disabling shared libraries support.  If you
8908 *** really care for shared libraries, you may want to install binutils
8909 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8910 *** You will then need to restart the configuration process.
8911
8912 _LT_EOF
8913       fi
8914       ;;
8915
8916     amigaos*)
8917       case $host_cpu in
8918       powerpc)
8919             # see comment about AmigaOS4 .so support
8920             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921             archive_expsym_cmds=''
8922         ;;
8923       m68k)
8924             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)'
8925             hardcode_libdir_flag_spec='-L$libdir'
8926             hardcode_minus_L=yes
8927         ;;
8928       esac
8929       ;;
8930
8931     beos*)
8932       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933         allow_undefined_flag=unsupported
8934         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8935         # support --undefined.  This deserves some investigation.  FIXME
8936         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937       else
8938         ld_shlibs=no
8939       fi
8940       ;;
8941
8942     cygwin* | mingw* | pw32* | cegcc*)
8943       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8944       # as there is no search path for DLLs.
8945       hardcode_libdir_flag_spec='-L$libdir'
8946       export_dynamic_flag_spec='${wl}--export-all-symbols'
8947       allow_undefined_flag=unsupported
8948       always_export_symbols=no
8949       enable_shared_with_static_runtimes=yes
8950       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'
8951       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8952
8953       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8954         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8955         # If the export-symbols file already is a .def file (1st line
8956         # is EXPORTS), use it as is; otherwise, prepend...
8957         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8958           cp $export_symbols $output_objdir/$soname.def;
8959         else
8960           echo EXPORTS > $output_objdir/$soname.def;
8961           cat $export_symbols >> $output_objdir/$soname.def;
8962         fi~
8963         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8964       else
8965         ld_shlibs=no
8966       fi
8967       ;;
8968
8969     haiku*)
8970       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971       link_all_deplibs=yes
8972       ;;
8973
8974     interix[3-9]*)
8975       hardcode_direct=no
8976       hardcode_shlibpath_var=no
8977       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8978       export_dynamic_flag_spec='${wl}-E'
8979       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8980       # Instead, shared libraries are loaded at an image base (0x10000000 by
8981       # default) and relocated if they conflict, which is a slow very memory
8982       # consuming and fragmenting process.  To avoid this, we pick a random,
8983       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8984       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8985       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8986       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'
8987       ;;
8988
8989     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8990       tmp_diet=no
8991       if test "$host_os" = linux-dietlibc; then
8992         case $cc_basename in
8993           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8994         esac
8995       fi
8996       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8997          && test "$tmp_diet" = no
8998       then
8999         tmp_addflag=' $pic_flag'
9000         tmp_sharedflag='-shared'
9001         case $cc_basename,$host_cpu in
9002         pgcc*)                          # Portland Group C compiler
9003           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'
9004           tmp_addflag=' $pic_flag'
9005           ;;
9006         pgf77* | pgf90* | pgf95* | pgfortran*)
9007                                         # Portland Group f77 and f90 compilers
9008           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'
9009           tmp_addflag=' $pic_flag -Mnomain' ;;
9010         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9011           tmp_addflag=' -i_dynamic' ;;
9012         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9013           tmp_addflag=' -i_dynamic -nofor_main' ;;
9014         ifc* | ifort*)                  # Intel Fortran compiler
9015           tmp_addflag=' -nofor_main' ;;
9016         lf95*)                          # Lahey Fortran 8.1
9017           whole_archive_flag_spec=
9018           tmp_sharedflag='--shared' ;;
9019         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9020           tmp_sharedflag='-qmkshrobj'
9021           tmp_addflag= ;;
9022         nvcc*)  # Cuda Compiler Driver 2.2
9023           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'
9024           compiler_needs_object=yes
9025           ;;
9026         esac
9027         case `$CC -V 2>&1 | sed 5q` in
9028         *Sun\ C*)                       # Sun C 5.9
9029           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'
9030           compiler_needs_object=yes
9031           tmp_sharedflag='-G' ;;
9032         *Sun\ F*)                       # Sun Fortran 8.3
9033           tmp_sharedflag='-G' ;;
9034         esac
9035         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036
9037         if test "x$supports_anon_versioning" = xyes; then
9038           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040             echo "local: *; };" >> $output_objdir/$libname.ver~
9041             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9042         fi
9043
9044         case $cc_basename in
9045         xlf* | bgf* | bgxlf* | mpixlf*)
9046           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9047           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9048           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9049           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9050           if test "x$supports_anon_versioning" = xyes; then
9051             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9052               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9053               echo "local: *; };" >> $output_objdir/$libname.ver~
9054               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9055           fi
9056           ;;
9057         esac
9058       else
9059         ld_shlibs=no
9060       fi
9061       ;;
9062
9063     netbsd* | netbsdelf*-gnu)
9064       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9065         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9066         wlarc=
9067       else
9068         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070       fi
9071       ;;
9072
9073     solaris*)
9074       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9075         ld_shlibs=no
9076         cat <<_LT_EOF 1>&2
9077
9078 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9079 *** create shared libraries on Solaris systems.  Therefore, libtool
9080 *** is disabling shared libraries support.  We urge you to upgrade GNU
9081 *** binutils to release 2.9.1 or newer.  Another option is to modify
9082 *** your PATH or compiler configuration so that the native linker is
9083 *** used, and then restart.
9084
9085 _LT_EOF
9086       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9087         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089       else
9090         ld_shlibs=no
9091       fi
9092       ;;
9093
9094     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9095       case `$LD -v 2>&1` in
9096         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9097         ld_shlibs=no
9098         cat <<_LT_EOF 1>&2
9099
9100 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9101 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9102 *** is disabling shared libraries support.  We urge you to upgrade GNU
9103 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9104 *** your PATH or compiler configuration so that the native linker is
9105 *** used, and then restart.
9106
9107 _LT_EOF
9108         ;;
9109         *)
9110           # For security reasons, it is highly recommended that you always
9111           # use absolute paths for naming shared libraries, and exclude the
9112           # DT_RUNPATH tag from executables and libraries.  But doing so
9113           # requires that you compile everything twice, which is a pain.
9114           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9115             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9116             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9118           else
9119             ld_shlibs=no
9120           fi
9121         ;;
9122       esac
9123       ;;
9124
9125     sunos4*)
9126       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127       wlarc=
9128       hardcode_direct=yes
9129       hardcode_shlibpath_var=no
9130       ;;
9131
9132     *)
9133       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9134         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9136       else
9137         ld_shlibs=no
9138       fi
9139       ;;
9140     esac
9141
9142     if test "$ld_shlibs" = no; then
9143       runpath_var=
9144       hardcode_libdir_flag_spec=
9145       export_dynamic_flag_spec=
9146       whole_archive_flag_spec=
9147     fi
9148   else
9149     # PORTME fill in a description of your system's linker (not GNU ld)
9150     case $host_os in
9151     aix3*)
9152       allow_undefined_flag=unsupported
9153       always_export_symbols=yes
9154       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'
9155       # Note: this linker hardcodes the directories in LIBPATH if there
9156       # are no directories specified by -L.
9157       hardcode_minus_L=yes
9158       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9159         # Neither direct hardcoding nor static linking is supported with a
9160         # broken collect2.
9161         hardcode_direct=unsupported
9162       fi
9163       ;;
9164
9165     aix[4-9]*)
9166       if test "$host_cpu" = ia64; then
9167         # On IA64, the linker does run time linking by default, so we don't
9168         # have to do anything special.
9169         aix_use_runtimelinking=no
9170         exp_sym_flag='-Bexport'
9171         no_entry_flag=""
9172       else
9173         # If we're using GNU nm, then we don't want the "-C" option.
9174         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9175         # Also, AIX nm treats weak defined symbols like other global
9176         # defined symbols, whereas GNU nm marks them as "W".
9177         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9178           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'
9179         else
9180           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'
9181         fi
9182         aix_use_runtimelinking=no
9183
9184         # Test if we are trying to use run time linking or normal
9185         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9186         # need to do runtime linking.
9187         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9188           for ld_flag in $LDFLAGS; do
9189           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9190             aix_use_runtimelinking=yes
9191             break
9192           fi
9193           done
9194           ;;
9195         esac
9196
9197         exp_sym_flag='-bexport'
9198         no_entry_flag='-bnoentry'
9199       fi
9200
9201       # When large executables or shared objects are built, AIX ld can
9202       # have problems creating the table of contents.  If linking a library
9203       # or program results in "error TOC overflow" add -mminimal-toc to
9204       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9205       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9206
9207       archive_cmds=''
9208       hardcode_direct=yes
9209       hardcode_direct_absolute=yes
9210       hardcode_libdir_separator=':'
9211       link_all_deplibs=yes
9212       file_list_spec='${wl}-f,'
9213
9214       if test "$GCC" = yes; then
9215         case $host_os in aix4.[012]|aix4.[012].*)
9216         # We only want to do this on AIX 4.2 and lower, the check
9217         # below for broken collect2 doesn't work under 4.3+
9218           collect2name=`${CC} -print-prog-name=collect2`
9219           if test -f "$collect2name" &&
9220            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9221           then
9222           # We have reworked collect2
9223           :
9224           else
9225           # We have old collect2
9226           hardcode_direct=unsupported
9227           # It fails to find uninstalled libraries when the uninstalled
9228           # path is not listed in the libpath.  Setting hardcode_minus_L
9229           # to unsupported forces relinking
9230           hardcode_minus_L=yes
9231           hardcode_libdir_flag_spec='-L$libdir'
9232           hardcode_libdir_separator=
9233           fi
9234           ;;
9235         esac
9236         shared_flag='-shared'
9237         if test "$aix_use_runtimelinking" = yes; then
9238           shared_flag="$shared_flag "'${wl}-G'
9239         fi
9240         link_all_deplibs=no
9241       else
9242         # not using gcc
9243         if test "$host_cpu" = ia64; then
9244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245         # chokes on -Wl,-G. The following line is correct:
9246           shared_flag='-G'
9247         else
9248           if test "$aix_use_runtimelinking" = yes; then
9249             shared_flag='${wl}-G'
9250           else
9251             shared_flag='${wl}-bM:SRE'
9252           fi
9253         fi
9254       fi
9255
9256       export_dynamic_flag_spec='${wl}-bexpall'
9257       # It seems that -bexpall does not export symbols beginning with
9258       # underscore (_), so it is better to generate a list of symbols to export.
9259       always_export_symbols=yes
9260       if test "$aix_use_runtimelinking" = yes; then
9261         # Warning - without using the other runtime loading flags (-brtl),
9262         # -berok will link without error, but may produce a broken library.
9263         allow_undefined_flag='-berok'
9264         # Determine the default libpath from the value encoded in an
9265         # empty executable.
9266         if test "${lt_cv_aix_libpath+set}" = set; then
9267   aix_libpath=$lt_cv_aix_libpath
9268 else
9269   if ${lt_cv_aix_libpath_+:} false; then :
9270   $as_echo_n "(cached) " >&6
9271 else
9272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h.  */
9274
9275 int
9276 main ()
9277 {
9278
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_c_try_link "$LINENO"; then :
9284
9285   lt_aix_libpath_sed='
9286       /Import File Strings/,/^$/ {
9287           /^0/ {
9288               s/^0  *\([^ ]*\) *$/\1/
9289               p
9290           }
9291       }'
9292   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9293   # Check for a 64-bit object if we didn't find anything.
9294   if test -z "$lt_cv_aix_libpath_"; then
9295     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296   fi
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext \
9299     conftest$ac_exeext conftest.$ac_ext
9300   if test -z "$lt_cv_aix_libpath_"; then
9301     lt_cv_aix_libpath_="/usr/lib:/lib"
9302   fi
9303
9304 fi
9305
9306   aix_libpath=$lt_cv_aix_libpath_
9307 fi
9308
9309         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9310         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"
9311       else
9312         if test "$host_cpu" = ia64; then
9313           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9314           allow_undefined_flag="-z nodefs"
9315           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"
9316         else
9317          # Determine the default libpath from the value encoded in an
9318          # empty executable.
9319          if test "${lt_cv_aix_libpath+set}" = set; then
9320   aix_libpath=$lt_cv_aix_libpath
9321 else
9322   if ${lt_cv_aix_libpath_+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h.  */
9327
9328 int
9329 main ()
9330 {
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337
9338   lt_aix_libpath_sed='
9339       /Import File Strings/,/^$/ {
9340           /^0/ {
9341               s/^0  *\([^ ]*\) *$/\1/
9342               p
9343           }
9344       }'
9345   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346   # Check for a 64-bit object if we didn't find anything.
9347   if test -z "$lt_cv_aix_libpath_"; then
9348     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9349   fi
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352     conftest$ac_exeext conftest.$ac_ext
9353   if test -z "$lt_cv_aix_libpath_"; then
9354     lt_cv_aix_libpath_="/usr/lib:/lib"
9355   fi
9356
9357 fi
9358
9359   aix_libpath=$lt_cv_aix_libpath_
9360 fi
9361
9362          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9363           # Warning - without using the other run time loading flags,
9364           # -berok will link without error, but may produce a broken library.
9365           no_undefined_flag=' ${wl}-bernotok'
9366           allow_undefined_flag=' ${wl}-berok'
9367           if test "$with_gnu_ld" = yes; then
9368             # We only use this code for GNU lds that support --whole-archive.
9369             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9370           else
9371             # Exported symbols can be pulled into shared objects from archives
9372             whole_archive_flag_spec='$convenience'
9373           fi
9374           archive_cmds_need_lc=yes
9375           # This is similar to how AIX traditionally builds its shared libraries.
9376           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'
9377         fi
9378       fi
9379       ;;
9380
9381     amigaos*)
9382       case $host_cpu in
9383       powerpc)
9384             # see comment about AmigaOS4 .so support
9385             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386             archive_expsym_cmds=''
9387         ;;
9388       m68k)
9389             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)'
9390             hardcode_libdir_flag_spec='-L$libdir'
9391             hardcode_minus_L=yes
9392         ;;
9393       esac
9394       ;;
9395
9396     bsdi[45]*)
9397       export_dynamic_flag_spec=-rdynamic
9398       ;;
9399
9400     cygwin* | mingw* | pw32* | cegcc*)
9401       # When not using gcc, we currently assume that we are using
9402       # Microsoft Visual C++.
9403       # hardcode_libdir_flag_spec is actually meaningless, as there is
9404       # no search path for DLLs.
9405       case $cc_basename in
9406       cl*)
9407         # Native MSVC
9408         hardcode_libdir_flag_spec=' '
9409         allow_undefined_flag=unsupported
9410         always_export_symbols=yes
9411         file_list_spec='@'
9412         # Tell ltmain to make .lib files, not .a files.
9413         libext=lib
9414         # Tell ltmain to make .dll files, not .so files.
9415         shrext_cmds=".dll"
9416         # FIXME: Setting linknames here is a bad hack.
9417         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9418         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9419             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9420           else
9421             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9422           fi~
9423           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9424           linknames='
9425         # The linker will not automatically build a static lib if we build a DLL.
9426         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9427         enable_shared_with_static_runtimes=yes
9428         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9429         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9430         # Don't use ranlib
9431         old_postinstall_cmds='chmod 644 $oldlib'
9432         postlink_cmds='lt_outputfile="@OUTPUT@"~
9433           lt_tool_outputfile="@TOOL_OUTPUT@"~
9434           case $lt_outputfile in
9435             *.exe|*.EXE) ;;
9436             *)
9437               lt_outputfile="$lt_outputfile.exe"
9438               lt_tool_outputfile="$lt_tool_outputfile.exe"
9439               ;;
9440           esac~
9441           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9442             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9443             $RM "$lt_outputfile.manifest";
9444           fi'
9445         ;;
9446       *)
9447         # Assume MSVC wrapper
9448         hardcode_libdir_flag_spec=' '
9449         allow_undefined_flag=unsupported
9450         # Tell ltmain to make .lib files, not .a files.
9451         libext=lib
9452         # Tell ltmain to make .dll files, not .so files.
9453         shrext_cmds=".dll"
9454         # FIXME: Setting linknames here is a bad hack.
9455         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9456         # The linker will automatically build a .lib file if we build a DLL.
9457         old_archive_from_new_cmds='true'
9458         # FIXME: Should let the user specify the lib program.
9459         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9460         enable_shared_with_static_runtimes=yes
9461         ;;
9462       esac
9463       ;;
9464
9465     darwin* | rhapsody*)
9466
9467
9468   archive_cmds_need_lc=no
9469   hardcode_direct=no
9470   hardcode_automatic=yes
9471   hardcode_shlibpath_var=unsupported
9472   if test "$lt_cv_ld_force_load" = "yes"; then
9473     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\"`'
9474
9475   else
9476     whole_archive_flag_spec=''
9477   fi
9478   link_all_deplibs=yes
9479   allow_undefined_flag="$_lt_dar_allow_undefined"
9480   case $cc_basename in
9481      ifort*) _lt_dar_can_shared=yes ;;
9482      *) _lt_dar_can_shared=$GCC ;;
9483   esac
9484   if test "$_lt_dar_can_shared" = "yes"; then
9485     output_verbose_link_cmd=func_echo_all
9486     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9487     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9488     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}"
9489     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}"
9490
9491   else
9492   ld_shlibs=no
9493   fi
9494
9495       ;;
9496
9497     dgux*)
9498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499       hardcode_libdir_flag_spec='-L$libdir'
9500       hardcode_shlibpath_var=no
9501       ;;
9502
9503     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9504     # support.  Future versions do this automatically, but an explicit c++rt0.o
9505     # does not break anything, and helps significantly (at the cost of a little
9506     # extra space).
9507     freebsd2.2*)
9508       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9509       hardcode_libdir_flag_spec='-R$libdir'
9510       hardcode_direct=yes
9511       hardcode_shlibpath_var=no
9512       ;;
9513
9514     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9515     freebsd2.*)
9516       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9517       hardcode_direct=yes
9518       hardcode_minus_L=yes
9519       hardcode_shlibpath_var=no
9520       ;;
9521
9522     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9523     freebsd* | dragonfly*)
9524       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9525       hardcode_libdir_flag_spec='-R$libdir'
9526       hardcode_direct=yes
9527       hardcode_shlibpath_var=no
9528       ;;
9529
9530     hpux9*)
9531       if test "$GCC" = yes; then
9532         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'
9533       else
9534         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'
9535       fi
9536       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537       hardcode_libdir_separator=:
9538       hardcode_direct=yes
9539
9540       # hardcode_minus_L: Not really in the search PATH,
9541       # but as the default location of the library.
9542       hardcode_minus_L=yes
9543       export_dynamic_flag_spec='${wl}-E'
9544       ;;
9545
9546     hpux10*)
9547       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9548         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9549       else
9550         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9551       fi
9552       if test "$with_gnu_ld" = no; then
9553         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9554         hardcode_libdir_separator=:
9555         hardcode_direct=yes
9556         hardcode_direct_absolute=yes
9557         export_dynamic_flag_spec='${wl}-E'
9558         # hardcode_minus_L: Not really in the search PATH,
9559         # but as the default location of the library.
9560         hardcode_minus_L=yes
9561       fi
9562       ;;
9563
9564     hpux11*)
9565       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9566         case $host_cpu in
9567         hppa*64*)
9568           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569           ;;
9570         ia64*)
9571           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9572           ;;
9573         *)
9574           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9575           ;;
9576         esac
9577       else
9578         case $host_cpu in
9579         hppa*64*)
9580           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9581           ;;
9582         ia64*)
9583           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9584           ;;
9585         *)
9586
9587           # Older versions of the 11.00 compiler do not understand -b yet
9588           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9589           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9590 $as_echo_n "checking if $CC understands -b... " >&6; }
9591 if ${lt_cv_prog_compiler__b+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   lt_cv_prog_compiler__b=no
9595    save_LDFLAGS="$LDFLAGS"
9596    LDFLAGS="$LDFLAGS -b"
9597    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9598    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9599      # The linker can only warn and ignore the option if not recognized
9600      # So say no if there are warnings
9601      if test -s conftest.err; then
9602        # Append any errors to the config.log.
9603        cat conftest.err 1>&5
9604        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9605        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9606        if diff conftest.exp conftest.er2 >/dev/null; then
9607          lt_cv_prog_compiler__b=yes
9608        fi
9609      else
9610        lt_cv_prog_compiler__b=yes
9611      fi
9612    fi
9613    $RM -r conftest*
9614    LDFLAGS="$save_LDFLAGS"
9615
9616 fi
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9618 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9619
9620 if test x"$lt_cv_prog_compiler__b" = xyes; then
9621     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9622 else
9623     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9624 fi
9625
9626           ;;
9627         esac
9628       fi
9629       if test "$with_gnu_ld" = no; then
9630         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9631         hardcode_libdir_separator=:
9632
9633         case $host_cpu in
9634         hppa*64*|ia64*)
9635           hardcode_direct=no
9636           hardcode_shlibpath_var=no
9637           ;;
9638         *)
9639           hardcode_direct=yes
9640           hardcode_direct_absolute=yes
9641           export_dynamic_flag_spec='${wl}-E'
9642
9643           # hardcode_minus_L: Not really in the search PATH,
9644           # but as the default location of the library.
9645           hardcode_minus_L=yes
9646           ;;
9647         esac
9648       fi
9649       ;;
9650
9651     irix5* | irix6* | nonstopux*)
9652       if test "$GCC" = yes; then
9653         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'
9654         # Try to use the -exported_symbol ld option, if it does not
9655         # work, assume that -exports_file does not work either and
9656         # implicitly export all symbols.
9657         # This should be the same for all languages, so no per-tag cache variable.
9658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9659 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9660 if ${lt_cv_irix_exported_symbol+:} false; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   save_LDFLAGS="$LDFLAGS"
9664            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9665            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h.  */
9667 int foo (void) { return 0; }
9668 _ACEOF
9669 if ac_fn_c_try_link "$LINENO"; then :
9670   lt_cv_irix_exported_symbol=yes
9671 else
9672   lt_cv_irix_exported_symbol=no
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext \
9675     conftest$ac_exeext conftest.$ac_ext
9676            LDFLAGS="$save_LDFLAGS"
9677 fi
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9679 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9680         if test "$lt_cv_irix_exported_symbol" = yes; then
9681           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'
9682         fi
9683       else
9684         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'
9685         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'
9686       fi
9687       archive_cmds_need_lc='no'
9688       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689       hardcode_libdir_separator=:
9690       inherit_rpath=yes
9691       link_all_deplibs=yes
9692       ;;
9693
9694     netbsd* | netbsdelf*-gnu)
9695       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9696         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9697       else
9698         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9699       fi
9700       hardcode_libdir_flag_spec='-R$libdir'
9701       hardcode_direct=yes
9702       hardcode_shlibpath_var=no
9703       ;;
9704
9705     newsos6)
9706       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707       hardcode_direct=yes
9708       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709       hardcode_libdir_separator=:
9710       hardcode_shlibpath_var=no
9711       ;;
9712
9713     *nto* | *qnx*)
9714       ;;
9715
9716     openbsd*)
9717       if test -f /usr/libexec/ld.so; then
9718         hardcode_direct=yes
9719         hardcode_shlibpath_var=no
9720         hardcode_direct_absolute=yes
9721         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9722           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9723           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9724           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9725           export_dynamic_flag_spec='${wl}-E'
9726         else
9727           case $host_os in
9728            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9729              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9730              hardcode_libdir_flag_spec='-R$libdir'
9731              ;;
9732            *)
9733              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9734              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9735              ;;
9736           esac
9737         fi
9738       else
9739         ld_shlibs=no
9740       fi
9741       ;;
9742
9743     os2*)
9744       hardcode_libdir_flag_spec='-L$libdir'
9745       hardcode_minus_L=yes
9746       allow_undefined_flag=unsupported
9747       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'
9748       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9749       ;;
9750
9751     osf3*)
9752       if test "$GCC" = yes; then
9753         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9754         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'
9755       else
9756         allow_undefined_flag=' -expect_unresolved \*'
9757         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'
9758       fi
9759       archive_cmds_need_lc='no'
9760       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761       hardcode_libdir_separator=:
9762       ;;
9763
9764     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9765       if test "$GCC" = yes; then
9766         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9767         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'
9768         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9769       else
9770         allow_undefined_flag=' -expect_unresolved \*'
9771         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'
9772         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~
9773         $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'
9774
9775         # Both c and cxx compiler support -rpath directly
9776         hardcode_libdir_flag_spec='-rpath $libdir'
9777       fi
9778       archive_cmds_need_lc='no'
9779       hardcode_libdir_separator=:
9780       ;;
9781
9782     solaris*)
9783       no_undefined_flag=' -z defs'
9784       if test "$GCC" = yes; then
9785         wlarc='${wl}'
9786         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9788           $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'
9789       else
9790         case `$CC -V 2>&1` in
9791         *"Compilers 5.0"*)
9792           wlarc=''
9793           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9795           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9796           ;;
9797         *)
9798           wlarc='${wl}'
9799           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9800           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9801           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9802           ;;
9803         esac
9804       fi
9805       hardcode_libdir_flag_spec='-R$libdir'
9806       hardcode_shlibpath_var=no
9807       case $host_os in
9808       solaris2.[0-5] | solaris2.[0-5].*) ;;
9809       *)
9810         # The compiler driver will combine and reorder linker options,
9811         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9812         # but is careful enough not to reorder.
9813         # Supported since Solaris 2.6 (maybe 2.5.1?)
9814         if test "$GCC" = yes; then
9815           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9816         else
9817           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9818         fi
9819         ;;
9820       esac
9821       link_all_deplibs=yes
9822       ;;
9823
9824     sunos4*)
9825       if test "x$host_vendor" = xsequent; then
9826         # Use $CC to link under sequent, because it throws in some extra .o
9827         # files that make .init and .fini sections work.
9828         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9829       else
9830         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9831       fi
9832       hardcode_libdir_flag_spec='-L$libdir'
9833       hardcode_direct=yes
9834       hardcode_minus_L=yes
9835       hardcode_shlibpath_var=no
9836       ;;
9837
9838     sysv4)
9839       case $host_vendor in
9840         sni)
9841           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842           hardcode_direct=yes # is this really true???
9843         ;;
9844         siemens)
9845           ## LD is ld it makes a PLAMLIB
9846           ## CC just makes a GrossModule.
9847           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9848           reload_cmds='$CC -r -o $output$reload_objs'
9849           hardcode_direct=no
9850         ;;
9851         motorola)
9852           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9854         ;;
9855       esac
9856       runpath_var='LD_RUN_PATH'
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     sysv4.3*)
9861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862       hardcode_shlibpath_var=no
9863       export_dynamic_flag_spec='-Bexport'
9864       ;;
9865
9866     sysv4*MP*)
9867       if test -d /usr/nec; then
9868         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869         hardcode_shlibpath_var=no
9870         runpath_var=LD_RUN_PATH
9871         hardcode_runpath_var=yes
9872         ld_shlibs=yes
9873       fi
9874       ;;
9875
9876     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9877       no_undefined_flag='${wl}-z,text'
9878       archive_cmds_need_lc=no
9879       hardcode_shlibpath_var=no
9880       runpath_var='LD_RUN_PATH'
9881
9882       if test "$GCC" = yes; then
9883         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885       else
9886         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888       fi
9889       ;;
9890
9891     sysv5* | sco3.2v5* | sco5v6*)
9892       # Note: We can NOT use -z defs as we might desire, because we do not
9893       # link with -lc, and that would cause any symbols used from libc to
9894       # always be unresolved, which means just about no library would
9895       # ever link correctly.  If we're not using GNU ld we use -z text
9896       # though, which does catch some bad symbols but isn't as heavy-handed
9897       # as -z defs.
9898       no_undefined_flag='${wl}-z,text'
9899       allow_undefined_flag='${wl}-z,nodefs'
9900       archive_cmds_need_lc=no
9901       hardcode_shlibpath_var=no
9902       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9903       hardcode_libdir_separator=':'
9904       link_all_deplibs=yes
9905       export_dynamic_flag_spec='${wl}-Bexport'
9906       runpath_var='LD_RUN_PATH'
9907
9908       if test "$GCC" = yes; then
9909         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9911       else
9912         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9914       fi
9915       ;;
9916
9917     uts4*)
9918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919       hardcode_libdir_flag_spec='-L$libdir'
9920       hardcode_shlibpath_var=no
9921       ;;
9922
9923     *)
9924       ld_shlibs=no
9925       ;;
9926     esac
9927
9928     if test x$host_vendor = xsni; then
9929       case $host in
9930       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9931         export_dynamic_flag_spec='${wl}-Blargedynsym'
9932         ;;
9933       esac
9934     fi
9935   fi
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9938 $as_echo "$ld_shlibs" >&6; }
9939 test "$ld_shlibs" = no && can_build_shared=no
9940
9941 with_gnu_ld=$with_gnu_ld
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957 #
9958 # Do we need to explicitly link libc?
9959 #
9960 case "x$archive_cmds_need_lc" in
9961 x|xyes)
9962   # Assume -lc should be added
9963   archive_cmds_need_lc=yes
9964
9965   if test "$enable_shared" = yes && test "$GCC" = yes; then
9966     case $archive_cmds in
9967     *'~'*)
9968       # FIXME: we may have to deal with multi-command sequences.
9969       ;;
9970     '$CC '*)
9971       # Test whether the compiler implicitly links with -lc since on some
9972       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9973       # to ld, don't add -lc before -lgcc.
9974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9975 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9976 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9977   $as_echo_n "(cached) " >&6
9978 else
9979   $RM conftest*
9980         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9981
9982         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9983   (eval $ac_compile) 2>&5
9984   ac_status=$?
9985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9986   test $ac_status = 0; } 2>conftest.err; then
9987           soname=conftest
9988           lib=conftest
9989           libobjs=conftest.$ac_objext
9990           deplibs=
9991           wl=$lt_prog_compiler_wl
9992           pic_flag=$lt_prog_compiler_pic
9993           compiler_flags=-v
9994           linker_flags=-v
9995           verstring=
9996           output_objdir=.
9997           libname=conftest
9998           lt_save_allow_undefined_flag=$allow_undefined_flag
9999           allow_undefined_flag=
10000           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10001   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10002   ac_status=$?
10003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10004   test $ac_status = 0; }
10005           then
10006             lt_cv_archive_cmds_need_lc=no
10007           else
10008             lt_cv_archive_cmds_need_lc=yes
10009           fi
10010           allow_undefined_flag=$lt_save_allow_undefined_flag
10011         else
10012           cat conftest.err 1>&5
10013         fi
10014         $RM conftest*
10015
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10018 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10019       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10020       ;;
10021     esac
10022   fi
10023   ;;
10024 esac
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10178 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10179
10180 if test "$GCC" = yes; then
10181   case $host_os in
10182     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10183     *) lt_awk_arg="/^libraries:/" ;;
10184   esac
10185   case $host_os in
10186     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10187     *) lt_sed_strip_eq="s,=/,/,g" ;;
10188   esac
10189   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10190   case $lt_search_path_spec in
10191   *\;*)
10192     # if the path contains ";" then we assume it to be the separator
10193     # otherwise default to the standard path separator (i.e. ":") - it is
10194     # assumed that no part of a normal pathname contains ";" but that should
10195     # okay in the real world where ";" in dirpaths is itself problematic.
10196     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10197     ;;
10198   *)
10199     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10200     ;;
10201   esac
10202   # Ok, now we have the path, separated by spaces, we can step through it
10203   # and add multilib dir if necessary.
10204   lt_tmp_lt_search_path_spec=
10205   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10206   for lt_sys_path in $lt_search_path_spec; do
10207     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10208       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10209     else
10210       test -d "$lt_sys_path" && \
10211         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10212     fi
10213   done
10214   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10215 BEGIN {RS=" "; FS="/|\n";} {
10216   lt_foo="";
10217   lt_count=0;
10218   for (lt_i = NF; lt_i > 0; lt_i--) {
10219     if ($lt_i != "" && $lt_i != ".") {
10220       if ($lt_i == "..") {
10221         lt_count++;
10222       } else {
10223         if (lt_count == 0) {
10224           lt_foo="/" $lt_i lt_foo;
10225         } else {
10226           lt_count--;
10227         }
10228       }
10229     }
10230   }
10231   if (lt_foo != "") { lt_freq[lt_foo]++; }
10232   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10233 }'`
10234   # AWK program above erroneously prepends '/' to C:/dos/paths
10235   # for these hosts.
10236   case $host_os in
10237     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10238       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10239   esac
10240   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10241 else
10242   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10243 fi
10244 library_names_spec=
10245 libname_spec='lib$name'
10246 soname_spec=
10247 shrext_cmds=".so"
10248 postinstall_cmds=
10249 postuninstall_cmds=
10250 finish_cmds=
10251 finish_eval=
10252 shlibpath_var=
10253 shlibpath_overrides_runpath=unknown
10254 version_type=none
10255 dynamic_linker="$host_os ld.so"
10256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10257 need_lib_prefix=unknown
10258 hardcode_into_libs=no
10259
10260 # when you set need_version to no, make sure it does not cause -set_version
10261 # flags to be left without arguments
10262 need_version=unknown
10263
10264 case $host_os in
10265 aix3*)
10266   version_type=linux # correct to gnu/linux during the next big refactor
10267   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10268   shlibpath_var=LIBPATH
10269
10270   # AIX 3 has no versioning support, so we append a major version to the name.
10271   soname_spec='${libname}${release}${shared_ext}$major'
10272   ;;
10273
10274 aix[4-9]*)
10275   version_type=linux # correct to gnu/linux during the next big refactor
10276   need_lib_prefix=no
10277   need_version=no
10278   hardcode_into_libs=yes
10279   if test "$host_cpu" = ia64; then
10280     # AIX 5 supports IA64
10281     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10282     shlibpath_var=LD_LIBRARY_PATH
10283   else
10284     # With GCC up to 2.95.x, collect2 would create an import file
10285     # for dependence libraries.  The import file would start with
10286     # the line `#! .'.  This would cause the generated library to
10287     # depend on `.', always an invalid library.  This was fixed in
10288     # development snapshots of GCC prior to 3.0.
10289     case $host_os in
10290       aix4 | aix4.[01] | aix4.[01].*)
10291       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10292            echo ' yes '
10293            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10294         :
10295       else
10296         can_build_shared=no
10297       fi
10298       ;;
10299     esac
10300     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10301     # soname into executable. Probably we can add versioning support to
10302     # collect2, so additional links can be useful in future.
10303     if test "$aix_use_runtimelinking" = yes; then
10304       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10305       # instead of lib<name>.a to let people know that these are not
10306       # typical AIX shared libraries.
10307       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308     else
10309       # We preserve .a as extension for shared libraries through AIX4.2
10310       # and later when we are not doing run time linking.
10311       library_names_spec='${libname}${release}.a $libname.a'
10312       soname_spec='${libname}${release}${shared_ext}$major'
10313     fi
10314     shlibpath_var=LIBPATH
10315   fi
10316   ;;
10317
10318 amigaos*)
10319   case $host_cpu in
10320   powerpc)
10321     # Since July 2007 AmigaOS4 officially supports .so libraries.
10322     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324     ;;
10325   m68k)
10326     library_names_spec='$libname.ixlibrary $libname.a'
10327     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10328     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'
10329     ;;
10330   esac
10331   ;;
10332
10333 beos*)
10334   library_names_spec='${libname}${shared_ext}'
10335   dynamic_linker="$host_os ld.so"
10336   shlibpath_var=LIBRARY_PATH
10337   ;;
10338
10339 bsdi[45]*)
10340   version_type=linux # correct to gnu/linux during the next big refactor
10341   need_version=no
10342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343   soname_spec='${libname}${release}${shared_ext}$major'
10344   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10345   shlibpath_var=LD_LIBRARY_PATH
10346   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10347   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10348   # the default ld.so.conf also contains /usr/contrib/lib and
10349   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10350   # libtool to hard-code these into programs
10351   ;;
10352
10353 cygwin* | mingw* | pw32* | cegcc*)
10354   version_type=windows
10355   shrext_cmds=".dll"
10356   need_version=no
10357   need_lib_prefix=no
10358
10359   case $GCC,$cc_basename in
10360   yes,*)
10361     # gcc
10362     library_names_spec='$libname.dll.a'
10363     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10364     postinstall_cmds='base_file=`basename \${file}`~
10365       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10366       dldir=$destdir/`dirname \$dlpath`~
10367       test -d \$dldir || mkdir -p \$dldir~
10368       $install_prog $dir/$dlname \$dldir/$dlname~
10369       chmod a+x \$dldir/$dlname~
10370       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10371         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10372       fi'
10373     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10374       dlpath=$dir/\$dldll~
10375        $RM \$dlpath'
10376     shlibpath_overrides_runpath=yes
10377
10378     case $host_os in
10379     cygwin*)
10380       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10381       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10382
10383       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10384       ;;
10385     mingw* | cegcc*)
10386       # MinGW DLLs use traditional 'lib' prefix
10387       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10388       ;;
10389     pw32*)
10390       # pw32 DLLs use 'pw' prefix rather than 'lib'
10391       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10392       ;;
10393     esac
10394     dynamic_linker='Win32 ld.exe'
10395     ;;
10396
10397   *,cl*)
10398     # Native MSVC
10399     libname_spec='$name'
10400     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10401     library_names_spec='${libname}.dll.lib'
10402
10403     case $build_os in
10404     mingw*)
10405       sys_lib_search_path_spec=
10406       lt_save_ifs=$IFS
10407       IFS=';'
10408       for lt_path in $LIB
10409       do
10410         IFS=$lt_save_ifs
10411         # Let DOS variable expansion print the short 8.3 style file name.
10412         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10413         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10414       done
10415       IFS=$lt_save_ifs
10416       # Convert to MSYS style.
10417       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10418       ;;
10419     cygwin*)
10420       # Convert to unix form, then to dos form, then back to unix form
10421       # but this time dos style (no spaces!) so that the unix form looks
10422       # like /cygdrive/c/PROGRA~1:/cygdr...
10423       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10424       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10425       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10426       ;;
10427     *)
10428       sys_lib_search_path_spec="$LIB"
10429       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10430         # It is most probably a Windows format PATH.
10431         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10432       else
10433         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10434       fi
10435       # FIXME: find the short name or the path components, as spaces are
10436       # common. (e.g. "Program Files" -> "PROGRA~1")
10437       ;;
10438     esac
10439
10440     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10441     postinstall_cmds='base_file=`basename \${file}`~
10442       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10443       dldir=$destdir/`dirname \$dlpath`~
10444       test -d \$dldir || mkdir -p \$dldir~
10445       $install_prog $dir/$dlname \$dldir/$dlname'
10446     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10447       dlpath=$dir/\$dldll~
10448        $RM \$dlpath'
10449     shlibpath_overrides_runpath=yes
10450     dynamic_linker='Win32 link.exe'
10451     ;;
10452
10453   *)
10454     # Assume MSVC wrapper
10455     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10456     dynamic_linker='Win32 ld.exe'
10457     ;;
10458   esac
10459   # FIXME: first we should search . and the directory the executable is in
10460   shlibpath_var=PATH
10461   ;;
10462
10463 darwin* | rhapsody*)
10464   dynamic_linker="$host_os dyld"
10465   version_type=darwin
10466   need_lib_prefix=no
10467   need_version=no
10468   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10469   soname_spec='${libname}${release}${major}$shared_ext'
10470   shlibpath_overrides_runpath=yes
10471   shlibpath_var=DYLD_LIBRARY_PATH
10472   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10473
10474   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10475   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10476   ;;
10477
10478 dgux*)
10479   version_type=linux # correct to gnu/linux during the next big refactor
10480   need_lib_prefix=no
10481   need_version=no
10482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10483   soname_spec='${libname}${release}${shared_ext}$major'
10484   shlibpath_var=LD_LIBRARY_PATH
10485   ;;
10486
10487 freebsd* | dragonfly*)
10488   # DragonFly does not have aout.  When/if they implement a new
10489   # versioning mechanism, adjust this.
10490   if test -x /usr/bin/objformat; then
10491     objformat=`/usr/bin/objformat`
10492   else
10493     case $host_os in
10494     freebsd[23].*) objformat=aout ;;
10495     *) objformat=elf ;;
10496     esac
10497   fi
10498   version_type=freebsd-$objformat
10499   case $version_type in
10500     freebsd-elf*)
10501       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10502       need_version=no
10503       need_lib_prefix=no
10504       ;;
10505     freebsd-*)
10506       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10507       need_version=yes
10508       ;;
10509   esac
10510   shlibpath_var=LD_LIBRARY_PATH
10511   case $host_os in
10512   freebsd2.*)
10513     shlibpath_overrides_runpath=yes
10514     ;;
10515   freebsd3.[01]* | freebsdelf3.[01]*)
10516     shlibpath_overrides_runpath=yes
10517     hardcode_into_libs=yes
10518     ;;
10519   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10520   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10521     shlibpath_overrides_runpath=no
10522     hardcode_into_libs=yes
10523     ;;
10524   *) # from 4.6 on, and DragonFly
10525     shlibpath_overrides_runpath=yes
10526     hardcode_into_libs=yes
10527     ;;
10528   esac
10529   ;;
10530
10531 haiku*)
10532   version_type=linux # correct to gnu/linux during the next big refactor
10533   need_lib_prefix=no
10534   need_version=no
10535   dynamic_linker="$host_os runtime_loader"
10536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10537   soname_spec='${libname}${release}${shared_ext}$major'
10538   shlibpath_var=LIBRARY_PATH
10539   shlibpath_overrides_runpath=yes
10540   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10541   hardcode_into_libs=yes
10542   ;;
10543
10544 hpux9* | hpux10* | hpux11*)
10545   # Give a soname corresponding to the major version so that dld.sl refuses to
10546   # link against other versions.
10547   version_type=sunos
10548   need_lib_prefix=no
10549   need_version=no
10550   case $host_cpu in
10551   ia64*)
10552     shrext_cmds='.so'
10553     hardcode_into_libs=yes
10554     dynamic_linker="$host_os dld.so"
10555     shlibpath_var=LD_LIBRARY_PATH
10556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558     soname_spec='${libname}${release}${shared_ext}$major'
10559     if test "X$HPUX_IA64_MODE" = X32; then
10560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10561     else
10562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10563     fi
10564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10565     ;;
10566   hppa*64*)
10567     shrext_cmds='.sl'
10568     hardcode_into_libs=yes
10569     dynamic_linker="$host_os dld.sl"
10570     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573     soname_spec='${libname}${release}${shared_ext}$major'
10574     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10575     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10576     ;;
10577   *)
10578     shrext_cmds='.sl'
10579     dynamic_linker="$host_os dld.sl"
10580     shlibpath_var=SHLIB_PATH
10581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583     soname_spec='${libname}${release}${shared_ext}$major'
10584     ;;
10585   esac
10586   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10587   postinstall_cmds='chmod 555 $lib'
10588   # or fails outright, so override atomically:
10589   install_override_mode=555
10590   ;;
10591
10592 interix[3-9]*)
10593   version_type=linux # correct to gnu/linux during the next big refactor
10594   need_lib_prefix=no
10595   need_version=no
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=no
10601   hardcode_into_libs=yes
10602   ;;
10603
10604 irix5* | irix6* | nonstopux*)
10605   case $host_os in
10606     nonstopux*) version_type=nonstopux ;;
10607     *)
10608         if test "$lt_cv_prog_gnu_ld" = yes; then
10609                 version_type=linux # correct to gnu/linux during the next big refactor
10610         else
10611                 version_type=irix
10612         fi ;;
10613   esac
10614   need_lib_prefix=no
10615   need_version=no
10616   soname_spec='${libname}${release}${shared_ext}$major'
10617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10618   case $host_os in
10619   irix5* | nonstopux*)
10620     libsuff= shlibsuff=
10621     ;;
10622   *)
10623     case $LD in # libtool.m4 will add one of these switches to LD
10624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10625       libsuff= shlibsuff= libmagic=32-bit;;
10626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10627       libsuff=32 shlibsuff=N32 libmagic=N32;;
10628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10630     *) libsuff= shlibsuff= libmagic=never-match;;
10631     esac
10632     ;;
10633   esac
10634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10635   shlibpath_overrides_runpath=no
10636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10638   hardcode_into_libs=yes
10639   ;;
10640
10641 # No shared lib support for Linux oldld, aout, or coff.
10642 linux*oldld* | linux*aout* | linux*coff*)
10643   dynamic_linker=no
10644   ;;
10645
10646 # This must be glibc/ELF.
10647 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10648   version_type=linux # correct to gnu/linux during the next big refactor
10649   need_lib_prefix=no
10650   need_version=no
10651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652   soname_spec='${libname}${release}${shared_ext}$major'
10653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10654   shlibpath_var=LD_LIBRARY_PATH
10655   shlibpath_overrides_runpath=no
10656
10657   # Some binutils ld are patched to set DT_RUNPATH
10658   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10659   $as_echo_n "(cached) " >&6
10660 else
10661   lt_cv_shlibpath_overrides_runpath=no
10662     save_LDFLAGS=$LDFLAGS
10663     save_libdir=$libdir
10664     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10665          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h.  */
10668
10669 int
10670 main ()
10671 {
10672
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"; then :
10678   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10679   lt_cv_shlibpath_overrides_runpath=yes
10680 fi
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683     conftest$ac_exeext conftest.$ac_ext
10684     LDFLAGS=$save_LDFLAGS
10685     libdir=$save_libdir
10686
10687 fi
10688
10689   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10690
10691   # This implies no fast_install, which is unacceptable.
10692   # Some rework will be needed to allow for fast_install
10693   # before this can be enabled.
10694   hardcode_into_libs=yes
10695
10696   # Append ld.so.conf contents to the search path
10697   if test -f /etc/ld.so.conf; then
10698     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' ' '`
10699     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10700   fi
10701
10702   # We used to test for /lib/ld.so.1 and disable shared libraries on
10703   # powerpc, because MkLinux only supported shared libraries with the
10704   # GNU dynamic linker.  Since this was broken with cross compilers,
10705   # most powerpc-linux boxes support dynamic linking these days and
10706   # people can always --disable-shared, the test was removed, and we
10707   # assume the GNU/Linux dynamic linker is in use.
10708   dynamic_linker='GNU/Linux ld.so'
10709   ;;
10710
10711 netbsdelf*-gnu)
10712   version_type=linux
10713   need_lib_prefix=no
10714   need_version=no
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   shlibpath_var=LD_LIBRARY_PATH
10718   shlibpath_overrides_runpath=no
10719   hardcode_into_libs=yes
10720   dynamic_linker='NetBSD ld.elf_so'
10721   ;;
10722
10723 netbsd*)
10724   version_type=sunos
10725   need_lib_prefix=no
10726   need_version=no
10727   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10729     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10730     dynamic_linker='NetBSD (a.out) ld.so'
10731   else
10732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10733     soname_spec='${libname}${release}${shared_ext}$major'
10734     dynamic_linker='NetBSD ld.elf_so'
10735   fi
10736   shlibpath_var=LD_LIBRARY_PATH
10737   shlibpath_overrides_runpath=yes
10738   hardcode_into_libs=yes
10739   ;;
10740
10741 newsos6)
10742   version_type=linux # correct to gnu/linux during the next big refactor
10743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744   shlibpath_var=LD_LIBRARY_PATH
10745   shlibpath_overrides_runpath=yes
10746   ;;
10747
10748 *nto* | *qnx*)
10749   version_type=qnx
10750   need_lib_prefix=no
10751   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
10755   shlibpath_overrides_runpath=no
10756   hardcode_into_libs=yes
10757   dynamic_linker='ldqnx.so'
10758   ;;
10759
10760 openbsd*)
10761   version_type=sunos
10762   sys_lib_dlsearch_path_spec="/usr/lib"
10763   need_lib_prefix=no
10764   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10765   case $host_os in
10766     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10767     *)                          need_version=no  ;;
10768   esac
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10770   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10771   shlibpath_var=LD_LIBRARY_PATH
10772   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10773     case $host_os in
10774       openbsd2.[89] | openbsd2.[89].*)
10775         shlibpath_overrides_runpath=no
10776         ;;
10777       *)
10778         shlibpath_overrides_runpath=yes
10779         ;;
10780       esac
10781   else
10782     shlibpath_overrides_runpath=yes
10783   fi
10784   ;;
10785
10786 os2*)
10787   libname_spec='$name'
10788   shrext_cmds=".dll"
10789   need_lib_prefix=no
10790   library_names_spec='$libname${shared_ext} $libname.a'
10791   dynamic_linker='OS/2 ld.exe'
10792   shlibpath_var=LIBPATH
10793   ;;
10794
10795 osf3* | osf4* | osf5*)
10796   version_type=osf
10797   need_lib_prefix=no
10798   need_version=no
10799   soname_spec='${libname}${release}${shared_ext}$major'
10800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801   shlibpath_var=LD_LIBRARY_PATH
10802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10803   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10804   ;;
10805
10806 rdos*)
10807   dynamic_linker=no
10808   ;;
10809
10810 solaris*)
10811   version_type=linux # correct to gnu/linux during the next big refactor
10812   need_lib_prefix=no
10813   need_version=no
10814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815   soname_spec='${libname}${release}${shared_ext}$major'
10816   shlibpath_var=LD_LIBRARY_PATH
10817   shlibpath_overrides_runpath=yes
10818   hardcode_into_libs=yes
10819   # ldd complains unless libraries are executable
10820   postinstall_cmds='chmod +x $lib'
10821   ;;
10822
10823 sunos4*)
10824   version_type=sunos
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10827   shlibpath_var=LD_LIBRARY_PATH
10828   shlibpath_overrides_runpath=yes
10829   if test "$with_gnu_ld" = yes; then
10830     need_lib_prefix=no
10831   fi
10832   need_version=yes
10833   ;;
10834
10835 sysv4 | sysv4.3*)
10836   version_type=linux # correct to gnu/linux during the next big refactor
10837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838   soname_spec='${libname}${release}${shared_ext}$major'
10839   shlibpath_var=LD_LIBRARY_PATH
10840   case $host_vendor in
10841     sni)
10842       shlibpath_overrides_runpath=no
10843       need_lib_prefix=no
10844       runpath_var=LD_RUN_PATH
10845       ;;
10846     siemens)
10847       need_lib_prefix=no
10848       ;;
10849     motorola)
10850       need_lib_prefix=no
10851       need_version=no
10852       shlibpath_overrides_runpath=no
10853       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10854       ;;
10855   esac
10856   ;;
10857
10858 sysv4*MP*)
10859   if test -d /usr/nec ;then
10860     version_type=linux # correct to gnu/linux during the next big refactor
10861     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10862     soname_spec='$libname${shared_ext}.$major'
10863     shlibpath_var=LD_LIBRARY_PATH
10864   fi
10865   ;;
10866
10867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10868   version_type=freebsd-elf
10869   need_lib_prefix=no
10870   need_version=no
10871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10872   soname_spec='${libname}${release}${shared_ext}$major'
10873   shlibpath_var=LD_LIBRARY_PATH
10874   shlibpath_overrides_runpath=yes
10875   hardcode_into_libs=yes
10876   if test "$with_gnu_ld" = yes; then
10877     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10878   else
10879     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10880     case $host_os in
10881       sco3.2v5*)
10882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10883         ;;
10884     esac
10885   fi
10886   sys_lib_dlsearch_path_spec='/usr/lib'
10887   ;;
10888
10889 tpf*)
10890   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10891   version_type=linux # correct to gnu/linux during the next big refactor
10892   need_lib_prefix=no
10893   need_version=no
10894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895   shlibpath_var=LD_LIBRARY_PATH
10896   shlibpath_overrides_runpath=no
10897   hardcode_into_libs=yes
10898   ;;
10899
10900 uts4*)
10901   version_type=linux # correct to gnu/linux during the next big refactor
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   shlibpath_var=LD_LIBRARY_PATH
10905   ;;
10906
10907 *)
10908   dynamic_linker=no
10909   ;;
10910 esac
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10912 $as_echo "$dynamic_linker" >&6; }
10913 test "$dynamic_linker" = no && can_build_shared=no
10914
10915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10916 if test "$GCC" = yes; then
10917   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10918 fi
10919
10920 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10921   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10922 fi
10923 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10924   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10925 fi
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11020 hardcode_action=
11021 if test -n "$hardcode_libdir_flag_spec" ||
11022    test -n "$runpath_var" ||
11023    test "X$hardcode_automatic" = "Xyes" ; then
11024
11025   # We can hardcode non-existent directories.
11026   if test "$hardcode_direct" != no &&
11027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11028      # have to relink, otherwise we might link with an installed library
11029      # when we should be linking with a yet-to-be-installed one
11030      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11031      test "$hardcode_minus_L" != no; then
11032     # Linking always hardcodes the temporary library directory.
11033     hardcode_action=relink
11034   else
11035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11036     hardcode_action=immediate
11037   fi
11038 else
11039   # We cannot hardcode anything, or else we can only hardcode existing
11040   # directories.
11041   hardcode_action=unsupported
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11044 $as_echo "$hardcode_action" >&6; }
11045
11046 if test "$hardcode_action" = relink ||
11047    test "$inherit_rpath" = yes; then
11048   # Fast installation is not supported
11049   enable_fast_install=no
11050 elif test "$shlibpath_overrides_runpath" = yes ||
11051      test "$enable_shared" = no; then
11052   # Fast installation is not necessary
11053   enable_fast_install=needless
11054 fi
11055
11056
11057
11058
11059
11060
11061   if test "x$enable_dlopen" != xyes; then
11062   enable_dlopen=unknown
11063   enable_dlopen_self=unknown
11064   enable_dlopen_self_static=unknown
11065 else
11066   lt_cv_dlopen=no
11067   lt_cv_dlopen_libs=
11068
11069   case $host_os in
11070   beos*)
11071     lt_cv_dlopen="load_add_on"
11072     lt_cv_dlopen_libs=
11073     lt_cv_dlopen_self=yes
11074     ;;
11075
11076   mingw* | pw32* | cegcc*)
11077     lt_cv_dlopen="LoadLibrary"
11078     lt_cv_dlopen_libs=
11079     ;;
11080
11081   cygwin*)
11082     lt_cv_dlopen="dlopen"
11083     lt_cv_dlopen_libs=
11084     ;;
11085
11086   darwin*)
11087   # if libdl is installed we need to link against it
11088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11089 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11090 if ${ac_cv_lib_dl_dlopen+:} false; then :
11091   $as_echo_n "(cached) " >&6
11092 else
11093   ac_check_lib_save_LIBS=$LIBS
11094 LIBS="-ldl  $LIBS"
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h.  */
11097
11098 /* Override any GCC internal prototype to avoid an error.
11099    Use char because int might match the return type of a GCC
11100    builtin and then its argument prototype would still apply.  */
11101 #ifdef __cplusplus
11102 extern "C"
11103 #endif
11104 char dlopen ();
11105 int
11106 main ()
11107 {
11108 return dlopen ();
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 if ac_fn_c_try_link "$LINENO"; then :
11114   ac_cv_lib_dl_dlopen=yes
11115 else
11116   ac_cv_lib_dl_dlopen=no
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext \
11119     conftest$ac_exeext conftest.$ac_ext
11120 LIBS=$ac_check_lib_save_LIBS
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11123 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11124 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11126 else
11127
11128     lt_cv_dlopen="dyld"
11129     lt_cv_dlopen_libs=
11130     lt_cv_dlopen_self=yes
11131
11132 fi
11133
11134     ;;
11135
11136   *)
11137     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11138 if test "x$ac_cv_func_shl_load" = xyes; then :
11139   lt_cv_dlopen="shl_load"
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11142 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11143 if ${ac_cv_lib_dld_shl_load+:} false; then :
11144   $as_echo_n "(cached) " >&6
11145 else
11146   ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-ldld  $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152    Use char because int might match the return type of a GCC
11153    builtin and then its argument prototype would still apply.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char shl_load ();
11158 int
11159 main ()
11160 {
11161 return shl_load ();
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167   ac_cv_lib_dld_shl_load=yes
11168 else
11169   ac_cv_lib_dld_shl_load=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172     conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11176 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11177 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11178   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11179 else
11180   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11181 if test "x$ac_cv_func_dlopen" = xyes; then :
11182   lt_cv_dlopen="dlopen"
11183 else
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11186 if ${ac_cv_lib_dl_dlopen+:} false; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-ldl  $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h.  */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195    Use char because int might match the return type of a GCC
11196    builtin and then its argument prototype would still apply.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char dlopen ();
11201 int
11202 main ()
11203 {
11204 return dlopen ();
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210   ac_cv_lib_dl_dlopen=yes
11211 else
11212   ac_cv_lib_dl_dlopen=no
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215     conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11219 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11220 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11221   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11222 else
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11224 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11225 if ${ac_cv_lib_svld_dlopen+:} false; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-lsvld  $LIBS"
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h.  */
11232
11233 /* Override any GCC internal prototype to avoid an error.
11234    Use char because int might match the return type of a GCC
11235    builtin and then its argument prototype would still apply.  */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dlopen ();
11240 int
11241 main ()
11242 {
11243 return dlopen ();
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249   ac_cv_lib_svld_dlopen=yes
11250 else
11251   ac_cv_lib_svld_dlopen=no
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext \
11254     conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11256 fi
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11258 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11259 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11260   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11261 else
11262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11263 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11264 if ${ac_cv_lib_dld_dld_link+:} false; then :
11265   $as_echo_n "(cached) " >&6
11266 else
11267   ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-ldld  $LIBS"
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h.  */
11271
11272 /* Override any GCC internal prototype to avoid an error.
11273    Use char because int might match the return type of a GCC
11274    builtin and then its argument prototype would still apply.  */
11275 #ifdef __cplusplus
11276 extern "C"
11277 #endif
11278 char dld_link ();
11279 int
11280 main ()
11281 {
11282 return dld_link ();
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_link "$LINENO"; then :
11288   ac_cv_lib_dld_dld_link=yes
11289 else
11290   ac_cv_lib_dld_dld_link=no
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext \
11293     conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11298 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11299   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11300 fi
11301
11302
11303 fi
11304
11305
11306 fi
11307
11308
11309 fi
11310
11311
11312 fi
11313
11314
11315 fi
11316
11317     ;;
11318   esac
11319
11320   if test "x$lt_cv_dlopen" != xno; then
11321     enable_dlopen=yes
11322   else
11323     enable_dlopen=no
11324   fi
11325
11326   case $lt_cv_dlopen in
11327   dlopen)
11328     save_CPPFLAGS="$CPPFLAGS"
11329     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11330
11331     save_LDFLAGS="$LDFLAGS"
11332     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11333
11334     save_LIBS="$LIBS"
11335     LIBS="$lt_cv_dlopen_libs $LIBS"
11336
11337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11338 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11339 if ${lt_cv_dlopen_self+:} false; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342           if test "$cross_compiling" = yes; then :
11343   lt_cv_dlopen_self=cross
11344 else
11345   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11346   lt_status=$lt_dlunknown
11347   cat > conftest.$ac_ext <<_LT_EOF
11348 #line $LINENO "configure"
11349 #include "confdefs.h"
11350
11351 #if HAVE_DLFCN_H
11352 #include <dlfcn.h>
11353 #endif
11354
11355 #include <stdio.h>
11356
11357 #ifdef RTLD_GLOBAL
11358 #  define LT_DLGLOBAL           RTLD_GLOBAL
11359 #else
11360 #  ifdef DL_GLOBAL
11361 #    define LT_DLGLOBAL         DL_GLOBAL
11362 #  else
11363 #    define LT_DLGLOBAL         0
11364 #  endif
11365 #endif
11366
11367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11368    find out it does not work in some platform. */
11369 #ifndef LT_DLLAZY_OR_NOW
11370 #  ifdef RTLD_LAZY
11371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11372 #  else
11373 #    ifdef DL_LAZY
11374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11375 #    else
11376 #      ifdef RTLD_NOW
11377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11378 #      else
11379 #        ifdef DL_NOW
11380 #          define LT_DLLAZY_OR_NOW      DL_NOW
11381 #        else
11382 #          define LT_DLLAZY_OR_NOW      0
11383 #        endif
11384 #      endif
11385 #    endif
11386 #  endif
11387 #endif
11388
11389 /* When -fvisbility=hidden is used, assume the code has been annotated
11390    correspondingly for the symbols needed.  */
11391 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11392 int fnord () __attribute__((visibility("default")));
11393 #endif
11394
11395 int fnord () { return 42; }
11396 int main ()
11397 {
11398   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11399   int status = $lt_dlunknown;
11400
11401   if (self)
11402     {
11403       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11404       else
11405         {
11406           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11407           else puts (dlerror ());
11408         }
11409       /* dlclose (self); */
11410     }
11411   else
11412     puts (dlerror ());
11413
11414   return status;
11415 }
11416 _LT_EOF
11417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11418   (eval $ac_link) 2>&5
11419   ac_status=$?
11420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11422     (./conftest; exit; ) >&5 2>/dev/null
11423     lt_status=$?
11424     case x$lt_status in
11425       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11426       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11427       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11428     esac
11429   else :
11430     # compilation failed
11431     lt_cv_dlopen_self=no
11432   fi
11433 fi
11434 rm -fr conftest*
11435
11436
11437 fi
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11439 $as_echo "$lt_cv_dlopen_self" >&6; }
11440
11441     if test "x$lt_cv_dlopen_self" = xyes; then
11442       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11444 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11445 if ${lt_cv_dlopen_self_static+:} false; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448           if test "$cross_compiling" = yes; then :
11449   lt_cv_dlopen_self_static=cross
11450 else
11451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452   lt_status=$lt_dlunknown
11453   cat > conftest.$ac_ext <<_LT_EOF
11454 #line $LINENO "configure"
11455 #include "confdefs.h"
11456
11457 #if HAVE_DLFCN_H
11458 #include <dlfcn.h>
11459 #endif
11460
11461 #include <stdio.h>
11462
11463 #ifdef RTLD_GLOBAL
11464 #  define LT_DLGLOBAL           RTLD_GLOBAL
11465 #else
11466 #  ifdef DL_GLOBAL
11467 #    define LT_DLGLOBAL         DL_GLOBAL
11468 #  else
11469 #    define LT_DLGLOBAL         0
11470 #  endif
11471 #endif
11472
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474    find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11476 #  ifdef RTLD_LAZY
11477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11478 #  else
11479 #    ifdef DL_LAZY
11480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11481 #    else
11482 #      ifdef RTLD_NOW
11483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11484 #      else
11485 #        ifdef DL_NOW
11486 #          define LT_DLLAZY_OR_NOW      DL_NOW
11487 #        else
11488 #          define LT_DLLAZY_OR_NOW      0
11489 #        endif
11490 #      endif
11491 #    endif
11492 #  endif
11493 #endif
11494
11495 /* When -fvisbility=hidden is used, assume the code has been annotated
11496    correspondingly for the symbols needed.  */
11497 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11498 int fnord () __attribute__((visibility("default")));
11499 #endif
11500
11501 int fnord () { return 42; }
11502 int main ()
11503 {
11504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11505   int status = $lt_dlunknown;
11506
11507   if (self)
11508     {
11509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11510       else
11511         {
11512           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11513           else puts (dlerror ());
11514         }
11515       /* dlclose (self); */
11516     }
11517   else
11518     puts (dlerror ());
11519
11520   return status;
11521 }
11522 _LT_EOF
11523   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11524   (eval $ac_link) 2>&5
11525   ac_status=$?
11526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11528     (./conftest; exit; ) >&5 2>/dev/null
11529     lt_status=$?
11530     case x$lt_status in
11531       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11532       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11533       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11534     esac
11535   else :
11536     # compilation failed
11537     lt_cv_dlopen_self_static=no
11538   fi
11539 fi
11540 rm -fr conftest*
11541
11542
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11545 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11546     fi
11547
11548     CPPFLAGS="$save_CPPFLAGS"
11549     LDFLAGS="$save_LDFLAGS"
11550     LIBS="$save_LIBS"
11551     ;;
11552   esac
11553
11554   case $lt_cv_dlopen_self in
11555   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11556   *) enable_dlopen_self=unknown ;;
11557   esac
11558
11559   case $lt_cv_dlopen_self_static in
11560   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11561   *) enable_dlopen_self_static=unknown ;;
11562   esac
11563 fi
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581 striplib=
11582 old_striplib=
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11584 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11585 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11586   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11587   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11590 else
11591 # FIXME - insert some real tests, host_os isn't really good enough
11592   case $host_os in
11593   darwin*)
11594     if test -n "$STRIP" ; then
11595       striplib="$STRIP -x"
11596       old_striplib="$STRIP -S"
11597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598 $as_echo "yes" >&6; }
11599     else
11600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602     fi
11603     ;;
11604   *)
11605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607     ;;
11608   esac
11609 fi
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622   # Report which library types will actually be built
11623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11624 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11626 $as_echo "$can_build_shared" >&6; }
11627
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11629 $as_echo_n "checking whether to build shared libraries... " >&6; }
11630   test "$can_build_shared" = "no" && enable_shared=no
11631
11632   # On AIX, shared libraries and static libraries use the same namespace, and
11633   # are all built from PIC.
11634   case $host_os in
11635   aix3*)
11636     test "$enable_shared" = yes && enable_static=no
11637     if test -n "$RANLIB"; then
11638       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11639       postinstall_cmds='$RANLIB $lib'
11640     fi
11641     ;;
11642
11643   aix[4-9]*)
11644     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11645       test "$enable_shared" = yes && enable_static=no
11646     fi
11647     ;;
11648   esac
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11650 $as_echo "$enable_shared" >&6; }
11651
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11653 $as_echo_n "checking whether to build static libraries... " >&6; }
11654   # Make sure either enable_shared or enable_static is yes.
11655   test "$enable_shared" = yes || enable_static=yes
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11657 $as_echo "$enable_static" >&6; }
11658
11659
11660
11661
11662 fi
11663 ac_ext=c
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668
11669 CC="$lt_save_CC"
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685         ac_config_commands="$ac_config_commands libtool"
11686
11687
11688
11689
11690 # Only expand once:
11691
11692
11693
11694
11695 # Checks for libraries.
11696
11697
11698
11699
11700
11701
11702
11703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11704         if test -n "$ac_tool_prefix"; then
11705   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   case $PKG_CONFIG in
11713   [\\/]* | ?:[\\/]*)
11714   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11715   ;;
11716   *)
11717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720   IFS=$as_save_IFS
11721   test -z "$as_dir" && as_dir=.
11722     for ac_exec_ext in '' $ac_executable_extensions; do
11723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11724     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726     break 2
11727   fi
11728 done
11729   done
11730 IFS=$as_save_IFS
11731
11732   ;;
11733 esac
11734 fi
11735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11736 if test -n "$PKG_CONFIG"; then
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11738 $as_echo "$PKG_CONFIG" >&6; }
11739 else
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 fi
11743
11744
11745 fi
11746 if test -z "$ac_cv_path_PKG_CONFIG"; then
11747   ac_pt_PKG_CONFIG=$PKG_CONFIG
11748   # Extract the first word of "pkg-config", so it can be a program name with args.
11749 set dummy pkg-config; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11753   $as_echo_n "(cached) " >&6
11754 else
11755   case $ac_pt_PKG_CONFIG in
11756   [\\/]* | ?:[\\/]*)
11757   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11758   ;;
11759   *)
11760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11762 do
11763   IFS=$as_save_IFS
11764   test -z "$as_dir" && as_dir=.
11765     for ac_exec_ext in '' $ac_executable_extensions; do
11766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769     break 2
11770   fi
11771 done
11772   done
11773 IFS=$as_save_IFS
11774
11775   ;;
11776 esac
11777 fi
11778 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11779 if test -n "$ac_pt_PKG_CONFIG"; then
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11781 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11782 else
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786
11787   if test "x$ac_pt_PKG_CONFIG" = x; then
11788     PKG_CONFIG=""
11789   else
11790     case $cross_compiling:$ac_tool_warned in
11791 yes:)
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11794 ac_tool_warned=yes ;;
11795 esac
11796     PKG_CONFIG=$ac_pt_PKG_CONFIG
11797   fi
11798 else
11799   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11800 fi
11801
11802 fi
11803 if test -n "$PKG_CONFIG"; then
11804         _pkg_min_version=0.16
11805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11806 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11807         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11809 $as_echo "yes" >&6; }
11810         else
11811                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813                 PKG_CONFIG=""
11814         fi
11815 fi
11816
11817 pkg_failed=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11819 $as_echo_n "checking for GLIB... " >&6; }
11820
11821 if test -n "$GLIB_CFLAGS"; then
11822     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11823  elif test -n "$PKG_CONFIG"; then
11824     if test -n "$PKG_CONFIG" && \
11825     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11826   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11827   ac_status=$?
11828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11829   test $ac_status = 0; }; then
11830   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
11831                       test "x$?" != "x0" && pkg_failed=yes
11832 else
11833   pkg_failed=yes
11834 fi
11835  else
11836     pkg_failed=untried
11837 fi
11838 if test -n "$GLIB_LIBS"; then
11839     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11840  elif test -n "$PKG_CONFIG"; then
11841     if test -n "$PKG_CONFIG" && \
11842     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11843   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11844   ac_status=$?
11845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846   test $ac_status = 0; }; then
11847   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
11848                       test "x$?" != "x0" && pkg_failed=yes
11849 else
11850   pkg_failed=yes
11851 fi
11852  else
11853     pkg_failed=untried
11854 fi
11855
11856
11857
11858 if test $pkg_failed = yes; then
11859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861
11862 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11863         _pkg_short_errors_supported=yes
11864 else
11865         _pkg_short_errors_supported=no
11866 fi
11867         if test $_pkg_short_errors_supported = yes; then
11868                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
11869         else
11870                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
11871         fi
11872         # Put the nasty error message in config.log where it belongs
11873         echo "$GLIB_PKG_ERRORS" >&5
11874
11875         as_fn_error $? "Package requirements (glib-2.0 >= 2.28) were not met:
11876
11877 $GLIB_PKG_ERRORS
11878
11879 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11880 installed software in a non-standard prefix.
11881
11882 Alternatively, you may set the environment variables GLIB_CFLAGS
11883 and GLIB_LIBS to avoid the need to call pkg-config.
11884 See the pkg-config man page for more details." "$LINENO" 5
11885 elif test $pkg_failed = untried; then
11886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11890 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11891 is in your PATH or set the PKG_CONFIG environment variable to the full
11892 path to pkg-config.
11893
11894 Alternatively, you may set the environment variables GLIB_CFLAGS
11895 and GLIB_LIBS to avoid the need to call pkg-config.
11896 See the pkg-config man page for more details.
11897
11898 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11899 See \`config.log' for more details" "$LINENO" 5; }
11900 else
11901         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11902         GLIB_LIBS=$pkg_cv_GLIB_LIBS
11903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904 $as_echo "yes" >&6; }
11905
11906 fi
11907
11908 pkg_failed=no
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
11910 $as_echo_n "checking for GIO... " >&6; }
11911
11912 if test -n "$GIO_CFLAGS"; then
11913     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
11914  elif test -n "$PKG_CONFIG"; then
11915     if test -n "$PKG_CONFIG" && \
11916     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.28\""; } >&5
11917   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.28") 2>&5
11918   ac_status=$?
11919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920   test $ac_status = 0; }; then
11921   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.28" 2>/dev/null`
11922                       test "x$?" != "x0" && pkg_failed=yes
11923 else
11924   pkg_failed=yes
11925 fi
11926  else
11927     pkg_failed=untried
11928 fi
11929 if test -n "$GIO_LIBS"; then
11930     pkg_cv_GIO_LIBS="$GIO_LIBS"
11931  elif test -n "$PKG_CONFIG"; then
11932     if test -n "$PKG_CONFIG" && \
11933     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.28\""; } >&5
11934   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.28") 2>&5
11935   ac_status=$?
11936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11937   test $ac_status = 0; }; then
11938   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.28" 2>/dev/null`
11939                       test "x$?" != "x0" && pkg_failed=yes
11940 else
11941   pkg_failed=yes
11942 fi
11943  else
11944     pkg_failed=untried
11945 fi
11946
11947
11948
11949 if test $pkg_failed = yes; then
11950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952
11953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11954         _pkg_short_errors_supported=yes
11955 else
11956         _pkg_short_errors_supported=no
11957 fi
11958         if test $_pkg_short_errors_supported = yes; then
11959                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.28" 2>&1`
11960         else
11961                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.28" 2>&1`
11962         fi
11963         # Put the nasty error message in config.log where it belongs
11964         echo "$GIO_PKG_ERRORS" >&5
11965
11966         as_fn_error $? "Package requirements (gio-2.0 >= 2.28) were not met:
11967
11968 $GIO_PKG_ERRORS
11969
11970 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11971 installed software in a non-standard prefix.
11972
11973 Alternatively, you may set the environment variables GIO_CFLAGS
11974 and GIO_LIBS to avoid the need to call pkg-config.
11975 See the pkg-config man page for more details." "$LINENO" 5
11976 elif test $pkg_failed = untried; then
11977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11981 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11982 is in your PATH or set the PKG_CONFIG environment variable to the full
11983 path to pkg-config.
11984
11985 Alternatively, you may set the environment variables GIO_CFLAGS
11986 and GIO_LIBS to avoid the need to call pkg-config.
11987 See the pkg-config man page for more details.
11988
11989 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11990 See \`config.log' for more details" "$LINENO" 5; }
11991 else
11992         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
11993         GIO_LIBS=$pkg_cv_GIO_LIBS
11994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11995 $as_echo "yes" >&6; }
11996
11997 fi
11998
11999 pkg_failed=no
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12001 $as_echo_n "checking for GMODULE... " >&6; }
12002
12003 if test -n "$GMODULE_CFLAGS"; then
12004     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12005  elif test -n "$PKG_CONFIG"; then
12006     if test -n "$PKG_CONFIG" && \
12007     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 >= 2.28\""; } >&5
12008   ($PKG_CONFIG --exists --print-errors "gmodule-2.0 >= 2.28") 2>&5
12009   ac_status=$?
12010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12011   test $ac_status = 0; }; then
12012   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 >= 2.28" 2>/dev/null`
12013                       test "x$?" != "x0" && pkg_failed=yes
12014 else
12015   pkg_failed=yes
12016 fi
12017  else
12018     pkg_failed=untried
12019 fi
12020 if test -n "$GMODULE_LIBS"; then
12021     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12022  elif test -n "$PKG_CONFIG"; then
12023     if test -n "$PKG_CONFIG" && \
12024     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 >= 2.28\""; } >&5
12025   ($PKG_CONFIG --exists --print-errors "gmodule-2.0 >= 2.28") 2>&5
12026   ac_status=$?
12027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028   test $ac_status = 0; }; then
12029   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 >= 2.28" 2>/dev/null`
12030                       test "x$?" != "x0" && pkg_failed=yes
12031 else
12032   pkg_failed=yes
12033 fi
12034  else
12035     pkg_failed=untried
12036 fi
12037
12038
12039
12040 if test $pkg_failed = yes; then
12041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043
12044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12045         _pkg_short_errors_supported=yes
12046 else
12047         _pkg_short_errors_supported=no
12048 fi
12049         if test $_pkg_short_errors_supported = yes; then
12050                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0 >= 2.28" 2>&1`
12051         else
12052                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0 >= 2.28" 2>&1`
12053         fi
12054         # Put the nasty error message in config.log where it belongs
12055         echo "$GMODULE_PKG_ERRORS" >&5
12056
12057         as_fn_error $? "Package requirements (gmodule-2.0 >= 2.28) were not met:
12058
12059 $GMODULE_PKG_ERRORS
12060
12061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12062 installed software in a non-standard prefix.
12063
12064 Alternatively, you may set the environment variables GMODULE_CFLAGS
12065 and GMODULE_LIBS to avoid the need to call pkg-config.
12066 See the pkg-config man page for more details." "$LINENO" 5
12067 elif test $pkg_failed = untried; then
12068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12070         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12072 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12073 is in your PATH or set the PKG_CONFIG environment variable to the full
12074 path to pkg-config.
12075
12076 Alternatively, you may set the environment variables GMODULE_CFLAGS
12077 and GMODULE_LIBS to avoid the need to call pkg-config.
12078 See the pkg-config man page for more details.
12079
12080 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12081 See \`config.log' for more details" "$LINENO" 5; }
12082 else
12083         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12084         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 $as_echo "yes" >&6; }
12087
12088 fi
12089
12090 pkg_failed=no
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUPNP" >&5
12092 $as_echo_n "checking for GUPNP... " >&6; }
12093
12094 if test -n "$GUPNP_CFLAGS"; then
12095     pkg_cv_GUPNP_CFLAGS="$GUPNP_CFLAGS"
12096  elif test -n "$PKG_CONFIG"; then
12097     if test -n "$PKG_CONFIG" && \
12098     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gupnp-1.0 >= 0.20.5\""; } >&5
12099   ($PKG_CONFIG --exists --print-errors "gupnp-1.0 >= 0.20.5") 2>&5
12100   ac_status=$?
12101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12102   test $ac_status = 0; }; then
12103   pkg_cv_GUPNP_CFLAGS=`$PKG_CONFIG --cflags "gupnp-1.0 >= 0.20.5" 2>/dev/null`
12104                       test "x$?" != "x0" && pkg_failed=yes
12105 else
12106   pkg_failed=yes
12107 fi
12108  else
12109     pkg_failed=untried
12110 fi
12111 if test -n "$GUPNP_LIBS"; then
12112     pkg_cv_GUPNP_LIBS="$GUPNP_LIBS"
12113  elif test -n "$PKG_CONFIG"; then
12114     if test -n "$PKG_CONFIG" && \
12115     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gupnp-1.0 >= 0.20.5\""; } >&5
12116   ($PKG_CONFIG --exists --print-errors "gupnp-1.0 >= 0.20.5") 2>&5
12117   ac_status=$?
12118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119   test $ac_status = 0; }; then
12120   pkg_cv_GUPNP_LIBS=`$PKG_CONFIG --libs "gupnp-1.0 >= 0.20.5" 2>/dev/null`
12121                       test "x$?" != "x0" && pkg_failed=yes
12122 else
12123   pkg_failed=yes
12124 fi
12125  else
12126     pkg_failed=untried
12127 fi
12128
12129
12130
12131 if test $pkg_failed = yes; then
12132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134
12135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12136         _pkg_short_errors_supported=yes
12137 else
12138         _pkg_short_errors_supported=no
12139 fi
12140         if test $_pkg_short_errors_supported = yes; then
12141                 GUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gupnp-1.0 >= 0.20.5" 2>&1`
12142         else
12143                 GUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gupnp-1.0 >= 0.20.5" 2>&1`
12144         fi
12145         # Put the nasty error message in config.log where it belongs
12146         echo "$GUPNP_PKG_ERRORS" >&5
12147
12148         as_fn_error $? "Package requirements (gupnp-1.0 >= 0.20.5) were not met:
12149
12150 $GUPNP_PKG_ERRORS
12151
12152 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12153 installed software in a non-standard prefix.
12154
12155 Alternatively, you may set the environment variables GUPNP_CFLAGS
12156 and GUPNP_LIBS to avoid the need to call pkg-config.
12157 See the pkg-config man page for more details." "$LINENO" 5
12158 elif test $pkg_failed = untried; then
12159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12163 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12164 is in your PATH or set the PKG_CONFIG environment variable to the full
12165 path to pkg-config.
12166
12167 Alternatively, you may set the environment variables GUPNP_CFLAGS
12168 and GUPNP_LIBS to avoid the need to call pkg-config.
12169 See the pkg-config man page for more details.
12170
12171 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12172 See \`config.log' for more details" "$LINENO" 5; }
12173 else
12174         GUPNP_CFLAGS=$pkg_cv_GUPNP_CFLAGS
12175         GUPNP_LIBS=$pkg_cv_GUPNP_LIBS
12176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12177 $as_echo "yes" >&6; }
12178
12179 fi
12180
12181 # Checks for header files.
12182 for ac_header in stdlib.h string.h syslog.h
12183 do :
12184   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12187   cat >>confdefs.h <<_ACEOF
12188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12189 _ACEOF
12190
12191 fi
12192
12193 done
12194
12195
12196 # Checks for typedefs, structures, and compiler characteristics.
12197 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12198 case $ac_cv_c_uint8_t in #(
12199   no|yes) ;; #(
12200   *)
12201
12202 $as_echo "#define _UINT8_T 1" >>confdefs.h
12203
12204
12205 cat >>confdefs.h <<_ACEOF
12206 #define uint8_t $ac_cv_c_uint8_t
12207 _ACEOF
12208 ;;
12209   esac
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12212 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12213 if ${ac_cv_header_stdbool_h+:} false; then :
12214   $as_echo_n "(cached) " >&6
12215 else
12216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218
12219              #include <stdbool.h>
12220              #ifndef bool
12221               "error: bool is not defined"
12222              #endif
12223              #ifndef false
12224               "error: false is not defined"
12225              #endif
12226              #if false
12227               "error: false is not 0"
12228              #endif
12229              #ifndef true
12230               "error: true is not defined"
12231              #endif
12232              #if true != 1
12233               "error: true is not 1"
12234              #endif
12235              #ifndef __bool_true_false_are_defined
12236               "error: __bool_true_false_are_defined is not defined"
12237              #endif
12238
12239              struct s { _Bool s: 1; _Bool t; } s;
12240
12241              char a[true == 1 ? 1 : -1];
12242              char b[false == 0 ? 1 : -1];
12243              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12244              char d[(bool) 0.5 == true ? 1 : -1];
12245              /* See body of main program for 'e'.  */
12246              char f[(_Bool) 0.0 == false ? 1 : -1];
12247              char g[true];
12248              char h[sizeof (_Bool)];
12249              char i[sizeof s.t];
12250              enum { j = false, k = true, l = false * true, m = true * 256 };
12251              /* The following fails for
12252                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12253              _Bool n[m];
12254              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12255              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12256              /* Catch a bug in an HP-UX C compiler.  See
12257                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12258                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12259               */
12260              _Bool q = true;
12261              _Bool *pq = &q;
12262
12263 int
12264 main ()
12265 {
12266
12267              bool e = &s;
12268              *pq |= q;
12269              *pq |= ! q;
12270              /* Refer to every declared value, to avoid compiler optimizations.  */
12271              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12272                      + !m + !n + !o + !p + !q + !pq);
12273
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_compile "$LINENO"; then :
12279   ac_cv_header_stdbool_h=yes
12280 else
12281   ac_cv_header_stdbool_h=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12286 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12287    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12288 if test "x$ac_cv_type__Bool" = xyes; then :
12289
12290 cat >>confdefs.h <<_ACEOF
12291 #define HAVE__BOOL 1
12292 _ACEOF
12293
12294
12295 fi
12296
12297
12298 if test $ac_cv_header_stdbool_h = yes; then
12299
12300 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12301
12302 fi
12303
12304 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12305 if test "x$ac_cv_type_size_t" = xyes; then :
12306
12307 else
12308
12309 cat >>confdefs.h <<_ACEOF
12310 #define size_t unsigned int
12311 _ACEOF
12312
12313 fi
12314
12315
12316 # Checks for library functions.
12317 for ac_header in stdlib.h
12318 do :
12319   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12320 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12321   cat >>confdefs.h <<_ACEOF
12322 #define HAVE_STDLIB_H 1
12323 _ACEOF
12324
12325 fi
12326
12327 done
12328
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12330 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12331 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test "$cross_compiling" = yes; then :
12335   ac_cv_func_malloc_0_nonnull=no
12336 else
12337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h.  */
12339 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12340 # include <stdlib.h>
12341 #else
12342 char *malloc ();
12343 #endif
12344
12345 int
12346 main ()
12347 {
12348 return ! malloc (0);
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_run "$LINENO"; then :
12354   ac_cv_func_malloc_0_nonnull=yes
12355 else
12356   ac_cv_func_malloc_0_nonnull=no
12357 fi
12358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12359   conftest.$ac_objext conftest.beam conftest.$ac_ext
12360 fi
12361
12362 fi
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12364 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12365 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12366
12367 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12368
12369 else
12370   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12371
12372    case " $LIBOBJS " in
12373   *" malloc.$ac_objext "* ) ;;
12374   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12375  ;;
12376 esac
12377
12378
12379 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12380
12381 fi
12382
12383
12384 for ac_header in stdlib.h
12385 do :
12386   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12387 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12388   cat >>confdefs.h <<_ACEOF
12389 #define HAVE_STDLIB_H 1
12390 _ACEOF
12391
12392 fi
12393
12394 done
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12397 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12398 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   if test "$cross_compiling" = yes; then :
12402   ac_cv_func_realloc_0_nonnull=no
12403 else
12404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h.  */
12406 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12407 # include <stdlib.h>
12408 #else
12409 char *realloc ();
12410 #endif
12411
12412 int
12413 main ()
12414 {
12415 return ! realloc (0, 0);
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_run "$LINENO"; then :
12421   ac_cv_func_realloc_0_nonnull=yes
12422 else
12423   ac_cv_func_realloc_0_nonnull=no
12424 fi
12425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12426   conftest.$ac_objext conftest.beam conftest.$ac_ext
12427 fi
12428
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12431 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12432 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12433
12434 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12435
12436 else
12437   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12438
12439    case " $LIBOBJS " in
12440   *" realloc.$ac_objext "* ) ;;
12441   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12442  ;;
12443 esac
12444
12445
12446 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12447
12448 fi
12449
12450
12451 for ac_func in memset strchr strrchr strstr
12452 do :
12453   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12456   cat >>confdefs.h <<_ACEOF
12457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12458 _ACEOF
12459
12460 fi
12461 done
12462
12463
12464 # Define Log Level values
12465 LOG_LEVEL_0=0x00
12466 LOG_LEVEL_1=0x01
12467 LOG_LEVEL_2=0x02
12468 LOG_LEVEL_3=0x04
12469 LOG_LEVEL_4=0x08
12470 LOG_LEVEL_5=0x10
12471 LOG_LEVEL_6=0x20
12472 LOG_LEVEL_7=0x13
12473 LOG_LEVEL_8=0x3F
12474
12475
12476 cat >>confdefs.h <<_ACEOF
12477 #define DLEYNA_LOG_LEVEL_DISABLED ${LOG_LEVEL_0}
12478 _ACEOF
12479
12480
12481 cat >>confdefs.h <<_ACEOF
12482 #define DLEYNA_LOG_LEVEL_ERROR ${LOG_LEVEL_1}
12483 _ACEOF
12484
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define DLEYNA_LOG_LEVEL_CRITICAL ${LOG_LEVEL_2}
12488 _ACEOF
12489
12490
12491 cat >>confdefs.h <<_ACEOF
12492 #define DLEYNA_LOG_LEVEL_WARNING ${LOG_LEVEL_3}
12493 _ACEOF
12494
12495
12496 cat >>confdefs.h <<_ACEOF
12497 #define DLEYNA_LOG_LEVEL_MESSAGE ${LOG_LEVEL_4}
12498 _ACEOF
12499
12500
12501 cat >>confdefs.h <<_ACEOF
12502 #define DLEYNA_LOG_LEVEL_INFO ${LOG_LEVEL_5}
12503 _ACEOF
12504
12505
12506 cat >>confdefs.h <<_ACEOF
12507 #define DLEYNA_LOG_LEVEL_DEBUG ${LOG_LEVEL_6}
12508 _ACEOF
12509
12510
12511 cat >>confdefs.h <<_ACEOF
12512 #define DLEYNA_LOG_LEVEL_DEFAULT ${LOG_LEVEL_7}
12513 _ACEOF
12514
12515
12516 cat >>confdefs.h <<_ACEOF
12517 #define DLEYNA_LOG_LEVEL_ALL ${LOG_LEVEL_8}
12518 _ACEOF
12519
12520
12521
12522 # Check whether --enable-debug was given.
12523 if test "${enable_debug+set}" = set; then :
12524   enableval=$enable_debug;
12525 else
12526   enable_debug=no
12527 fi
12528
12529
12530 case "${enable_debug}" in #(
12531   yes) :
12532     CFLAGS="$CFLAGS -g";
12533
12534 cat >>confdefs.h <<_ACEOF
12535 #define DLEYNA_DEBUG_ENABLED 1
12536 _ACEOF
12537
12538                 ;; #(
12539   no) :
12540      ;; #(
12541   *) :
12542     as_fn_error $? "bad value ${enable_debug} for --enable-debug" "$LINENO" 5 ;;
12543 esac
12544
12545
12546 # Check whether --enable-werror was given.
12547 if test "${enable_werror+set}" = set; then :
12548   enableval=$enable_werror;
12549 else
12550   enable_werror=no
12551 fi
12552
12553
12554 case "${enable_werror}" in #(
12555   yes) :
12556     CFLAGS="$CFLAGS -Werror" ;; #(
12557   no) :
12558      ;; #(
12559   *) :
12560     as_fn_error $? "bad value ${enable_werror} for --enable-werror" "$LINENO" 5 ;;
12561 esac
12562
12563
12564 # Check whether --enable-optimization was given.
12565 if test "${enable_optimization+set}" = set; then :
12566   enableval=$enable_optimization;
12567 else
12568   enable_optimization=yes
12569 fi
12570
12571
12572 case "${enable_optimization}" in #(
12573   yes) :
12574     disable_optimization=no ;; #(
12575   no) :
12576     CFLAGS="$CFLAGS -O0"; disable_optimization=yes ;; #(
12577   *) :
12578     as_fn_error $? "bad value ${enable_optimization} for --enable-werror" "$LINENO" 5 ;;
12579 esac
12580
12581
12582
12583 cat >>confdefs.h <<_ACEOF
12584 #define DLEYNA_NEVER_QUIT FALSE
12585 _ACEOF
12586
12587
12588
12589
12590 cat >>confdefs.h <<_ACEOF
12591 #define DLEYNA_CONNECTOR_NAME "dbus"
12592 _ACEOF
12593
12594
12595
12596
12597 # Check whether --with-log-level was given.
12598 if test "${with_log_level+set}" = set; then :
12599   withval=$with_log_level;
12600 else
12601   with_log_level=7
12602 fi
12603
12604
12605
12606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-log-level=${with_log_level}" >&5
12607 $as_echo_n "checking for --with-log-level=${with_log_level}... " >&6; }
12608
12609         old_IFS=${IFS}
12610         IFS=","
12611
12612         log_ok=yes
12613         log_single=no
12614         log_level_count=0
12615         LOG_LEVEL=0
12616         log_array=(0 0 0 0 0 0 0 0 0)
12617
12618         for log_level in ${with_log_level}
12619         do
12620                 IFS=${old_IFS}
12621
12622         case $log_level in #(
12623   [1-6]) :
12624     if test ${log_array[${log_level}]} -ne 0; then :
12625
12626                                         as_fn_error 1 "\"$log_level should be set once\"" "$LINENO" 5
12627
12628 elif test "x${log_single}" = xyes; then :
12629
12630                                         as_fn_error 1 "\"Unique value element already set\"" "$LINENO" 5
12631
12632 fi
12633                          ;; #(
12634   0|7|8) :
12635     if test ${log_level_count} -ne 0; then :
12636
12637                                         as_fn_error 1 "\"$log_level should be a unique value element\"" "$LINENO" 5
12638
12639 fi
12640                           log_single=yes
12641                          ;; #(
12642   *) :
12643     as_fn_error 1 "\"$log_level is not a valid value\"" "$LINENO" 5
12644          ;;
12645 esac
12646
12647         log_name=LOG_LEVEL_${log_level}
12648         eval log_value=\$${log_name}
12649         let "LOG_LEVEL |= ${log_value}"
12650
12651
12652                 IFS=","
12653
12654                 let log_level_count++
12655                 let log_array[${log_level}]++
12656         done
12657
12658         IFS=${old_IFS}
12659
12660
12661 cat >>confdefs.h <<_ACEOF
12662 #define DLEYNA_LOG_LEVEL ${LOG_LEVEL}
12663 _ACEOF
12664
12665
12666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12667 $as_echo "ok" >&6; }
12668
12669
12670
12671
12672 cat >>confdefs.h <<_ACEOF
12673 #define DLEYNA_LOG_TYPE 0
12674 _ACEOF
12675
12676
12677 DLEYNA_CONNECTOR_LIB_PATTERN=libdleyna-connector-
12678
12679
12680 $as_echo "#define DLEYNA_CONNECTOR_LIB_PATTERN \"libdleyna-connector-\"" >>confdefs.h
12681
12682
12683
12684
12685
12686
12687 ac_config_files="$ac_config_files Makefile dleyna-core-1.0.pc"
12688
12689
12690 cat >confcache <<\_ACEOF
12691 # This file is a shell script that caches the results of configure
12692 # tests run on this system so they can be shared between configure
12693 # scripts and configure runs, see configure's option --config-cache.
12694 # It is not useful on other systems.  If it contains results you don't
12695 # want to keep, you may remove or edit it.
12696 #
12697 # config.status only pays attention to the cache file if you give it
12698 # the --recheck option to rerun configure.
12699 #
12700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12702 # following values.
12703
12704 _ACEOF
12705
12706 # The following way of writing the cache mishandles newlines in values,
12707 # but we know of no workaround that is simple, portable, and efficient.
12708 # So, we kill variables containing newlines.
12709 # Ultrix sh set writes to stderr and can't be redirected directly,
12710 # and sets the high bit in the cache file unless we assign to the vars.
12711 (
12712   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12713     eval ac_val=\$$ac_var
12714     case $ac_val in #(
12715     *${as_nl}*)
12716       case $ac_var in #(
12717       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12719       esac
12720       case $ac_var in #(
12721       _ | IFS | as_nl) ;; #(
12722       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12723       *) { eval $ac_var=; unset $ac_var;} ;;
12724       esac ;;
12725     esac
12726   done
12727
12728   (set) 2>&1 |
12729     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730     *${as_nl}ac_space=\ *)
12731       # `set' does not quote correctly, so add quotes: double-quote
12732       # substitution turns \\\\ into \\, and sed turns \\ into \.
12733       sed -n \
12734         "s/'/'\\\\''/g;
12735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12736       ;; #(
12737     *)
12738       # `set' quotes correctly as required by POSIX, so do not add quotes.
12739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12740       ;;
12741     esac |
12742     sort
12743 ) |
12744   sed '
12745      /^ac_cv_env_/b end
12746      t clear
12747      :clear
12748      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12749      t end
12750      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12751      :end' >>confcache
12752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12753   if test -w "$cache_file"; then
12754     if test "x$cache_file" != "x/dev/null"; then
12755       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12756 $as_echo "$as_me: updating cache $cache_file" >&6;}
12757       if test ! -f "$cache_file" || test -h "$cache_file"; then
12758         cat confcache >"$cache_file"
12759       else
12760         case $cache_file in #(
12761         */* | ?:*)
12762           mv -f confcache "$cache_file"$$ &&
12763           mv -f "$cache_file"$$ "$cache_file" ;; #(
12764         *)
12765           mv -f confcache "$cache_file" ;;
12766         esac
12767       fi
12768     fi
12769   else
12770     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12771 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12772   fi
12773 fi
12774 rm -f confcache
12775
12776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12777 # Let make expand exec_prefix.
12778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12779
12780 DEFS=-DHAVE_CONFIG_H
12781
12782 ac_libobjs=
12783 ac_ltlibobjs=
12784 U=
12785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12786   # 1. Remove the extension, and $U if already installed.
12787   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12788   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12789   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12790   #    will be set to the directory where LIBOBJS objects are built.
12791   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12792   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12793 done
12794 LIBOBJS=$ac_libobjs
12795
12796 LTLIBOBJS=$ac_ltlibobjs
12797
12798
12799  if test -n "$EXEEXT"; then
12800   am__EXEEXT_TRUE=
12801   am__EXEEXT_FALSE='#'
12802 else
12803   am__EXEEXT_TRUE='#'
12804   am__EXEEXT_FALSE=
12805 fi
12806
12807 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12808   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12810 fi
12811 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12812   as_fn_error $? "conditional \"AMDEP\" was never defined.
12813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12814 fi
12815 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12816   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12818 fi
12819
12820 : "${CONFIG_STATUS=./config.status}"
12821 ac_write_fail=0
12822 ac_clean_files_save=$ac_clean_files
12823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12825 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12826 as_write_fail=0
12827 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12828 #! $SHELL
12829 # Generated by $as_me.
12830 # Run this file to recreate the current configuration.
12831 # Compiler output produced by configure, useful for debugging
12832 # configure, is in config.log if it exists.
12833
12834 debug=false
12835 ac_cs_recheck=false
12836 ac_cs_silent=false
12837
12838 SHELL=\${CONFIG_SHELL-$SHELL}
12839 export SHELL
12840 _ASEOF
12841 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12842 ## -------------------- ##
12843 ## M4sh Initialization. ##
12844 ## -------------------- ##
12845
12846 # Be more Bourne compatible
12847 DUALCASE=1; export DUALCASE # for MKS sh
12848 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12849   emulate sh
12850   NULLCMD=:
12851   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12852   # is contrary to our usage.  Disable this feature.
12853   alias -g '${1+"$@"}'='"$@"'
12854   setopt NO_GLOB_SUBST
12855 else
12856   case `(set -o) 2>/dev/null` in #(
12857   *posix*) :
12858     set -o posix ;; #(
12859   *) :
12860      ;;
12861 esac
12862 fi
12863
12864
12865 as_nl='
12866 '
12867 export as_nl
12868 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12869 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12872 # Prefer a ksh shell builtin over an external printf program on Solaris,
12873 # but without wasting forks for bash or zsh.
12874 if test -z "$BASH_VERSION$ZSH_VERSION" \
12875     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12876   as_echo='print -r --'
12877   as_echo_n='print -rn --'
12878 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12879   as_echo='printf %s\n'
12880   as_echo_n='printf %s'
12881 else
12882   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12883     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12884     as_echo_n='/usr/ucb/echo -n'
12885   else
12886     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12887     as_echo_n_body='eval
12888       arg=$1;
12889       case $arg in #(
12890       *"$as_nl"*)
12891         expr "X$arg" : "X\\(.*\\)$as_nl";
12892         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12893       esac;
12894       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12895     '
12896     export as_echo_n_body
12897     as_echo_n='sh -c $as_echo_n_body as_echo'
12898   fi
12899   export as_echo_body
12900   as_echo='sh -c $as_echo_body as_echo'
12901 fi
12902
12903 # The user is always right.
12904 if test "${PATH_SEPARATOR+set}" != set; then
12905   PATH_SEPARATOR=:
12906   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12907     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12908       PATH_SEPARATOR=';'
12909   }
12910 fi
12911
12912
12913 # IFS
12914 # We need space, tab and new line, in precisely that order.  Quoting is
12915 # there to prevent editors from complaining about space-tab.
12916 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12917 # splitting by setting IFS to empty value.)
12918 IFS=" ""        $as_nl"
12919
12920 # Find who we are.  Look in the path if we contain no directory separator.
12921 as_myself=
12922 case $0 in #((
12923   *[\\/]* ) as_myself=$0 ;;
12924   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927   IFS=$as_save_IFS
12928   test -z "$as_dir" && as_dir=.
12929     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12930   done
12931 IFS=$as_save_IFS
12932
12933      ;;
12934 esac
12935 # We did not find ourselves, most probably we were run as `sh COMMAND'
12936 # in which case we are not to be found in the path.
12937 if test "x$as_myself" = x; then
12938   as_myself=$0
12939 fi
12940 if test ! -f "$as_myself"; then
12941   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12942   exit 1
12943 fi
12944
12945 # Unset variables that we do not need and which cause bugs (e.g. in
12946 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12947 # suppresses any "Segmentation fault" message there.  '((' could
12948 # trigger a bug in pdksh 5.2.14.
12949 for as_var in BASH_ENV ENV MAIL MAILPATH
12950 do eval test x\${$as_var+set} = xset \
12951   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12952 done
12953 PS1='$ '
12954 PS2='> '
12955 PS4='+ '
12956
12957 # NLS nuisances.
12958 LC_ALL=C
12959 export LC_ALL
12960 LANGUAGE=C
12961 export LANGUAGE
12962
12963 # CDPATH.
12964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12965
12966
12967 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12968 # ----------------------------------------
12969 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12970 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12971 # script with STATUS, using 1 if that was 0.
12972 as_fn_error ()
12973 {
12974   as_status=$1; test $as_status -eq 0 && as_status=1
12975   if test "$4"; then
12976     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12977     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12978   fi
12979   $as_echo "$as_me: error: $2" >&2
12980   as_fn_exit $as_status
12981 } # as_fn_error
12982
12983
12984 # as_fn_set_status STATUS
12985 # -----------------------
12986 # Set $? to STATUS, without forking.
12987 as_fn_set_status ()
12988 {
12989   return $1
12990 } # as_fn_set_status
12991
12992 # as_fn_exit STATUS
12993 # -----------------
12994 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12995 as_fn_exit ()
12996 {
12997   set +e
12998   as_fn_set_status $1
12999   exit $1
13000 } # as_fn_exit
13001
13002 # as_fn_unset VAR
13003 # ---------------
13004 # Portably unset VAR.
13005 as_fn_unset ()
13006 {
13007   { eval $1=; unset $1;}
13008 }
13009 as_unset=as_fn_unset
13010 # as_fn_append VAR VALUE
13011 # ----------------------
13012 # Append the text in VALUE to the end of the definition contained in VAR. Take
13013 # advantage of any shell optimizations that allow amortized linear growth over
13014 # repeated appends, instead of the typical quadratic growth present in naive
13015 # implementations.
13016 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13017   eval 'as_fn_append ()
13018   {
13019     eval $1+=\$2
13020   }'
13021 else
13022   as_fn_append ()
13023   {
13024     eval $1=\$$1\$2
13025   }
13026 fi # as_fn_append
13027
13028 # as_fn_arith ARG...
13029 # ------------------
13030 # Perform arithmetic evaluation on the ARGs, and store the result in the
13031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13032 # must be portable across $(()) and expr.
13033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13034   eval 'as_fn_arith ()
13035   {
13036     as_val=$(( $* ))
13037   }'
13038 else
13039   as_fn_arith ()
13040   {
13041     as_val=`expr "$@" || test $? -eq 1`
13042   }
13043 fi # as_fn_arith
13044
13045
13046 if expr a : '\(a\)' >/dev/null 2>&1 &&
13047    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13048   as_expr=expr
13049 else
13050   as_expr=false
13051 fi
13052
13053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13054   as_basename=basename
13055 else
13056   as_basename=false
13057 fi
13058
13059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13060   as_dirname=dirname
13061 else
13062   as_dirname=false
13063 fi
13064
13065 as_me=`$as_basename -- "$0" ||
13066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13067          X"$0" : 'X\(//\)$' \| \
13068          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13069 $as_echo X/"$0" |
13070     sed '/^.*\/\([^/][^/]*\)\/*$/{
13071             s//\1/
13072             q
13073           }
13074           /^X\/\(\/\/\)$/{
13075             s//\1/
13076             q
13077           }
13078           /^X\/\(\/\).*/{
13079             s//\1/
13080             q
13081           }
13082           s/.*/./; q'`
13083
13084 # Avoid depending upon Character Ranges.
13085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13088 as_cr_digits='0123456789'
13089 as_cr_alnum=$as_cr_Letters$as_cr_digits
13090
13091 ECHO_C= ECHO_N= ECHO_T=
13092 case `echo -n x` in #(((((
13093 -n*)
13094   case `echo 'xy\c'` in
13095   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13096   xy)  ECHO_C='\c';;
13097   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13098        ECHO_T=' ';;
13099   esac;;
13100 *)
13101   ECHO_N='-n';;
13102 esac
13103
13104 rm -f conf$$ conf$$.exe conf$$.file
13105 if test -d conf$$.dir; then
13106   rm -f conf$$.dir/conf$$.file
13107 else
13108   rm -f conf$$.dir
13109   mkdir conf$$.dir 2>/dev/null
13110 fi
13111 if (echo >conf$$.file) 2>/dev/null; then
13112   if ln -s conf$$.file conf$$ 2>/dev/null; then
13113     as_ln_s='ln -s'
13114     # ... but there are two gotchas:
13115     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13116     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13117     # In both cases, we have to default to `cp -pR'.
13118     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13119       as_ln_s='cp -pR'
13120   elif ln conf$$.file conf$$ 2>/dev/null; then
13121     as_ln_s=ln
13122   else
13123     as_ln_s='cp -pR'
13124   fi
13125 else
13126   as_ln_s='cp -pR'
13127 fi
13128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13129 rmdir conf$$.dir 2>/dev/null
13130
13131
13132 # as_fn_mkdir_p
13133 # -------------
13134 # Create "$as_dir" as a directory, including parents if necessary.
13135 as_fn_mkdir_p ()
13136 {
13137
13138   case $as_dir in #(
13139   -*) as_dir=./$as_dir;;
13140   esac
13141   test -d "$as_dir" || eval $as_mkdir_p || {
13142     as_dirs=
13143     while :; do
13144       case $as_dir in #(
13145       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13146       *) as_qdir=$as_dir;;
13147       esac
13148       as_dirs="'$as_qdir' $as_dirs"
13149       as_dir=`$as_dirname -- "$as_dir" ||
13150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13151          X"$as_dir" : 'X\(//\)[^/]' \| \
13152          X"$as_dir" : 'X\(//\)$' \| \
13153          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13154 $as_echo X"$as_dir" |
13155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13156             s//\1/
13157             q
13158           }
13159           /^X\(\/\/\)[^/].*/{
13160             s//\1/
13161             q
13162           }
13163           /^X\(\/\/\)$/{
13164             s//\1/
13165             q
13166           }
13167           /^X\(\/\).*/{
13168             s//\1/
13169             q
13170           }
13171           s/.*/./; q'`
13172       test -d "$as_dir" && break
13173     done
13174     test -z "$as_dirs" || eval "mkdir $as_dirs"
13175   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13176
13177
13178 } # as_fn_mkdir_p
13179 if mkdir -p . 2>/dev/null; then
13180   as_mkdir_p='mkdir -p "$as_dir"'
13181 else
13182   test -d ./-p && rmdir ./-p
13183   as_mkdir_p=false
13184 fi
13185
13186
13187 # as_fn_executable_p FILE
13188 # -----------------------
13189 # Test if FILE is an executable regular file.
13190 as_fn_executable_p ()
13191 {
13192   test -f "$1" && test -x "$1"
13193 } # as_fn_executable_p
13194 as_test_x='test -x'
13195 as_executable_p=as_fn_executable_p
13196
13197 # Sed expression to map a string onto a valid CPP name.
13198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13199
13200 # Sed expression to map a string onto a valid variable name.
13201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13202
13203
13204 exec 6>&1
13205 ## ----------------------------------- ##
13206 ## Main body of $CONFIG_STATUS script. ##
13207 ## ----------------------------------- ##
13208 _ASEOF
13209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13210
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 # Save the log message, to keep $0 and so on meaningful, and to
13213 # report actual input values of CONFIG_FILES etc. instead of their
13214 # values after options handling.
13215 ac_log="
13216 This file was extended by dleyna-core $as_me 0.2.2, which was
13217 generated by GNU Autoconf 2.69.  Invocation command line was
13218
13219   CONFIG_FILES    = $CONFIG_FILES
13220   CONFIG_HEADERS  = $CONFIG_HEADERS
13221   CONFIG_LINKS    = $CONFIG_LINKS
13222   CONFIG_COMMANDS = $CONFIG_COMMANDS
13223   $ $0 $@
13224
13225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13226 "
13227
13228 _ACEOF
13229
13230 case $ac_config_files in *"
13231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13232 esac
13233
13234 case $ac_config_headers in *"
13235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13236 esac
13237
13238
13239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240 # Files that config.status was made for.
13241 config_files="$ac_config_files"
13242 config_headers="$ac_config_headers"
13243 config_commands="$ac_config_commands"
13244
13245 _ACEOF
13246
13247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13248 ac_cs_usage="\
13249 \`$as_me' instantiates files and other configuration actions
13250 from templates according to the current configuration.  Unless the files
13251 and actions are specified as TAGs, all are instantiated by default.
13252
13253 Usage: $0 [OPTION]... [TAG]...
13254
13255   -h, --help       print this help, then exit
13256   -V, --version    print version number and configuration settings, then exit
13257       --config     print configuration, then exit
13258   -q, --quiet, --silent
13259                    do not print progress messages
13260   -d, --debug      don't remove temporary files
13261       --recheck    update $as_me by reconfiguring in the same conditions
13262       --file=FILE[:TEMPLATE]
13263                    instantiate the configuration file FILE
13264       --header=FILE[:TEMPLATE]
13265                    instantiate the configuration header FILE
13266
13267 Configuration files:
13268 $config_files
13269
13270 Configuration headers:
13271 $config_headers
13272
13273 Configuration commands:
13274 $config_commands
13275
13276 Report bugs to <https://github.com/01org/dleyna-core/issues/new>.
13277 dleyna-core home page: <https://01.org/dleyna/>."
13278
13279 _ACEOF
13280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13281 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13282 ac_cs_version="\\
13283 dleyna-core config.status 0.2.2
13284 configured by $0, generated by GNU Autoconf 2.69,
13285   with options \\"\$ac_cs_config\\"
13286
13287 Copyright (C) 2012 Free Software Foundation, Inc.
13288 This config.status script is free software; the Free Software Foundation
13289 gives unlimited permission to copy, distribute and modify it."
13290
13291 ac_pwd='$ac_pwd'
13292 srcdir='$srcdir'
13293 INSTALL='$INSTALL'
13294 MKDIR_P='$MKDIR_P'
13295 AWK='$AWK'
13296 test -n "\$AWK" || AWK=awk
13297 _ACEOF
13298
13299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13300 # The default lists apply if the user does not specify any file.
13301 ac_need_defaults=:
13302 while test $# != 0
13303 do
13304   case $1 in
13305   --*=?*)
13306     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13307     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13308     ac_shift=:
13309     ;;
13310   --*=)
13311     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13312     ac_optarg=
13313     ac_shift=:
13314     ;;
13315   *)
13316     ac_option=$1
13317     ac_optarg=$2
13318     ac_shift=shift
13319     ;;
13320   esac
13321
13322   case $ac_option in
13323   # Handling of the options.
13324   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13325     ac_cs_recheck=: ;;
13326   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13327     $as_echo "$ac_cs_version"; exit ;;
13328   --config | --confi | --conf | --con | --co | --c )
13329     $as_echo "$ac_cs_config"; exit ;;
13330   --debug | --debu | --deb | --de | --d | -d )
13331     debug=: ;;
13332   --file | --fil | --fi | --f )
13333     $ac_shift
13334     case $ac_optarg in
13335     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13336     '') as_fn_error $? "missing file argument" ;;
13337     esac
13338     as_fn_append CONFIG_FILES " '$ac_optarg'"
13339     ac_need_defaults=false;;
13340   --header | --heade | --head | --hea )
13341     $ac_shift
13342     case $ac_optarg in
13343     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13344     esac
13345     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13346     ac_need_defaults=false;;
13347   --he | --h)
13348     # Conflict between --help and --header
13349     as_fn_error $? "ambiguous option: \`$1'
13350 Try \`$0 --help' for more information.";;
13351   --help | --hel | -h )
13352     $as_echo "$ac_cs_usage"; exit ;;
13353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13354   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13355     ac_cs_silent=: ;;
13356
13357   # This is an error.
13358   -*) as_fn_error $? "unrecognized option: \`$1'
13359 Try \`$0 --help' for more information." ;;
13360
13361   *) as_fn_append ac_config_targets " $1"
13362      ac_need_defaults=false ;;
13363
13364   esac
13365   shift
13366 done
13367
13368 ac_configure_extra_args=
13369
13370 if $ac_cs_silent; then
13371   exec 6>/dev/null
13372   ac_configure_extra_args="$ac_configure_extra_args --silent"
13373 fi
13374
13375 _ACEOF
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377 if \$ac_cs_recheck; then
13378   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13379   shift
13380   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13381   CONFIG_SHELL='$SHELL'
13382   export CONFIG_SHELL
13383   exec "\$@"
13384 fi
13385
13386 _ACEOF
13387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13388 exec 5>>config.log
13389 {
13390   echo
13391   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13392 ## Running $as_me. ##
13393 _ASBOX
13394   $as_echo "$ac_log"
13395 } >&5
13396
13397 _ACEOF
13398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13399 #
13400 # INIT-COMMANDS
13401 #
13402 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13403
13404
13405 # The HP-UX ksh and POSIX shell print the target directory to stdout
13406 # if CDPATH is set.
13407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13408
13409 sed_quote_subst='$sed_quote_subst'
13410 double_quote_subst='$double_quote_subst'
13411 delay_variable_subst='$delay_variable_subst'
13412 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13413 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13414 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13415 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13416 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13417 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13418 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13419 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13420 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13421 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13422 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13423 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13424 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13425 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13426 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13427 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13428 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13429 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13430 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13431 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13432 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13433 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13434 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13435 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13436 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13437 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13438 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13439 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13440 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13441 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13442 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13443 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13444 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13445 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13446 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13447 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13448 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13449 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13450 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13451 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13452 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13453 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13454 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13455 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13456 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13457 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13458 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13459 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13460 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13461 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13462 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13463 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13464 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13465 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13466 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13467 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13468 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"`'
13469 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13470 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13471 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13472 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13473 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13474 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13475 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13476 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13477 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13478 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13479 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13480 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13481 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13482 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13483 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13484 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13485 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13486 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13487 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13488 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13489 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13490 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13491 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13492 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13493 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13494 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13495 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13496 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13497 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13498 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13499 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13500 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13501 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13502 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13503 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13504 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13505 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13506 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13507 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13508 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13509 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13510 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13511 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13512 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13513 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13514 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13515 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13516 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13517 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13518 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13519 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13520 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13521 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13522 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13523 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13524 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13525 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13526 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13527 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13528 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13529 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13530 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13531 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13532 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13533 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13534 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13535 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13536 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13537 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13538 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13539 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13540 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13541 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13542
13543 LTCC='$LTCC'
13544 LTCFLAGS='$LTCFLAGS'
13545 compiler='$compiler_DEFAULT'
13546
13547 # A function that is used when there is no print builtin or printf.
13548 func_fallback_echo ()
13549 {
13550   eval 'cat <<_LTECHO_EOF
13551 \$1
13552 _LTECHO_EOF'
13553 }
13554
13555 # Quote evaled strings.
13556 for var in SHELL \
13557 ECHO \
13558 PATH_SEPARATOR \
13559 SED \
13560 GREP \
13561 EGREP \
13562 FGREP \
13563 LD \
13564 NM \
13565 LN_S \
13566 lt_SP2NL \
13567 lt_NL2SP \
13568 reload_flag \
13569 OBJDUMP \
13570 deplibs_check_method \
13571 file_magic_cmd \
13572 file_magic_glob \
13573 want_nocaseglob \
13574 DLLTOOL \
13575 sharedlib_from_linklib_cmd \
13576 AR \
13577 AR_FLAGS \
13578 archiver_list_spec \
13579 STRIP \
13580 RANLIB \
13581 CC \
13582 CFLAGS \
13583 compiler \
13584 lt_cv_sys_global_symbol_pipe \
13585 lt_cv_sys_global_symbol_to_cdecl \
13586 lt_cv_sys_global_symbol_to_c_name_address \
13587 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13588 nm_file_list_spec \
13589 lt_prog_compiler_no_builtin_flag \
13590 lt_prog_compiler_pic \
13591 lt_prog_compiler_wl \
13592 lt_prog_compiler_static \
13593 lt_cv_prog_compiler_c_o \
13594 need_locks \
13595 MANIFEST_TOOL \
13596 DSYMUTIL \
13597 NMEDIT \
13598 LIPO \
13599 OTOOL \
13600 OTOOL64 \
13601 shrext_cmds \
13602 export_dynamic_flag_spec \
13603 whole_archive_flag_spec \
13604 compiler_needs_object \
13605 with_gnu_ld \
13606 allow_undefined_flag \
13607 no_undefined_flag \
13608 hardcode_libdir_flag_spec \
13609 hardcode_libdir_separator \
13610 exclude_expsyms \
13611 include_expsyms \
13612 file_list_spec \
13613 variables_saved_for_relink \
13614 libname_spec \
13615 library_names_spec \
13616 soname_spec \
13617 install_override_mode \
13618 finish_eval \
13619 old_striplib \
13620 striplib; do
13621     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13622     *[\\\\\\\`\\"\\\$]*)
13623       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13624       ;;
13625     *)
13626       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13627       ;;
13628     esac
13629 done
13630
13631 # Double-quote double-evaled strings.
13632 for var in reload_cmds \
13633 old_postinstall_cmds \
13634 old_postuninstall_cmds \
13635 old_archive_cmds \
13636 extract_expsyms_cmds \
13637 old_archive_from_new_cmds \
13638 old_archive_from_expsyms_cmds \
13639 archive_cmds \
13640 archive_expsym_cmds \
13641 module_cmds \
13642 module_expsym_cmds \
13643 export_symbols_cmds \
13644 prelink_cmds \
13645 postlink_cmds \
13646 postinstall_cmds \
13647 postuninstall_cmds \
13648 finish_cmds \
13649 sys_lib_search_path_spec \
13650 sys_lib_dlsearch_path_spec; do
13651     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13652     *[\\\\\\\`\\"\\\$]*)
13653       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13654       ;;
13655     *)
13656       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13657       ;;
13658     esac
13659 done
13660
13661 ac_aux_dir='$ac_aux_dir'
13662 xsi_shell='$xsi_shell'
13663 lt_shell_append='$lt_shell_append'
13664
13665 # See if we are running on zsh, and set the options which allow our
13666 # commands through without removal of \ escapes INIT.
13667 if test -n "\${ZSH_VERSION+set}" ; then
13668    setopt NO_GLOB_SUBST
13669 fi
13670
13671
13672     PACKAGE='$PACKAGE'
13673     VERSION='$VERSION'
13674     TIMESTAMP='$TIMESTAMP'
13675     RM='$RM'
13676     ofile='$ofile'
13677
13678
13679
13680
13681 _ACEOF
13682
13683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13684
13685 # Handling of arguments.
13686 for ac_config_target in $ac_config_targets
13687 do
13688   case $ac_config_target in
13689     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13690     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13691     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13692     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13693     "dleyna-core-1.0.pc") CONFIG_FILES="$CONFIG_FILES dleyna-core-1.0.pc" ;;
13694
13695   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13696   esac
13697 done
13698
13699
13700 # If the user did not use the arguments to specify the items to instantiate,
13701 # then the envvar interface is used.  Set only those that are not.
13702 # We use the long form for the default assignment because of an extremely
13703 # bizarre bug on SunOS 4.1.3.
13704 if $ac_need_defaults; then
13705   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13706   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13707   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13708 fi
13709
13710 # Have a temporary directory for convenience.  Make it in the build tree
13711 # simply because there is no reason against having it here, and in addition,
13712 # creating and moving files from /tmp can sometimes cause problems.
13713 # Hook for its removal unless debugging.
13714 # Note that there is a small window in which the directory will not be cleaned:
13715 # after its creation but before its name has been assigned to `$tmp'.
13716 $debug ||
13717 {
13718   tmp= ac_tmp=
13719   trap 'exit_status=$?
13720   : "${ac_tmp:=$tmp}"
13721   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13722 ' 0
13723   trap 'as_fn_exit 1' 1 2 13 15
13724 }
13725 # Create a (secure) tmp directory for tmp files.
13726
13727 {
13728   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13729   test -d "$tmp"
13730 }  ||
13731 {
13732   tmp=./conf$$-$RANDOM
13733   (umask 077 && mkdir "$tmp")
13734 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13735 ac_tmp=$tmp
13736
13737 # Set up the scripts for CONFIG_FILES section.
13738 # No need to generate them if there are no CONFIG_FILES.
13739 # This happens for instance with `./config.status config.h'.
13740 if test -n "$CONFIG_FILES"; then
13741
13742
13743 ac_cr=`echo X | tr X '\015'`
13744 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13745 # But we know of no other shell where ac_cr would be empty at this
13746 # point, so we can use a bashism as a fallback.
13747 if test "x$ac_cr" = x; then
13748   eval ac_cr=\$\'\\r\'
13749 fi
13750 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13751 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13752   ac_cs_awk_cr='\\r'
13753 else
13754   ac_cs_awk_cr=$ac_cr
13755 fi
13756
13757 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13758 _ACEOF
13759
13760
13761 {
13762   echo "cat >conf$$subs.awk <<_ACEOF" &&
13763   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13764   echo "_ACEOF"
13765 } >conf$$subs.sh ||
13766   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13768 ac_delim='%!_!# '
13769 for ac_last_try in false false false false false :; do
13770   . ./conf$$subs.sh ||
13771     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13772
13773   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13774   if test $ac_delim_n = $ac_delim_num; then
13775     break
13776   elif $ac_last_try; then
13777     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13778   else
13779     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13780   fi
13781 done
13782 rm -f conf$$subs.sh
13783
13784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13785 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13786 _ACEOF
13787 sed -n '
13788 h
13789 s/^/S["/; s/!.*/"]=/
13790 p
13791 g
13792 s/^[^!]*!//
13793 :repl
13794 t repl
13795 s/'"$ac_delim"'$//
13796 t delim
13797 :nl
13798 h
13799 s/\(.\{148\}\)..*/\1/
13800 t more1
13801 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13802 p
13803 n
13804 b repl
13805 :more1
13806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13807 p
13808 g
13809 s/.\{148\}//
13810 t nl
13811 :delim
13812 h
13813 s/\(.\{148\}\)..*/\1/
13814 t more2
13815 s/["\\]/\\&/g; s/^/"/; s/$/"/
13816 p
13817 b
13818 :more2
13819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13820 p
13821 g
13822 s/.\{148\}//
13823 t delim
13824 ' <conf$$subs.awk | sed '
13825 /^[^""]/{
13826   N
13827   s/\n//
13828 }
13829 ' >>$CONFIG_STATUS || ac_write_fail=1
13830 rm -f conf$$subs.awk
13831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13832 _ACAWK
13833 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13834   for (key in S) S_is_set[key] = 1
13835   FS = "\a"
13836
13837 }
13838 {
13839   line = $ 0
13840   nfields = split(line, field, "@")
13841   substed = 0
13842   len = length(field[1])
13843   for (i = 2; i < nfields; i++) {
13844     key = field[i]
13845     keylen = length(key)
13846     if (S_is_set[key]) {
13847       value = S[key]
13848       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13849       len += length(value) + length(field[++i])
13850       substed = 1
13851     } else
13852       len += 1 + keylen
13853   }
13854
13855   print line
13856 }
13857
13858 _ACAWK
13859 _ACEOF
13860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13861 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13862   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13863 else
13864   cat
13865 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13866   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13867 _ACEOF
13868
13869 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13870 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13871 # trailing colons and then remove the whole line if VPATH becomes empty
13872 # (actually we leave an empty line to preserve line numbers).
13873 if test "x$srcdir" = x.; then
13874   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13875 h
13876 s///
13877 s/^/:/
13878 s/[      ]*$/:/
13879 s/:\$(srcdir):/:/g
13880 s/:\${srcdir}:/:/g
13881 s/:@srcdir@:/:/g
13882 s/^:*//
13883 s/:*$//
13884 x
13885 s/\(=[   ]*\).*/\1/
13886 G
13887 s/\n//
13888 s/^[^=]*=[       ]*$//
13889 }'
13890 fi
13891
13892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893 fi # test -n "$CONFIG_FILES"
13894
13895 # Set up the scripts for CONFIG_HEADERS section.
13896 # No need to generate them if there are no CONFIG_HEADERS.
13897 # This happens for instance with `./config.status Makefile'.
13898 if test -n "$CONFIG_HEADERS"; then
13899 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13900 BEGIN {
13901 _ACEOF
13902
13903 # Transform confdefs.h into an awk script `defines.awk', embedded as
13904 # here-document in config.status, that substitutes the proper values into
13905 # config.h.in to produce config.h.
13906
13907 # Create a delimiter string that does not exist in confdefs.h, to ease
13908 # handling of long lines.
13909 ac_delim='%!_!# '
13910 for ac_last_try in false false :; do
13911   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13912   if test -z "$ac_tt"; then
13913     break
13914   elif $ac_last_try; then
13915     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13916   else
13917     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13918   fi
13919 done
13920
13921 # For the awk script, D is an array of macro values keyed by name,
13922 # likewise P contains macro parameters if any.  Preserve backslash
13923 # newline sequences.
13924
13925 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13926 sed -n '
13927 s/.\{148\}/&'"$ac_delim"'/g
13928 t rset
13929 :rset
13930 s/^[     ]*#[    ]*define[       ][      ]*/ /
13931 t def
13932 d
13933 :def
13934 s/\\$//
13935 t bsnl
13936 s/["\\]/\\&/g
13937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13938 D["\1"]=" \3"/p
13939 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13940 d
13941 :bsnl
13942 s/["\\]/\\&/g
13943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13944 D["\1"]=" \3\\\\\\n"\\/p
13945 t cont
13946 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13947 t cont
13948 d
13949 :cont
13950 n
13951 s/.\{148\}/&'"$ac_delim"'/g
13952 t clear
13953 :clear
13954 s/\\$//
13955 t bsnlc
13956 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13957 d
13958 :bsnlc
13959 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13960 b cont
13961 ' <confdefs.h | sed '
13962 s/'"$ac_delim"'/"\\\
13963 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13964
13965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13966   for (key in D) D_is_set[key] = 1
13967   FS = "\a"
13968 }
13969 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13970   line = \$ 0
13971   split(line, arg, " ")
13972   if (arg[1] == "#") {
13973     defundef = arg[2]
13974     mac1 = arg[3]
13975   } else {
13976     defundef = substr(arg[1], 2)
13977     mac1 = arg[2]
13978   }
13979   split(mac1, mac2, "(") #)
13980   macro = mac2[1]
13981   prefix = substr(line, 1, index(line, defundef) - 1)
13982   if (D_is_set[macro]) {
13983     # Preserve the white space surrounding the "#".
13984     print prefix "define", macro P[macro] D[macro]
13985     next
13986   } else {
13987     # Replace #undef with comments.  This is necessary, for example,
13988     # in the case of _POSIX_SOURCE, which is predefined and required
13989     # on some systems where configure will not decide to define it.
13990     if (defundef == "undef") {
13991       print "/*", prefix defundef, macro, "*/"
13992       next
13993     }
13994   }
13995 }
13996 { print }
13997 _ACAWK
13998 _ACEOF
13999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14000   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14001 fi # test -n "$CONFIG_HEADERS"
14002
14003
14004 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14005 shift
14006 for ac_tag
14007 do
14008   case $ac_tag in
14009   :[FHLC]) ac_mode=$ac_tag; continue;;
14010   esac
14011   case $ac_mode$ac_tag in
14012   :[FHL]*:*);;
14013   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14014   :[FH]-) ac_tag=-:-;;
14015   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14016   esac
14017   ac_save_IFS=$IFS
14018   IFS=:
14019   set x $ac_tag
14020   IFS=$ac_save_IFS
14021   shift
14022   ac_file=$1
14023   shift
14024
14025   case $ac_mode in
14026   :L) ac_source=$1;;
14027   :[FH])
14028     ac_file_inputs=
14029     for ac_f
14030     do
14031       case $ac_f in
14032       -) ac_f="$ac_tmp/stdin";;
14033       *) # Look for the file first in the build tree, then in the source tree
14034          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14035          # because $ac_f cannot contain `:'.
14036          test -f "$ac_f" ||
14037            case $ac_f in
14038            [\\/$]*) false;;
14039            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14040            esac ||
14041            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14042       esac
14043       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14044       as_fn_append ac_file_inputs " '$ac_f'"
14045     done
14046
14047     # Let's still pretend it is `configure' which instantiates (i.e., don't
14048     # use $as_me), people would be surprised to read:
14049     #    /* config.h.  Generated by config.status.  */
14050     configure_input='Generated from '`
14051           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14052         `' by configure.'
14053     if test x"$ac_file" != x-; then
14054       configure_input="$ac_file.  $configure_input"
14055       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14056 $as_echo "$as_me: creating $ac_file" >&6;}
14057     fi
14058     # Neutralize special characters interpreted by sed in replacement strings.
14059     case $configure_input in #(
14060     *\&* | *\|* | *\\* )
14061        ac_sed_conf_input=`$as_echo "$configure_input" |
14062        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14063     *) ac_sed_conf_input=$configure_input;;
14064     esac
14065
14066     case $ac_tag in
14067     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14068       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14069     esac
14070     ;;
14071   esac
14072
14073   ac_dir=`$as_dirname -- "$ac_file" ||
14074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075          X"$ac_file" : 'X\(//\)[^/]' \| \
14076          X"$ac_file" : 'X\(//\)$' \| \
14077          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14078 $as_echo X"$ac_file" |
14079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14080             s//\1/
14081             q
14082           }
14083           /^X\(\/\/\)[^/].*/{
14084             s//\1/
14085             q
14086           }
14087           /^X\(\/\/\)$/{
14088             s//\1/
14089             q
14090           }
14091           /^X\(\/\).*/{
14092             s//\1/
14093             q
14094           }
14095           s/.*/./; q'`
14096   as_dir="$ac_dir"; as_fn_mkdir_p
14097   ac_builddir=.
14098
14099 case "$ac_dir" in
14100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14101 *)
14102   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14103   # A ".." for each directory in $ac_dir_suffix.
14104   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14105   case $ac_top_builddir_sub in
14106   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14107   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14108   esac ;;
14109 esac
14110 ac_abs_top_builddir=$ac_pwd
14111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14112 # for backward compatibility:
14113 ac_top_builddir=$ac_top_build_prefix
14114
14115 case $srcdir in
14116   .)  # We are building in place.
14117     ac_srcdir=.
14118     ac_top_srcdir=$ac_top_builddir_sub
14119     ac_abs_top_srcdir=$ac_pwd ;;
14120   [\\/]* | ?:[\\/]* )  # Absolute name.
14121     ac_srcdir=$srcdir$ac_dir_suffix;
14122     ac_top_srcdir=$srcdir
14123     ac_abs_top_srcdir=$srcdir ;;
14124   *) # Relative name.
14125     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14126     ac_top_srcdir=$ac_top_build_prefix$srcdir
14127     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14128 esac
14129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14130
14131
14132   case $ac_mode in
14133   :F)
14134   #
14135   # CONFIG_FILE
14136   #
14137
14138   case $INSTALL in
14139   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14140   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14141   esac
14142   ac_MKDIR_P=$MKDIR_P
14143   case $MKDIR_P in
14144   [\\/$]* | ?:[\\/]* ) ;;
14145   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14146   esac
14147 _ACEOF
14148
14149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14150 # If the template does not know about datarootdir, expand it.
14151 # FIXME: This hack should be removed a few years after 2.60.
14152 ac_datarootdir_hack=; ac_datarootdir_seen=
14153 ac_sed_dataroot='
14154 /datarootdir/ {
14155   p
14156   q
14157 }
14158 /@datadir@/p
14159 /@docdir@/p
14160 /@infodir@/p
14161 /@localedir@/p
14162 /@mandir@/p'
14163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14164 *datarootdir*) ac_datarootdir_seen=yes;;
14165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14166   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14168 _ACEOF
14169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14170   ac_datarootdir_hack='
14171   s&@datadir@&$datadir&g
14172   s&@docdir@&$docdir&g
14173   s&@infodir@&$infodir&g
14174   s&@localedir@&$localedir&g
14175   s&@mandir@&$mandir&g
14176   s&\\\${datarootdir}&$datarootdir&g' ;;
14177 esac
14178 _ACEOF
14179
14180 # Neutralize VPATH when `$srcdir' = `.'.
14181 # Shell code in configure.ac might set extrasub.
14182 # FIXME: do we really want to maintain this feature?
14183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14184 ac_sed_extra="$ac_vpsub
14185 $extrasub
14186 _ACEOF
14187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188 :t
14189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14190 s|@configure_input@|$ac_sed_conf_input|;t t
14191 s&@top_builddir@&$ac_top_builddir_sub&;t t
14192 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14193 s&@srcdir@&$ac_srcdir&;t t
14194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14195 s&@top_srcdir@&$ac_top_srcdir&;t t
14196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14197 s&@builddir@&$ac_builddir&;t t
14198 s&@abs_builddir@&$ac_abs_builddir&;t t
14199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14200 s&@INSTALL@&$ac_INSTALL&;t t
14201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14202 $ac_datarootdir_hack
14203 "
14204 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14205   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14206
14207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14208   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14209   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14210       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14211   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14212 which seems to be undefined.  Please make sure it is defined" >&5
14213 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14214 which seems to be undefined.  Please make sure it is defined" >&2;}
14215
14216   rm -f "$ac_tmp/stdin"
14217   case $ac_file in
14218   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14219   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14220   esac \
14221   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14222  ;;
14223   :H)
14224   #
14225   # CONFIG_HEADER
14226   #
14227   if test x"$ac_file" != x-; then
14228     {
14229       $as_echo "/* $configure_input  */" \
14230       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14231     } >"$ac_tmp/config.h" \
14232       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14233     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14234       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14235 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14236     else
14237       rm -f "$ac_file"
14238       mv "$ac_tmp/config.h" "$ac_file" \
14239         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14240     fi
14241   else
14242     $as_echo "/* $configure_input  */" \
14243       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14244       || as_fn_error $? "could not create -" "$LINENO" 5
14245   fi
14246 # Compute "$ac_file"'s index in $config_headers.
14247 _am_arg="$ac_file"
14248 _am_stamp_count=1
14249 for _am_header in $config_headers :; do
14250   case $_am_header in
14251     $_am_arg | $_am_arg:* )
14252       break ;;
14253     * )
14254       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14255   esac
14256 done
14257 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14258 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14259          X"$_am_arg" : 'X\(//\)[^/]' \| \
14260          X"$_am_arg" : 'X\(//\)$' \| \
14261          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14262 $as_echo X"$_am_arg" |
14263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14264             s//\1/
14265             q
14266           }
14267           /^X\(\/\/\)[^/].*/{
14268             s//\1/
14269             q
14270           }
14271           /^X\(\/\/\)$/{
14272             s//\1/
14273             q
14274           }
14275           /^X\(\/\).*/{
14276             s//\1/
14277             q
14278           }
14279           s/.*/./; q'`/stamp-h$_am_stamp_count
14280  ;;
14281
14282   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14283 $as_echo "$as_me: executing $ac_file commands" >&6;}
14284  ;;
14285   esac
14286
14287
14288   case $ac_file$ac_mode in
14289     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14290   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14291   # are listed without --file.  Let's play safe and only enable the eval
14292   # if we detect the quoting.
14293   case $CONFIG_FILES in
14294   *\'*) eval set x "$CONFIG_FILES" ;;
14295   *)   set x $CONFIG_FILES ;;
14296   esac
14297   shift
14298   for mf
14299   do
14300     # Strip MF so we end up with the name of the file.
14301     mf=`echo "$mf" | sed -e 's/:.*$//'`
14302     # Check whether this is an Automake generated Makefile or not.
14303     # We used to match only the files named `Makefile.in', but
14304     # some people rename them; so instead we look at the file content.
14305     # Grep'ing the first line is not enough: some people post-process
14306     # each Makefile.in and add a new line on top of each file to say so.
14307     # Grep'ing the whole file is not good either: AIX grep has a line
14308     # limit of 2048, but all sed's we know have understand at least 4000.
14309     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14310       dirpart=`$as_dirname -- "$mf" ||
14311 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312          X"$mf" : 'X\(//\)[^/]' \| \
14313          X"$mf" : 'X\(//\)$' \| \
14314          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14315 $as_echo X"$mf" |
14316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14317             s//\1/
14318             q
14319           }
14320           /^X\(\/\/\)[^/].*/{
14321             s//\1/
14322             q
14323           }
14324           /^X\(\/\/\)$/{
14325             s//\1/
14326             q
14327           }
14328           /^X\(\/\).*/{
14329             s//\1/
14330             q
14331           }
14332           s/.*/./; q'`
14333     else
14334       continue
14335     fi
14336     # Extract the definition of DEPDIR, am__include, and am__quote
14337     # from the Makefile without running `make'.
14338     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14339     test -z "$DEPDIR" && continue
14340     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14341     test -z "am__include" && continue
14342     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14343     # When using ansi2knr, U may be empty or an underscore; expand it
14344     U=`sed -n 's/^U = //p' < "$mf"`
14345     # Find all dependency output files, they are included files with
14346     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14347     # simplest approach to changing $(DEPDIR) to its actual value in the
14348     # expansion.
14349     for file in `sed -n "
14350       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14351          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14352       # Make sure the directory exists.
14353       test -f "$dirpart/$file" && continue
14354       fdir=`$as_dirname -- "$file" ||
14355 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14356          X"$file" : 'X\(//\)[^/]' \| \
14357          X"$file" : 'X\(//\)$' \| \
14358          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14359 $as_echo X"$file" |
14360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14361             s//\1/
14362             q
14363           }
14364           /^X\(\/\/\)[^/].*/{
14365             s//\1/
14366             q
14367           }
14368           /^X\(\/\/\)$/{
14369             s//\1/
14370             q
14371           }
14372           /^X\(\/\).*/{
14373             s//\1/
14374             q
14375           }
14376           s/.*/./; q'`
14377       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14378       # echo "creating $dirpart/$file"
14379       echo '# dummy' > "$dirpart/$file"
14380     done
14381   done
14382 }
14383  ;;
14384     "libtool":C)
14385
14386     # See if we are running on zsh, and set the options which allow our
14387     # commands through without removal of \ escapes.
14388     if test -n "${ZSH_VERSION+set}" ; then
14389       setopt NO_GLOB_SUBST
14390     fi
14391
14392     cfgfile="${ofile}T"
14393     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14394     $RM "$cfgfile"
14395
14396     cat <<_LT_EOF >> "$cfgfile"
14397 #! $SHELL
14398
14399 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14400 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14402 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14403 #
14404 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14405 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14406 #                 Foundation, Inc.
14407 #   Written by Gordon Matzigkeit, 1996
14408 #
14409 #   This file is part of GNU Libtool.
14410 #
14411 # GNU Libtool is free software; you can redistribute it and/or
14412 # modify it under the terms of the GNU General Public License as
14413 # published by the Free Software Foundation; either version 2 of
14414 # the License, or (at your option) any later version.
14415 #
14416 # As a special exception to the GNU General Public License,
14417 # if you distribute this file as part of a program or library that
14418 # is built using GNU Libtool, you may include this file under the
14419 # same distribution terms that you use for the rest of that program.
14420 #
14421 # GNU Libtool is distributed in the hope that it will be useful,
14422 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14424 # GNU General Public License for more details.
14425 #
14426 # You should have received a copy of the GNU General Public License
14427 # along with GNU Libtool; see the file COPYING.  If not, a copy
14428 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14429 # obtained by writing to the Free Software Foundation, Inc.,
14430 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14431
14432
14433 # The names of the tagged configurations supported by this script.
14434 available_tags=""
14435
14436 # ### BEGIN LIBTOOL CONFIG
14437
14438 # Which release of libtool.m4 was used?
14439 macro_version=$macro_version
14440 macro_revision=$macro_revision
14441
14442 # Whether or not to build static libraries.
14443 build_old_libs=$enable_static
14444
14445 # Whether or not to build shared libraries.
14446 build_libtool_libs=$enable_shared
14447
14448 # What type of objects to build.
14449 pic_mode=$pic_mode
14450
14451 # Whether or not to optimize for fast installation.
14452 fast_install=$enable_fast_install
14453
14454 # Shell to use when invoking shell scripts.
14455 SHELL=$lt_SHELL
14456
14457 # An echo program that protects backslashes.
14458 ECHO=$lt_ECHO
14459
14460 # The PATH separator for the build system.
14461 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14462
14463 # The host system.
14464 host_alias=$host_alias
14465 host=$host
14466 host_os=$host_os
14467
14468 # The build system.
14469 build_alias=$build_alias
14470 build=$build
14471 build_os=$build_os
14472
14473 # A sed program that does not truncate output.
14474 SED=$lt_SED
14475
14476 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14477 Xsed="\$SED -e 1s/^X//"
14478
14479 # A grep program that handles long lines.
14480 GREP=$lt_GREP
14481
14482 # An ERE matcher.
14483 EGREP=$lt_EGREP
14484
14485 # A literal string matcher.
14486 FGREP=$lt_FGREP
14487
14488 # A BSD- or MS-compatible name lister.
14489 NM=$lt_NM
14490
14491 # Whether we need soft or hard links.
14492 LN_S=$lt_LN_S
14493
14494 # What is the maximum length of a command?
14495 max_cmd_len=$max_cmd_len
14496
14497 # Object file suffix (normally "o").
14498 objext=$ac_objext
14499
14500 # Executable file suffix (normally "").
14501 exeext=$exeext
14502
14503 # whether the shell understands "unset".
14504 lt_unset=$lt_unset
14505
14506 # turn spaces into newlines.
14507 SP2NL=$lt_lt_SP2NL
14508
14509 # turn newlines into spaces.
14510 NL2SP=$lt_lt_NL2SP
14511
14512 # convert \$build file names to \$host format.
14513 to_host_file_cmd=$lt_cv_to_host_file_cmd
14514
14515 # convert \$build files to toolchain format.
14516 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14517
14518 # An object symbol dumper.
14519 OBJDUMP=$lt_OBJDUMP
14520
14521 # Method to check whether dependent libraries are shared objects.
14522 deplibs_check_method=$lt_deplibs_check_method
14523
14524 # Command to use when deplibs_check_method = "file_magic".
14525 file_magic_cmd=$lt_file_magic_cmd
14526
14527 # How to find potential files when deplibs_check_method = "file_magic".
14528 file_magic_glob=$lt_file_magic_glob
14529
14530 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14531 want_nocaseglob=$lt_want_nocaseglob
14532
14533 # DLL creation program.
14534 DLLTOOL=$lt_DLLTOOL
14535
14536 # Command to associate shared and link libraries.
14537 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14538
14539 # The archiver.
14540 AR=$lt_AR
14541
14542 # Flags to create an archive.
14543 AR_FLAGS=$lt_AR_FLAGS
14544
14545 # How to feed a file listing to the archiver.
14546 archiver_list_spec=$lt_archiver_list_spec
14547
14548 # A symbol stripping program.
14549 STRIP=$lt_STRIP
14550
14551 # Commands used to install an old-style archive.
14552 RANLIB=$lt_RANLIB
14553 old_postinstall_cmds=$lt_old_postinstall_cmds
14554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14555
14556 # Whether to use a lock for old archive extraction.
14557 lock_old_archive_extraction=$lock_old_archive_extraction
14558
14559 # A C compiler.
14560 LTCC=$lt_CC
14561
14562 # LTCC compiler flags.
14563 LTCFLAGS=$lt_CFLAGS
14564
14565 # Take the output of nm and produce a listing of raw symbols and C names.
14566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14567
14568 # Transform the output of nm in a proper C declaration.
14569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14570
14571 # Transform the output of nm in a C name address pair.
14572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14573
14574 # Transform the output of nm in a C name address pair when lib prefix is needed.
14575 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14576
14577 # Specify filename containing input files for \$NM.
14578 nm_file_list_spec=$lt_nm_file_list_spec
14579
14580 # The root where to search for dependent libraries,and in which our libraries should be installed.
14581 lt_sysroot=$lt_sysroot
14582
14583 # The name of the directory that contains temporary libtool files.
14584 objdir=$objdir
14585
14586 # Used to examine libraries when file_magic_cmd begins with "file".
14587 MAGIC_CMD=$MAGIC_CMD
14588
14589 # Must we lock files when doing compilation?
14590 need_locks=$lt_need_locks
14591
14592 # Manifest tool.
14593 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14594
14595 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14596 DSYMUTIL=$lt_DSYMUTIL
14597
14598 # Tool to change global to local symbols on Mac OS X.
14599 NMEDIT=$lt_NMEDIT
14600
14601 # Tool to manipulate fat objects and archives on Mac OS X.
14602 LIPO=$lt_LIPO
14603
14604 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14605 OTOOL=$lt_OTOOL
14606
14607 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14608 OTOOL64=$lt_OTOOL64
14609
14610 # Old archive suffix (normally "a").
14611 libext=$libext
14612
14613 # Shared library suffix (normally ".so").
14614 shrext_cmds=$lt_shrext_cmds
14615
14616 # The commands to extract the exported symbol list from a shared archive.
14617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14618
14619 # Variables whose values should be saved in libtool wrapper scripts and
14620 # restored at link time.
14621 variables_saved_for_relink=$lt_variables_saved_for_relink
14622
14623 # Do we need the "lib" prefix for modules?
14624 need_lib_prefix=$need_lib_prefix
14625
14626 # Do we need a version for libraries?
14627 need_version=$need_version
14628
14629 # Library versioning type.
14630 version_type=$version_type
14631
14632 # Shared library runtime path variable.
14633 runpath_var=$runpath_var
14634
14635 # Shared library path variable.
14636 shlibpath_var=$shlibpath_var
14637
14638 # Is shlibpath searched before the hard-coded library search path?
14639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14640
14641 # Format of library name prefix.
14642 libname_spec=$lt_libname_spec
14643
14644 # List of archive names.  First name is the real one, the rest are links.
14645 # The last name is the one that the linker finds with -lNAME
14646 library_names_spec=$lt_library_names_spec
14647
14648 # The coded name of the library, if different from the real name.
14649 soname_spec=$lt_soname_spec
14650
14651 # Permission mode override for installation of shared libraries.
14652 install_override_mode=$lt_install_override_mode
14653
14654 # Command to use after installation of a shared archive.
14655 postinstall_cmds=$lt_postinstall_cmds
14656
14657 # Command to use after uninstallation of a shared archive.
14658 postuninstall_cmds=$lt_postuninstall_cmds
14659
14660 # Commands used to finish a libtool library installation in a directory.
14661 finish_cmds=$lt_finish_cmds
14662
14663 # As "finish_cmds", except a single script fragment to be evaled but
14664 # not shown.
14665 finish_eval=$lt_finish_eval
14666
14667 # Whether we should hardcode library paths into libraries.
14668 hardcode_into_libs=$hardcode_into_libs
14669
14670 # Compile-time system search path for libraries.
14671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14672
14673 # Run-time system search path for libraries.
14674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14675
14676 # Whether dlopen is supported.
14677 dlopen_support=$enable_dlopen
14678
14679 # Whether dlopen of programs is supported.
14680 dlopen_self=$enable_dlopen_self
14681
14682 # Whether dlopen of statically linked programs is supported.
14683 dlopen_self_static=$enable_dlopen_self_static
14684
14685 # Commands to strip libraries.
14686 old_striplib=$lt_old_striplib
14687 striplib=$lt_striplib
14688
14689
14690 # The linker used to build libraries.
14691 LD=$lt_LD
14692
14693 # How to create reloadable object files.
14694 reload_flag=$lt_reload_flag
14695 reload_cmds=$lt_reload_cmds
14696
14697 # Commands used to build an old-style archive.
14698 old_archive_cmds=$lt_old_archive_cmds
14699
14700 # A language specific compiler.
14701 CC=$lt_compiler
14702
14703 # Is the compiler the GNU compiler?
14704 with_gcc=$GCC
14705
14706 # Compiler flag to turn off builtin functions.
14707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14708
14709 # Additional compiler flags for building library objects.
14710 pic_flag=$lt_lt_prog_compiler_pic
14711
14712 # How to pass a linker flag through the compiler.
14713 wl=$lt_lt_prog_compiler_wl
14714
14715 # Compiler flag to prevent dynamic linking.
14716 link_static_flag=$lt_lt_prog_compiler_static
14717
14718 # Does compiler simultaneously support -c and -o options?
14719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14720
14721 # Whether or not to add -lc for building shared libraries.
14722 build_libtool_need_lc=$archive_cmds_need_lc
14723
14724 # Whether or not to disallow shared libs when runtime libs are static.
14725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14726
14727 # Compiler flag to allow reflexive dlopens.
14728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14729
14730 # Compiler flag to generate shared objects directly from archives.
14731 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14732
14733 # Whether the compiler copes with passing no objects directly.
14734 compiler_needs_object=$lt_compiler_needs_object
14735
14736 # Create an old-style archive from a shared archive.
14737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14738
14739 # Create a temporary old-style archive to link instead of a shared archive.
14740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14741
14742 # Commands used to build a shared archive.
14743 archive_cmds=$lt_archive_cmds
14744 archive_expsym_cmds=$lt_archive_expsym_cmds
14745
14746 # Commands used to build a loadable module if different from building
14747 # a shared archive.
14748 module_cmds=$lt_module_cmds
14749 module_expsym_cmds=$lt_module_expsym_cmds
14750
14751 # Whether we are building with GNU ld or not.
14752 with_gnu_ld=$lt_with_gnu_ld
14753
14754 # Flag that allows shared libraries with undefined symbols to be built.
14755 allow_undefined_flag=$lt_allow_undefined_flag
14756
14757 # Flag that enforces no undefined symbols.
14758 no_undefined_flag=$lt_no_undefined_flag
14759
14760 # Flag to hardcode \$libdir into a binary during linking.
14761 # This must work even if \$libdir does not exist
14762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14763
14764 # Whether we need a single "-rpath" flag with a separated argument.
14765 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14766
14767 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14768 # DIR into the resulting binary.
14769 hardcode_direct=$hardcode_direct
14770
14771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14772 # DIR into the resulting binary and the resulting library dependency is
14773 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14774 # library is relocated.
14775 hardcode_direct_absolute=$hardcode_direct_absolute
14776
14777 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14778 # into the resulting binary.
14779 hardcode_minus_L=$hardcode_minus_L
14780
14781 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14782 # into the resulting binary.
14783 hardcode_shlibpath_var=$hardcode_shlibpath_var
14784
14785 # Set to "yes" if building a shared library automatically hardcodes DIR
14786 # into the library and all subsequent libraries and executables linked
14787 # against it.
14788 hardcode_automatic=$hardcode_automatic
14789
14790 # Set to yes if linker adds runtime paths of dependent libraries
14791 # to runtime path list.
14792 inherit_rpath=$inherit_rpath
14793
14794 # Whether libtool must link a program against all its dependency libraries.
14795 link_all_deplibs=$link_all_deplibs
14796
14797 # Set to "yes" if exported symbols are required.
14798 always_export_symbols=$always_export_symbols
14799
14800 # The commands to list exported symbols.
14801 export_symbols_cmds=$lt_export_symbols_cmds
14802
14803 # Symbols that should not be listed in the preloaded symbols.
14804 exclude_expsyms=$lt_exclude_expsyms
14805
14806 # Symbols that must always be exported.
14807 include_expsyms=$lt_include_expsyms
14808
14809 # Commands necessary for linking programs (against libraries) with templates.
14810 prelink_cmds=$lt_prelink_cmds
14811
14812 # Commands necessary for finishing linking programs.
14813 postlink_cmds=$lt_postlink_cmds
14814
14815 # Specify filename containing input files.
14816 file_list_spec=$lt_file_list_spec
14817
14818 # How to hardcode a shared library path into an executable.
14819 hardcode_action=$hardcode_action
14820
14821 # ### END LIBTOOL CONFIG
14822
14823 _LT_EOF
14824
14825   case $host_os in
14826   aix3*)
14827     cat <<\_LT_EOF >> "$cfgfile"
14828 # AIX sometimes has problems with the GCC collect2 program.  For some
14829 # reason, if we set the COLLECT_NAMES environment variable, the problems
14830 # vanish in a puff of smoke.
14831 if test "X${COLLECT_NAMES+set}" != Xset; then
14832   COLLECT_NAMES=
14833   export COLLECT_NAMES
14834 fi
14835 _LT_EOF
14836     ;;
14837   esac
14838
14839
14840 ltmain="$ac_aux_dir/ltmain.sh"
14841
14842
14843   # We use sed instead of cat because bash on DJGPP gets confused if
14844   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14845   # text mode, it properly converts lines to CR/LF.  This bash problem
14846   # is reportedly fixed, but why not run on old versions too?
14847   sed '$q' "$ltmain" >> "$cfgfile" \
14848      || (rm -f "$cfgfile"; exit 1)
14849
14850   if test x"$xsi_shell" = xyes; then
14851   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14852 func_dirname ()\
14853 {\
14854 \    case ${1} in\
14855 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14856 \      *  ) func_dirname_result="${3}" ;;\
14857 \    esac\
14858 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14859   && mv -f "$cfgfile.tmp" "$cfgfile" \
14860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14861 test 0 -eq $? || _lt_function_replace_fail=:
14862
14863
14864   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14865 func_basename ()\
14866 {\
14867 \    func_basename_result="${1##*/}"\
14868 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14869   && mv -f "$cfgfile.tmp" "$cfgfile" \
14870     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14871 test 0 -eq $? || _lt_function_replace_fail=:
14872
14873
14874   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14875 func_dirname_and_basename ()\
14876 {\
14877 \    case ${1} in\
14878 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14879 \      *  ) func_dirname_result="${3}" ;;\
14880 \    esac\
14881 \    func_basename_result="${1##*/}"\
14882 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14883   && mv -f "$cfgfile.tmp" "$cfgfile" \
14884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14885 test 0 -eq $? || _lt_function_replace_fail=:
14886
14887
14888   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14889 func_stripname ()\
14890 {\
14891 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14892 \    # positional parameters, so assign one to ordinary parameter first.\
14893 \    func_stripname_result=${3}\
14894 \    func_stripname_result=${func_stripname_result#"${1}"}\
14895 \    func_stripname_result=${func_stripname_result%"${2}"}\
14896 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14897   && mv -f "$cfgfile.tmp" "$cfgfile" \
14898     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14899 test 0 -eq $? || _lt_function_replace_fail=:
14900
14901
14902   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14903 func_split_long_opt ()\
14904 {\
14905 \    func_split_long_opt_name=${1%%=*}\
14906 \    func_split_long_opt_arg=${1#*=}\
14907 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14908   && mv -f "$cfgfile.tmp" "$cfgfile" \
14909     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14910 test 0 -eq $? || _lt_function_replace_fail=:
14911
14912
14913   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14914 func_split_short_opt ()\
14915 {\
14916 \    func_split_short_opt_arg=${1#??}\
14917 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14918 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14919   && mv -f "$cfgfile.tmp" "$cfgfile" \
14920     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14921 test 0 -eq $? || _lt_function_replace_fail=:
14922
14923
14924   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14925 func_lo2o ()\
14926 {\
14927 \    case ${1} in\
14928 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14929 \      *)    func_lo2o_result=${1} ;;\
14930 \    esac\
14931 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14932   && mv -f "$cfgfile.tmp" "$cfgfile" \
14933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14934 test 0 -eq $? || _lt_function_replace_fail=:
14935
14936
14937   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14938 func_xform ()\
14939 {\
14940     func_xform_result=${1%.*}.lo\
14941 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14942   && mv -f "$cfgfile.tmp" "$cfgfile" \
14943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14944 test 0 -eq $? || _lt_function_replace_fail=:
14945
14946
14947   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14948 func_arith ()\
14949 {\
14950     func_arith_result=$(( $* ))\
14951 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14952   && mv -f "$cfgfile.tmp" "$cfgfile" \
14953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14954 test 0 -eq $? || _lt_function_replace_fail=:
14955
14956
14957   sed -e '/^func_len ()$/,/^} # func_len /c\
14958 func_len ()\
14959 {\
14960     func_len_result=${#1}\
14961 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14962   && mv -f "$cfgfile.tmp" "$cfgfile" \
14963     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14964 test 0 -eq $? || _lt_function_replace_fail=:
14965
14966 fi
14967
14968 if test x"$lt_shell_append" = xyes; then
14969   sed -e '/^func_append ()$/,/^} # func_append /c\
14970 func_append ()\
14971 {\
14972     eval "${1}+=\\${2}"\
14973 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14974   && mv -f "$cfgfile.tmp" "$cfgfile" \
14975     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14976 test 0 -eq $? || _lt_function_replace_fail=:
14977
14978
14979   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14980 func_append_quoted ()\
14981 {\
14982 \    func_quote_for_eval "${2}"\
14983 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14984 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14985   && mv -f "$cfgfile.tmp" "$cfgfile" \
14986     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14987 test 0 -eq $? || _lt_function_replace_fail=:
14988
14989
14990   # Save a `func_append' function call where possible by direct use of '+='
14991   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14992     && mv -f "$cfgfile.tmp" "$cfgfile" \
14993       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14994   test 0 -eq $? || _lt_function_replace_fail=:
14995 else
14996   # Save a `func_append' function call even when '+=' is not available
14997   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14998     && mv -f "$cfgfile.tmp" "$cfgfile" \
14999       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15000   test 0 -eq $? || _lt_function_replace_fail=:
15001 fi
15002
15003 if test x"$_lt_function_replace_fail" = x":"; then
15004   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15005 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15006 fi
15007
15008
15009    mv -f "$cfgfile" "$ofile" ||
15010     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15011   chmod +x "$ofile"
15012
15013  ;;
15014
15015   esac
15016 done # for ac_tag
15017
15018
15019 as_fn_exit 0
15020 _ACEOF
15021 ac_clean_files=$ac_clean_files_save
15022
15023 test $ac_write_fail = 0 ||
15024   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15025
15026
15027 # configure is writing to config.log, and then calls config.status.
15028 # config.status does its own redirection, appending to config.log.
15029 # Unfortunately, on DOS this fails, as config.log is still kept open
15030 # by configure, so config.status won't be able to write to it; its
15031 # output is simply discarded.  So we exec the FD to /dev/null,
15032 # effectively closing config.log, so it can be properly (re)opened and
15033 # appended to by config.status.  When coming back to configure, we
15034 # need to make the FD available again.
15035 if test "$no_create" != yes; then
15036   ac_cs_success=:
15037   ac_config_status_args=
15038   test "$silent" = yes &&
15039     ac_config_status_args="$ac_config_status_args --quiet"
15040   exec 5>/dev/null
15041   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15042   exec 5>>config.log
15043   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15044   # would make configure fail if this is the last instruction.
15045   $ac_cs_success || as_fn_exit 1
15046 fi
15047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15050 fi
15051
15052
15053 $as_echo "-------------------------------------------------
15054
15055 ${PACKAGE_NAME} Version ${PACKAGE_VERSION}
15056
15057 Prefix    : '${prefix}'.
15058 Compiler  : '${CC}'
15059 CFLAGS    : '${CFLAGS}'
15060
15061 -Package features:
15062         - enable-werror       : ${enable_werror}
15063         - enable-debug        : ${enable_debug}
15064         - disable-optimization: ${disable_optimization}
15065         - with-log-level      : ${with_log_level}
15066
15067 --------------------------------------------------"