e08d2560be0818ca8845b742b5f2681bd11d2bd4
[profile/ivi/GUPnP.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gupnp 0.19.1.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571   # Use only awk features that work with 7th edition Unix awk (1978).
572   # My, what an old awk you have, Mr. Solaris!
573   END {
574     while (length(v1) && length(v2)) {
575       # Set d1 to be the next thing to compare from v1, and likewise for d2.
576       # Normally this is a single character, but if v1 and v2 contain digits,
577       # compare them as integers and fractions as strverscmp does.
578       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579         # Split v1 and v2 into their leading digit string components d1 and d2,
580         # and advance v1 and v2 past the leading digit strings.
581         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585         if (d1 ~ /^0/) {
586           if (d2 ~ /^0/) {
587             # Compare two fractions.
588             while (d1 ~ /^0/ && d2 ~ /^0/) {
589               d1 = substr(d1, 2); len1--
590               d2 = substr(d2, 2); len2--
591             }
592             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593               # The two components differ in length, and the common prefix
594               # contains only leading zeros.  Consider the longer to be less.
595               d1 = -len1
596               d2 = -len2
597             } else {
598               # Otherwise, compare as strings.
599               d1 = "x" d1
600               d2 = "x" d2
601             }
602           } else {
603             # A fraction is less than an integer.
604             exit 1
605           }
606         } else {
607           if (d2 ~ /^0/) {
608             # An integer is greater than a fraction.
609             exit 2
610           } else {
611             # Compare two integers.
612             d1 += 0
613             d2 += 0
614           }
615         }
616       } else {
617         # The normal case, without worrying about digits.
618         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620       }
621       if (d1 < d2) exit 1
622       if (d1 > d2) exit 2
623     }
624     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625     # which mishandles some comparisons of empty strings to integers.
626     if (length(v2)) exit 1
627     if (length(v1)) exit 2
628   }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='gupnp'
653 PACKAGE_TARNAME='gupnp'
654 PACKAGE_VERSION='0.19.1'
655 PACKAGE_STRING='gupnp 0.19.1'
656 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp'
657 PACKAGE_URL='http://www.gupnp.org/'
658
659 ac_unique_file="libgupnp/gupnp.h"
660 ac_header_list=
661 # Factoring default headers for most tests.
662 ac_includes_default="\
663 #include <stdio.h>
664 #ifdef HAVE_SYS_TYPES_H
665 # include <sys/types.h>
666 #endif
667 #ifdef HAVE_SYS_STAT_H
668 # include <sys/stat.h>
669 #endif
670 #ifdef STDC_HEADERS
671 # include <stdlib.h>
672 # include <stddef.h>
673 #else
674 # ifdef HAVE_STDLIB_H
675 #  include <stdlib.h>
676 # endif
677 #endif
678 #ifdef HAVE_STRING_H
679 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
680 #  include <memory.h>
681 # endif
682 # include <string.h>
683 #endif
684 #ifdef HAVE_STRINGS_H
685 # include <strings.h>
686 #endif
687 #ifdef HAVE_INTTYPES_H
688 # include <inttypes.h>
689 #endif
690 #ifdef HAVE_STDINT_H
691 # include <stdint.h>
692 #endif
693 #ifdef HAVE_UNISTD_H
694 # include <unistd.h>
695 #endif"
696
697 ac_subst_vars='am__EXEEXT_FALSE
698 am__EXEEXT_TRUE
699 LTLIBOBJS
700 LIBOBJS
701 GTK_DOC_USE_REBASE_FALSE
702 GTK_DOC_USE_REBASE_TRUE
703 GTK_DOC_USE_LIBTOOL_FALSE
704 GTK_DOC_USE_LIBTOOL_TRUE
705 GTK_DOC_BUILD_PDF_FALSE
706 GTK_DOC_BUILD_PDF_TRUE
707 GTK_DOC_BUILD_HTML_FALSE
708 GTK_DOC_BUILD_HTML_TRUE
709 ENABLE_GTK_DOC_FALSE
710 ENABLE_GTK_DOC_TRUE
711 GTKDOC_DEPS_LIBS
712 GTKDOC_DEPS_CFLAGS
713 HTML_DIR
714 GTKDOC_MKPDF
715 GTKDOC_REBASE
716 GTKDOC_CHECK
717 HAVE_VAPIGEN_FALSE
718 HAVE_VAPIGEN_TRUE
719 VAPIGEN
720 HAVE_INTROSPECTION_FALSE
721 HAVE_INTROSPECTION_TRUE
722 INTROSPECTION_MAKEFILE
723 INTROSPECTION_LIBS
724 INTROSPECTION_CFLAGS
725 INTROSPECTION_TYPELIBDIR
726 INTROSPECTION_GIRDIR
727 INTROSPECTION_GENERATE
728 INTROSPECTION_COMPILER
729 INTROSPECTION_SCANNER
730 GLIB_GENMARSHAL
731 USE_NETLINK
732 USE_NETLINK_FALSE
733 USE_NETLINK_TRUE
734 CONNMAN_LIBS
735 CONNMAN_CFLAGS
736 USE_CONNMAN_FALSE
737 USE_CONNMAN_TRUE
738 GIO_LIBS
739 GIO_CFLAGS
740 USE_NETWORK_MANAGER_FALSE
741 USE_NETWORK_MANAGER_TRUE
742 HAVE_NETLINK
743 HAVE_NETLINK_FALSE
744 HAVE_NETLINK_TRUE
745 GTHREAD_LIBS
746 GTHREAD_CFLAGS
747 LIBGUPNP_LIBS
748 LIBGUPNP_CFLAGS
749 HAVE_GTEST_FALSE
750 HAVE_GTEST_TRUE
751 GTest_LIBS
752 GTest_CFLAGS
753 PKG_CONFIG_LIBDIR
754 PKG_CONFIG_PATH
755 PKG_CONFIG
756 OTOOL64
757 OTOOL
758 LIPO
759 NMEDIT
760 DSYMUTIL
761 MANIFEST_TOOL
762 RANLIB
763 ac_ct_AR
764 AR
765 DLLTOOL
766 OBJDUMP
767 LN_S
768 NM
769 ac_ct_DUMPBIN
770 DUMPBIN
771 LD
772 FGREP
773 SED
774 LIBTOOL
775 EGREP
776 GREP
777 CPP
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__quote
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 AM_BACKSLASH
796 AM_DEFAULT_VERBOSITY
797 AM_DEFAULT_V
798 AM_V
799 MAINT
800 MAINTAINER_MODE_FALSE
801 MAINTAINER_MODE_TRUE
802 am__untar
803 am__tar
804 AMTAR
805 am__leading_dot
806 SET_MAKE
807 AWK
808 mkdir_p
809 MKDIR_P
810 INSTALL_STRIP_PROGRAM
811 STRIP
812 install_sh
813 MAKEINFO
814 AUTOHEADER
815 AUTOMAKE
816 AUTOCONF
817 ACLOCAL
818 VERSION
819 PACKAGE
820 CYGPATH_W
821 am__isrc
822 INSTALL_DATA
823 INSTALL_SCRIPT
824 INSTALL_PROGRAM
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files=''
876 ac_user_opts='
877 enable_option_checking
878 enable_maintainer_mode
879 enable_silent_rules
880 enable_dependency_tracking
881 enable_largefile
882 enable_shared
883 enable_static
884 with_pic
885 enable_fast_install
886 with_gnu_ld
887 with_sysroot
888 enable_libtool_lock
889 with_context_manager
890 enable_debug
891 enable_introspection
892 with_html_dir
893 enable_gtk_doc
894 enable_gtk_doc_html
895 enable_gtk_doc_pdf
896 '
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 PKG_CONFIG
907 PKG_CONFIG_PATH
908 PKG_CONFIG_LIBDIR
909 GTest_CFLAGS
910 GTest_LIBS
911 LIBGUPNP_CFLAGS
912 LIBGUPNP_LIBS
913 GTHREAD_CFLAGS
914 GTHREAD_LIBS
915 GIO_CFLAGS
916 GIO_LIBS
917 CONNMAN_CFLAGS
918 CONNMAN_LIBS
919 GTKDOC_DEPS_CFLAGS
920 GTKDOC_DEPS_LIBS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975   # If the previous option needs an argument, assign it.
976   if test -n "$ac_prev"; then
977     eval $ac_prev=\$ac_option
978     ac_prev=
979     continue
980   fi
981
982   case $ac_option in
983   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984   *=)   ac_optarg= ;;
985   *)    ac_optarg=yes ;;
986   esac
987
988   # Accept the important Cygnus configure options, so we can diagnose typos.
989
990   case $ac_dashdash$ac_option in
991   --)
992     ac_dashdash=yes ;;
993
994   -bindir | --bindir | --bindi | --bind | --bin | --bi)
995     ac_prev=bindir ;;
996   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997     bindir=$ac_optarg ;;
998
999   -build | --build | --buil | --bui | --bu)
1000     ac_prev=build_alias ;;
1001   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002     build_alias=$ac_optarg ;;
1003
1004   -cache-file | --cache-file | --cache-fil | --cache-fi \
1005   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006     ac_prev=cache_file ;;
1007   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009     cache_file=$ac_optarg ;;
1010
1011   --config-cache | -C)
1012     cache_file=config.cache ;;
1013
1014   -datadir | --datadir | --datadi | --datad)
1015     ac_prev=datadir ;;
1016   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017     datadir=$ac_optarg ;;
1018
1019   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020   | --dataroo | --dataro | --datar)
1021     ac_prev=datarootdir ;;
1022   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024     datarootdir=$ac_optarg ;;
1025
1026   -disable-* | --disable-*)
1027     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030       as_fn_error $? "invalid feature name: $ac_useropt"
1031     ac_useropt_orig=$ac_useropt
1032     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033     case $ac_user_opts in
1034       *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038          ac_unrecognized_sep=', ';;
1039     esac
1040     eval enable_$ac_useropt=no ;;
1041
1042   -docdir | --docdir | --docdi | --doc | --do)
1043     ac_prev=docdir ;;
1044   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045     docdir=$ac_optarg ;;
1046
1047   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048     ac_prev=dvidir ;;
1049   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050     dvidir=$ac_optarg ;;
1051
1052   -enable-* | --enable-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error $? "invalid feature name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070   | --exec | --exe | --ex)
1071     ac_prev=exec_prefix ;;
1072   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074   | --exec=* | --exe=* | --ex=*)
1075     exec_prefix=$ac_optarg ;;
1076
1077   -gas | --gas | --ga | --g)
1078     # Obsolete; use --with-gas.
1079     with_gas=yes ;;
1080
1081   -help | --help | --hel | --he | -h)
1082     ac_init_help=long ;;
1083   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084     ac_init_help=recursive ;;
1085   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086     ac_init_help=short ;;
1087
1088   -host | --host | --hos | --ho)
1089     ac_prev=host_alias ;;
1090   -host=* | --host=* | --hos=* | --ho=*)
1091     host_alias=$ac_optarg ;;
1092
1093   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094     ac_prev=htmldir ;;
1095   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096   | --ht=*)
1097     htmldir=$ac_optarg ;;
1098
1099   -includedir | --includedir | --includedi | --included | --include \
1100   | --includ | --inclu | --incl | --inc)
1101     ac_prev=includedir ;;
1102   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103   | --includ=* | --inclu=* | --incl=* | --inc=*)
1104     includedir=$ac_optarg ;;
1105
1106   -infodir | --infodir | --infodi | --infod | --info | --inf)
1107     ac_prev=infodir ;;
1108   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109     infodir=$ac_optarg ;;
1110
1111   -libdir | --libdir | --libdi | --libd)
1112     ac_prev=libdir ;;
1113   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114     libdir=$ac_optarg ;;
1115
1116   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117   | --libexe | --libex | --libe)
1118     ac_prev=libexecdir ;;
1119   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120   | --libexe=* | --libex=* | --libe=*)
1121     libexecdir=$ac_optarg ;;
1122
1123   -localedir | --localedir | --localedi | --localed | --locale)
1124     ac_prev=localedir ;;
1125   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126     localedir=$ac_optarg ;;
1127
1128   -localstatedir | --localstatedir | --localstatedi | --localstated \
1129   | --localstate | --localstat | --localsta | --localst | --locals)
1130     ac_prev=localstatedir ;;
1131   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133     localstatedir=$ac_optarg ;;
1134
1135   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136     ac_prev=mandir ;;
1137   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138     mandir=$ac_optarg ;;
1139
1140   -nfp | --nfp | --nf)
1141     # Obsolete; use --without-fp.
1142     with_fp=no ;;
1143
1144   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145   | --no-cr | --no-c | -n)
1146     no_create=yes ;;
1147
1148   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150     no_recursion=yes ;;
1151
1152   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154   | --oldin | --oldi | --old | --ol | --o)
1155     ac_prev=oldincludedir ;;
1156   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159     oldincludedir=$ac_optarg ;;
1160
1161   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162     ac_prev=prefix ;;
1163   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164     prefix=$ac_optarg ;;
1165
1166   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167   | --program-pre | --program-pr | --program-p)
1168     ac_prev=program_prefix ;;
1169   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171     program_prefix=$ac_optarg ;;
1172
1173   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174   | --program-suf | --program-su | --program-s)
1175     ac_prev=program_suffix ;;
1176   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178     program_suffix=$ac_optarg ;;
1179
1180   -program-transform-name | --program-transform-name \
1181   | --program-transform-nam | --program-transform-na \
1182   | --program-transform-n | --program-transform- \
1183   | --program-transform | --program-transfor \
1184   | --program-transfo | --program-transf \
1185   | --program-trans | --program-tran \
1186   | --progr-tra | --program-tr | --program-t)
1187     ac_prev=program_transform_name ;;
1188   -program-transform-name=* | --program-transform-name=* \
1189   | --program-transform-nam=* | --program-transform-na=* \
1190   | --program-transform-n=* | --program-transform-=* \
1191   | --program-transform=* | --program-transfor=* \
1192   | --program-transfo=* | --program-transf=* \
1193   | --program-trans=* | --program-tran=* \
1194   | --progr-tra=* | --program-tr=* | --program-t=*)
1195     program_transform_name=$ac_optarg ;;
1196
1197   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198     ac_prev=pdfdir ;;
1199   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200     pdfdir=$ac_optarg ;;
1201
1202   -psdir | --psdir | --psdi | --psd | --ps)
1203     ac_prev=psdir ;;
1204   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205     psdir=$ac_optarg ;;
1206
1207   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208   | -silent | --silent | --silen | --sile | --sil)
1209     silent=yes ;;
1210
1211   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212     ac_prev=sbindir ;;
1213   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214   | --sbi=* | --sb=*)
1215     sbindir=$ac_optarg ;;
1216
1217   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219   | --sharedst | --shareds | --shared | --share | --shar \
1220   | --sha | --sh)
1221     ac_prev=sharedstatedir ;;
1222   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225   | --sha=* | --sh=*)
1226     sharedstatedir=$ac_optarg ;;
1227
1228   -site | --site | --sit)
1229     ac_prev=site ;;
1230   -site=* | --site=* | --sit=*)
1231     site=$ac_optarg ;;
1232
1233   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234     ac_prev=srcdir ;;
1235   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236     srcdir=$ac_optarg ;;
1237
1238   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239   | --syscon | --sysco | --sysc | --sys | --sy)
1240     ac_prev=sysconfdir ;;
1241   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243     sysconfdir=$ac_optarg ;;
1244
1245   -target | --target | --targe | --targ | --tar | --ta | --t)
1246     ac_prev=target_alias ;;
1247   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248     target_alias=$ac_optarg ;;
1249
1250   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251     verbose=yes ;;
1252
1253   -version | --version | --versio | --versi | --vers | -V)
1254     ac_init_version=: ;;
1255
1256   -with-* | --with-*)
1257     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260       as_fn_error $? "invalid package name: $ac_useropt"
1261     ac_useropt_orig=$ac_useropt
1262     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263     case $ac_user_opts in
1264       *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268          ac_unrecognized_sep=', ';;
1269     esac
1270     eval with_$ac_useropt=\$ac_optarg ;;
1271
1272   -without-* | --without-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       as_fn_error $? "invalid package name: $ac_useropt"
1277     ac_useropt_orig=$ac_useropt
1278     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279     case $ac_user_opts in
1280       *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284          ac_unrecognized_sep=', ';;
1285     esac
1286     eval with_$ac_useropt=no ;;
1287
1288   --x)
1289     # Obsolete; use --with-x.
1290     with_x=yes ;;
1291
1292   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293   | --x-incl | --x-inc | --x-in | --x-i)
1294     ac_prev=x_includes ;;
1295   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297     x_includes=$ac_optarg ;;
1298
1299   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301     ac_prev=x_libraries ;;
1302   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304     x_libraries=$ac_optarg ;;
1305
1306   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307 Try \`$0 --help' for more information"
1308     ;;
1309
1310   *=*)
1311     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312     # Reject names that are not valid shell variable names.
1313     case $ac_envvar in #(
1314       '' | [0-9]* | *[!_$as_cr_alnum]* )
1315       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316     esac
1317     eval $ac_envvar=\$ac_optarg
1318     export $ac_envvar ;;
1319
1320   *)
1321     # FIXME: should be removed in autoconf 3.0.
1322     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326     ;;
1327
1328   esac
1329 done
1330
1331 if test -n "$ac_prev"; then
1332   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333   as_fn_error $? "missing argument to $ac_option"
1334 fi
1335
1336 if test -n "$ac_unrecognized_opts"; then
1337   case $enable_option_checking in
1338     no) ;;
1339     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341   esac
1342 fi
1343
1344 # Check all directory arguments for consistency.
1345 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346                 datadir sysconfdir sharedstatedir localstatedir includedir \
1347                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348                 libdir localedir mandir
1349 do
1350   eval ac_val=\$$ac_var
1351   # Remove trailing slashes.
1352   case $ac_val in
1353     */ )
1354       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355       eval $ac_var=\$ac_val;;
1356   esac
1357   # Be sure to have absolute directory names.
1358   case $ac_val in
1359     [\\/$]* | ?:[\\/]* )  continue;;
1360     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361   esac
1362   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 done
1364
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1371
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374   if test "x$build_alias" = x; then
1375     cross_compiling=maybe
1376   elif test "x$build_alias" != "x$host_alias"; then
1377     cross_compiling=yes
1378   fi
1379 fi
1380
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384 test "$silent" = yes && exec 6>/dev/null
1385
1386
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390   as_fn_error $? "working directory cannot be determined"
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392   as_fn_error $? "pwd does not report name of working directory"
1393
1394
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397   ac_srcdir_defaulted=yes
1398   # Try the directory containing this script, then the parent directory.
1399   ac_confdir=`$as_dirname -- "$as_myself" ||
1400 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401          X"$as_myself" : 'X\(//\)[^/]' \| \
1402          X"$as_myself" : 'X\(//\)$' \| \
1403          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404 $as_echo X"$as_myself" |
1405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)[^/].*/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\).*/{
1418             s//\1/
1419             q
1420           }
1421           s/.*/./; q'`
1422   srcdir=$ac_confdir
1423   if test ! -r "$srcdir/$ac_unique_file"; then
1424     srcdir=..
1425   fi
1426 else
1427   ac_srcdir_defaulted=no
1428 fi
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 fi
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 ac_abs_confdir=`(
1435         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436         pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439   srcdir=.
1440 fi
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_env_${ac_var}_value=\$${ac_var}
1450   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1453
1454 #
1455 # Report the --help message.
1456 #
1457 if test "$ac_init_help" = "long"; then
1458   # Omit some internal or obsolete options to make the list less imposing.
1459   # This message is too long to be a string in the A/UX 3.1 sh.
1460   cat <<_ACEOF
1461 \`configure' configures gupnp 0.19.1 to adapt to many kinds of systems.
1462
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468 Defaults for the options are specified in brackets.
1469
1470 Configuration:
1471   -h, --help              display this help and exit
1472       --help=short        display options specific to this package
1473       --help=recursive    display the short help of all the included packages
1474   -V, --version           display version information and exit
1475   -q, --quiet, --silent   do not print \`checking ...' messages
1476       --cache-file=FILE   cache test results in FILE [disabled]
1477   -C, --config-cache      alias for \`--cache-file=config.cache'
1478   -n, --no-create         do not create output files
1479       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481 Installation directories:
1482   --prefix=PREFIX         install architecture-independent files in PREFIX
1483                           [$ac_default_prefix]
1484   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                           [PREFIX]
1486
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1491
1492 For better control, use the options below.
1493
1494 Fine tuning of the installation directories:
1495   --bindir=DIR            user executables [EPREFIX/bin]
1496   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497   --libexecdir=DIR        program executables [EPREFIX/libexec]
1498   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501   --libdir=DIR            object code libraries [EPREFIX/lib]
1502   --includedir=DIR        C header files [PREFIX/include]
1503   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506   --infodir=DIR           info documentation [DATAROOTDIR/info]
1507   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508   --mandir=DIR            man documentation [DATAROOTDIR/man]
1509   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp]
1510   --htmldir=DIR           html documentation [DOCDIR]
1511   --dvidir=DIR            dvi documentation [DOCDIR]
1512   --pdfdir=DIR            pdf documentation [DOCDIR]
1513   --psdir=DIR             ps documentation [DOCDIR]
1514 _ACEOF
1515
1516   cat <<\_ACEOF
1517
1518 Program names:
1519   --program-prefix=PREFIX            prepend PREFIX to installed program names
1520   --program-suffix=SUFFIX            append SUFFIX to installed program names
1521   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
1523 System types:
1524   --build=BUILD     configure for building on BUILD [guessed]
1525   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526   --target=TARGET   configure for building compilers for TARGET [HOST]
1527 _ACEOF
1528 fi
1529
1530 if test -n "$ac_init_help"; then
1531   case $ac_init_help in
1532      short | recursive ) echo "Configuration of gupnp 0.19.1:";;
1533    esac
1534   cat <<\_ACEOF
1535
1536 Optional Features:
1537   --disable-option-checking  ignore unrecognized --enable/--with options
1538   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1539   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1540   --disable-maintainer-mode  disable make rules and dependencies not useful
1541                           (and sometimes confusing) to the casual installer
1542   --enable-silent-rules          less verbose build output (undo: `make V=1')
1543   --disable-silent-rules         verbose build output (undo: `make V=0')
1544   --disable-dependency-tracking  speeds up one-time build
1545   --enable-dependency-tracking   do not reject slow dependency extractors
1546   --disable-largefile     omit support for large files
1547   --enable-shared[=PKGS]  build shared libraries [default=yes]
1548   --enable-static[=PKGS]  build static libraries [default=yes]
1549   --enable-fast-install[=PKGS]
1550                           optimize for fast installation [default=yes]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552   --enable-debug          enable debugging
1553   --enable-introspection=[no/auto/yes]
1554                           Enable introspection for this build
1555   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1556   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1557   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1563                           both]
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565   --with-sysroot=DIR Search for dependent libraries within DIR
1566                         (or the compiler's sysroot if not specified).
1567   --with-context-manager=[network-manager/connman/unix/linux]
1568                           Context Manager backend to use
1569   --with-html-dir=PATH    path to installed docs
1570
1571 Some influential environment variables:
1572   CC          C compiler command
1573   CFLAGS      C compiler flags
1574   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575               nonstandard directory <lib dir>
1576   LIBS        libraries to pass to the linker, e.g. -l<library>
1577   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578               you have headers in a nonstandard directory <include dir>
1579   CPP         C preprocessor
1580   PKG_CONFIG  path to pkg-config utility
1581   PKG_CONFIG_PATH
1582               directories to add to pkg-config's search path
1583   PKG_CONFIG_LIBDIR
1584               path overriding pkg-config's built-in search path
1585   GTest_CFLAGS
1586               C compiler flags for GTest, overriding pkg-config
1587   GTest_LIBS  linker flags for GTest, overriding pkg-config
1588   LIBGUPNP_CFLAGS
1589               C compiler flags for LIBGUPNP, overriding pkg-config
1590   LIBGUPNP_LIBS
1591               linker flags for LIBGUPNP, overriding pkg-config
1592   GTHREAD_CFLAGS
1593               C compiler flags for GTHREAD, overriding pkg-config
1594   GTHREAD_LIBS
1595               linker flags for GTHREAD, overriding pkg-config
1596   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1597   GIO_LIBS    linker flags for GIO, overriding pkg-config
1598   CONNMAN_CFLAGS
1599               C compiler flags for CONNMAN, overriding pkg-config
1600   CONNMAN_LIBS
1601               linker flags for CONNMAN, overriding pkg-config
1602   GTKDOC_DEPS_CFLAGS
1603               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1604   GTKDOC_DEPS_LIBS
1605               linker flags for GTKDOC_DEPS, overriding pkg-config
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
1611 gupnp home page: <http://www.gupnp.org/>.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617   # If there are subdirs, report their specific --help.
1618   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619     test -d "$ac_dir" ||
1620       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621       continue
1622     ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628   # A ".." for each directory in $ac_dir_suffix.
1629   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630   case $ac_top_builddir_sub in
1631   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633   esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641   .)  # We are building in place.
1642     ac_srcdir=.
1643     ac_top_srcdir=$ac_top_builddir_sub
1644     ac_abs_top_srcdir=$ac_pwd ;;
1645   [\\/]* | ?:[\\/]* )  # Absolute name.
1646     ac_srcdir=$srcdir$ac_dir_suffix;
1647     ac_top_srcdir=$srcdir
1648     ac_abs_top_srcdir=$srcdir ;;
1649   *) # Relative name.
1650     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651     ac_top_srcdir=$ac_top_build_prefix$srcdir
1652     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656     cd "$ac_dir" || { ac_status=$?; continue; }
1657     # Check for guested configure.
1658     if test -f "$ac_srcdir/configure.gnu"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661     elif test -f "$ac_srcdir/configure"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure" --help=recursive
1664     else
1665       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666     fi || ac_status=$?
1667     cd "$ac_pwd" || { ac_status=$?; break; }
1668   done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673   cat <<\_ACEOF
1674 gupnp configure 0.19.1
1675 generated by GNU Autoconf 2.69
1676
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681   exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext
1695   if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_compile") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest.$ac_objext; then :
1714   ac_retval=0
1715 else
1716   $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719         ac_retval=1
1720 fi
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h.  */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744   eval "$3=yes"
1745 else
1746   eval "$3=no"
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } > conftest.i && {
1779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787     ac_retval=1
1788 fi
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>&5
1809   ac_status=$?
1810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812   { { case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_try") 2>&5
1819   ac_status=$?
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; }; }; then :
1822   ac_retval=0
1823 else
1824   $as_echo "$as_me: program exited with status $ac_status" >&5
1825        $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828        ac_retval=$ac_status
1829 fi
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_link ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   rm -f conftest.$ac_objext conftest$ac_exeext
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>conftest.err
1851   ac_status=$?
1852   if test -s conftest.err; then
1853     grep -v '^ *+' conftest.err >conftest.er1
1854     cat conftest.er1 >&5
1855     mv -f conftest.er1 conftest.err
1856   fi
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && {
1859          test -z "$ac_c_werror_flag" ||
1860          test ! -s conftest.err
1861        } && test -s conftest$ac_exeext && {
1862          test "$cross_compiling" = yes ||
1863          test -x conftest$ac_exeext
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874   # interfere with the next link command; also delete a directory that is
1875   # left behind by Apple's compiler.  We do this before executing the actions.
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878   as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_link
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h.  */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900     which can conflict with char $2 (); below.
1901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902     <limits.h> exists even on freestanding compilers.  */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913    Use char because int might match the return type of a GCC
1914    builtin and then its argument prototype would still apply.  */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920     to always fail with ENOSYS.  Some functions are actually named
1921     something starting with __ and the normal name is an alias.  */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935   eval "$3=yes"
1936 else
1937   eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940     conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_func
1948 cat >config.log <<_ACEOF
1949 This file contains any messages produced by compilers while
1950 running configure, to aid debugging if configure makes a mistake.
1951
1952 It was created by gupnp $as_me 0.19.1, which was
1953 generated by GNU Autoconf 2.69.  Invocation command line was
1954
1955   $ $0 $@
1956
1957 _ACEOF
1958 exec 5>>config.log
1959 {
1960 cat <<_ASUNAME
1961 ## --------- ##
1962 ## Platform. ##
1963 ## --------- ##
1964
1965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1973
1974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1981
1982 _ASUNAME
1983
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989     $as_echo "PATH: $as_dir"
1990   done
1991 IFS=$as_save_IFS
1992
1993 } >&5
1994
1995 cat >&5 <<_ACEOF
1996
1997
1998 ## ----------- ##
1999 ## Core tests. ##
2000 ## ----------- ##
2001
2002 _ACEOF
2003
2004
2005 # Keep a trace of the command line.
2006 # Strip out --no-create and --no-recursion so they do not pile up.
2007 # Strip out --silent because we don't want to record it for future runs.
2008 # Also quote any args containing shell meta-characters.
2009 # Make two passes to allow for proper duplicate-argument suppression.
2010 ac_configure_args=
2011 ac_configure_args0=
2012 ac_configure_args1=
2013 ac_must_keep_next=false
2014 for ac_pass in 1 2
2015 do
2016   for ac_arg
2017   do
2018     case $ac_arg in
2019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021     | -silent | --silent | --silen | --sile | --sil)
2022       continue ;;
2023     *\'*)
2024       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025     esac
2026     case $ac_pass in
2027     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028     2)
2029       as_fn_append ac_configure_args1 " '$ac_arg'"
2030       if test $ac_must_keep_next = true; then
2031         ac_must_keep_next=false # Got value, back to normal.
2032       else
2033         case $ac_arg in
2034           *=* | --config-cache | -C | -disable-* | --disable-* \
2035           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037           | -with-* | --with-* | -without-* | --without-* | --x)
2038             case "$ac_configure_args0 " in
2039               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040             esac
2041             ;;
2042           -* ) ac_must_keep_next=true ;;
2043         esac
2044       fi
2045       as_fn_append ac_configure_args " '$ac_arg'"
2046       ;;
2047     esac
2048   done
2049 done
2050 { ac_configure_args0=; unset ac_configure_args0;}
2051 { ac_configure_args1=; unset ac_configure_args1;}
2052
2053 # When interrupted or exit'd, cleanup temporary files, and complete
2054 # config.log.  We remove comments because anyway the quotes in there
2055 # would cause problems or look ugly.
2056 # WARNING: Use '\'' to represent an apostrophe within the trap.
2057 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058 trap 'exit_status=$?
2059   # Save into config.log some information that might help in debugging.
2060   {
2061     echo
2062
2063     $as_echo "## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##"
2066     echo
2067     # The following way of writing the cache mishandles newlines in values,
2068 (
2069   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070     eval ac_val=\$$ac_var
2071     case $ac_val in #(
2072     *${as_nl}*)
2073       case $ac_var in #(
2074       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076       esac
2077       case $ac_var in #(
2078       _ | IFS | as_nl) ;; #(
2079       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080       *) { eval $ac_var=; unset $ac_var;} ;;
2081       esac ;;
2082     esac
2083   done
2084   (set) 2>&1 |
2085     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086     *${as_nl}ac_space=\ *)
2087       sed -n \
2088         "s/'\''/'\''\\\\'\'''\''/g;
2089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090       ;; #(
2091     *)
2092       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093       ;;
2094     esac |
2095     sort
2096 )
2097     echo
2098
2099     $as_echo "## ----------------- ##
2100 ## Output variables. ##
2101 ## ----------------- ##"
2102     echo
2103     for ac_var in $ac_subst_vars
2104     do
2105       eval ac_val=\$$ac_var
2106       case $ac_val in
2107       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108       esac
2109       $as_echo "$ac_var='\''$ac_val'\''"
2110     done | sort
2111     echo
2112
2113     if test -n "$ac_subst_files"; then
2114       $as_echo "## ------------------- ##
2115 ## File substitutions. ##
2116 ## ------------------- ##"
2117       echo
2118       for ac_var in $ac_subst_files
2119       do
2120         eval ac_val=\$$ac_var
2121         case $ac_val in
2122         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123         esac
2124         $as_echo "$ac_var='\''$ac_val'\''"
2125       done | sort
2126       echo
2127     fi
2128
2129     if test -s confdefs.h; then
2130       $as_echo "## ----------- ##
2131 ## confdefs.h. ##
2132 ## ----------- ##"
2133       echo
2134       cat confdefs.h
2135       echo
2136     fi
2137     test "$ac_signal" != 0 &&
2138       $as_echo "$as_me: caught signal $ac_signal"
2139     $as_echo "$as_me: exit $exit_status"
2140   } >&5
2141   rm -f core *.core core.conftest.* &&
2142     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143     exit $exit_status
2144 ' 0
2145 for ac_signal in 1 2 13 15; do
2146   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147 done
2148 ac_signal=0
2149
2150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2151 rm -f -r conftest* confdefs.h
2152
2153 $as_echo "/* confdefs.h */" > confdefs.h
2154
2155 # Predefined preprocessor variables.
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_NAME "$PACKAGE_NAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_STRING "$PACKAGE_STRING"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_URL "$PACKAGE_URL"
2179 _ACEOF
2180
2181
2182 # Let the site file select an alternate cache file if it wants to.
2183 # Prefer an explicitly selected file to automatically selected ones.
2184 ac_site_file1=NONE
2185 ac_site_file2=NONE
2186 if test -n "$CONFIG_SITE"; then
2187   # We do not want a PATH search for config.site.
2188   case $CONFIG_SITE in #((
2189     -*)  ac_site_file1=./$CONFIG_SITE;;
2190     */*) ac_site_file1=$CONFIG_SITE;;
2191     *)   ac_site_file1=./$CONFIG_SITE;;
2192   esac
2193 elif test "x$prefix" != xNONE; then
2194   ac_site_file1=$prefix/share/config.site
2195   ac_site_file2=$prefix/etc/config.site
2196 else
2197   ac_site_file1=$ac_default_prefix/share/config.site
2198   ac_site_file2=$ac_default_prefix/etc/config.site
2199 fi
2200 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201 do
2202   test "x$ac_site_file" = xNONE && continue
2203   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206     sed 's/^/| /' "$ac_site_file" >&5
2207     . "$ac_site_file" \
2208       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error $? "failed to load site script $ac_site_file
2211 See \`config.log' for more details" "$LINENO" 5; }
2212   fi
2213 done
2214
2215 if test -r "$cache_file"; then
2216   # Some versions of bash will fail to source /dev/null (special files
2217   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2218   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220 $as_echo "$as_me: loading cache $cache_file" >&6;}
2221     case $cache_file in
2222       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223       *)                      . "./$cache_file";;
2224     esac
2225   fi
2226 else
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228 $as_echo "$as_me: creating cache $cache_file" >&6;}
2229   >$cache_file
2230 fi
2231
2232 as_fn_append ac_header_list " stdlib.h"
2233 as_fn_append ac_header_list " unistd.h"
2234 as_fn_append ac_header_list " sys/param.h"
2235 # Check that the precious variables saved in the cache have kept the same
2236 # value.
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240   eval ac_new_set=\$ac_env_${ac_var}_set
2241   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242   eval ac_new_val=\$ac_env_${ac_var}_value
2243   case $ac_old_set,$ac_new_set in
2244     set,)
2245       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247       ac_cache_corrupted=: ;;
2248     ,set)
2249       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251       ac_cache_corrupted=: ;;
2252     ,);;
2253     *)
2254       if test "x$ac_old_val" != "x$ac_new_val"; then
2255         # differences in whitespace do not lead to failure.
2256         ac_old_val_w=`echo x $ac_old_val`
2257         ac_new_val_w=`echo x $ac_new_val`
2258         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261           ac_cache_corrupted=:
2262         else
2263           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265           eval $ac_var=\$ac_old_val
2266         fi
2267         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2268 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2269         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2271       fi;;
2272   esac
2273   # Pass precious variables to config.status.
2274   if test "$ac_new_set" = set; then
2275     case $ac_new_val in
2276     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277     *) ac_arg=$ac_var=$ac_new_val ;;
2278     esac
2279     case " $ac_configure_args " in
2280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2281       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282     esac
2283   fi
2284 done
2285 if $ac_cache_corrupted; then
2286   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 fi
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304 ac_config_headers="$ac_config_headers config.h"
2305
2306
2307
2308 ac_aux_dir=
2309 for ac_dir in build-aux "$srcdir"/build-aux; do
2310   if test -f "$ac_dir/install-sh"; then
2311     ac_aux_dir=$ac_dir
2312     ac_install_sh="$ac_aux_dir/install-sh -c"
2313     break
2314   elif test -f "$ac_dir/install.sh"; then
2315     ac_aux_dir=$ac_dir
2316     ac_install_sh="$ac_aux_dir/install.sh -c"
2317     break
2318   elif test -f "$ac_dir/shtool"; then
2319     ac_aux_dir=$ac_dir
2320     ac_install_sh="$ac_aux_dir/shtool install -c"
2321     break
2322   fi
2323 done
2324 if test -z "$ac_aux_dir"; then
2325   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2326 fi
2327
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2335
2336
2337
2338 # Make sure we can run config.sub.
2339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2340   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2341
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if ${ac_cv_build+:} false; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2352 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2353   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2354
2355 fi
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2357 $as_echo "$ac_cv_build" >&6; }
2358 case $ac_cv_build in
2359 *-*-*) ;;
2360 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2361 esac
2362 build=$ac_cv_build
2363 ac_save_IFS=$IFS; IFS='-'
2364 set x $ac_cv_build
2365 shift
2366 build_cpu=$1
2367 build_vendor=$2
2368 shift; shift
2369 # Remember, the first character of IFS is used to create $*,
2370 # except with old shells:
2371 build_os=$*
2372 IFS=$ac_save_IFS
2373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2374
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2377 $as_echo_n "checking host system type... " >&6; }
2378 if ${ac_cv_host+:} false; then :
2379   $as_echo_n "(cached) " >&6
2380 else
2381   if test "x$host_alias" = x; then
2382   ac_cv_host=$ac_cv_build
2383 else
2384   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2385     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2386 fi
2387
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2390 $as_echo "$ac_cv_host" >&6; }
2391 case $ac_cv_host in
2392 *-*-*) ;;
2393 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2394 esac
2395 host=$ac_cv_host
2396 ac_save_IFS=$IFS; IFS='-'
2397 set x $ac_cv_host
2398 shift
2399 host_cpu=$1
2400 host_vendor=$2
2401 shift; shift
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2404 host_os=$*
2405 IFS=$ac_save_IFS
2406 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2407
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2410 $as_echo_n "checking target system type... " >&6; }
2411 if ${ac_cv_target+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   if test "x$target_alias" = x; then
2415   ac_cv_target=$ac_cv_host
2416 else
2417   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2418     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2419 fi
2420
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2423 $as_echo "$ac_cv_target" >&6; }
2424 case $ac_cv_target in
2425 *-*-*) ;;
2426 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2427 esac
2428 target=$ac_cv_target
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_target
2431 shift
2432 target_cpu=$1
2433 target_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 target_os=$*
2438 IFS=$ac_save_IFS
2439 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2440
2441
2442 # The aliases save the names the user supplied, while $host etc.
2443 # will get canonicalized.
2444 test -n "$target_alias" &&
2445   test "$program_prefix$program_suffix$program_transform_name" = \
2446     NONENONEs,x,x, &&
2447   program_prefix=${target_alias}-
2448
2449 am__api_version='1.11'
2450
2451 # Find a good install program.  We prefer a C program (faster),
2452 # so one script is as good as another.  But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2457 # AIX /bin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if ${ac_cv_path_install+:} false; then :
2469   $as_echo_n "(cached) " >&6
2470 else
2471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476     # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478   ./ | .// | /[cC]/* | \
2479   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2481   /usr/ucb/* ) ;;
2482   *)
2483     # OSF1 and SCO ODT 3.0 have their own names for install.
2484     # Don't use installbsd from OSF since it installs stuff as root
2485     # by default.
2486     for ac_prog in ginstall scoinst install; do
2487       for ac_exec_ext in '' $ac_executable_extensions; do
2488         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2489           if test $ac_prog = install &&
2490             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491             # AIX install.  It has an incompatible calling convention.
2492             :
2493           elif test $ac_prog = install &&
2494             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495             # program-specific install script used by HP pwplus--don't use.
2496             :
2497           else
2498             rm -rf conftest.one conftest.two conftest.dir
2499             echo one > conftest.one
2500             echo two > conftest.two
2501             mkdir conftest.dir
2502             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503               test -s conftest.one && test -s conftest.two &&
2504               test -s conftest.dir/conftest.one &&
2505               test -s conftest.dir/conftest.two
2506             then
2507               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508               break 3
2509             fi
2510           fi
2511         fi
2512       done
2513     done
2514     ;;
2515 esac
2516
2517   done
2518 IFS=$as_save_IFS
2519
2520 rm -rf conftest.one conftest.two conftest.dir
2521
2522 fi
2523   if test "${ac_cv_path_install+set}" = set; then
2524     INSTALL=$ac_cv_path_install
2525   else
2526     # As a last resort, use the slow shell script.  Don't cache a
2527     # value for INSTALL within a source directory, because that will
2528     # break other packages using the cache if that directory is
2529     # removed, or if the value is a relative name.
2530     INSTALL=$ac_install_sh
2531   fi
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2535
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2539
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2541
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2545 $as_echo_n "checking whether build environment is sane... " >&6; }
2546 # Just in case
2547 sleep 1
2548 echo timestamp > conftest.file
2549 # Reject unsafe characters in $srcdir or the absolute working directory
2550 # name.  Accept space and tab only in the latter.
2551 am_lf='
2552 '
2553 case `pwd` in
2554   *[\\\"\#\$\&\'\`$am_lf]*)
2555     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2556 esac
2557 case $srcdir in
2558   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2559     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2560 esac
2561
2562 # Do `set' in a subshell so we don't clobber the current shell's
2563 # arguments.  Must try -L first in case configure is actually a
2564 # symlink; some systems play weird games with the mod time of symlinks
2565 # (eg FreeBSD returns the mod time of the symlink's containing
2566 # directory).
2567 if (
2568    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2569    if test "$*" = "X"; then
2570       # -L didn't work.
2571       set X `ls -t "$srcdir/configure" conftest.file`
2572    fi
2573    rm -f conftest.file
2574    if test "$*" != "X $srcdir/configure conftest.file" \
2575       && test "$*" != "X conftest.file $srcdir/configure"; then
2576
2577       # If neither matched, then we have a broken ls.  This can happen
2578       # if, for instance, CONFIG_SHELL is bash and it inherits a
2579       # broken ls alias from the environment.  This has actually
2580       # happened.  Such a system could not be considered "sane".
2581       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2582 alias in your environment" "$LINENO" 5
2583    fi
2584
2585    test "$2" = conftest.file
2586    )
2587 then
2588    # Ok.
2589    :
2590 else
2591    as_fn_error $? "newly created file is older than distributed files!
2592 Check your system clock" "$LINENO" 5
2593 fi
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595 $as_echo "yes" >&6; }
2596 test "$program_prefix" != NONE &&
2597   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2598 # Use a double $ so make ignores it.
2599 test "$program_suffix" != NONE &&
2600   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2601 # Double any \ or $.
2602 # By default was `s,x,x', remove it if useless.
2603 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2604 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2605
2606 # expand $ac_aux_dir to an absolute path
2607 am_aux_dir=`cd $ac_aux_dir && pwd`
2608
2609 if test x"${MISSING+set}" != xset; then
2610   case $am_aux_dir in
2611   *\ * | *\     *)
2612     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2613   *)
2614     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2615   esac
2616 fi
2617 # Use eval to expand $SHELL
2618 if eval "$MISSING --run true"; then
2619   am_missing_run="$MISSING --run "
2620 else
2621   am_missing_run=
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2623 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2624 fi
2625
2626 if test x"${install_sh}" != xset; then
2627   case $am_aux_dir in
2628   *\ * | *\     *)
2629     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2630   *)
2631     install_sh="\${SHELL} $am_aux_dir/install-sh"
2632   esac
2633 fi
2634
2635 # Installed binaries are usually stripped using `strip' when the user
2636 # run `make install-strip'.  However `strip' might not be the right
2637 # tool to use in cross-compilation environments, therefore Automake
2638 # will honor the `STRIP' environment variable to overrule this program.
2639 if test "$cross_compiling" != no; then
2640   if test -n "$ac_tool_prefix"; then
2641   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}strip; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_prog_STRIP+:} false; then :
2646   $as_echo_n "(cached) " >&6
2647 else
2648   if test -n "$STRIP"; then
2649   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656     for ac_exec_ext in '' $ac_executable_extensions; do
2657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663   done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 STRIP=$ac_cv_prog_STRIP
2669 if test -n "$STRIP"; then
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2671 $as_echo "$STRIP" >&6; }
2672 else
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677
2678 fi
2679 if test -z "$ac_cv_prog_STRIP"; then
2680   ac_ct_STRIP=$STRIP
2681   # Extract the first word of "strip", so it can be a program name with args.
2682 set dummy strip; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2686   $as_echo_n "(cached) " >&6
2687 else
2688   if test -n "$ac_ct_STRIP"; then
2689   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     for ac_exec_ext in '' $ac_executable_extensions; do
2697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698     ac_cv_prog_ac_ct_STRIP="strip"
2699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703   done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2709 if test -n "$ac_ct_STRIP"; then
2710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2711 $as_echo "$ac_ct_STRIP" >&6; }
2712 else
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717   if test "x$ac_ct_STRIP" = x; then
2718     STRIP=":"
2719   else
2720     case $cross_compiling:$ac_tool_warned in
2721 yes:)
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724 ac_tool_warned=yes ;;
2725 esac
2726     STRIP=$ac_ct_STRIP
2727   fi
2728 else
2729   STRIP="$ac_cv_prog_STRIP"
2730 fi
2731
2732 fi
2733 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2734
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2736 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2737 if test -z "$MKDIR_P"; then
2738   if ${ac_cv_path_mkdir+:} false; then :
2739   $as_echo_n "(cached) " >&6
2740 else
2741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746     for ac_prog in mkdir gmkdir; do
2747          for ac_exec_ext in '' $ac_executable_extensions; do
2748            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2749            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2750              'mkdir (GNU coreutils) '* | \
2751              'mkdir (coreutils) '* | \
2752              'mkdir (fileutils) '4.1*)
2753                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2754                break 3;;
2755            esac
2756          done
2757        done
2758   done
2759 IFS=$as_save_IFS
2760
2761 fi
2762
2763   test -d ./--version && rmdir ./--version
2764   if test "${ac_cv_path_mkdir+set}" = set; then
2765     MKDIR_P="$ac_cv_path_mkdir -p"
2766   else
2767     # As a last resort, use the slow shell script.  Don't cache a
2768     # value for MKDIR_P within a source directory, because that will
2769     # break other packages using the cache if that directory is
2770     # removed, or if the value is a relative name.
2771     MKDIR_P="$ac_install_sh -d"
2772   fi
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2775 $as_echo "$MKDIR_P" >&6; }
2776
2777 mkdir_p="$MKDIR_P"
2778 case $mkdir_p in
2779   [\\/$]* | ?:[\\/]*) ;;
2780   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2781 esac
2782
2783 for ac_prog in gawk mawk nawk awk
2784 do
2785   # Extract the first word of "$ac_prog", so it can be a program name with args.
2786 set dummy $ac_prog; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_AWK+:} false; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   if test -n "$AWK"; then
2793   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800     for ac_exec_ext in '' $ac_executable_extensions; do
2801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802     ac_cv_prog_AWK="$ac_prog"
2803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807   done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 AWK=$ac_cv_prog_AWK
2813 if test -n "$AWK"; then
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2815 $as_echo "$AWK" >&6; }
2816 else
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821
2822   test -n "$AWK" && break
2823 done
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2827 set x ${MAKE-make}
2828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2829 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2830   $as_echo_n "(cached) " >&6
2831 else
2832   cat >conftest.make <<\_ACEOF
2833 SHELL = /bin/sh
2834 all:
2835         @echo '@@@%%%=$(MAKE)=@@@%%%'
2836 _ACEOF
2837 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2839   *@@@%%%=?*=@@@%%%*)
2840     eval ac_cv_prog_make_${ac_make}_set=yes;;
2841   *)
2842     eval ac_cv_prog_make_${ac_make}_set=no;;
2843 esac
2844 rm -f conftest.make
2845 fi
2846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848 $as_echo "yes" >&6; }
2849   SET_MAKE=
2850 else
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853   SET_MAKE="MAKE=${MAKE-make}"
2854 fi
2855
2856 rm -rf .tst 2>/dev/null
2857 mkdir .tst 2>/dev/null
2858 if test -d .tst; then
2859   am__leading_dot=.
2860 else
2861   am__leading_dot=_
2862 fi
2863 rmdir .tst 2>/dev/null
2864
2865 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2866   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2867   # is not polluted with repeated "-I."
2868   am__isrc=' -I$(srcdir)'
2869   # test to see if srcdir already configured
2870   if test -f $srcdir/config.status; then
2871     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2872   fi
2873 fi
2874
2875 # test whether we have cygpath
2876 if test -z "$CYGPATH_W"; then
2877   if (cygpath --version) >/dev/null 2>/dev/null; then
2878     CYGPATH_W='cygpath -w'
2879   else
2880     CYGPATH_W=echo
2881   fi
2882 fi
2883
2884
2885 # Define the identity of the package.
2886  PACKAGE='gupnp'
2887  VERSION='0.19.1'
2888
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE "$PACKAGE"
2892 _ACEOF
2893
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define VERSION "$VERSION"
2897 _ACEOF
2898
2899 # Some tools Automake needs.
2900
2901 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2902
2903
2904 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2905
2906
2907 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2908
2909
2910 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2911
2912
2913 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2914
2915 # We need awk for the "check" target.  The system "awk" is bad on
2916 # some platforms.
2917 # Always define AMTAR for backward compatibility.  Yes, it's still used
2918 # in the wild :-(  We should find a proper way to deprecate it ...
2919 AMTAR='$${TAR-tar}'
2920
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2923 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2924 # Loop over all known methods to create a tar archive until one works.
2925 _am_tools='gnutar plaintar pax cpio none'
2926 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2927 # Do not fold the above two line into one, because Tru64 sh and
2928 # Solaris sh will not grok spaces in the rhs of `-'.
2929 for _am_tool in $_am_tools
2930 do
2931   case $_am_tool in
2932   gnutar)
2933     for _am_tar in tar gnutar gtar;
2934     do
2935       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2936    ($_am_tar --version) >&5 2>&5
2937    ac_status=$?
2938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939    (exit $ac_status); } && break
2940     done
2941     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2942     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2943     am__untar="$_am_tar -xf -"
2944     ;;
2945   plaintar)
2946     # Must skip GNU tar: if it does not support --format= it doesn't create
2947     # ustar tarball either.
2948     (tar --version) >/dev/null 2>&1 && continue
2949     am__tar='tar chf - "$$tardir"'
2950     am__tar_='tar chf - "$tardir"'
2951     am__untar='tar xf -'
2952     ;;
2953   pax)
2954     am__tar='pax -L -x ustar -w "$$tardir"'
2955     am__tar_='pax -L -x ustar -w "$tardir"'
2956     am__untar='pax -r'
2957     ;;
2958   cpio)
2959     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2960     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2961     am__untar='cpio -i -H ustar -d'
2962     ;;
2963   none)
2964     am__tar=false
2965     am__tar_=false
2966     am__untar=false
2967     ;;
2968   esac
2969
2970   # If the value was cached, stop now.  We just wanted to have am__tar
2971   # and am__untar set.
2972   test -n "${am_cv_prog_tar_ustar}" && break
2973
2974   # tar/untar a dummy directory, and stop if the command works
2975   rm -rf conftest.dir
2976   mkdir conftest.dir
2977   echo GrepMe > conftest.dir/file
2978   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2979    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2980    ac_status=$?
2981    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982    (exit $ac_status); }
2983   rm -rf conftest.dir
2984   if test -s conftest.tar; then
2985     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2986    ($am__untar <conftest.tar) >&5 2>&5
2987    ac_status=$?
2988    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989    (exit $ac_status); }
2990     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2991   fi
2992 done
2993 rm -rf conftest.dir
2994
2995 if ${am_cv_prog_tar_ustar+:} false; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   am_cv_prog_tar_ustar=$_am_tool
2999 fi
3000
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3002 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3003
3004
3005
3006
3007
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3010 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3011     # Check whether --enable-maintainer-mode was given.
3012 if test "${enable_maintainer_mode+set}" = set; then :
3013   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3014 else
3015   USE_MAINTAINER_MODE=yes
3016 fi
3017
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3019 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3020    if test $USE_MAINTAINER_MODE = yes; then
3021   MAINTAINER_MODE_TRUE=
3022   MAINTAINER_MODE_FALSE='#'
3023 else
3024   MAINTAINER_MODE_TRUE='#'
3025   MAINTAINER_MODE_FALSE=
3026 fi
3027
3028   MAINT=$MAINTAINER_MODE_TRUE
3029
3030
3031
3032 # Check whether --enable-silent-rules was given.
3033 if test "${enable_silent_rules+set}" = set; then :
3034   enableval=$enable_silent_rules;
3035 fi
3036
3037 case $enable_silent_rules in
3038 yes) AM_DEFAULT_VERBOSITY=0;;
3039 no)  AM_DEFAULT_VERBOSITY=1;;
3040 *)   AM_DEFAULT_VERBOSITY=0;;
3041 esac
3042 am_make=${MAKE-make}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3044 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3045 if ${am_cv_make_support_nested_variables+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if $as_echo 'TRUE=$(BAR$(V))
3049 BAR0=false
3050 BAR1=true
3051 V=1
3052 am__doit:
3053         @$(TRUE)
3054 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3055   am_cv_make_support_nested_variables=yes
3056 else
3057   am_cv_make_support_nested_variables=no
3058 fi
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3061 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3062 if test $am_cv_make_support_nested_variables = yes; then
3063     AM_V='$(V)'
3064   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3065 else
3066   AM_V=$AM_DEFAULT_VERBOSITY
3067   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3068 fi
3069 AM_BACKSLASH='\'
3070
3071
3072 # Check for programs
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 if test -n "$ac_tool_prefix"; then
3079   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$CC"; then
3087   ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094     for ac_exec_ext in '' $ac_executable_extensions; do
3095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101   done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 fi
3117 if test -z "$ac_cv_prog_CC"; then
3118   ac_ct_CC=$CC
3119   # Extract the first word of "gcc", so it can be a program name with args.
3120 set dummy gcc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   if test -n "$ac_ct_CC"; then
3127   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134     for ac_exec_ext in '' $ac_executable_extensions; do
3135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136     ac_cv_prog_ac_ct_CC="gcc"
3137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141   done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3150 else
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155   if test "x$ac_ct_CC" = x; then
3156     CC=""
3157   else
3158     case $cross_compiling:$ac_tool_warned in
3159 yes:)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162 ac_tool_warned=yes ;;
3163 esac
3164     CC=$ac_ct_CC
3165   fi
3166 else
3167   CC="$ac_cv_prog_CC"
3168 fi
3169
3170 if test -z "$CC"; then
3171           if test -n "$ac_tool_prefix"; then
3172     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}cc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   if test -n "$CC"; then
3180   ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187     for ac_exec_ext in '' $ac_executable_extensions; do
3188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_CC="${ac_tool_prefix}cc"
3190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194   done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209   fi
3210 fi
3211 if test -z "$CC"; then
3212   # Extract the first word of "cc", so it can be a program name with args.
3213 set dummy cc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   if test -n "$CC"; then
3220   ac_cv_prog_CC="$CC" # Let the user override the test.
3221 else
3222   ac_prog_rejected=no
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3231        ac_prog_rejected=yes
3232        continue
3233      fi
3234     ac_cv_prog_CC="cc"
3235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239   done
3240 IFS=$as_save_IFS
3241
3242 if test $ac_prog_rejected = yes; then
3243   # We found a bogon in the path, so make sure we never use it.
3244   set dummy $ac_cv_prog_CC
3245   shift
3246   if test $# != 0; then
3247     # We chose a different compiler from the bogus one.
3248     # However, it has the same basename, so the bogon will be chosen
3249     # first if we set CC to just the basename; use the full file name.
3250     shift
3251     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3252   fi
3253 fi
3254 fi
3255 fi
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 fi
3267 if test -z "$CC"; then
3268   if test -n "$ac_tool_prefix"; then
3269   for ac_prog in cl.exe
3270   do
3271     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308     test -n "$CC" && break
3309   done
3310 fi
3311 if test -z "$CC"; then
3312   ac_ct_CC=$CC
3313   for ac_prog in cl.exe
3314 do
3315   # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   if test -n "$ac_ct_CC"; then
3323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     ac_cv_prog_ac_ct_CC="$ac_prog"
3333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337   done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3346 else
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352   test -n "$ac_ct_CC" && break
3353 done
3354
3355   if test "x$ac_ct_CC" = x; then
3356     CC=""
3357   else
3358     case $cross_compiling:$ac_tool_warned in
3359 yes:)
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3362 ac_tool_warned=yes ;;
3363 esac
3364     CC=$ac_ct_CC
3365   fi
3366 fi
3367
3368 fi
3369
3370
3371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details" "$LINENO" 5; }
3375
3376 # Provide some information about the compiler.
3377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3378 set X $ac_compile
3379 ac_compiler=$2
3380 for ac_option in --version -v -V -qversion; do
3381   { { ac_try="$ac_compiler $ac_option >&5"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389   ac_status=$?
3390   if test -s conftest.err; then
3391     sed '10a\
3392 ... rest of stderr output deleted ...
3393          10q' conftest.err >conftest.er1
3394     cat conftest.er1 >&5
3395   fi
3396   rm -f conftest.er1 conftest.err
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }
3399 done
3400
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h.  */
3403
3404 int
3405 main ()
3406 {
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 ac_clean_files_save=$ac_clean_files
3413 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3414 # Try to create an executable without -o first, disregard a.out.
3415 # It will help us diagnose broken compilers, and finding out an intuition
3416 # of exeext.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3418 $as_echo_n "checking whether the C compiler works... " >&6; }
3419 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420
3421 # The possible output files:
3422 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3423
3424 ac_rmfiles=
3425 for ac_file in $ac_files
3426 do
3427   case $ac_file in
3428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3430   esac
3431 done
3432 rm -f $ac_rmfiles
3433
3434 if { { ac_try="$ac_link_default"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441   (eval "$ac_link_default") 2>&5
3442   ac_status=$?
3443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444   test $ac_status = 0; }; then :
3445   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3446 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3447 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3448 # so that the user can short-circuit this test for compilers unknown to
3449 # Autoconf.
3450 for ac_file in $ac_files ''
3451 do
3452   test -f "$ac_file" || continue
3453   case $ac_file in
3454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3455         ;;
3456     [ab].out )
3457         # We found the default executable, but exeext='' is most
3458         # certainly right.
3459         break;;
3460     *.* )
3461         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462         then :; else
3463            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464         fi
3465         # We set ac_cv_exeext here because the later test for it is not
3466         # safe: cross compilers may not add the suffix if given an `-o'
3467         # argument, so we may need to know it at that point already.
3468         # Even if this section looks crufty: it has the advantage of
3469         # actually working.
3470         break;;
3471     * )
3472         break;;
3473   esac
3474 done
3475 test "$ac_cv_exeext" = no && ac_cv_exeext=
3476
3477 else
3478   ac_file=''
3479 fi
3480 if test -z "$ac_file"; then :
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error 77 "C compiler cannot create executables
3489 See \`config.log' for more details" "$LINENO" 5; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495 $as_echo_n "checking for C compiler default output file name... " >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3497 $as_echo "$ac_file" >&6; }
3498 ac_exeext=$ac_cv_exeext
3499
3500 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3501 ac_clean_files=$ac_clean_files_save
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3503 $as_echo_n "checking for suffix of executables... " >&6; }
3504 if { { ac_try="$ac_link"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511   (eval "$ac_link") 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3516 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3517 # work properly (i.e., refer to `conftest.exe'), while it won't with
3518 # `rm'.
3519 for ac_file in conftest.exe conftest conftest.*; do
3520   test -f "$ac_file" || continue
3521   case $ac_file in
3522     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524           break;;
3525     * ) break;;
3526   esac
3527 done
3528 else
3529   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3532 See \`config.log' for more details" "$LINENO" 5; }
3533 fi
3534 rm -f conftest conftest$ac_cv_exeext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3536 $as_echo "$ac_cv_exeext" >&6; }
3537
3538 rm -f conftest.$ac_ext
3539 EXEEXT=$ac_cv_exeext
3540 ac_exeext=$EXEEXT
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543 #include <stdio.h>
3544 int
3545 main ()
3546 {
3547 FILE *f = fopen ("conftest.out", "w");
3548  return ferror (f) || fclose (f) != 0;
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 ac_clean_files="$ac_clean_files conftest.out"
3555 # Check that the compiler produces executables we can run.  If not, either
3556 # the compiler is broken, or we cross compile.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3558 $as_echo_n "checking whether we are cross compiling... " >&6; }
3559 if test "$cross_compiling" != yes; then
3560   { { ac_try="$ac_link"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567   (eval "$ac_link") 2>&5
3568   ac_status=$?
3569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570   test $ac_status = 0; }
3571   if { ac_try='./conftest$ac_cv_exeext'
3572   { { case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_try") 2>&5
3579   ac_status=$?
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }; }; then
3582     cross_compiling=no
3583   else
3584     if test "$cross_compiling" = maybe; then
3585         cross_compiling=yes
3586     else
3587         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot run C compiled programs.
3590 If you meant to cross compile, use \`--host'.
3591 See \`config.log' for more details" "$LINENO" 5; }
3592     fi
3593   fi
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3596 $as_echo "$cross_compiling" >&6; }
3597
3598 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3601 $as_echo_n "checking for suffix of object files... " >&6; }
3602 if ${ac_cv_objext+:} false; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.o conftest.obj
3617 if { { ac_try="$ac_compile"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624   (eval "$ac_compile") 2>&5
3625   ac_status=$?
3626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627   test $ac_status = 0; }; then :
3628   for ac_file in conftest.o conftest.obj conftest.*; do
3629   test -f "$ac_file" || continue;
3630   case $ac_file in
3631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3632     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3633        break;;
3634   esac
3635 done
3636 else
3637   $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error $? "cannot compute suffix of object files: cannot compile
3643 See \`config.log' for more details" "$LINENO" 5; }
3644 fi
3645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3648 $as_echo "$ac_cv_objext" >&6; }
3649 OBJEXT=$ac_cv_objext
3650 ac_objext=$OBJEXT
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3652 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3653 if ${ac_cv_c_compiler_gnu+:} false; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h.  */
3658
3659 int
3660 main ()
3661 {
3662 #ifndef __GNUC__
3663        choke me
3664 #endif
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671   ac_compiler_gnu=yes
3672 else
3673   ac_compiler_gnu=no
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3682   GCC=yes
3683 else
3684   GCC=
3685 fi
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3690 if ${ac_cv_prog_cc_g+:} false; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   ac_save_c_werror_flag=$ac_c_werror_flag
3694    ac_c_werror_flag=yes
3695    ac_cv_prog_cc_g=no
3696    CFLAGS="-g"
3697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699
3700 int
3701 main ()
3702 {
3703
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709   ac_cv_prog_cc_g=yes
3710 else
3711   CFLAGS=""
3712       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h.  */
3714
3715 int
3716 main ()
3717 {
3718
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724
3725 else
3726   ac_c_werror_flag=$ac_save_c_werror_flag
3727          CFLAGS="-g"
3728          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740   ac_cv_prog_cc_g=yes
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747    ac_c_werror_flag=$ac_save_c_werror_flag
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3750 $as_echo "$ac_cv_prog_cc_g" >&6; }
3751 if test "$ac_test_CFLAGS" = set; then
3752   CFLAGS=$ac_save_CFLAGS
3753 elif test $ac_cv_prog_cc_g = yes; then
3754   if test "$GCC" = yes; then
3755     CFLAGS="-g -O2"
3756   else
3757     CFLAGS="-g"
3758   fi
3759 else
3760   if test "$GCC" = yes; then
3761     CFLAGS="-O2"
3762   else
3763     CFLAGS=
3764   fi
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768 if ${ac_cv_prog_cc_c89+:} false; then :
3769   $as_echo_n "(cached) " >&6
3770 else
3771   ac_cv_prog_cc_c89=no
3772 ac_save_CC=$CC
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775 #include <stdarg.h>
3776 #include <stdio.h>
3777 struct stat;
3778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3779 struct buf { int x; };
3780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781 static char *e (p, i)
3782      char **p;
3783      int i;
3784 {
3785   return p[i];
3786 }
3787 static char *f (char * (*g) (char **, int), char **p, ...)
3788 {
3789   char *s;
3790   va_list v;
3791   va_start (v,p);
3792   s = g (p, va_arg (v,int));
3793   va_end (v);
3794   return s;
3795 }
3796
3797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3798    function prototypes and stuff, but not '\xHH' hex character constants.
3799    These don't provoke an error unfortunately, instead are silently treated
3800    as 'x'.  The following induces an error, until -std is added to get
3801    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3802    array size at least.  It's necessary to write '\x00'==0 to get something
3803    that's true only with -std.  */
3804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805
3806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807    inside strings and character constants.  */
3808 #define FOO(x) 'x'
3809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 int argc;
3816 char **argv;
3817 int
3818 main ()
3819 {
3820 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827 do
3828   CC="$ac_save_CC $ac_arg"
3829   if ac_fn_c_try_compile "$LINENO"; then :
3830   ac_cv_prog_cc_c89=$ac_arg
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext
3833   test "x$ac_cv_prog_cc_c89" != "xno" && break
3834 done
3835 rm -f conftest.$ac_ext
3836 CC=$ac_save_CC
3837
3838 fi
3839 # AC_CACHE_VAL
3840 case "x$ac_cv_prog_cc_c89" in
3841   x)
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843 $as_echo "none needed" >&6; } ;;
3844   xno)
3845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846 $as_echo "unsupported" >&6; } ;;
3847   *)
3848     CC="$CC $ac_cv_prog_cc_c89"
3849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3851 esac
3852 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 DEPDIR="${am__leading_dot}deps"
3862
3863 ac_config_commands="$ac_config_commands depfiles"
3864
3865
3866 am_make=${MAKE-make}
3867 cat > confinc << 'END'
3868 am__doit:
3869         @echo this is the am__doit target
3870 .PHONY: am__doit
3871 END
3872 # If we don't find an include directive, just comment out the code.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3874 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3875 am__include="#"
3876 am__quote=
3877 _am_result=none
3878 # First try GNU make style include.
3879 echo "include confinc" > confmf
3880 # Ignore all kinds of additional output from `make'.
3881 case `$am_make -s -f confmf 2> /dev/null` in #(
3882 *the\ am__doit\ target*)
3883   am__include=include
3884   am__quote=
3885   _am_result=GNU
3886   ;;
3887 esac
3888 # Now try BSD make style include.
3889 if test "$am__include" = "#"; then
3890    echo '.include "confinc"' > confmf
3891    case `$am_make -s -f confmf 2> /dev/null` in #(
3892    *the\ am__doit\ target*)
3893      am__include=.include
3894      am__quote="\""
3895      _am_result=BSD
3896      ;;
3897    esac
3898 fi
3899
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3902 $as_echo "$_am_result" >&6; }
3903 rm -f confinc confmf
3904
3905 # Check whether --enable-dependency-tracking was given.
3906 if test "${enable_dependency_tracking+set}" = set; then :
3907   enableval=$enable_dependency_tracking;
3908 fi
3909
3910 if test "x$enable_dependency_tracking" != xno; then
3911   am_depcomp="$ac_aux_dir/depcomp"
3912   AMDEPBACKSLASH='\'
3913   am__nodep='_no'
3914 fi
3915  if test "x$enable_dependency_tracking" != xno; then
3916   AMDEP_TRUE=
3917   AMDEP_FALSE='#'
3918 else
3919   AMDEP_TRUE='#'
3920   AMDEP_FALSE=
3921 fi
3922
3923
3924
3925 depcc="$CC"   am_compiler_list=
3926
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3928 $as_echo_n "checking dependency style of $depcc... " >&6; }
3929 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933   # We make a subdir and do the tests there.  Otherwise we can end up
3934   # making bogus files that we don't know about and never remove.  For
3935   # instance it was reported that on HP-UX the gcc test will end up
3936   # making a dummy file named `D' -- because `-MD' means `put the output
3937   # in D'.
3938   rm -rf conftest.dir
3939   mkdir conftest.dir
3940   # Copy depcomp to subdir because otherwise we won't find it if we're
3941   # using a relative directory.
3942   cp "$am_depcomp" conftest.dir
3943   cd conftest.dir
3944   # We will build objects and dependencies in a subdirectory because
3945   # it helps to detect inapplicable dependency modes.  For instance
3946   # both Tru64's cc and ICC support -MD to output dependencies as a
3947   # side effect of compilation, but ICC will put the dependencies in
3948   # the current directory while Tru64 will put them in the object
3949   # directory.
3950   mkdir sub
3951
3952   am_cv_CC_dependencies_compiler_type=none
3953   if test "$am_compiler_list" = ""; then
3954      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3955   fi
3956   am__universal=false
3957   case " $depcc " in #(
3958      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3959      esac
3960
3961   for depmode in $am_compiler_list; do
3962     # Setup a source with many dependencies, because some compilers
3963     # like to wrap large dependency lists on column 80 (with \), and
3964     # we should not choose a depcomp mode which is confused by this.
3965     #
3966     # We need to recreate these files for each test, as the compiler may
3967     # overwrite some of them when testing with obscure command lines.
3968     # This happens at least with the AIX C compiler.
3969     : > sub/conftest.c
3970     for i in 1 2 3 4 5 6; do
3971       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3972       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3973       # Solaris 8's {/usr,}/bin/sh.
3974       touch sub/conftst$i.h
3975     done
3976     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3977
3978     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3979     # mode.  It turns out that the SunPro C++ compiler does not properly
3980     # handle `-M -o', and we need to detect this.  Also, some Intel
3981     # versions had trouble with output in subdirs
3982     am__obj=sub/conftest.${OBJEXT-o}
3983     am__minus_obj="-o $am__obj"
3984     case $depmode in
3985     gcc)
3986       # This depmode causes a compiler race in universal mode.
3987       test "$am__universal" = false || continue
3988       ;;
3989     nosideeffect)
3990       # after this tag, mechanisms are not by side-effect, so they'll
3991       # only be used when explicitly requested
3992       if test "x$enable_dependency_tracking" = xyes; then
3993         continue
3994       else
3995         break
3996       fi
3997       ;;
3998     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3999       # This compiler won't grok `-c -o', but also, the minuso test has
4000       # not run yet.  These depmodes are late enough in the game, and
4001       # so weak that their functioning should not be impacted.
4002       am__obj=conftest.${OBJEXT-o}
4003       am__minus_obj=
4004       ;;
4005     none) break ;;
4006     esac
4007     if depmode=$depmode \
4008        source=sub/conftest.c object=$am__obj \
4009        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4010        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4011          >/dev/null 2>conftest.err &&
4012        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4014        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4016       # icc doesn't choke on unknown options, it will just issue warnings
4017       # or remarks (even with -Werror).  So we grep stderr for any message
4018       # that says an option was ignored or not supported.
4019       # When given -MP, icc 7.0 and 7.1 complain thusly:
4020       #   icc: Command line warning: ignoring option '-M'; no argument required
4021       # The diagnosis changed in icc 8.0:
4022       #   icc: Command line remark: option '-MP' not supported
4023       if (grep 'ignoring option' conftest.err ||
4024           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4025         am_cv_CC_dependencies_compiler_type=$depmode
4026         break
4027       fi
4028     fi
4029   done
4030
4031   cd ..
4032   rm -rf conftest.dir
4033 else
4034   am_cv_CC_dependencies_compiler_type=none
4035 fi
4036
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4041
4042  if
4043   test "x$enable_dependency_tracking" != xno \
4044   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4045   am__fastdepCC_TRUE=
4046   am__fastdepCC_FALSE='#'
4047 else
4048   am__fastdepCC_TRUE='#'
4049   am__fastdepCC_FALSE=
4050 fi
4051
4052
4053
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4060 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4061 # On Suns, sometimes $CPP names a directory.
4062 if test -n "$CPP" && test -d "$CPP"; then
4063   CPP=
4064 fi
4065 if test -z "$CPP"; then
4066   if ${ac_cv_prog_CPP+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069       # Double quotes because CPP needs to be expanded
4070     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4071     do
4072       ac_preproc_ok=false
4073 for ac_c_preproc_warn_flag in '' yes
4074 do
4075   # Use a header file that comes with gcc, so configuring glibc
4076   # with a fresh cross-compiler works.
4077   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4078   # <limits.h> exists even on freestanding compilers.
4079   # On the NeXT, cc -E runs the code through the compiler's parser,
4080   # not just through cpp. "Syntax error" is here to catch this case.
4081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083 #ifdef __STDC__
4084 # include <limits.h>
4085 #else
4086 # include <assert.h>
4087 #endif
4088                      Syntax error
4089 _ACEOF
4090 if ac_fn_c_try_cpp "$LINENO"; then :
4091
4092 else
4093   # Broken: fails on valid input.
4094 continue
4095 fi
4096 rm -f conftest.err conftest.i conftest.$ac_ext
4097
4098   # OK, works on sane cases.  Now check whether nonexistent headers
4099   # can be detected and how.
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <ac_nonexistent.h>
4103 _ACEOF
4104 if ac_fn_c_try_cpp "$LINENO"; then :
4105   # Broken: success on invalid input.
4106 continue
4107 else
4108   # Passes both tests.
4109 ac_preproc_ok=:
4110 break
4111 fi
4112 rm -f conftest.err conftest.i conftest.$ac_ext
4113
4114 done
4115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116 rm -f conftest.i conftest.err conftest.$ac_ext
4117 if $ac_preproc_ok; then :
4118   break
4119 fi
4120
4121     done
4122     ac_cv_prog_CPP=$CPP
4123
4124 fi
4125   CPP=$ac_cv_prog_CPP
4126 else
4127   ac_cv_prog_CPP=$CPP
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4130 $as_echo "$CPP" >&6; }
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4133 do
4134   # Use a header file that comes with gcc, so configuring glibc
4135   # with a fresh cross-compiler works.
4136   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137   # <limits.h> exists even on freestanding compilers.
4138   # On the NeXT, cc -E runs the code through the compiler's parser,
4139   # not just through cpp. "Syntax error" is here to catch this case.
4140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147                      Syntax error
4148 _ACEOF
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4150
4151 else
4152   # Broken: fails on valid input.
4153 continue
4154 fi
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4156
4157   # OK, works on sane cases.  Now check whether nonexistent headers
4158   # can be detected and how.
4159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164   # Broken: success on invalid input.
4165 continue
4166 else
4167   # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4170 fi
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4172
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4177
4178 else
4179   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4182 See \`config.log' for more details" "$LINENO" 5; }
4183 fi
4184
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4193 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4194 if ${ac_cv_path_GREP+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if test -z "$GREP"; then
4198   ac_path_GREP_found=false
4199   # Loop through the user's path and test for each of PROGNAME-LIST
4200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205     for ac_prog in grep ggrep; do
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4208       as_fn_executable_p "$ac_path_GREP" || continue
4209 # Check for GNU ac_path_GREP and select it if it is found.
4210   # Check for GNU $ac_path_GREP
4211 case `"$ac_path_GREP" --version 2>&1` in
4212 *GNU*)
4213   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4214 *)
4215   ac_count=0
4216   $as_echo_n 0123456789 >"conftest.in"
4217   while :
4218   do
4219     cat "conftest.in" "conftest.in" >"conftest.tmp"
4220     mv "conftest.tmp" "conftest.in"
4221     cp "conftest.in" "conftest.nl"
4222     $as_echo 'GREP' >> "conftest.nl"
4223     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225     as_fn_arith $ac_count + 1 && ac_count=$as_val
4226     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4227       # Best one so far, save it but keep looking for a better one
4228       ac_cv_path_GREP="$ac_path_GREP"
4229       ac_path_GREP_max=$ac_count
4230     fi
4231     # 10*(2^10) chars as input seems more than enough
4232     test $ac_count -gt 10 && break
4233   done
4234   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4236
4237       $ac_path_GREP_found && break 3
4238     done
4239   done
4240   done
4241 IFS=$as_save_IFS
4242   if test -z "$ac_cv_path_GREP"; then
4243     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244   fi
4245 else
4246   ac_cv_path_GREP=$GREP
4247 fi
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4251 $as_echo "$ac_cv_path_GREP" >&6; }
4252  GREP="$ac_cv_path_GREP"
4253
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4256 $as_echo_n "checking for egrep... " >&6; }
4257 if ${ac_cv_path_EGREP+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4261    then ac_cv_path_EGREP="$GREP -E"
4262    else
4263      if test -z "$EGREP"; then
4264   ac_path_EGREP_found=false
4265   # Loop through the user's path and test for each of PROGNAME-LIST
4266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_prog in egrep; do
4272     for ac_exec_ext in '' $ac_executable_extensions; do
4273       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4274       as_fn_executable_p "$ac_path_EGREP" || continue
4275 # Check for GNU ac_path_EGREP and select it if it is found.
4276   # Check for GNU $ac_path_EGREP
4277 case `"$ac_path_EGREP" --version 2>&1` in
4278 *GNU*)
4279   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4280 *)
4281   ac_count=0
4282   $as_echo_n 0123456789 >"conftest.in"
4283   while :
4284   do
4285     cat "conftest.in" "conftest.in" >"conftest.tmp"
4286     mv "conftest.tmp" "conftest.in"
4287     cp "conftest.in" "conftest.nl"
4288     $as_echo 'EGREP' >> "conftest.nl"
4289     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291     as_fn_arith $ac_count + 1 && ac_count=$as_val
4292     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4293       # Best one so far, save it but keep looking for a better one
4294       ac_cv_path_EGREP="$ac_path_EGREP"
4295       ac_path_EGREP_max=$ac_count
4296     fi
4297     # 10*(2^10) chars as input seems more than enough
4298     test $ac_count -gt 10 && break
4299   done
4300   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301 esac
4302
4303       $ac_path_EGREP_found && break 3
4304     done
4305   done
4306   done
4307 IFS=$as_save_IFS
4308   if test -z "$ac_cv_path_EGREP"; then
4309     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310   fi
4311 else
4312   ac_cv_path_EGREP=$EGREP
4313 fi
4314
4315    fi
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4318 $as_echo "$ac_cv_path_EGREP" >&6; }
4319  EGREP="$ac_cv_path_EGREP"
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4323 $as_echo_n "checking for ANSI C header files... " >&6; }
4324 if ${ac_cv_header_stdc+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329 #include <stdlib.h>
4330 #include <stdarg.h>
4331 #include <string.h>
4332 #include <float.h>
4333
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343   ac_cv_header_stdc=yes
4344 else
4345   ac_cv_header_stdc=no
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348
4349 if test $ac_cv_header_stdc = yes; then
4350   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353 #include <string.h>
4354
4355 _ACEOF
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357   $EGREP "memchr" >/dev/null 2>&1; then :
4358
4359 else
4360   ac_cv_header_stdc=no
4361 fi
4362 rm -f conftest*
4363
4364 fi
4365
4366 if test $ac_cv_header_stdc = yes; then
4367   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370 #include <stdlib.h>
4371
4372 _ACEOF
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374   $EGREP "free" >/dev/null 2>&1; then :
4375
4376 else
4377   ac_cv_header_stdc=no
4378 fi
4379 rm -f conftest*
4380
4381 fi
4382
4383 if test $ac_cv_header_stdc = yes; then
4384   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4385   if test "$cross_compiling" = yes; then :
4386   :
4387 else
4388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h.  */
4390 #include <ctype.h>
4391 #include <stdlib.h>
4392 #if ((' ' & 0x0FF) == 0x020)
4393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4395 #else
4396 # define ISLOWER(c) \
4397                    (('a' <= (c) && (c) <= 'i') \
4398                      || ('j' <= (c) && (c) <= 'r') \
4399                      || ('s' <= (c) && (c) <= 'z'))
4400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4401 #endif
4402
4403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4404 int
4405 main ()
4406 {
4407   int i;
4408   for (i = 0; i < 256; i++)
4409     if (XOR (islower (i), ISLOWER (i))
4410         || toupper (i) != TOUPPER (i))
4411       return 2;
4412   return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_run "$LINENO"; then :
4416
4417 else
4418   ac_cv_header_stdc=no
4419 fi
4420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4421   conftest.$ac_objext conftest.beam conftest.$ac_ext
4422 fi
4423
4424 fi
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4427 $as_echo "$ac_cv_header_stdc" >&6; }
4428 if test $ac_cv_header_stdc = yes; then
4429
4430 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4431
4432 fi
4433
4434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436                   inttypes.h stdint.h unistd.h
4437 do :
4438   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4440 "
4441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4442   cat >>confdefs.h <<_ACEOF
4443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 _ACEOF
4445
4446 fi
4447
4448 done
4449
4450
4451
4452
4453
4454   for ac_header in $ac_header_list
4455 do :
4456   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4458 "
4459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4460   cat >>confdefs.h <<_ACEOF
4461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 fi
4465
4466 done
4467
4468
4469
4470
4471
4472
4473
4474
4475 for ac_func in getpagesize
4476 do :
4477   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4478 if test "x$ac_cv_func_getpagesize" = xyes; then :
4479   cat >>confdefs.h <<_ACEOF
4480 #define HAVE_GETPAGESIZE 1
4481 _ACEOF
4482
4483 fi
4484 done
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4487 $as_echo_n "checking for working mmap... " >&6; }
4488 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4489   $as_echo_n "(cached) " >&6
4490 else
4491   if test "$cross_compiling" = yes; then :
4492   ac_cv_func_mmap_fixed_mapped=no
4493 else
4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496 $ac_includes_default
4497 /* malloc might have been renamed as rpl_malloc. */
4498 #undef malloc
4499
4500 /* Thanks to Mike Haertel and Jim Avera for this test.
4501    Here is a matrix of mmap possibilities:
4502         mmap private not fixed
4503         mmap private fixed at somewhere currently unmapped
4504         mmap private fixed at somewhere already mapped
4505         mmap shared not fixed
4506         mmap shared fixed at somewhere currently unmapped
4507         mmap shared fixed at somewhere already mapped
4508    For private mappings, we should verify that changes cannot be read()
4509    back from the file, nor mmap's back from the file at a different
4510    address.  (There have been systems where private was not correctly
4511    implemented like the infamous i386 svr4.0, and systems where the
4512    VM page cache was not coherent with the file system buffer cache
4513    like early versions of FreeBSD and possibly contemporary NetBSD.)
4514    For shared mappings, we should conversely verify that changes get
4515    propagated back to all the places they're supposed to be.
4516
4517    Grep wants private fixed already mapped.
4518    The main things grep needs to know about mmap are:
4519    * does it exist and is it safe to write into the mmap'd area
4520    * how to use it (BSD variants)  */
4521
4522 #include <fcntl.h>
4523 #include <sys/mman.h>
4524
4525 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4526 char *malloc ();
4527 #endif
4528
4529 /* This mess was copied from the GNU getpagesize.h.  */
4530 #ifndef HAVE_GETPAGESIZE
4531 # ifdef _SC_PAGESIZE
4532 #  define getpagesize() sysconf(_SC_PAGESIZE)
4533 # else /* no _SC_PAGESIZE */
4534 #  ifdef HAVE_SYS_PARAM_H
4535 #   include <sys/param.h>
4536 #   ifdef EXEC_PAGESIZE
4537 #    define getpagesize() EXEC_PAGESIZE
4538 #   else /* no EXEC_PAGESIZE */
4539 #    ifdef NBPG
4540 #     define getpagesize() NBPG * CLSIZE
4541 #     ifndef CLSIZE
4542 #      define CLSIZE 1
4543 #     endif /* no CLSIZE */
4544 #    else /* no NBPG */
4545 #     ifdef NBPC
4546 #      define getpagesize() NBPC
4547 #     else /* no NBPC */
4548 #      ifdef PAGESIZE
4549 #       define getpagesize() PAGESIZE
4550 #      endif /* PAGESIZE */
4551 #     endif /* no NBPC */
4552 #    endif /* no NBPG */
4553 #   endif /* no EXEC_PAGESIZE */
4554 #  else /* no HAVE_SYS_PARAM_H */
4555 #   define getpagesize() 8192   /* punt totally */
4556 #  endif /* no HAVE_SYS_PARAM_H */
4557 # endif /* no _SC_PAGESIZE */
4558
4559 #endif /* no HAVE_GETPAGESIZE */
4560
4561 int
4562 main ()
4563 {
4564   char *data, *data2, *data3;
4565   const char *cdata2;
4566   int i, pagesize;
4567   int fd, fd2;
4568
4569   pagesize = getpagesize ();
4570
4571   /* First, make a file with some known garbage in it. */
4572   data = (char *) malloc (pagesize);
4573   if (!data)
4574     return 1;
4575   for (i = 0; i < pagesize; ++i)
4576     *(data + i) = rand ();
4577   umask (0);
4578   fd = creat ("conftest.mmap", 0600);
4579   if (fd < 0)
4580     return 2;
4581   if (write (fd, data, pagesize) != pagesize)
4582     return 3;
4583   close (fd);
4584
4585   /* Next, check that the tail of a page is zero-filled.  File must have
4586      non-zero length, otherwise we risk SIGBUS for entire page.  */
4587   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4588   if (fd2 < 0)
4589     return 4;
4590   cdata2 = "";
4591   if (write (fd2, cdata2, 1) != 1)
4592     return 5;
4593   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4594   if (data2 == MAP_FAILED)
4595     return 6;
4596   for (i = 0; i < pagesize; ++i)
4597     if (*(data2 + i))
4598       return 7;
4599   close (fd2);
4600   if (munmap (data2, pagesize))
4601     return 8;
4602
4603   /* Next, try to mmap the file at a fixed address which already has
4604      something else allocated at it.  If we can, also make sure that
4605      we see the same garbage.  */
4606   fd = open ("conftest.mmap", O_RDWR);
4607   if (fd < 0)
4608     return 9;
4609   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4610                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4611     return 10;
4612   for (i = 0; i < pagesize; ++i)
4613     if (*(data + i) != *(data2 + i))
4614       return 11;
4615
4616   /* Finally, make sure that changes to the mapped area do not
4617      percolate back to the file as seen by read().  (This is a bug on
4618      some variants of i386 svr4.0.)  */
4619   for (i = 0; i < pagesize; ++i)
4620     *(data2 + i) = *(data2 + i) + 1;
4621   data3 = (char *) malloc (pagesize);
4622   if (!data3)
4623     return 12;
4624   if (read (fd, data3, pagesize) != pagesize)
4625     return 13;
4626   for (i = 0; i < pagesize; ++i)
4627     if (*(data + i) != *(data3 + i))
4628       return 14;
4629   close (fd);
4630   return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_run "$LINENO"; then :
4634   ac_cv_func_mmap_fixed_mapped=yes
4635 else
4636   ac_cv_func_mmap_fixed_mapped=no
4637 fi
4638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4639   conftest.$ac_objext conftest.beam conftest.$ac_ext
4640 fi
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4644 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4645 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4646
4647 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4648
4649 fi
4650 rm -f conftest.mmap conftest.txt
4651
4652 # Check whether --enable-largefile was given.
4653 if test "${enable_largefile+set}" = set; then :
4654   enableval=$enable_largefile;
4655 fi
4656
4657 if test "$enable_largefile" != no; then
4658
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4660 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4661 if ${ac_cv_sys_largefile_CC+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   ac_cv_sys_largefile_CC=no
4665      if test "$GCC" != yes; then
4666        ac_save_CC=$CC
4667        while :; do
4668          # IRIX 6.2 and later do not support large files by default,
4669          # so use the C compiler's -n32 option if that helps.
4670          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h.  */
4672 #include <sys/types.h>
4673  /* Check that off_t can represent 2**63 - 1 correctly.
4674     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4675     since some C++ compilers masquerading as C compilers
4676     incorrectly reject 9223372036854775807.  */
4677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4678   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4679                        && LARGE_OFF_T % 2147483647 == 1)
4680                       ? 1 : -1];
4681 int
4682 main ()
4683 {
4684
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689          if ac_fn_c_try_compile "$LINENO"; then :
4690   break
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext
4693          CC="$CC -n32"
4694          if ac_fn_c_try_compile "$LINENO"; then :
4695   ac_cv_sys_largefile_CC=' -n32'; break
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext
4698          break
4699        done
4700        CC=$ac_save_CC
4701        rm -f conftest.$ac_ext
4702     fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4705 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4706   if test "$ac_cv_sys_largefile_CC" != no; then
4707     CC=$CC$ac_cv_sys_largefile_CC
4708   fi
4709
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4711 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4712 if ${ac_cv_sys_file_offset_bits+:} false; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   while :; do
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718 #include <sys/types.h>
4719  /* Check that off_t can represent 2**63 - 1 correctly.
4720     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4721     since some C++ compilers masquerading as C compilers
4722     incorrectly reject 9223372036854775807.  */
4723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4724   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4725                        && LARGE_OFF_T % 2147483647 == 1)
4726                       ? 1 : -1];
4727 int
4728 main ()
4729 {
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736   ac_cv_sys_file_offset_bits=no; break
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h.  */
4741 #define _FILE_OFFSET_BITS 64
4742 #include <sys/types.h>
4743  /* Check that off_t can represent 2**63 - 1 correctly.
4744     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745     since some C++ compilers masquerading as C compilers
4746     incorrectly reject 9223372036854775807.  */
4747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749                        && LARGE_OFF_T % 2147483647 == 1)
4750                       ? 1 : -1];
4751 int
4752 main ()
4753 {
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760   ac_cv_sys_file_offset_bits=64; break
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763   ac_cv_sys_file_offset_bits=unknown
4764   break
4765 done
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4768 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4769 case $ac_cv_sys_file_offset_bits in #(
4770   no | unknown) ;;
4771   *)
4772 cat >>confdefs.h <<_ACEOF
4773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4774 _ACEOF
4775 ;;
4776 esac
4777 rm -rf conftest*
4778   if test $ac_cv_sys_file_offset_bits = unknown; then
4779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4780 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4781 if ${ac_cv_sys_large_files+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   while :; do
4785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h.  */
4787 #include <sys/types.h>
4788  /* Check that off_t can represent 2**63 - 1 correctly.
4789     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4790     since some C++ compilers masquerading as C compilers
4791     incorrectly reject 9223372036854775807.  */
4792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4793   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4794                        && LARGE_OFF_T % 2147483647 == 1)
4795                       ? 1 : -1];
4796 int
4797 main ()
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805   ac_cv_sys_large_files=no; break
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h.  */
4810 #define _LARGE_FILES 1
4811 #include <sys/types.h>
4812  /* Check that off_t can represent 2**63 - 1 correctly.
4813     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4814     since some C++ compilers masquerading as C compilers
4815     incorrectly reject 9223372036854775807.  */
4816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4817   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4818                        && LARGE_OFF_T % 2147483647 == 1)
4819                       ? 1 : -1];
4820 int
4821 main ()
4822 {
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829   ac_cv_sys_large_files=1; break
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832   ac_cv_sys_large_files=unknown
4833   break
4834 done
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4837 $as_echo "$ac_cv_sys_large_files" >&6; }
4838 case $ac_cv_sys_large_files in #(
4839   no | unknown) ;;
4840   *)
4841 cat >>confdefs.h <<_ACEOF
4842 #define _LARGE_FILES $ac_cv_sys_large_files
4843 _ACEOF
4844 ;;
4845 esac
4846 rm -rf conftest*
4847   fi
4848
4849
4850 fi
4851
4852
4853 # Initialize libtool
4854
4855 case `pwd` in
4856   *\ * | *\     *)
4857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4858 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4859 esac
4860
4861
4862
4863 macro_version='2.4.2'
4864 macro_revision='1.3337'
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878 ltmain="$ac_aux_dir/ltmain.sh"
4879
4880 # Backslashify metacharacters that are still active within
4881 # double-quoted strings.
4882 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4883
4884 # Same as above, but do not quote variable references.
4885 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4886
4887 # Sed substitution to delay expansion of an escaped shell variable in a
4888 # double_quote_subst'ed string.
4889 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4890
4891 # Sed substitution to delay expansion of an escaped single quote.
4892 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4893
4894 # Sed substitution to avoid accidental globbing in evaled expressions
4895 no_glob_subst='s/\*/\\\*/g'
4896
4897 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4898 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4899 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4900
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4902 $as_echo_n "checking how to print strings... " >&6; }
4903 # Test print first, because it will be a builtin if present.
4904 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4905    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4906   ECHO='print -r --'
4907 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4908   ECHO='printf %s\n'
4909 else
4910   # Use this function as a fallback that always works.
4911   func_fallback_echo ()
4912   {
4913     eval 'cat <<_LTECHO_EOF
4914 $1
4915 _LTECHO_EOF'
4916   }
4917   ECHO='func_fallback_echo'
4918 fi
4919
4920 # func_echo_all arg...
4921 # Invoke $ECHO with all args, space-separated.
4922 func_echo_all ()
4923 {
4924     $ECHO ""
4925 }
4926
4927 case "$ECHO" in
4928   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4929 $as_echo "printf" >&6; } ;;
4930   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4931 $as_echo "print -r" >&6; } ;;
4932   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4933 $as_echo "cat" >&6; } ;;
4934 esac
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4950 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4951 if ${ac_cv_path_SED+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4955      for ac_i in 1 2 3 4 5 6 7; do
4956        ac_script="$ac_script$as_nl$ac_script"
4957      done
4958      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4959      { ac_script=; unset ac_script;}
4960      if test -z "$SED"; then
4961   ac_path_SED_found=false
4962   # Loop through the user's path and test for each of PROGNAME-LIST
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_prog in sed gsed; do
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4971       as_fn_executable_p "$ac_path_SED" || continue
4972 # Check for GNU ac_path_SED and select it if it is found.
4973   # Check for GNU $ac_path_SED
4974 case `"$ac_path_SED" --version 2>&1` in
4975 *GNU*)
4976   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4977 *)
4978   ac_count=0
4979   $as_echo_n 0123456789 >"conftest.in"
4980   while :
4981   do
4982     cat "conftest.in" "conftest.in" >"conftest.tmp"
4983     mv "conftest.tmp" "conftest.in"
4984     cp "conftest.in" "conftest.nl"
4985     $as_echo '' >> "conftest.nl"
4986     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4987     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4988     as_fn_arith $ac_count + 1 && ac_count=$as_val
4989     if test $ac_count -gt ${ac_path_SED_max-0}; then
4990       # Best one so far, save it but keep looking for a better one
4991       ac_cv_path_SED="$ac_path_SED"
4992       ac_path_SED_max=$ac_count
4993     fi
4994     # 10*(2^10) chars as input seems more than enough
4995     test $ac_count -gt 10 && break
4996   done
4997   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4998 esac
4999
5000       $ac_path_SED_found && break 3
5001     done
5002   done
5003   done
5004 IFS=$as_save_IFS
5005   if test -z "$ac_cv_path_SED"; then
5006     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5007   fi
5008 else
5009   ac_cv_path_SED=$SED
5010 fi
5011
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5014 $as_echo "$ac_cv_path_SED" >&6; }
5015  SED="$ac_cv_path_SED"
5016   rm -f conftest.sed
5017
5018 test -z "$SED" && SED=sed
5019 Xsed="$SED -e 1s/^X//"
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5032 $as_echo_n "checking for fgrep... " >&6; }
5033 if ${ac_cv_path_FGREP+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5037    then ac_cv_path_FGREP="$GREP -F"
5038    else
5039      if test -z "$FGREP"; then
5040   ac_path_FGREP_found=false
5041   # Loop through the user's path and test for each of PROGNAME-LIST
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_prog in fgrep; do
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5050       as_fn_executable_p "$ac_path_FGREP" || continue
5051 # Check for GNU ac_path_FGREP and select it if it is found.
5052   # Check for GNU $ac_path_FGREP
5053 case `"$ac_path_FGREP" --version 2>&1` in
5054 *GNU*)
5055   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5056 *)
5057   ac_count=0
5058   $as_echo_n 0123456789 >"conftest.in"
5059   while :
5060   do
5061     cat "conftest.in" "conftest.in" >"conftest.tmp"
5062     mv "conftest.tmp" "conftest.in"
5063     cp "conftest.in" "conftest.nl"
5064     $as_echo 'FGREP' >> "conftest.nl"
5065     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067     as_fn_arith $ac_count + 1 && ac_count=$as_val
5068     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5069       # Best one so far, save it but keep looking for a better one
5070       ac_cv_path_FGREP="$ac_path_FGREP"
5071       ac_path_FGREP_max=$ac_count
5072     fi
5073     # 10*(2^10) chars as input seems more than enough
5074     test $ac_count -gt 10 && break
5075   done
5076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5077 esac
5078
5079       $ac_path_FGREP_found && break 3
5080     done
5081   done
5082   done
5083 IFS=$as_save_IFS
5084   if test -z "$ac_cv_path_FGREP"; then
5085     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5086   fi
5087 else
5088   ac_cv_path_FGREP=$FGREP
5089 fi
5090
5091    fi
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5094 $as_echo "$ac_cv_path_FGREP" >&6; }
5095  FGREP="$ac_cv_path_FGREP"
5096
5097
5098 test -z "$GREP" && GREP=grep
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 # Check whether --with-gnu-ld was given.
5119 if test "${with_gnu_ld+set}" = set; then :
5120   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5121 else
5122   with_gnu_ld=no
5123 fi
5124
5125 ac_prog=ld
5126 if test "$GCC" = yes; then
5127   # Check if gcc -print-prog-name=ld gives a path.
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5129 $as_echo_n "checking for ld used by $CC... " >&6; }
5130   case $host in
5131   *-*-mingw*)
5132     # gcc leaves a trailing carriage return which upsets mingw
5133     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5134   *)
5135     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5136   esac
5137   case $ac_prog in
5138     # Accept absolute paths.
5139     [\\/]* | ?:[\\/]*)
5140       re_direlt='/[^/][^/]*/\.\./'
5141       # Canonicalize the pathname of ld
5142       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5143       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5144         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5145       done
5146       test -z "$LD" && LD="$ac_prog"
5147       ;;
5148   "")
5149     # If it fails, then pretend we aren't using GCC.
5150     ac_prog=ld
5151     ;;
5152   *)
5153     # If it is relative, then search for the first ld in PATH.
5154     with_gnu_ld=unknown
5155     ;;
5156   esac
5157 elif test "$with_gnu_ld" = yes; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5159 $as_echo_n "checking for GNU ld... " >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5162 $as_echo_n "checking for non-GNU ld... " >&6; }
5163 fi
5164 if ${lt_cv_path_LD+:} false; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   if test -z "$LD"; then
5168   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5169   for ac_dir in $PATH; do
5170     IFS="$lt_save_ifs"
5171     test -z "$ac_dir" && ac_dir=.
5172     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5173       lt_cv_path_LD="$ac_dir/$ac_prog"
5174       # Check to see if the program is GNU ld.  I'd rather use --version,
5175       # but apparently some variants of GNU ld only accept -v.
5176       # Break only if it was the GNU/non-GNU ld that we prefer.
5177       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5178       *GNU* | *'with BFD'*)
5179         test "$with_gnu_ld" != no && break
5180         ;;
5181       *)
5182         test "$with_gnu_ld" != yes && break
5183         ;;
5184       esac
5185     fi
5186   done
5187   IFS="$lt_save_ifs"
5188 else
5189   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5190 fi
5191 fi
5192
5193 LD="$lt_cv_path_LD"
5194 if test -n "$LD"; then
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5196 $as_echo "$LD" >&6; }
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5203 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5204 if ${lt_cv_prog_gnu_ld+:} false; then :
5205   $as_echo_n "(cached) " >&6
5206 else
5207   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5208 case `$LD -v 2>&1 </dev/null` in
5209 *GNU* | *'with BFD'*)
5210   lt_cv_prog_gnu_ld=yes
5211   ;;
5212 *)
5213   lt_cv_prog_gnu_ld=no
5214   ;;
5215 esac
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5218 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5219 with_gnu_ld=$lt_cv_prog_gnu_ld
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5230 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5231 if ${lt_cv_path_NM+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   if test -n "$NM"; then
5235   # Let the user override the test.
5236   lt_cv_path_NM="$NM"
5237 else
5238   lt_nm_to_check="${ac_tool_prefix}nm"
5239   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5240     lt_nm_to_check="$lt_nm_to_check nm"
5241   fi
5242   for lt_tmp_nm in $lt_nm_to_check; do
5243     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5244     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5245       IFS="$lt_save_ifs"
5246       test -z "$ac_dir" && ac_dir=.
5247       tmp_nm="$ac_dir/$lt_tmp_nm"
5248       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5249         # Check to see if the nm accepts a BSD-compat flag.
5250         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5251         #   nm: unknown option "B" ignored
5252         # Tru64's nm complains that /dev/null is an invalid object file
5253         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5254         */dev/null* | *'Invalid file or object type'*)
5255           lt_cv_path_NM="$tmp_nm -B"
5256           break
5257           ;;
5258         *)
5259           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5260           */dev/null*)
5261             lt_cv_path_NM="$tmp_nm -p"
5262             break
5263             ;;
5264           *)
5265             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5266             continue # so that we can try to find one that supports BSD flags
5267             ;;
5268           esac
5269           ;;
5270         esac
5271       fi
5272     done
5273     IFS="$lt_save_ifs"
5274   done
5275   : ${lt_cv_path_NM=no}
5276 fi
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5279 $as_echo "$lt_cv_path_NM" >&6; }
5280 if test "$lt_cv_path_NM" != "no"; then
5281   NM="$lt_cv_path_NM"
5282 else
5283   # Didn't find any BSD compatible name lister, look for dumpbin.
5284   if test -n "$DUMPBIN"; then :
5285     # Let the user override the test.
5286   else
5287     if test -n "$ac_tool_prefix"; then
5288   for ac_prog in dumpbin "link -dump"
5289   do
5290     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_DUMPBIN+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$DUMPBIN"; then
5298   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 DUMPBIN=$ac_cv_prog_DUMPBIN
5318 if test -n "$DUMPBIN"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5320 $as_echo "$DUMPBIN" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327     test -n "$DUMPBIN" && break
5328   done
5329 fi
5330 if test -z "$DUMPBIN"; then
5331   ac_ct_DUMPBIN=$DUMPBIN
5332   for ac_prog in dumpbin "link -dump"
5333 do
5334   # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test -n "$ac_ct_DUMPBIN"; then
5342   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349     for ac_exec_ext in '' $ac_executable_extensions; do
5350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356   done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5362 if test -n "$ac_ct_DUMPBIN"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5364 $as_echo "$ac_ct_DUMPBIN" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371   test -n "$ac_ct_DUMPBIN" && break
5372 done
5373
5374   if test "x$ac_ct_DUMPBIN" = x; then
5375     DUMPBIN=":"
5376   else
5377     case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383     DUMPBIN=$ac_ct_DUMPBIN
5384   fi
5385 fi
5386
5387     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5388     *COFF*)
5389       DUMPBIN="$DUMPBIN -symbols"
5390       ;;
5391     *)
5392       DUMPBIN=:
5393       ;;
5394     esac
5395   fi
5396
5397   if test "$DUMPBIN" != ":"; then
5398     NM="$DUMPBIN"
5399   fi
5400 fi
5401 test -z "$NM" && NM=nm
5402
5403
5404
5405
5406
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5409 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5410 if ${lt_cv_nm_interface+:} false; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   lt_cv_nm_interface="BSD nm"
5414   echo "int some_variable = 0;" > conftest.$ac_ext
5415   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5416   (eval "$ac_compile" 2>conftest.err)
5417   cat conftest.err >&5
5418   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5419   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5420   cat conftest.err >&5
5421   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5422   cat conftest.out >&5
5423   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5424     lt_cv_nm_interface="MS dumpbin"
5425   fi
5426   rm -f conftest*
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5429 $as_echo "$lt_cv_nm_interface" >&6; }
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5432 $as_echo_n "checking whether ln -s works... " >&6; }
5433 LN_S=$as_ln_s
5434 if test "$LN_S" = "ln -s"; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 $as_echo "yes" >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5439 $as_echo "no, using $LN_S" >&6; }
5440 fi
5441
5442 # find the maximum length of command line arguments
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5444 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5445 if ${lt_cv_sys_max_cmd_len+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448     i=0
5449   teststring="ABCD"
5450
5451   case $build_os in
5452   msdosdjgpp*)
5453     # On DJGPP, this test can blow up pretty badly due to problems in libc
5454     # (any single argument exceeding 2000 bytes causes a buffer overrun
5455     # during glob expansion).  Even if it were fixed, the result of this
5456     # check would be larger than it should be.
5457     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5458     ;;
5459
5460   gnu*)
5461     # Under GNU Hurd, this test is not required because there is
5462     # no limit to the length of command line arguments.
5463     # Libtool will interpret -1 as no limit whatsoever
5464     lt_cv_sys_max_cmd_len=-1;
5465     ;;
5466
5467   cygwin* | mingw* | cegcc*)
5468     # On Win9x/ME, this test blows up -- it succeeds, but takes
5469     # about 5 minutes as the teststring grows exponentially.
5470     # Worse, since 9x/ME are not pre-emptively multitasking,
5471     # you end up with a "frozen" computer, even though with patience
5472     # the test eventually succeeds (with a max line length of 256k).
5473     # Instead, let's just punt: use the minimum linelength reported by
5474     # all of the supported platforms: 8192 (on NT/2K/XP).
5475     lt_cv_sys_max_cmd_len=8192;
5476     ;;
5477
5478   mint*)
5479     # On MiNT this can take a long time and run out of memory.
5480     lt_cv_sys_max_cmd_len=8192;
5481     ;;
5482
5483   amigaos*)
5484     # On AmigaOS with pdksh, this test takes hours, literally.
5485     # So we just punt and use a minimum line length of 8192.
5486     lt_cv_sys_max_cmd_len=8192;
5487     ;;
5488
5489   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5490     # This has been around since 386BSD, at least.  Likely further.
5491     if test -x /sbin/sysctl; then
5492       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5493     elif test -x /usr/sbin/sysctl; then
5494       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5495     else
5496       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5497     fi
5498     # And add a safety zone
5499     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5500     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5501     ;;
5502
5503   interix*)
5504     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5505     lt_cv_sys_max_cmd_len=196608
5506     ;;
5507
5508   os2*)
5509     # The test takes a long time on OS/2.
5510     lt_cv_sys_max_cmd_len=8192
5511     ;;
5512
5513   osf*)
5514     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5515     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5516     # nice to cause kernel panics so lets avoid the loop below.
5517     # First set a reasonable default.
5518     lt_cv_sys_max_cmd_len=16384
5519     #
5520     if test -x /sbin/sysconfig; then
5521       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5522         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5523       esac
5524     fi
5525     ;;
5526   sco3.2v5*)
5527     lt_cv_sys_max_cmd_len=102400
5528     ;;
5529   sysv5* | sco5v6* | sysv4.2uw2*)
5530     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5531     if test -n "$kargmax"; then
5532       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5533     else
5534       lt_cv_sys_max_cmd_len=32768
5535     fi
5536     ;;
5537   *)
5538     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5539     if test -n "$lt_cv_sys_max_cmd_len"; then
5540       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5542     else
5543       # Make teststring a little bigger before we do anything with it.
5544       # a 1K string should be a reasonable start.
5545       for i in 1 2 3 4 5 6 7 8 ; do
5546         teststring=$teststring$teststring
5547       done
5548       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5549       # If test is not a shell built-in, we'll probably end up computing a
5550       # maximum length that is only half of the actual maximum length, but
5551       # we can't tell.
5552       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5553                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5554               test $i != 17 # 1/2 MB should be enough
5555       do
5556         i=`expr $i + 1`
5557         teststring=$teststring$teststring
5558       done
5559       # Only check the string length outside the loop.
5560       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5561       teststring=
5562       # Add a significant safety factor because C++ compilers can tack on
5563       # massive amounts of additional arguments before passing them to the
5564       # linker.  It appears as though 1/2 is a usable value.
5565       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5566     fi
5567     ;;
5568   esac
5569
5570 fi
5571
5572 if test -n $lt_cv_sys_max_cmd_len ; then
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5574 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5575 else
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5577 $as_echo "none" >&6; }
5578 fi
5579 max_cmd_len=$lt_cv_sys_max_cmd_len
5580
5581
5582
5583
5584
5585
5586 : ${CP="cp -f"}
5587 : ${MV="mv -f"}
5588 : ${RM="rm -f"}
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5591 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5592 # Try some XSI features
5593 xsi_shell=no
5594 ( _lt_dummy="a/b/c"
5595   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5596       = c,a/b,b/c, \
5597     && eval 'test $(( 1 + 1 )) -eq 2 \
5598     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5599   && xsi_shell=yes
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5601 $as_echo "$xsi_shell" >&6; }
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5605 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5606 lt_shell_append=no
5607 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5608     >/dev/null 2>&1 \
5609   && lt_shell_append=yes
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5611 $as_echo "$lt_shell_append" >&6; }
5612
5613
5614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5615   lt_unset=unset
5616 else
5617   lt_unset=false
5618 fi
5619
5620
5621
5622
5623
5624 # test EBCDIC or ASCII
5625 case `echo X|tr X '\101'` in
5626  A) # ASCII based system
5627     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5628   lt_SP2NL='tr \040 \012'
5629   lt_NL2SP='tr \015\012 \040\040'
5630   ;;
5631  *) # EBCDIC based system
5632   lt_SP2NL='tr \100 \n'
5633   lt_NL2SP='tr \r\n \100\100'
5634   ;;
5635 esac
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5646 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5647 if ${lt_cv_to_host_file_cmd+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   case $host in
5651   *-*-mingw* )
5652     case $build in
5653       *-*-mingw* ) # actually msys
5654         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5655         ;;
5656       *-*-cygwin* )
5657         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5658         ;;
5659       * ) # otherwise, assume *nix
5660         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5661         ;;
5662     esac
5663     ;;
5664   *-*-cygwin* )
5665     case $build in
5666       *-*-mingw* ) # actually msys
5667         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5668         ;;
5669       *-*-cygwin* )
5670         lt_cv_to_host_file_cmd=func_convert_file_noop
5671         ;;
5672       * ) # otherwise, assume *nix
5673         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5674         ;;
5675     esac
5676     ;;
5677   * ) # unhandled hosts (and "normal" native builds)
5678     lt_cv_to_host_file_cmd=func_convert_file_noop
5679     ;;
5680 esac
5681
5682 fi
5683
5684 to_host_file_cmd=$lt_cv_to_host_file_cmd
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5686 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5687
5688
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5693 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5694 if ${lt_cv_to_tool_file_cmd+:} false; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   #assume ordinary cross tools, or native build.
5698 lt_cv_to_tool_file_cmd=func_convert_file_noop
5699 case $host in
5700   *-*-mingw* )
5701     case $build in
5702       *-*-mingw* ) # actually msys
5703         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5704         ;;
5705     esac
5706     ;;
5707 esac
5708
5709 fi
5710
5711 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5713 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5714
5715
5716
5717
5718
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5720 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5721 if ${lt_cv_ld_reload_flag+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   lt_cv_ld_reload_flag='-r'
5725 fi
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5727 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5728 reload_flag=$lt_cv_ld_reload_flag
5729 case $reload_flag in
5730 "" | " "*) ;;
5731 *) reload_flag=" $reload_flag" ;;
5732 esac
5733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5734 case $host_os in
5735   cygwin* | mingw* | pw32* | cegcc*)
5736     if test "$GCC" != yes; then
5737       reload_cmds=false
5738     fi
5739     ;;
5740   darwin*)
5741     if test "$GCC" = yes; then
5742       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5743     else
5744       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5745     fi
5746     ;;
5747 esac
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 if test -n "$ac_tool_prefix"; then
5758   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_OBJDUMP+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   if test -n "$OBJDUMP"; then
5766   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773     for ac_exec_ext in '' $ac_executable_extensions; do
5774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780   done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 OBJDUMP=$ac_cv_prog_OBJDUMP
5786 if test -n "$OBJDUMP"; then
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5788 $as_echo "$OBJDUMP" >&6; }
5789 else
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794
5795 fi
5796 if test -z "$ac_cv_prog_OBJDUMP"; then
5797   ac_ct_OBJDUMP=$OBJDUMP
5798   # Extract the first word of "objdump", so it can be a program name with args.
5799 set dummy objdump; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$ac_ct_OBJDUMP"; then
5806   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5826 if test -n "$ac_ct_OBJDUMP"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5828 $as_echo "$ac_ct_OBJDUMP" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834   if test "x$ac_ct_OBJDUMP" = x; then
5835     OBJDUMP="false"
5836   else
5837     case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843     OBJDUMP=$ac_ct_OBJDUMP
5844   fi
5845 else
5846   OBJDUMP="$ac_cv_prog_OBJDUMP"
5847 fi
5848
5849 test -z "$OBJDUMP" && OBJDUMP=objdump
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5860 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5861 if ${lt_cv_deplibs_check_method+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   lt_cv_file_magic_cmd='$MAGIC_CMD'
5865 lt_cv_file_magic_test_file=
5866 lt_cv_deplibs_check_method='unknown'
5867 # Need to set the preceding variable on all platforms that support
5868 # interlibrary dependencies.
5869 # 'none' -- dependencies not supported.
5870 # `unknown' -- same as none, but documents that we really don't know.
5871 # 'pass_all' -- all dependencies passed with no checks.
5872 # 'test_compile' -- check by making test program.
5873 # 'file_magic [[regex]]' -- check by looking for files in library path
5874 # which responds to the $file_magic_cmd with a given extended regex.
5875 # If you have `file' or equivalent on your system and you're not sure
5876 # whether `pass_all' will *always* work, you probably want this one.
5877
5878 case $host_os in
5879 aix[4-9]*)
5880   lt_cv_deplibs_check_method=pass_all
5881   ;;
5882
5883 beos*)
5884   lt_cv_deplibs_check_method=pass_all
5885   ;;
5886
5887 bsdi[45]*)
5888   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5889   lt_cv_file_magic_cmd='/usr/bin/file -L'
5890   lt_cv_file_magic_test_file=/shlib/libc.so
5891   ;;
5892
5893 cygwin*)
5894   # func_win32_libid is a shell function defined in ltmain.sh
5895   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896   lt_cv_file_magic_cmd='func_win32_libid'
5897   ;;
5898
5899 mingw* | pw32*)
5900   # Base MSYS/MinGW do not provide the 'file' command needed by
5901   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5902   # unless we find 'file', for example because we are cross-compiling.
5903   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5904   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5905     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5906     lt_cv_file_magic_cmd='func_win32_libid'
5907   else
5908     # Keep this pattern in sync with the one in func_win32_libid.
5909     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5910     lt_cv_file_magic_cmd='$OBJDUMP -f'
5911   fi
5912   ;;
5913
5914 cegcc*)
5915   # use the weaker test based on 'objdump'. See mingw*.
5916   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5917   lt_cv_file_magic_cmd='$OBJDUMP -f'
5918   ;;
5919
5920 darwin* | rhapsody*)
5921   lt_cv_deplibs_check_method=pass_all
5922   ;;
5923
5924 freebsd* | dragonfly*)
5925   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5926     case $host_cpu in
5927     i*86 )
5928       # Not sure whether the presence of OpenBSD here was a mistake.
5929       # Let's accept both of them until this is cleared up.
5930       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5931       lt_cv_file_magic_cmd=/usr/bin/file
5932       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5933       ;;
5934     esac
5935   else
5936     lt_cv_deplibs_check_method=pass_all
5937   fi
5938   ;;
5939
5940 gnu*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943
5944 haiku*)
5945   lt_cv_deplibs_check_method=pass_all
5946   ;;
5947
5948 hpux10.20* | hpux11*)
5949   lt_cv_file_magic_cmd=/usr/bin/file
5950   case $host_cpu in
5951   ia64*)
5952     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5953     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5954     ;;
5955   hppa*64*)
5956     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]'
5957     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5958     ;;
5959   *)
5960     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5961     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5962     ;;
5963   esac
5964   ;;
5965
5966 interix[3-9]*)
5967   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5968   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5969   ;;
5970
5971 irix5* | irix6* | nonstopux*)
5972   case $LD in
5973   *-32|*"-32 ") libmagic=32-bit;;
5974   *-n32|*"-n32 ") libmagic=N32;;
5975   *-64|*"-64 ") libmagic=64-bit;;
5976   *) libmagic=never-match;;
5977   esac
5978   lt_cv_deplibs_check_method=pass_all
5979   ;;
5980
5981 # This must be glibc/ELF.
5982 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5983   lt_cv_deplibs_check_method=pass_all
5984   ;;
5985
5986 netbsd* | netbsdelf*-gnu)
5987   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5989   else
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5991   fi
5992   ;;
5993
5994 newos6*)
5995   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996   lt_cv_file_magic_cmd=/usr/bin/file
5997   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5998   ;;
5999
6000 *nto* | *qnx*)
6001   lt_cv_deplibs_check_method=pass_all
6002   ;;
6003
6004 openbsd*)
6005   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6006     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6007   else
6008     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6009   fi
6010   ;;
6011
6012 osf3* | osf4* | osf5*)
6013   lt_cv_deplibs_check_method=pass_all
6014   ;;
6015
6016 rdos*)
6017   lt_cv_deplibs_check_method=pass_all
6018   ;;
6019
6020 solaris*)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027
6028 sysv4 | sysv4.3*)
6029   case $host_vendor in
6030   motorola)
6031     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]'
6032     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6033     ;;
6034   ncr)
6035     lt_cv_deplibs_check_method=pass_all
6036     ;;
6037   sequent)
6038     lt_cv_file_magic_cmd='/bin/file'
6039     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6040     ;;
6041   sni)
6042     lt_cv_file_magic_cmd='/bin/file'
6043     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044     lt_cv_file_magic_test_file=/lib/libc.so
6045     ;;
6046   siemens)
6047     lt_cv_deplibs_check_method=pass_all
6048     ;;
6049   pc)
6050     lt_cv_deplibs_check_method=pass_all
6051     ;;
6052   esac
6053   ;;
6054
6055 tpf*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058 esac
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6062 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6063
6064 file_magic_glob=
6065 want_nocaseglob=no
6066 if test "$build" = "$host"; then
6067   case $host_os in
6068   mingw* | pw32*)
6069     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6070       want_nocaseglob=yes
6071     else
6072       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6073     fi
6074     ;;
6075   esac
6076 fi
6077
6078 file_magic_cmd=$lt_cv_file_magic_cmd
6079 deplibs_check_method=$lt_cv_deplibs_check_method
6080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_DLLTOOL+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$DLLTOOL"; then
6112   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126   done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 DLLTOOL=$ac_cv_prog_DLLTOOL
6132 if test -n "$DLLTOOL"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6134 $as_echo "$DLLTOOL" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_DLLTOOL"; then
6143   ac_ct_DLLTOOL=$DLLTOOL
6144   # Extract the first word of "dlltool", so it can be a program name with args.
6145 set dummy dlltool; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   if test -n "$ac_ct_DLLTOOL"; then
6152   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159     for ac_exec_ext in '' $ac_executable_extensions; do
6160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166   done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6172 if test -n "$ac_ct_DLLTOOL"; then
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6174 $as_echo "$ac_ct_DLLTOOL" >&6; }
6175 else
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180   if test "x$ac_ct_DLLTOOL" = x; then
6181     DLLTOOL="false"
6182   else
6183     case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189     DLLTOOL=$ac_ct_DLLTOOL
6190   fi
6191 else
6192   DLLTOOL="$ac_cv_prog_DLLTOOL"
6193 fi
6194
6195 test -z "$DLLTOOL" && DLLTOOL=dlltool
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6207 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6208 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   lt_cv_sharedlib_from_linklib_cmd='unknown'
6212
6213 case $host_os in
6214 cygwin* | mingw* | pw32* | cegcc*)
6215   # two different shell functions defined in ltmain.sh
6216   # decide which to use based on capabilities of $DLLTOOL
6217   case `$DLLTOOL --help 2>&1` in
6218   *--identify-strict*)
6219     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6220     ;;
6221   *)
6222     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6223     ;;
6224   esac
6225   ;;
6226 *)
6227   # fallback: assume linklib IS sharedlib
6228   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6229   ;;
6230 esac
6231
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6234 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6235 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6236 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   for ac_prog in ar
6246   do
6247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_AR+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   if test -n "$AR"; then
6255   ac_cv_prog_AR="$AR" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262     for ac_exec_ext in '' $ac_executable_extensions; do
6263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269   done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 AR=$ac_cv_prog_AR
6275 if test -n "$AR"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6277 $as_echo "$AR" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284     test -n "$AR" && break
6285   done
6286 fi
6287 if test -z "$AR"; then
6288   ac_ct_AR=$AR
6289   for ac_prog in ar
6290 do
6291   # Extract the first word of "$ac_prog", so it can be a program name with args.
6292 set dummy $ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$ac_ct_AR"; then
6299   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306     for ac_exec_ext in '' $ac_executable_extensions; do
6307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308     ac_cv_prog_ac_ct_AR="$ac_prog"
6309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313   done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6319 if test -n "$ac_ct_AR"; then
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6321 $as_echo "$ac_ct_AR" >&6; }
6322 else
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328   test -n "$ac_ct_AR" && break
6329 done
6330
6331   if test "x$ac_ct_AR" = x; then
6332     AR="false"
6333   else
6334     case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340     AR=$ac_ct_AR
6341   fi
6342 fi
6343
6344 : ${AR=ar}
6345 : ${AR_FLAGS=cru}
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6358 $as_echo_n "checking for archiver @FILE support... " >&6; }
6359 if ${lt_cv_ar_at_file+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   lt_cv_ar_at_file=no
6363    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h.  */
6365
6366 int
6367 main ()
6368 {
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375   echo conftest.$ac_objext > conftest.lst
6376       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6377       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6378   (eval $lt_ar_try) 2>&5
6379   ac_status=$?
6380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381   test $ac_status = 0; }
6382       if test "$ac_status" -eq 0; then
6383         # Ensure the archiver fails upon bogus file names.
6384         rm -f conftest.$ac_objext libconftest.a
6385         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6386   (eval $lt_ar_try) 2>&5
6387   ac_status=$?
6388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389   test $ac_status = 0; }
6390         if test "$ac_status" -ne 0; then
6391           lt_cv_ar_at_file=@
6392         fi
6393       fi
6394       rm -f conftest.* libconftest.a
6395
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6401 $as_echo "$lt_cv_ar_at_file" >&6; }
6402
6403 if test "x$lt_cv_ar_at_file" = xno; then
6404   archiver_list_spec=
6405 else
6406   archiver_list_spec=$lt_cv_ar_at_file
6407 fi
6408
6409
6410
6411
6412
6413
6414
6415 if test -n "$ac_tool_prefix"; then
6416   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}strip; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_STRIP+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$STRIP"; then
6424   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 STRIP=$ac_cv_prog_STRIP
6444 if test -n "$STRIP"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6446 $as_echo "$STRIP" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_STRIP"; then
6455   ac_ct_STRIP=$STRIP
6456   # Extract the first word of "strip", so it can be a program name with args.
6457 set dummy strip; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -n "$ac_ct_STRIP"; then
6464   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_exec_ext in '' $ac_executable_extensions; do
6472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473     ac_cv_prog_ac_ct_STRIP="strip"
6474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478   done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6484 if test -n "$ac_ct_STRIP"; then
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6486 $as_echo "$ac_ct_STRIP" >&6; }
6487 else
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492   if test "x$ac_ct_STRIP" = x; then
6493     STRIP=":"
6494   else
6495     case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6500 esac
6501     STRIP=$ac_ct_STRIP
6502   fi
6503 else
6504   STRIP="$ac_cv_prog_STRIP"
6505 fi
6506
6507 test -z "$STRIP" && STRIP=:
6508
6509
6510
6511
6512
6513
6514 if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_RANLIB+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$RANLIB"; then
6523   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537   done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 RANLIB=$ac_cv_prog_RANLIB
6543 if test -n "$RANLIB"; then
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6545 $as_echo "$RANLIB" >&6; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_RANLIB"; then
6554   ac_ct_RANLIB=$RANLIB
6555   # Extract the first word of "ranlib", so it can be a program name with args.
6556 set dummy ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$ac_ct_RANLIB"; then
6563   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_prog_ac_ct_RANLIB="ranlib"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6583 if test -n "$ac_ct_RANLIB"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6585 $as_echo "$ac_ct_RANLIB" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591   if test "x$ac_ct_RANLIB" = x; then
6592     RANLIB=":"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     RANLIB=$ac_ct_RANLIB
6601   fi
6602 else
6603   RANLIB="$ac_cv_prog_RANLIB"
6604 fi
6605
6606 test -z "$RANLIB" && RANLIB=:
6607
6608
6609
6610
6611
6612
6613 # Determine commands to create old-style static archives.
6614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6615 old_postinstall_cmds='chmod 644 $oldlib'
6616 old_postuninstall_cmds=
6617
6618 if test -n "$RANLIB"; then
6619   case $host_os in
6620   openbsd*)
6621     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6622     ;;
6623   *)
6624     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6625     ;;
6626   esac
6627   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6628 fi
6629
6630 case $host_os in
6631   darwin*)
6632     lock_old_archive_extraction=yes ;;
6633   *)
6634     lock_old_archive_extraction=no ;;
6635 esac
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 # If no C compiler was specified, use CC.
6676 LTCC=${LTCC-"$CC"}
6677
6678 # If no C compiler flags were specified, use CFLAGS.
6679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6680
6681 # Allow CC to be a program name with arguments.
6682 compiler=$CC
6683
6684
6685 # Check for command to grab the raw symbol name followed by C symbol from nm.
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6687 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6688 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691
6692 # These are sane defaults that work on at least a few old systems.
6693 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6694
6695 # Character class describing NM global symbol codes.
6696 symcode='[BCDEGRST]'
6697
6698 # Regexp to match symbols that can be accessed directly from C.
6699 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6700
6701 # Define system-specific variables.
6702 case $host_os in
6703 aix*)
6704   symcode='[BCDT]'
6705   ;;
6706 cygwin* | mingw* | pw32* | cegcc*)
6707   symcode='[ABCDGISTW]'
6708   ;;
6709 hpux*)
6710   if test "$host_cpu" = ia64; then
6711     symcode='[ABCDEGRST]'
6712   fi
6713   ;;
6714 irix* | nonstopux*)
6715   symcode='[BCDEGRST]'
6716   ;;
6717 osf*)
6718   symcode='[BCDEGQRST]'
6719   ;;
6720 solaris*)
6721   symcode='[BDRT]'
6722   ;;
6723 sco3.2v5*)
6724   symcode='[DT]'
6725   ;;
6726 sysv4.2uw2*)
6727   symcode='[DT]'
6728   ;;
6729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6730   symcode='[ABDT]'
6731   ;;
6732 sysv4)
6733   symcode='[DFNSTU]'
6734   ;;
6735 esac
6736
6737 # If we're using GNU nm, then use its standard symbol codes.
6738 case `$NM -V 2>&1` in
6739 *GNU* | *'with BFD'*)
6740   symcode='[ABCDGIRSTW]' ;;
6741 esac
6742
6743 # Transform an extracted symbol line into a proper C declaration.
6744 # Some systems (esp. on ia64) link data and code symbols differently,
6745 # so use this general approach.
6746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6747
6748 # Transform an extracted symbol line into symbol name and symbol address
6749 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6750 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'"
6751
6752 # Handle CRLF in mingw tool chain
6753 opt_cr=
6754 case $build_os in
6755 mingw*)
6756   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6757   ;;
6758 esac
6759
6760 # Try without a prefix underscore, then with it.
6761 for ac_symprfx in "" "_"; do
6762
6763   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6764   symxfrm="\\1 $ac_symprfx\\2 \\2"
6765
6766   # Write the raw and C identifiers.
6767   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6768     # Fake it for dumpbin and say T for any non-static function
6769     # and D for any global variable.
6770     # Also find C++ and __fastcall symbols from MSVC++,
6771     # which start with @ or ?.
6772     lt_cv_sys_global_symbol_pipe="$AWK '"\
6773 "     {last_section=section; section=\$ 3};"\
6774 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6775 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6776 "     \$ 0!~/External *\|/{next};"\
6777 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6778 "     {if(hide[section]) next};"\
6779 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6780 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6781 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6782 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6783 "     ' prfx=^$ac_symprfx"
6784   else
6785     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6786   fi
6787   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6788
6789   # Check to see that the pipe works correctly.
6790   pipe_works=no
6791
6792   rm -f conftest*
6793   cat > conftest.$ac_ext <<_LT_EOF
6794 #ifdef __cplusplus
6795 extern "C" {
6796 #endif
6797 char nm_test_var;
6798 void nm_test_func(void);
6799 void nm_test_func(void){}
6800 #ifdef __cplusplus
6801 }
6802 #endif
6803 int main(){nm_test_var='a';nm_test_func();return(0);}
6804 _LT_EOF
6805
6806   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807   (eval $ac_compile) 2>&5
6808   ac_status=$?
6809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810   test $ac_status = 0; }; then
6811     # Now try to grab the symbols.
6812     nlist=conftest.nm
6813     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6814   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6815   ac_status=$?
6816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817   test $ac_status = 0; } && test -s "$nlist"; then
6818       # Try sorting and uniquifying the output.
6819       if sort "$nlist" | uniq > "$nlist"T; then
6820         mv -f "$nlist"T "$nlist"
6821       else
6822         rm -f "$nlist"T
6823       fi
6824
6825       # Make sure that we snagged all the symbols we need.
6826       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6827         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6828           cat <<_LT_EOF > conftest.$ac_ext
6829 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6830 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6831 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6832    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6833 # define LT_DLSYM_CONST
6834 #elif defined(__osf__)
6835 /* This system does not cope well with relocations in const data.  */
6836 # define LT_DLSYM_CONST
6837 #else
6838 # define LT_DLSYM_CONST const
6839 #endif
6840
6841 #ifdef __cplusplus
6842 extern "C" {
6843 #endif
6844
6845 _LT_EOF
6846           # Now generate the symbol file.
6847           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6848
6849           cat <<_LT_EOF >> conftest.$ac_ext
6850
6851 /* The mapping between symbol names and symbols.  */
6852 LT_DLSYM_CONST struct {
6853   const char *name;
6854   void       *address;
6855 }
6856 lt__PROGRAM__LTX_preloaded_symbols[] =
6857 {
6858   { "@PROGRAM@", (void *) 0 },
6859 _LT_EOF
6860           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6861           cat <<\_LT_EOF >> conftest.$ac_ext
6862   {0, (void *) 0}
6863 };
6864
6865 /* This works around a problem in FreeBSD linker */
6866 #ifdef FREEBSD_WORKAROUND
6867 static const void *lt_preloaded_setup() {
6868   return lt__PROGRAM__LTX_preloaded_symbols;
6869 }
6870 #endif
6871
6872 #ifdef __cplusplus
6873 }
6874 #endif
6875 _LT_EOF
6876           # Now try linking the two files.
6877           mv conftest.$ac_objext conftstm.$ac_objext
6878           lt_globsym_save_LIBS=$LIBS
6879           lt_globsym_save_CFLAGS=$CFLAGS
6880           LIBS="conftstm.$ac_objext"
6881           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6882           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6883   (eval $ac_link) 2>&5
6884   ac_status=$?
6885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6887             pipe_works=yes
6888           fi
6889           LIBS=$lt_globsym_save_LIBS
6890           CFLAGS=$lt_globsym_save_CFLAGS
6891         else
6892           echo "cannot find nm_test_func in $nlist" >&5
6893         fi
6894       else
6895         echo "cannot find nm_test_var in $nlist" >&5
6896       fi
6897     else
6898       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6899     fi
6900   else
6901     echo "$progname: failed program was:" >&5
6902     cat conftest.$ac_ext >&5
6903   fi
6904   rm -rf conftest* conftst*
6905
6906   # Do not use the global_symbol_pipe unless it works.
6907   if test "$pipe_works" = yes; then
6908     break
6909   else
6910     lt_cv_sys_global_symbol_pipe=
6911   fi
6912 done
6913
6914 fi
6915
6916 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6917   lt_cv_sys_global_symbol_to_cdecl=
6918 fi
6919 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6921 $as_echo "failed" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6924 $as_echo "ok" >&6; }
6925 fi
6926
6927 # Response file support.
6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6929   nm_file_list_spec='@'
6930 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6931   nm_file_list_spec='@'
6932 fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6961 $as_echo_n "checking for sysroot... " >&6; }
6962
6963 # Check whether --with-sysroot was given.
6964 if test "${with_sysroot+set}" = set; then :
6965   withval=$with_sysroot;
6966 else
6967   with_sysroot=no
6968 fi
6969
6970
6971 lt_sysroot=
6972 case ${with_sysroot} in #(
6973  yes)
6974    if test "$GCC" = yes; then
6975      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6976    fi
6977    ;; #(
6978  /*)
6979    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6980    ;; #(
6981  no|'')
6982    ;; #(
6983  *)
6984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6985 $as_echo "${with_sysroot}" >&6; }
6986    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6987    ;;
6988 esac
6989
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6991 $as_echo "${lt_sysroot:-no}" >&6; }
6992
6993
6994
6995
6996
6997 # Check whether --enable-libtool-lock was given.
6998 if test "${enable_libtool_lock+set}" = set; then :
6999   enableval=$enable_libtool_lock;
7000 fi
7001
7002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7003
7004 # Some flags need to be propagated to the compiler or linker for good
7005 # libtool support.
7006 case $host in
7007 ia64-*-hpux*)
7008   # Find out which ABI we are using.
7009   echo 'int i;' > conftest.$ac_ext
7010   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011   (eval $ac_compile) 2>&5
7012   ac_status=$?
7013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014   test $ac_status = 0; }; then
7015     case `/usr/bin/file conftest.$ac_objext` in
7016       *ELF-32*)
7017         HPUX_IA64_MODE="32"
7018         ;;
7019       *ELF-64*)
7020         HPUX_IA64_MODE="64"
7021         ;;
7022     esac
7023   fi
7024   rm -rf conftest*
7025   ;;
7026 *-*-irix6*)
7027   # Find out which ABI we are using.
7028   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7029   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7030   (eval $ac_compile) 2>&5
7031   ac_status=$?
7032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033   test $ac_status = 0; }; then
7034     if test "$lt_cv_prog_gnu_ld" = yes; then
7035       case `/usr/bin/file conftest.$ac_objext` in
7036         *32-bit*)
7037           LD="${LD-ld} -melf32bsmip"
7038           ;;
7039         *N32*)
7040           LD="${LD-ld} -melf32bmipn32"
7041           ;;
7042         *64-bit*)
7043           LD="${LD-ld} -melf64bmip"
7044         ;;
7045       esac
7046     else
7047       case `/usr/bin/file conftest.$ac_objext` in
7048         *32-bit*)
7049           LD="${LD-ld} -32"
7050           ;;
7051         *N32*)
7052           LD="${LD-ld} -n32"
7053           ;;
7054         *64-bit*)
7055           LD="${LD-ld} -64"
7056           ;;
7057       esac
7058     fi
7059   fi
7060   rm -rf conftest*
7061   ;;
7062
7063 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7064 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7065   # Find out which ABI we are using.
7066   echo 'int i;' > conftest.$ac_ext
7067   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7068   (eval $ac_compile) 2>&5
7069   ac_status=$?
7070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071   test $ac_status = 0; }; then
7072     case `/usr/bin/file conftest.o` in
7073       *32-bit*)
7074         case $host in
7075           x86_64-*kfreebsd*-gnu)
7076             LD="${LD-ld} -m elf_i386_fbsd"
7077             ;;
7078           x86_64-*linux*)
7079             LD="${LD-ld} -m elf_i386"
7080             ;;
7081           ppc64-*linux*|powerpc64-*linux*)
7082             LD="${LD-ld} -m elf32ppclinux"
7083             ;;
7084           s390x-*linux*)
7085             LD="${LD-ld} -m elf_s390"
7086             ;;
7087           sparc64-*linux*)
7088             LD="${LD-ld} -m elf32_sparc"
7089             ;;
7090         esac
7091         ;;
7092       *64-bit*)
7093         case $host in
7094           x86_64-*kfreebsd*-gnu)
7095             LD="${LD-ld} -m elf_x86_64_fbsd"
7096             ;;
7097           x86_64-*linux*)
7098             LD="${LD-ld} -m elf_x86_64"
7099             ;;
7100           ppc*-*linux*|powerpc*-*linux*)
7101             LD="${LD-ld} -m elf64ppc"
7102             ;;
7103           s390*-*linux*|s390*-*tpf*)
7104             LD="${LD-ld} -m elf64_s390"
7105             ;;
7106           sparc*-*linux*)
7107             LD="${LD-ld} -m elf64_sparc"
7108             ;;
7109         esac
7110         ;;
7111     esac
7112   fi
7113   rm -rf conftest*
7114   ;;
7115
7116 *-*-sco3.2v5*)
7117   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7118   SAVE_CFLAGS="$CFLAGS"
7119   CFLAGS="$CFLAGS -belf"
7120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7121 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7122 if ${lt_cv_cc_needs_belf+:} false; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h.  */
7133
7134 int
7135 main ()
7136 {
7137
7138   ;
7139   return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_link "$LINENO"; then :
7143   lt_cv_cc_needs_belf=yes
7144 else
7145   lt_cv_cc_needs_belf=no
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext \
7148     conftest$ac_exeext conftest.$ac_ext
7149      ac_ext=c
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7157 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7158   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7159     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7160     CFLAGS="$SAVE_CFLAGS"
7161   fi
7162   ;;
7163 *-*solaris*)
7164   # Find out which ABI we are using.
7165   echo 'int i;' > conftest.$ac_ext
7166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170   test $ac_status = 0; }; then
7171     case `/usr/bin/file conftest.o` in
7172     *64-bit*)
7173       case $lt_cv_prog_gnu_ld in
7174       yes*)
7175         case $host in
7176         i?86-*-solaris*)
7177           LD="${LD-ld} -m elf_x86_64"
7178           ;;
7179         sparc*-*-solaris*)
7180           LD="${LD-ld} -m elf64_sparc"
7181           ;;
7182         esac
7183         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7184         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7185           LD="${LD-ld}_sol2"
7186         fi
7187         ;;
7188       *)
7189         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7190           LD="${LD-ld} -64"
7191         fi
7192         ;;
7193       esac
7194       ;;
7195     esac
7196   fi
7197   rm -rf conftest*
7198   ;;
7199 esac
7200
7201 need_locks="$enable_libtool_lock"
7202
7203 if test -n "$ac_tool_prefix"; then
7204   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}mt; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$MANIFEST_TOOL"; then
7212   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7232 if test -n "$MANIFEST_TOOL"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7234 $as_echo "$MANIFEST_TOOL" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241 fi
7242 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7243   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7244   # Extract the first word of "mt", so it can be a program name with args.
7245 set dummy mt; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   if test -n "$ac_ct_MANIFEST_TOOL"; then
7252   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259     for ac_exec_ext in '' $ac_executable_extensions; do
7260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266   done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7272 if test -n "$ac_ct_MANIFEST_TOOL"; then
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7274 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7275 else
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7281     MANIFEST_TOOL=":"
7282   else
7283     case $cross_compiling:$ac_tool_warned in
7284 yes:)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7288 esac
7289     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7290   fi
7291 else
7292   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7293 fi
7294
7295 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7297 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7298 if ${lt_cv_path_mainfest_tool+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   lt_cv_path_mainfest_tool=no
7302   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7303   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7304   cat conftest.err >&5
7305   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7306     lt_cv_path_mainfest_tool=yes
7307   fi
7308   rm -f conftest*
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7311 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7312 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7313   MANIFEST_TOOL=:
7314 fi
7315
7316
7317
7318
7319
7320
7321   case $host_os in
7322     rhapsody* | darwin*)
7323     if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$DSYMUTIL"; then
7332   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7352 if test -n "$DSYMUTIL"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7354 $as_echo "$DSYMUTIL" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_DSYMUTIL"; then
7363   ac_ct_DSYMUTIL=$DSYMUTIL
7364   # Extract the first word of "dsymutil", so it can be a program name with args.
7365 set dummy dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_DSYMUTIL"; then
7372   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7392 if test -n "$ac_ct_DSYMUTIL"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_DSYMUTIL" = x; then
7401     DSYMUTIL=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     DSYMUTIL=$ac_ct_DSYMUTIL
7410   fi
7411 else
7412   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7413 fi
7414
7415     if test -n "$ac_tool_prefix"; then
7416   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_NMEDIT+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   if test -n "$NMEDIT"; then
7424   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431     for ac_exec_ext in '' $ac_executable_extensions; do
7432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438   done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 NMEDIT=$ac_cv_prog_NMEDIT
7444 if test -n "$NMEDIT"; then
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7446 $as_echo "$NMEDIT" >&6; }
7447 else
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_NMEDIT"; then
7455   ac_ct_NMEDIT=$NMEDIT
7456   # Extract the first word of "nmedit", so it can be a program name with args.
7457 set dummy nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   if test -n "$ac_ct_NMEDIT"; then
7464   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7484 if test -n "$ac_ct_NMEDIT"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7486 $as_echo "$ac_ct_NMEDIT" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492   if test "x$ac_ct_NMEDIT" = x; then
7493     NMEDIT=":"
7494   else
7495     case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501     NMEDIT=$ac_ct_NMEDIT
7502   fi
7503 else
7504   NMEDIT="$ac_cv_prog_NMEDIT"
7505 fi
7506
7507     if test -n "$ac_tool_prefix"; then
7508   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_LIPO+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   if test -n "$LIPO"; then
7516   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523     for ac_exec_ext in '' $ac_executable_extensions; do
7524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530   done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 LIPO=$ac_cv_prog_LIPO
7536 if test -n "$LIPO"; then
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7538 $as_echo "$LIPO" >&6; }
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_LIPO"; then
7547   ac_ct_LIPO=$LIPO
7548   # Extract the first word of "lipo", so it can be a program name with args.
7549 set dummy lipo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   if test -n "$ac_ct_LIPO"; then
7556   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565     ac_cv_prog_ac_ct_LIPO="lipo"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7576 if test -n "$ac_ct_LIPO"; then
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7578 $as_echo "$ac_ct_LIPO" >&6; }
7579 else
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584   if test "x$ac_ct_LIPO" = x; then
7585     LIPO=":"
7586   else
7587     case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593     LIPO=$ac_ct_LIPO
7594   fi
7595 else
7596   LIPO="$ac_cv_prog_LIPO"
7597 fi
7598
7599     if test -n "$ac_tool_prefix"; then
7600   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_OTOOL+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test -n "$OTOOL"; then
7608   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 OTOOL=$ac_cv_prog_OTOOL
7628 if test -n "$OTOOL"; then
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7630 $as_echo "$OTOOL" >&6; }
7631 else
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 fi
7638 if test -z "$ac_cv_prog_OTOOL"; then
7639   ac_ct_OTOOL=$OTOOL
7640   # Extract the first word of "otool", so it can be a program name with args.
7641 set dummy otool; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647   if test -n "$ac_ct_OTOOL"; then
7648   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655     for ac_exec_ext in '' $ac_executable_extensions; do
7656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657     ac_cv_prog_ac_ct_OTOOL="otool"
7658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662   done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7668 if test -n "$ac_ct_OTOOL"; then
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7670 $as_echo "$ac_ct_OTOOL" >&6; }
7671 else
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676   if test "x$ac_ct_OTOOL" = x; then
7677     OTOOL=":"
7678   else
7679     case $cross_compiling:$ac_tool_warned in
7680 yes:)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685     OTOOL=$ac_ct_OTOOL
7686   fi
7687 else
7688   OTOOL="$ac_cv_prog_OTOOL"
7689 fi
7690
7691     if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_OTOOL64+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$OTOOL64"; then
7700   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 OTOOL64=$ac_cv_prog_OTOOL64
7720 if test -n "$OTOOL64"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7722 $as_echo "$OTOOL64" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_OTOOL64"; then
7731   ac_ct_OTOOL64=$OTOOL64
7732   # Extract the first word of "otool64", so it can be a program name with args.
7733 set dummy otool64; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   if test -n "$ac_ct_OTOOL64"; then
7740   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_prog_ac_ct_OTOOL64="otool64"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7760 if test -n "$ac_ct_OTOOL64"; then
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7762 $as_echo "$ac_ct_OTOOL64" >&6; }
7763 else
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_OTOOL64" = x; then
7769     OTOOL64=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777     OTOOL64=$ac_ct_OTOOL64
7778   fi
7779 else
7780   OTOOL64="$ac_cv_prog_OTOOL64"
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7810 $as_echo_n "checking for -single_module linker flag... " >&6; }
7811 if ${lt_cv_apple_cc_single_mod+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   lt_cv_apple_cc_single_mod=no
7815       if test -z "${LT_MULTI_MODULE}"; then
7816         # By default we will add the -single_module flag. You can override
7817         # by either setting the environment variable LT_MULTI_MODULE
7818         # non-empty at configure time, or by adding -multi_module to the
7819         # link flags.
7820         rm -rf libconftest.dylib*
7821         echo "int foo(void){return 1;}" > conftest.c
7822         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7823 -dynamiclib -Wl,-single_module conftest.c" >&5
7824         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7825           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7826         _lt_result=$?
7827         # If there is a non-empty error log, and "single_module"
7828         # appears in it, assume the flag caused a linker warning
7829         if test -s conftest.err && $GREP single_module conftest.err; then
7830           cat conftest.err >&5
7831         # Otherwise, if the output was created with a 0 exit code from
7832         # the compiler, it worked.
7833         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7834           lt_cv_apple_cc_single_mod=yes
7835         else
7836           cat conftest.err >&5
7837         fi
7838         rm -rf libconftest.dylib*
7839         rm -f conftest.*
7840       fi
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7844
7845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7846 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7847 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7848   $as_echo_n "(cached) " >&6
7849 else
7850   lt_cv_ld_exported_symbols_list=no
7851       save_LDFLAGS=$LDFLAGS
7852       echo "_main" > conftest.sym
7853       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7854       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h.  */
7856
7857 int
7858 main ()
7859 {
7860
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866   lt_cv_ld_exported_symbols_list=yes
7867 else
7868   lt_cv_ld_exported_symbols_list=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871     conftest$ac_exeext conftest.$ac_ext
7872         LDFLAGS="$save_LDFLAGS"
7873
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7876 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7877
7878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7879 $as_echo_n "checking for -force_load linker flag... " >&6; }
7880 if ${lt_cv_ld_force_load+:} false; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   lt_cv_ld_force_load=no
7884       cat > conftest.c << _LT_EOF
7885 int forced_loaded() { return 2;}
7886 _LT_EOF
7887       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7888       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7889       echo "$AR cru libconftest.a conftest.o" >&5
7890       $AR cru libconftest.a conftest.o 2>&5
7891       echo "$RANLIB libconftest.a" >&5
7892       $RANLIB libconftest.a 2>&5
7893       cat > conftest.c << _LT_EOF
7894 int main() { return 0;}
7895 _LT_EOF
7896       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7897       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7898       _lt_result=$?
7899       if test -s conftest.err && $GREP force_load conftest.err; then
7900         cat conftest.err >&5
7901       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7902         lt_cv_ld_force_load=yes
7903       else
7904         cat conftest.err >&5
7905       fi
7906         rm -f conftest.err libconftest.a conftest conftest.c
7907         rm -rf conftest.dSYM
7908
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7911 $as_echo "$lt_cv_ld_force_load" >&6; }
7912     case $host_os in
7913     rhapsody* | darwin1.[012])
7914       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7915     darwin1.*)
7916       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917     darwin*) # darwin 5.x on
7918       # if running on 10.5 or later, the deployment target defaults
7919       # to the OS version, if on x86, and 10.4, the deployment
7920       # target defaults to 10.4. Don't you love it?
7921       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7922         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7923           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7924         10.[012]*)
7925           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7926         10.*)
7927           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7928       esac
7929     ;;
7930   esac
7931     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7932       _lt_dar_single_mod='$single_module'
7933     fi
7934     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7935       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7936     else
7937       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7938     fi
7939     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7940       _lt_dsymutil='~$DSYMUTIL $lib || :'
7941     else
7942       _lt_dsymutil=
7943     fi
7944     ;;
7945   esac
7946
7947 for ac_header in dlfcn.h
7948 do :
7949   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7950 "
7951 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7952   cat >>confdefs.h <<_ACEOF
7953 #define HAVE_DLFCN_H 1
7954 _ACEOF
7955
7956 fi
7957
7958 done
7959
7960
7961
7962
7963
7964 # Set options
7965
7966
7967
7968         enable_dlopen=no
7969
7970
7971   enable_win32_dll=no
7972
7973
7974             # Check whether --enable-shared was given.
7975 if test "${enable_shared+set}" = set; then :
7976   enableval=$enable_shared; p=${PACKAGE-default}
7977     case $enableval in
7978     yes) enable_shared=yes ;;
7979     no) enable_shared=no ;;
7980     *)
7981       enable_shared=no
7982       # Look at the argument we got.  We use all the common list separators.
7983       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984       for pkg in $enableval; do
7985         IFS="$lt_save_ifs"
7986         if test "X$pkg" = "X$p"; then
7987           enable_shared=yes
7988         fi
7989       done
7990       IFS="$lt_save_ifs"
7991       ;;
7992     esac
7993 else
7994   enable_shared=yes
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005   # Check whether --enable-static was given.
8006 if test "${enable_static+set}" = set; then :
8007   enableval=$enable_static; p=${PACKAGE-default}
8008     case $enableval in
8009     yes) enable_static=yes ;;
8010     no) enable_static=no ;;
8011     *)
8012      enable_static=no
8013       # Look at the argument we got.  We use all the common list separators.
8014       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015       for pkg in $enableval; do
8016         IFS="$lt_save_ifs"
8017         if test "X$pkg" = "X$p"; then
8018           enable_static=yes
8019         fi
8020       done
8021       IFS="$lt_save_ifs"
8022       ;;
8023     esac
8024 else
8025   enable_static=yes
8026 fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 # Check whether --with-pic was given.
8038 if test "${with_pic+set}" = set; then :
8039   withval=$with_pic; lt_p=${PACKAGE-default}
8040     case $withval in
8041     yes|no) pic_mode=$withval ;;
8042     *)
8043       pic_mode=default
8044       # Look at the argument we got.  We use all the common list separators.
8045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046       for lt_pkg in $withval; do
8047         IFS="$lt_save_ifs"
8048         if test "X$lt_pkg" = "X$lt_p"; then
8049           pic_mode=yes
8050         fi
8051       done
8052       IFS="$lt_save_ifs"
8053       ;;
8054     esac
8055 else
8056   pic_mode=default
8057 fi
8058
8059
8060 test -z "$pic_mode" && pic_mode=default
8061
8062
8063
8064
8065
8066
8067
8068   # Check whether --enable-fast-install was given.
8069 if test "${enable_fast_install+set}" = set; then :
8070   enableval=$enable_fast_install; p=${PACKAGE-default}
8071     case $enableval in
8072     yes) enable_fast_install=yes ;;
8073     no) enable_fast_install=no ;;
8074     *)
8075       enable_fast_install=no
8076       # Look at the argument we got.  We use all the common list separators.
8077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078       for pkg in $enableval; do
8079         IFS="$lt_save_ifs"
8080         if test "X$pkg" = "X$p"; then
8081           enable_fast_install=yes
8082         fi
8083       done
8084       IFS="$lt_save_ifs"
8085       ;;
8086     esac
8087 else
8088   enable_fast_install=yes
8089 fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 # This can be used to rebuild libtool when needed
8102 LIBTOOL_DEPS="$ltmain"
8103
8104 # Always use our own libtool.
8105 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136 test -z "$LN_S" && LN_S="ln -s"
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 if test -n "${ZSH_VERSION+set}" ; then
8152    setopt NO_GLOB_SUBST
8153 fi
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8156 $as_echo_n "checking for objdir... " >&6; }
8157 if ${lt_cv_objdir+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   rm -f .libs 2>/dev/null
8161 mkdir .libs 2>/dev/null
8162 if test -d .libs; then
8163   lt_cv_objdir=.libs
8164 else
8165   # MS-DOS does not allow filenames that begin with a dot.
8166   lt_cv_objdir=_libs
8167 fi
8168 rmdir .libs 2>/dev/null
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8171 $as_echo "$lt_cv_objdir" >&6; }
8172 objdir=$lt_cv_objdir
8173
8174
8175
8176
8177
8178 cat >>confdefs.h <<_ACEOF
8179 #define LT_OBJDIR "$lt_cv_objdir/"
8180 _ACEOF
8181
8182
8183
8184
8185 case $host_os in
8186 aix3*)
8187   # AIX sometimes has problems with the GCC collect2 program.  For some
8188   # reason, if we set the COLLECT_NAMES environment variable, the problems
8189   # vanish in a puff of smoke.
8190   if test "X${COLLECT_NAMES+set}" != Xset; then
8191     COLLECT_NAMES=
8192     export COLLECT_NAMES
8193   fi
8194   ;;
8195 esac
8196
8197 # Global variables:
8198 ofile=libtool
8199 can_build_shared=yes
8200
8201 # All known linkers require a `.a' archive for static linking (except MSVC,
8202 # which needs '.lib').
8203 libext=a
8204
8205 with_gnu_ld="$lt_cv_prog_gnu_ld"
8206
8207 old_CC="$CC"
8208 old_CFLAGS="$CFLAGS"
8209
8210 # Set sane defaults for various variables
8211 test -z "$CC" && CC=cc
8212 test -z "$LTCC" && LTCC=$CC
8213 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8214 test -z "$LD" && LD=ld
8215 test -z "$ac_objext" && ac_objext=o
8216
8217 for cc_temp in $compiler""; do
8218   case $cc_temp in
8219     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8220     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8221     \-*) ;;
8222     *) break;;
8223   esac
8224 done
8225 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8226
8227
8228 # Only perform the check for file, if the check method requires it
8229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8230 case $deplibs_check_method in
8231 file_magic*)
8232   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8234 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8235 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   case $MAGIC_CMD in
8239 [\\/*] |  ?:[\\/]*)
8240   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8241   ;;
8242 *)
8243   lt_save_MAGIC_CMD="$MAGIC_CMD"
8244   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8245   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8246   for ac_dir in $ac_dummy; do
8247     IFS="$lt_save_ifs"
8248     test -z "$ac_dir" && ac_dir=.
8249     if test -f $ac_dir/${ac_tool_prefix}file; then
8250       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8251       if test -n "$file_magic_test_file"; then
8252         case $deplibs_check_method in
8253         "file_magic "*)
8254           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8255           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8257             $EGREP "$file_magic_regex" > /dev/null; then
8258             :
8259           else
8260             cat <<_LT_EOF 1>&2
8261
8262 *** Warning: the command libtool uses to detect shared libraries,
8263 *** $file_magic_cmd, produces output that libtool cannot recognize.
8264 *** The result is that libtool may fail to recognize shared libraries
8265 *** as such.  This will affect the creation of libtool libraries that
8266 *** depend on shared libraries, but programs linked with such libtool
8267 *** libraries will work regardless of this problem.  Nevertheless, you
8268 *** may want to report the problem to your system manager and/or to
8269 *** bug-libtool@gnu.org
8270
8271 _LT_EOF
8272           fi ;;
8273         esac
8274       fi
8275       break
8276     fi
8277   done
8278   IFS="$lt_save_ifs"
8279   MAGIC_CMD="$lt_save_MAGIC_CMD"
8280   ;;
8281 esac
8282 fi
8283
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if test -n "$MAGIC_CMD"; then
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8287 $as_echo "$MAGIC_CMD" >&6; }
8288 else
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294
8295
8296
8297 if test -z "$lt_cv_path_MAGIC_CMD"; then
8298   if test -n "$ac_tool_prefix"; then
8299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8300 $as_echo_n "checking for file... " >&6; }
8301 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   case $MAGIC_CMD in
8305 [\\/*] |  ?:[\\/]*)
8306   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8307   ;;
8308 *)
8309   lt_save_MAGIC_CMD="$MAGIC_CMD"
8310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8311   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8312   for ac_dir in $ac_dummy; do
8313     IFS="$lt_save_ifs"
8314     test -z "$ac_dir" && ac_dir=.
8315     if test -f $ac_dir/file; then
8316       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8317       if test -n "$file_magic_test_file"; then
8318         case $deplibs_check_method in
8319         "file_magic "*)
8320           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8321           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8322           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8323             $EGREP "$file_magic_regex" > /dev/null; then
8324             :
8325           else
8326             cat <<_LT_EOF 1>&2
8327
8328 *** Warning: the command libtool uses to detect shared libraries,
8329 *** $file_magic_cmd, produces output that libtool cannot recognize.
8330 *** The result is that libtool may fail to recognize shared libraries
8331 *** as such.  This will affect the creation of libtool libraries that
8332 *** depend on shared libraries, but programs linked with such libtool
8333 *** libraries will work regardless of this problem.  Nevertheless, you
8334 *** may want to report the problem to your system manager and/or to
8335 *** bug-libtool@gnu.org
8336
8337 _LT_EOF
8338           fi ;;
8339         esac
8340       fi
8341       break
8342     fi
8343   done
8344   IFS="$lt_save_ifs"
8345   MAGIC_CMD="$lt_save_MAGIC_CMD"
8346   ;;
8347 esac
8348 fi
8349
8350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8351 if test -n "$MAGIC_CMD"; then
8352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8353 $as_echo "$MAGIC_CMD" >&6; }
8354 else
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358
8359
8360   else
8361     MAGIC_CMD=:
8362   fi
8363 fi
8364
8365   fi
8366   ;;
8367 esac
8368
8369 # Use C for the default configuration in the libtool script
8370
8371 lt_save_CC="$CC"
8372 ac_ext=c
8373 ac_cpp='$CPP $CPPFLAGS'
8374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8377
8378
8379 # Source file extension for C test sources.
8380 ac_ext=c
8381
8382 # Object file extension for compiled C test sources.
8383 objext=o
8384 objext=$objext
8385
8386 # Code to be used in simple compile tests
8387 lt_simple_compile_test_code="int some_variable = 0;"
8388
8389 # Code to be used in simple link tests
8390 lt_simple_link_test_code='int main(){return(0);}'
8391
8392
8393
8394
8395
8396
8397
8398 # If no C compiler was specified, use CC.
8399 LTCC=${LTCC-"$CC"}
8400
8401 # If no C compiler flags were specified, use CFLAGS.
8402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8403
8404 # Allow CC to be a program name with arguments.
8405 compiler=$CC
8406
8407 # Save the default compiler, since it gets overwritten when the other
8408 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8409 compiler_DEFAULT=$CC
8410
8411 # save warnings/boilerplate of simple test code
8412 ac_outfile=conftest.$ac_objext
8413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8415 _lt_compiler_boilerplate=`cat conftest.err`
8416 $RM conftest*
8417
8418 ac_outfile=conftest.$ac_objext
8419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8421 _lt_linker_boilerplate=`cat conftest.err`
8422 $RM -r conftest*
8423
8424
8425 ## CAVEAT EMPTOR:
8426 ## There is no encapsulation within the following macros, do not change
8427 ## the running order or otherwise move them around unless you know exactly
8428 ## what you are doing...
8429 if test -n "$compiler"; then
8430
8431 lt_prog_compiler_no_builtin_flag=
8432
8433 if test "$GCC" = yes; then
8434   case $cc_basename in
8435   nvcc*)
8436     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8437   *)
8438     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8439   esac
8440
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8442 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8443 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   lt_cv_prog_compiler_rtti_exceptions=no
8447    ac_outfile=conftest.$ac_objext
8448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449    lt_compiler_flag="-fno-rtti -fno-exceptions"
8450    # Insert the option either (1) after the last *FLAGS variable, or
8451    # (2) before a word containing "conftest.", or (3) at the end.
8452    # Note that $ac_compile itself does not contain backslashes and begins
8453    # with a dollar sign (not a hyphen), so the echo should work correctly.
8454    # The option is referenced via a variable to avoid confusing sed.
8455    lt_compile=`echo "$ac_compile" | $SED \
8456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458    -e 's:$: $lt_compiler_flag:'`
8459    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460    (eval "$lt_compile" 2>conftest.err)
8461    ac_status=$?
8462    cat conftest.err >&5
8463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464    if (exit $ac_status) && test -s "$ac_outfile"; then
8465      # The compiler can only warn and ignore the option if not recognized
8466      # So say no if there are warnings other than the usual output.
8467      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470        lt_cv_prog_compiler_rtti_exceptions=yes
8471      fi
8472    fi
8473    $RM conftest*
8474
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8477 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8478
8479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8480     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8481 else
8482     :
8483 fi
8484
8485 fi
8486
8487
8488
8489
8490
8491
8492   lt_prog_compiler_wl=
8493 lt_prog_compiler_pic=
8494 lt_prog_compiler_static=
8495
8496
8497   if test "$GCC" = yes; then
8498     lt_prog_compiler_wl='-Wl,'
8499     lt_prog_compiler_static='-static'
8500
8501     case $host_os in
8502       aix*)
8503       # All AIX code is PIC.
8504       if test "$host_cpu" = ia64; then
8505         # AIX 5 now supports IA64 processor
8506         lt_prog_compiler_static='-Bstatic'
8507       fi
8508       ;;
8509
8510     amigaos*)
8511       case $host_cpu in
8512       powerpc)
8513             # see comment about AmigaOS4 .so support
8514             lt_prog_compiler_pic='-fPIC'
8515         ;;
8516       m68k)
8517             # FIXME: we need at least 68020 code to build shared libraries, but
8518             # adding the `-m68020' flag to GCC prevents building anything better,
8519             # like `-m68040'.
8520             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8521         ;;
8522       esac
8523       ;;
8524
8525     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8526       # PIC is the default for these OSes.
8527       ;;
8528
8529     mingw* | cygwin* | pw32* | os2* | cegcc*)
8530       # This hack is so that the source file can tell whether it is being
8531       # built for inclusion in a dll (and should export symbols for example).
8532       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8533       # (--disable-auto-import) libraries
8534       lt_prog_compiler_pic='-DDLL_EXPORT'
8535       ;;
8536
8537     darwin* | rhapsody*)
8538       # PIC is the default on this platform
8539       # Common symbols not allowed in MH_DYLIB files
8540       lt_prog_compiler_pic='-fno-common'
8541       ;;
8542
8543     haiku*)
8544       # PIC is the default for Haiku.
8545       # The "-static" flag exists, but is broken.
8546       lt_prog_compiler_static=
8547       ;;
8548
8549     hpux*)
8550       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8551       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8552       # sets the default TLS model and affects inlining.
8553       case $host_cpu in
8554       hppa*64*)
8555         # +Z the default
8556         ;;
8557       *)
8558         lt_prog_compiler_pic='-fPIC'
8559         ;;
8560       esac
8561       ;;
8562
8563     interix[3-9]*)
8564       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8565       # Instead, we relocate shared libraries at runtime.
8566       ;;
8567
8568     msdosdjgpp*)
8569       # Just because we use GCC doesn't mean we suddenly get shared libraries
8570       # on systems that don't support them.
8571       lt_prog_compiler_can_build_shared=no
8572       enable_shared=no
8573       ;;
8574
8575     *nto* | *qnx*)
8576       # QNX uses GNU C++, but need to define -shared option too, otherwise
8577       # it will coredump.
8578       lt_prog_compiler_pic='-fPIC -shared'
8579       ;;
8580
8581     sysv4*MP*)
8582       if test -d /usr/nec; then
8583         lt_prog_compiler_pic=-Kconform_pic
8584       fi
8585       ;;
8586
8587     *)
8588       lt_prog_compiler_pic='-fPIC'
8589       ;;
8590     esac
8591
8592     case $cc_basename in
8593     nvcc*) # Cuda Compiler Driver 2.2
8594       lt_prog_compiler_wl='-Xlinker '
8595       if test -n "$lt_prog_compiler_pic"; then
8596         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8597       fi
8598       ;;
8599     esac
8600   else
8601     # PORTME Check for flag to pass linker flags through the system compiler.
8602     case $host_os in
8603     aix*)
8604       lt_prog_compiler_wl='-Wl,'
8605       if test "$host_cpu" = ia64; then
8606         # AIX 5 now supports IA64 processor
8607         lt_prog_compiler_static='-Bstatic'
8608       else
8609         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8610       fi
8611       ;;
8612
8613     mingw* | cygwin* | pw32* | os2* | cegcc*)
8614       # This hack is so that the source file can tell whether it is being
8615       # built for inclusion in a dll (and should export symbols for example).
8616       lt_prog_compiler_pic='-DDLL_EXPORT'
8617       ;;
8618
8619     hpux9* | hpux10* | hpux11*)
8620       lt_prog_compiler_wl='-Wl,'
8621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622       # not for PA HP-UX.
8623       case $host_cpu in
8624       hppa*64*|ia64*)
8625         # +Z the default
8626         ;;
8627       *)
8628         lt_prog_compiler_pic='+Z'
8629         ;;
8630       esac
8631       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8632       lt_prog_compiler_static='${wl}-a ${wl}archive'
8633       ;;
8634
8635     irix5* | irix6* | nonstopux*)
8636       lt_prog_compiler_wl='-Wl,'
8637       # PIC (with -KPIC) is the default.
8638       lt_prog_compiler_static='-non_shared'
8639       ;;
8640
8641     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8642       case $cc_basename in
8643       # old Intel for x86_64 which still supported -KPIC.
8644       ecc*)
8645         lt_prog_compiler_wl='-Wl,'
8646         lt_prog_compiler_pic='-KPIC'
8647         lt_prog_compiler_static='-static'
8648         ;;
8649       # icc used to be incompatible with GCC.
8650       # ICC 10 doesn't accept -KPIC any more.
8651       icc* | ifort*)
8652         lt_prog_compiler_wl='-Wl,'
8653         lt_prog_compiler_pic='-fPIC'
8654         lt_prog_compiler_static='-static'
8655         ;;
8656       # Lahey Fortran 8.1.
8657       lf95*)
8658         lt_prog_compiler_wl='-Wl,'
8659         lt_prog_compiler_pic='--shared'
8660         lt_prog_compiler_static='--static'
8661         ;;
8662       nagfor*)
8663         # NAG Fortran compiler
8664         lt_prog_compiler_wl='-Wl,-Wl,,'
8665         lt_prog_compiler_pic='-PIC'
8666         lt_prog_compiler_static='-Bstatic'
8667         ;;
8668       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8669         # Portland Group compilers (*not* the Pentium gcc compiler,
8670         # which looks to be a dead project)
8671         lt_prog_compiler_wl='-Wl,'
8672         lt_prog_compiler_pic='-fpic'
8673         lt_prog_compiler_static='-Bstatic'
8674         ;;
8675       ccc*)
8676         lt_prog_compiler_wl='-Wl,'
8677         # All Alpha code is PIC.
8678         lt_prog_compiler_static='-non_shared'
8679         ;;
8680       xl* | bgxl* | bgf* | mpixl*)
8681         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8682         lt_prog_compiler_wl='-Wl,'
8683         lt_prog_compiler_pic='-qpic'
8684         lt_prog_compiler_static='-qstaticlink'
8685         ;;
8686       *)
8687         case `$CC -V 2>&1 | sed 5q` in
8688         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8689           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8690           lt_prog_compiler_pic='-KPIC'
8691           lt_prog_compiler_static='-Bstatic'
8692           lt_prog_compiler_wl=''
8693           ;;
8694         *Sun\ F* | *Sun*Fortran*)
8695           lt_prog_compiler_pic='-KPIC'
8696           lt_prog_compiler_static='-Bstatic'
8697           lt_prog_compiler_wl='-Qoption ld '
8698           ;;
8699         *Sun\ C*)
8700           # Sun C 5.9
8701           lt_prog_compiler_pic='-KPIC'
8702           lt_prog_compiler_static='-Bstatic'
8703           lt_prog_compiler_wl='-Wl,'
8704           ;;
8705         *Intel*\ [CF]*Compiler*)
8706           lt_prog_compiler_wl='-Wl,'
8707           lt_prog_compiler_pic='-fPIC'
8708           lt_prog_compiler_static='-static'
8709           ;;
8710         *Portland\ Group*)
8711           lt_prog_compiler_wl='-Wl,'
8712           lt_prog_compiler_pic='-fpic'
8713           lt_prog_compiler_static='-Bstatic'
8714           ;;
8715         esac
8716         ;;
8717       esac
8718       ;;
8719
8720     newsos6)
8721       lt_prog_compiler_pic='-KPIC'
8722       lt_prog_compiler_static='-Bstatic'
8723       ;;
8724
8725     *nto* | *qnx*)
8726       # QNX uses GNU C++, but need to define -shared option too, otherwise
8727       # it will coredump.
8728       lt_prog_compiler_pic='-fPIC -shared'
8729       ;;
8730
8731     osf3* | osf4* | osf5*)
8732       lt_prog_compiler_wl='-Wl,'
8733       # All OSF/1 code is PIC.
8734       lt_prog_compiler_static='-non_shared'
8735       ;;
8736
8737     rdos*)
8738       lt_prog_compiler_static='-non_shared'
8739       ;;
8740
8741     solaris*)
8742       lt_prog_compiler_pic='-KPIC'
8743       lt_prog_compiler_static='-Bstatic'
8744       case $cc_basename in
8745       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8746         lt_prog_compiler_wl='-Qoption ld ';;
8747       *)
8748         lt_prog_compiler_wl='-Wl,';;
8749       esac
8750       ;;
8751
8752     sunos4*)
8753       lt_prog_compiler_wl='-Qoption ld '
8754       lt_prog_compiler_pic='-PIC'
8755       lt_prog_compiler_static='-Bstatic'
8756       ;;
8757
8758     sysv4 | sysv4.2uw2* | sysv4.3*)
8759       lt_prog_compiler_wl='-Wl,'
8760       lt_prog_compiler_pic='-KPIC'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     sysv4*MP*)
8765       if test -d /usr/nec ;then
8766         lt_prog_compiler_pic='-Kconform_pic'
8767         lt_prog_compiler_static='-Bstatic'
8768       fi
8769       ;;
8770
8771     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8772       lt_prog_compiler_wl='-Wl,'
8773       lt_prog_compiler_pic='-KPIC'
8774       lt_prog_compiler_static='-Bstatic'
8775       ;;
8776
8777     unicos*)
8778       lt_prog_compiler_wl='-Wl,'
8779       lt_prog_compiler_can_build_shared=no
8780       ;;
8781
8782     uts4*)
8783       lt_prog_compiler_pic='-pic'
8784       lt_prog_compiler_static='-Bstatic'
8785       ;;
8786
8787     *)
8788       lt_prog_compiler_can_build_shared=no
8789       ;;
8790     esac
8791   fi
8792
8793 case $host_os in
8794   # For platforms which do not support PIC, -DPIC is meaningless:
8795   *djgpp*)
8796     lt_prog_compiler_pic=
8797     ;;
8798   *)
8799     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8800     ;;
8801 esac
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8804 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8805 if ${lt_cv_prog_compiler_pic+:} false; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8811 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8812 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8813
8814 #
8815 # Check to make sure the PIC flag actually works.
8816 #
8817 if test -n "$lt_prog_compiler_pic"; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8819 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8820 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8821   $as_echo_n "(cached) " >&6
8822 else
8823   lt_cv_prog_compiler_pic_works=no
8824    ac_outfile=conftest.$ac_objext
8825    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8826    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8827    # Insert the option either (1) after the last *FLAGS variable, or
8828    # (2) before a word containing "conftest.", or (3) at the end.
8829    # Note that $ac_compile itself does not contain backslashes and begins
8830    # with a dollar sign (not a hyphen), so the echo should work correctly.
8831    # The option is referenced via a variable to avoid confusing sed.
8832    lt_compile=`echo "$ac_compile" | $SED \
8833    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8834    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8835    -e 's:$: $lt_compiler_flag:'`
8836    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8837    (eval "$lt_compile" 2>conftest.err)
8838    ac_status=$?
8839    cat conftest.err >&5
8840    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841    if (exit $ac_status) && test -s "$ac_outfile"; then
8842      # The compiler can only warn and ignore the option if not recognized
8843      # So say no if there are warnings other than the usual output.
8844      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8845      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8847        lt_cv_prog_compiler_pic_works=yes
8848      fi
8849    fi
8850    $RM conftest*
8851
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8854 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8855
8856 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8857     case $lt_prog_compiler_pic in
8858      "" | " "*) ;;
8859      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8860      esac
8861 else
8862     lt_prog_compiler_pic=
8863      lt_prog_compiler_can_build_shared=no
8864 fi
8865
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878 #
8879 # Check to make sure the static flag actually works.
8880 #
8881 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8883 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8884 if ${lt_cv_prog_compiler_static_works+:} false; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   lt_cv_prog_compiler_static_works=no
8888    save_LDFLAGS="$LDFLAGS"
8889    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8890    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8891    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8892      # The linker can only warn and ignore the option if not recognized
8893      # So say no if there are warnings
8894      if test -s conftest.err; then
8895        # Append any errors to the config.log.
8896        cat conftest.err 1>&5
8897        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8898        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8899        if diff conftest.exp conftest.er2 >/dev/null; then
8900          lt_cv_prog_compiler_static_works=yes
8901        fi
8902      else
8903        lt_cv_prog_compiler_static_works=yes
8904      fi
8905    fi
8906    $RM -r conftest*
8907    LDFLAGS="$save_LDFLAGS"
8908
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8911 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8912
8913 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8914     :
8915 else
8916     lt_prog_compiler_static=
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8926 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8927 if ${lt_cv_prog_compiler_c_o+:} false; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   lt_cv_prog_compiler_c_o=no
8931    $RM -r conftest 2>/dev/null
8932    mkdir conftest
8933    cd conftest
8934    mkdir out
8935    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936
8937    lt_compiler_flag="-o out/conftest2.$ac_objext"
8938    # Insert the option either (1) after the last *FLAGS variable, or
8939    # (2) before a word containing "conftest.", or (3) at the end.
8940    # Note that $ac_compile itself does not contain backslashes and begins
8941    # with a dollar sign (not a hyphen), so the echo should work correctly.
8942    lt_compile=`echo "$ac_compile" | $SED \
8943    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945    -e 's:$: $lt_compiler_flag:'`
8946    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947    (eval "$lt_compile" 2>out/conftest.err)
8948    ac_status=$?
8949    cat out/conftest.err >&5
8950    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8952    then
8953      # The compiler can only warn and ignore the option if not recognized
8954      # So say no if there are warnings
8955      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8956      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8957      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8958        lt_cv_prog_compiler_c_o=yes
8959      fi
8960    fi
8961    chmod u+w . 2>&5
8962    $RM conftest*
8963    # SGI C++ compiler will create directory out/ii_files/ for
8964    # template instantiation
8965    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8966    $RM out/* && rmdir out
8967    cd ..
8968    $RM -r conftest
8969    $RM conftest*
8970
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8973 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8974
8975
8976
8977
8978
8979
8980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8981 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8982 if ${lt_cv_prog_compiler_c_o+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   lt_cv_prog_compiler_c_o=no
8986    $RM -r conftest 2>/dev/null
8987    mkdir conftest
8988    cd conftest
8989    mkdir out
8990    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991
8992    lt_compiler_flag="-o out/conftest2.$ac_objext"
8993    # Insert the option either (1) after the last *FLAGS variable, or
8994    # (2) before a word containing "conftest.", or (3) at the end.
8995    # Note that $ac_compile itself does not contain backslashes and begins
8996    # with a dollar sign (not a hyphen), so the echo should work correctly.
8997    lt_compile=`echo "$ac_compile" | $SED \
8998    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000    -e 's:$: $lt_compiler_flag:'`
9001    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9002    (eval "$lt_compile" 2>out/conftest.err)
9003    ac_status=$?
9004    cat out/conftest.err >&5
9005    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9007    then
9008      # The compiler can only warn and ignore the option if not recognized
9009      # So say no if there are warnings
9010      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9011      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9012      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9013        lt_cv_prog_compiler_c_o=yes
9014      fi
9015    fi
9016    chmod u+w . 2>&5
9017    $RM conftest*
9018    # SGI C++ compiler will create directory out/ii_files/ for
9019    # template instantiation
9020    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9021    $RM out/* && rmdir out
9022    cd ..
9023    $RM -r conftest
9024    $RM conftest*
9025
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9028 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9029
9030
9031
9032
9033 hard_links="nottested"
9034 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9035   # do not overwrite the value of need_locks provided by the user
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9037 $as_echo_n "checking if we can lock with hard links... " >&6; }
9038   hard_links=yes
9039   $RM conftest*
9040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9041   touch conftest.a
9042   ln conftest.a conftest.b 2>&5 || hard_links=no
9043   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9045 $as_echo "$hard_links" >&6; }
9046   if test "$hard_links" = no; then
9047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9048 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9049     need_locks=warn
9050   fi
9051 else
9052   need_locks=no
9053 fi
9054
9055
9056
9057
9058
9059
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9061 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9062
9063   runpath_var=
9064   allow_undefined_flag=
9065   always_export_symbols=no
9066   archive_cmds=
9067   archive_expsym_cmds=
9068   compiler_needs_object=no
9069   enable_shared_with_static_runtimes=no
9070   export_dynamic_flag_spec=
9071   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9072   hardcode_automatic=no
9073   hardcode_direct=no
9074   hardcode_direct_absolute=no
9075   hardcode_libdir_flag_spec=
9076   hardcode_libdir_separator=
9077   hardcode_minus_L=no
9078   hardcode_shlibpath_var=unsupported
9079   inherit_rpath=no
9080   link_all_deplibs=unknown
9081   module_cmds=
9082   module_expsym_cmds=
9083   old_archive_from_new_cmds=
9084   old_archive_from_expsyms_cmds=
9085   thread_safe_flag_spec=
9086   whole_archive_flag_spec=
9087   # include_expsyms should be a list of space-separated symbols to be *always*
9088   # included in the symbol list
9089   include_expsyms=
9090   # exclude_expsyms can be an extended regexp of symbols to exclude
9091   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9092   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9093   # as well as any symbol that contains `d'.
9094   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9095   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9096   # platforms (ab)use it in PIC code, but their linkers get confused if
9097   # the symbol is explicitly referenced.  Since portable code cannot
9098   # rely on this symbol name, it's probably fine to never include it in
9099   # preloaded symbol tables.
9100   # Exclude shared library initialization/finalization symbols.
9101   extract_expsyms_cmds=
9102
9103   case $host_os in
9104   cygwin* | mingw* | pw32* | cegcc*)
9105     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9106     # When not using gcc, we currently assume that we are using
9107     # Microsoft Visual C++.
9108     if test "$GCC" != yes; then
9109       with_gnu_ld=no
9110     fi
9111     ;;
9112   interix*)
9113     # we just hope/assume this is gcc and not c89 (= MSVC++)
9114     with_gnu_ld=yes
9115     ;;
9116   openbsd*)
9117     with_gnu_ld=no
9118     ;;
9119   linux* | k*bsd*-gnu | gnu*)
9120     link_all_deplibs=no
9121     ;;
9122   esac
9123
9124   ld_shlibs=yes
9125
9126   # On some targets, GNU ld is compatible enough with the native linker
9127   # that we're better off using the native interface for both.
9128   lt_use_gnu_ld_interface=no
9129   if test "$with_gnu_ld" = yes; then
9130     case $host_os in
9131       aix*)
9132         # The AIX port of GNU ld has always aspired to compatibility
9133         # with the native linker.  However, as the warning in the GNU ld
9134         # block says, versions before 2.19.5* couldn't really create working
9135         # shared libraries, regardless of the interface used.
9136         case `$LD -v 2>&1` in
9137           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9138           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9139           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9140           *)
9141             lt_use_gnu_ld_interface=yes
9142             ;;
9143         esac
9144         ;;
9145       *)
9146         lt_use_gnu_ld_interface=yes
9147         ;;
9148     esac
9149   fi
9150
9151   if test "$lt_use_gnu_ld_interface" = yes; then
9152     # If archive_cmds runs LD, not CC, wlarc should be empty
9153     wlarc='${wl}'
9154
9155     # Set some defaults for GNU ld with shared library support. These
9156     # are reset later if shared libraries are not supported. Putting them
9157     # here allows them to be overridden if necessary.
9158     runpath_var=LD_RUN_PATH
9159     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160     export_dynamic_flag_spec='${wl}--export-dynamic'
9161     # ancient GNU ld didn't support --whole-archive et. al.
9162     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9163       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9164     else
9165       whole_archive_flag_spec=
9166     fi
9167     supports_anon_versioning=no
9168     case `$LD -v 2>&1` in
9169       *GNU\ gold*) supports_anon_versioning=yes ;;
9170       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9171       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9172       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9173       *\ 2.11.*) ;; # other 2.11 versions
9174       *) supports_anon_versioning=yes ;;
9175     esac
9176
9177     # See if GNU ld supports shared libraries.
9178     case $host_os in
9179     aix[3-9]*)
9180       # On AIX/PPC, the GNU linker is very broken
9181       if test "$host_cpu" != ia64; then
9182         ld_shlibs=no
9183         cat <<_LT_EOF 1>&2
9184
9185 *** Warning: the GNU linker, at least up to release 2.19, is reported
9186 *** to be unable to reliably create shared libraries on AIX.
9187 *** Therefore, libtool is disabling shared libraries support.  If you
9188 *** really care for shared libraries, you may want to install binutils
9189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9190 *** You will then need to restart the configuration process.
9191
9192 _LT_EOF
9193       fi
9194       ;;
9195
9196     amigaos*)
9197       case $host_cpu in
9198       powerpc)
9199             # see comment about AmigaOS4 .so support
9200             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201             archive_expsym_cmds=''
9202         ;;
9203       m68k)
9204             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)'
9205             hardcode_libdir_flag_spec='-L$libdir'
9206             hardcode_minus_L=yes
9207         ;;
9208       esac
9209       ;;
9210
9211     beos*)
9212       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9213         allow_undefined_flag=unsupported
9214         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9215         # support --undefined.  This deserves some investigation.  FIXME
9216         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217       else
9218         ld_shlibs=no
9219       fi
9220       ;;
9221
9222     cygwin* | mingw* | pw32* | cegcc*)
9223       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9224       # as there is no search path for DLLs.
9225       hardcode_libdir_flag_spec='-L$libdir'
9226       export_dynamic_flag_spec='${wl}--export-all-symbols'
9227       allow_undefined_flag=unsupported
9228       always_export_symbols=no
9229       enable_shared_with_static_runtimes=yes
9230       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'
9231       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9232
9233       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235         # If the export-symbols file already is a .def file (1st line
9236         # is EXPORTS), use it as is; otherwise, prepend...
9237         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238           cp $export_symbols $output_objdir/$soname.def;
9239         else
9240           echo EXPORTS > $output_objdir/$soname.def;
9241           cat $export_symbols >> $output_objdir/$soname.def;
9242         fi~
9243         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244       else
9245         ld_shlibs=no
9246       fi
9247       ;;
9248
9249     haiku*)
9250       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251       link_all_deplibs=yes
9252       ;;
9253
9254     interix[3-9]*)
9255       hardcode_direct=no
9256       hardcode_shlibpath_var=no
9257       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258       export_dynamic_flag_spec='${wl}-E'
9259       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260       # Instead, shared libraries are loaded at an image base (0x10000000 by
9261       # default) and relocated if they conflict, which is a slow very memory
9262       # consuming and fragmenting process.  To avoid this, we pick a random,
9263       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9265       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266       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'
9267       ;;
9268
9269     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9270       tmp_diet=no
9271       if test "$host_os" = linux-dietlibc; then
9272         case $cc_basename in
9273           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9274         esac
9275       fi
9276       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9277          && test "$tmp_diet" = no
9278       then
9279         tmp_addflag=' $pic_flag'
9280         tmp_sharedflag='-shared'
9281         case $cc_basename,$host_cpu in
9282         pgcc*)                          # Portland Group C compiler
9283           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'
9284           tmp_addflag=' $pic_flag'
9285           ;;
9286         pgf77* | pgf90* | pgf95* | pgfortran*)
9287                                         # Portland Group f77 and f90 compilers
9288           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'
9289           tmp_addflag=' $pic_flag -Mnomain' ;;
9290         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9291           tmp_addflag=' -i_dynamic' ;;
9292         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9293           tmp_addflag=' -i_dynamic -nofor_main' ;;
9294         ifc* | ifort*)                  # Intel Fortran compiler
9295           tmp_addflag=' -nofor_main' ;;
9296         lf95*)                          # Lahey Fortran 8.1
9297           whole_archive_flag_spec=
9298           tmp_sharedflag='--shared' ;;
9299         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300           tmp_sharedflag='-qmkshrobj'
9301           tmp_addflag= ;;
9302         nvcc*)  # Cuda Compiler Driver 2.2
9303           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'
9304           compiler_needs_object=yes
9305           ;;
9306         esac
9307         case `$CC -V 2>&1 | sed 5q` in
9308         *Sun\ C*)                       # Sun C 5.9
9309           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'
9310           compiler_needs_object=yes
9311           tmp_sharedflag='-G' ;;
9312         *Sun\ F*)                       # Sun Fortran 8.3
9313           tmp_sharedflag='-G' ;;
9314         esac
9315         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316
9317         if test "x$supports_anon_versioning" = xyes; then
9318           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320             echo "local: *; };" >> $output_objdir/$libname.ver~
9321             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9322         fi
9323
9324         case $cc_basename in
9325         xlf* | bgf* | bgxlf* | mpixlf*)
9326           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9328           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9330           if test "x$supports_anon_versioning" = xyes; then
9331             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333               echo "local: *; };" >> $output_objdir/$libname.ver~
9334               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9335           fi
9336           ;;
9337         esac
9338       else
9339         ld_shlibs=no
9340       fi
9341       ;;
9342
9343     netbsd* | netbsdelf*-gnu)
9344       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9346         wlarc=
9347       else
9348         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350       fi
9351       ;;
9352
9353     solaris*)
9354       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9355         ld_shlibs=no
9356         cat <<_LT_EOF 1>&2
9357
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems.  Therefore, libtool
9360 *** is disabling shared libraries support.  We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer.  Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9364
9365 _LT_EOF
9366       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9369       else
9370         ld_shlibs=no
9371       fi
9372       ;;
9373
9374     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9375       case `$LD -v 2>&1` in
9376         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9377         ld_shlibs=no
9378         cat <<_LT_EOF 1>&2
9379
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9382 *** is disabling shared libraries support.  We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9386
9387 _LT_EOF
9388         ;;
9389         *)
9390           # For security reasons, it is highly recommended that you always
9391           # use absolute paths for naming shared libraries, and exclude the
9392           # DT_RUNPATH tag from executables and libraries.  But doing so
9393           # requires that you compile everything twice, which is a pain.
9394           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398           else
9399             ld_shlibs=no
9400           fi
9401         ;;
9402       esac
9403       ;;
9404
9405     sunos4*)
9406       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407       wlarc=
9408       hardcode_direct=yes
9409       hardcode_shlibpath_var=no
9410       ;;
9411
9412     *)
9413       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9414         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9416       else
9417         ld_shlibs=no
9418       fi
9419       ;;
9420     esac
9421
9422     if test "$ld_shlibs" = no; then
9423       runpath_var=
9424       hardcode_libdir_flag_spec=
9425       export_dynamic_flag_spec=
9426       whole_archive_flag_spec=
9427     fi
9428   else
9429     # PORTME fill in a description of your system's linker (not GNU ld)
9430     case $host_os in
9431     aix3*)
9432       allow_undefined_flag=unsupported
9433       always_export_symbols=yes
9434       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'
9435       # Note: this linker hardcodes the directories in LIBPATH if there
9436       # are no directories specified by -L.
9437       hardcode_minus_L=yes
9438       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9439         # Neither direct hardcoding nor static linking is supported with a
9440         # broken collect2.
9441         hardcode_direct=unsupported
9442       fi
9443       ;;
9444
9445     aix[4-9]*)
9446       if test "$host_cpu" = ia64; then
9447         # On IA64, the linker does run time linking by default, so we don't
9448         # have to do anything special.
9449         aix_use_runtimelinking=no
9450         exp_sym_flag='-Bexport'
9451         no_entry_flag=""
9452       else
9453         # If we're using GNU nm, then we don't want the "-C" option.
9454         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9455         # Also, AIX nm treats weak defined symbols like other global
9456         # defined symbols, whereas GNU nm marks them as "W".
9457         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9458           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'
9459         else
9460           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'
9461         fi
9462         aix_use_runtimelinking=no
9463
9464         # Test if we are trying to use run time linking or normal
9465         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9466         # need to do runtime linking.
9467         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9468           for ld_flag in $LDFLAGS; do
9469           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9470             aix_use_runtimelinking=yes
9471             break
9472           fi
9473           done
9474           ;;
9475         esac
9476
9477         exp_sym_flag='-bexport'
9478         no_entry_flag='-bnoentry'
9479       fi
9480
9481       # When large executables or shared objects are built, AIX ld can
9482       # have problems creating the table of contents.  If linking a library
9483       # or program results in "error TOC overflow" add -mminimal-toc to
9484       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9485       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9486
9487       archive_cmds=''
9488       hardcode_direct=yes
9489       hardcode_direct_absolute=yes
9490       hardcode_libdir_separator=':'
9491       link_all_deplibs=yes
9492       file_list_spec='${wl}-f,'
9493
9494       if test "$GCC" = yes; then
9495         case $host_os in aix4.[012]|aix4.[012].*)
9496         # We only want to do this on AIX 4.2 and lower, the check
9497         # below for broken collect2 doesn't work under 4.3+
9498           collect2name=`${CC} -print-prog-name=collect2`
9499           if test -f "$collect2name" &&
9500            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9501           then
9502           # We have reworked collect2
9503           :
9504           else
9505           # We have old collect2
9506           hardcode_direct=unsupported
9507           # It fails to find uninstalled libraries when the uninstalled
9508           # path is not listed in the libpath.  Setting hardcode_minus_L
9509           # to unsupported forces relinking
9510           hardcode_minus_L=yes
9511           hardcode_libdir_flag_spec='-L$libdir'
9512           hardcode_libdir_separator=
9513           fi
9514           ;;
9515         esac
9516         shared_flag='-shared'
9517         if test "$aix_use_runtimelinking" = yes; then
9518           shared_flag="$shared_flag "'${wl}-G'
9519         fi
9520         link_all_deplibs=no
9521       else
9522         # not using gcc
9523         if test "$host_cpu" = ia64; then
9524         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525         # chokes on -Wl,-G. The following line is correct:
9526           shared_flag='-G'
9527         else
9528           if test "$aix_use_runtimelinking" = yes; then
9529             shared_flag='${wl}-G'
9530           else
9531             shared_flag='${wl}-bM:SRE'
9532           fi
9533         fi
9534       fi
9535
9536       export_dynamic_flag_spec='${wl}-bexpall'
9537       # It seems that -bexpall does not export symbols beginning with
9538       # underscore (_), so it is better to generate a list of symbols to export.
9539       always_export_symbols=yes
9540       if test "$aix_use_runtimelinking" = yes; then
9541         # Warning - without using the other runtime loading flags (-brtl),
9542         # -berok will link without error, but may produce a broken library.
9543         allow_undefined_flag='-berok'
9544         # Determine the default libpath from the value encoded in an
9545         # empty executable.
9546         if test "${lt_cv_aix_libpath+set}" = set; then
9547   aix_libpath=$lt_cv_aix_libpath
9548 else
9549   if ${lt_cv_aix_libpath_+:} false; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h.  */
9554
9555 int
9556 main ()
9557 {
9558
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 if ac_fn_c_try_link "$LINENO"; then :
9564
9565   lt_aix_libpath_sed='
9566       /Import File Strings/,/^$/ {
9567           /^0/ {
9568               s/^0  *\([^ ]*\) *$/\1/
9569               p
9570           }
9571       }'
9572   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573   # Check for a 64-bit object if we didn't find anything.
9574   if test -z "$lt_cv_aix_libpath_"; then
9575     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576   fi
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext \
9579     conftest$ac_exeext conftest.$ac_ext
9580   if test -z "$lt_cv_aix_libpath_"; then
9581     lt_cv_aix_libpath_="/usr/lib:/lib"
9582   fi
9583
9584 fi
9585
9586   aix_libpath=$lt_cv_aix_libpath_
9587 fi
9588
9589         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9590         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"
9591       else
9592         if test "$host_cpu" = ia64; then
9593           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9594           allow_undefined_flag="-z nodefs"
9595           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"
9596         else
9597          # Determine the default libpath from the value encoded in an
9598          # empty executable.
9599          if test "${lt_cv_aix_libpath+set}" = set; then
9600   aix_libpath=$lt_cv_aix_libpath
9601 else
9602   if ${lt_cv_aix_libpath_+:} false; then :
9603   $as_echo_n "(cached) " >&6
9604 else
9605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h.  */
9607
9608 int
9609 main ()
9610 {
9611
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"; then :
9617
9618   lt_aix_libpath_sed='
9619       /Import File Strings/,/^$/ {
9620           /^0/ {
9621               s/^0  *\([^ ]*\) *$/\1/
9622               p
9623           }
9624       }'
9625   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626   # Check for a 64-bit object if we didn't find anything.
9627   if test -z "$lt_cv_aix_libpath_"; then
9628     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629   fi
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632     conftest$ac_exeext conftest.$ac_ext
9633   if test -z "$lt_cv_aix_libpath_"; then
9634     lt_cv_aix_libpath_="/usr/lib:/lib"
9635   fi
9636
9637 fi
9638
9639   aix_libpath=$lt_cv_aix_libpath_
9640 fi
9641
9642          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643           # Warning - without using the other run time loading flags,
9644           # -berok will link without error, but may produce a broken library.
9645           no_undefined_flag=' ${wl}-bernotok'
9646           allow_undefined_flag=' ${wl}-berok'
9647           if test "$with_gnu_ld" = yes; then
9648             # We only use this code for GNU lds that support --whole-archive.
9649             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9650           else
9651             # Exported symbols can be pulled into shared objects from archives
9652             whole_archive_flag_spec='$convenience'
9653           fi
9654           archive_cmds_need_lc=yes
9655           # This is similar to how AIX traditionally builds its shared libraries.
9656           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'
9657         fi
9658       fi
9659       ;;
9660
9661     amigaos*)
9662       case $host_cpu in
9663       powerpc)
9664             # see comment about AmigaOS4 .so support
9665             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666             archive_expsym_cmds=''
9667         ;;
9668       m68k)
9669             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)'
9670             hardcode_libdir_flag_spec='-L$libdir'
9671             hardcode_minus_L=yes
9672         ;;
9673       esac
9674       ;;
9675
9676     bsdi[45]*)
9677       export_dynamic_flag_spec=-rdynamic
9678       ;;
9679
9680     cygwin* | mingw* | pw32* | cegcc*)
9681       # When not using gcc, we currently assume that we are using
9682       # Microsoft Visual C++.
9683       # hardcode_libdir_flag_spec is actually meaningless, as there is
9684       # no search path for DLLs.
9685       case $cc_basename in
9686       cl*)
9687         # Native MSVC
9688         hardcode_libdir_flag_spec=' '
9689         allow_undefined_flag=unsupported
9690         always_export_symbols=yes
9691         file_list_spec='@'
9692         # Tell ltmain to make .lib files, not .a files.
9693         libext=lib
9694         # Tell ltmain to make .dll files, not .so files.
9695         shrext_cmds=".dll"
9696         # FIXME: Setting linknames here is a bad hack.
9697         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9698         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9700           else
9701             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9702           fi~
9703           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9704           linknames='
9705         # The linker will not automatically build a static lib if we build a DLL.
9706         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707         enable_shared_with_static_runtimes=yes
9708         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9710         # Don't use ranlib
9711         old_postinstall_cmds='chmod 644 $oldlib'
9712         postlink_cmds='lt_outputfile="@OUTPUT@"~
9713           lt_tool_outputfile="@TOOL_OUTPUT@"~
9714           case $lt_outputfile in
9715             *.exe|*.EXE) ;;
9716             *)
9717               lt_outputfile="$lt_outputfile.exe"
9718               lt_tool_outputfile="$lt_tool_outputfile.exe"
9719               ;;
9720           esac~
9721           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9722             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723             $RM "$lt_outputfile.manifest";
9724           fi'
9725         ;;
9726       *)
9727         # Assume MSVC wrapper
9728         hardcode_libdir_flag_spec=' '
9729         allow_undefined_flag=unsupported
9730         # Tell ltmain to make .lib files, not .a files.
9731         libext=lib
9732         # Tell ltmain to make .dll files, not .so files.
9733         shrext_cmds=".dll"
9734         # FIXME: Setting linknames here is a bad hack.
9735         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736         # The linker will automatically build a .lib file if we build a DLL.
9737         old_archive_from_new_cmds='true'
9738         # FIXME: Should let the user specify the lib program.
9739         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740         enable_shared_with_static_runtimes=yes
9741         ;;
9742       esac
9743       ;;
9744
9745     darwin* | rhapsody*)
9746
9747
9748   archive_cmds_need_lc=no
9749   hardcode_direct=no
9750   hardcode_automatic=yes
9751   hardcode_shlibpath_var=unsupported
9752   if test "$lt_cv_ld_force_load" = "yes"; then
9753     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\"`'
9754
9755   else
9756     whole_archive_flag_spec=''
9757   fi
9758   link_all_deplibs=yes
9759   allow_undefined_flag="$_lt_dar_allow_undefined"
9760   case $cc_basename in
9761      ifort*) _lt_dar_can_shared=yes ;;
9762      *) _lt_dar_can_shared=$GCC ;;
9763   esac
9764   if test "$_lt_dar_can_shared" = "yes"; then
9765     output_verbose_link_cmd=func_echo_all
9766     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768     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}"
9769     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}"
9770
9771   else
9772   ld_shlibs=no
9773   fi
9774
9775       ;;
9776
9777     dgux*)
9778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779       hardcode_libdir_flag_spec='-L$libdir'
9780       hardcode_shlibpath_var=no
9781       ;;
9782
9783     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784     # support.  Future versions do this automatically, but an explicit c++rt0.o
9785     # does not break anything, and helps significantly (at the cost of a little
9786     # extra space).
9787     freebsd2.2*)
9788       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789       hardcode_libdir_flag_spec='-R$libdir'
9790       hardcode_direct=yes
9791       hardcode_shlibpath_var=no
9792       ;;
9793
9794     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9795     freebsd2.*)
9796       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797       hardcode_direct=yes
9798       hardcode_minus_L=yes
9799       hardcode_shlibpath_var=no
9800       ;;
9801
9802     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803     freebsd* | dragonfly*)
9804       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805       hardcode_libdir_flag_spec='-R$libdir'
9806       hardcode_direct=yes
9807       hardcode_shlibpath_var=no
9808       ;;
9809
9810     hpux9*)
9811       if test "$GCC" = yes; then
9812         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'
9813       else
9814         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'
9815       fi
9816       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817       hardcode_libdir_separator=:
9818       hardcode_direct=yes
9819
9820       # hardcode_minus_L: Not really in the search PATH,
9821       # but as the default location of the library.
9822       hardcode_minus_L=yes
9823       export_dynamic_flag_spec='${wl}-E'
9824       ;;
9825
9826     hpux10*)
9827       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829       else
9830         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831       fi
9832       if test "$with_gnu_ld" = no; then
9833         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834         hardcode_libdir_separator=:
9835         hardcode_direct=yes
9836         hardcode_direct_absolute=yes
9837         export_dynamic_flag_spec='${wl}-E'
9838         # hardcode_minus_L: Not really in the search PATH,
9839         # but as the default location of the library.
9840         hardcode_minus_L=yes
9841       fi
9842       ;;
9843
9844     hpux11*)
9845       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9846         case $host_cpu in
9847         hppa*64*)
9848           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         ia64*)
9851           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         *)
9854           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855           ;;
9856         esac
9857       else
9858         case $host_cpu in
9859         hppa*64*)
9860           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9861           ;;
9862         ia64*)
9863           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864           ;;
9865         *)
9866
9867           # Older versions of the 11.00 compiler do not understand -b yet
9868           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870 $as_echo_n "checking if $CC understands -b... " >&6; }
9871 if ${lt_cv_prog_compiler__b+:} false; then :
9872   $as_echo_n "(cached) " >&6
9873 else
9874   lt_cv_prog_compiler__b=no
9875    save_LDFLAGS="$LDFLAGS"
9876    LDFLAGS="$LDFLAGS -b"
9877    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879      # The linker can only warn and ignore the option if not recognized
9880      # So say no if there are warnings
9881      if test -s conftest.err; then
9882        # Append any errors to the config.log.
9883        cat conftest.err 1>&5
9884        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886        if diff conftest.exp conftest.er2 >/dev/null; then
9887          lt_cv_prog_compiler__b=yes
9888        fi
9889      else
9890        lt_cv_prog_compiler__b=yes
9891      fi
9892    fi
9893    $RM -r conftest*
9894    LDFLAGS="$save_LDFLAGS"
9895
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9899
9900 if test x"$lt_cv_prog_compiler__b" = xyes; then
9901     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 fi
9905
9906           ;;
9907         esac
9908       fi
9909       if test "$with_gnu_ld" = no; then
9910         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911         hardcode_libdir_separator=:
9912
9913         case $host_cpu in
9914         hppa*64*|ia64*)
9915           hardcode_direct=no
9916           hardcode_shlibpath_var=no
9917           ;;
9918         *)
9919           hardcode_direct=yes
9920           hardcode_direct_absolute=yes
9921           export_dynamic_flag_spec='${wl}-E'
9922
9923           # hardcode_minus_L: Not really in the search PATH,
9924           # but as the default location of the library.
9925           hardcode_minus_L=yes
9926           ;;
9927         esac
9928       fi
9929       ;;
9930
9931     irix5* | irix6* | nonstopux*)
9932       if test "$GCC" = yes; then
9933         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'
9934         # Try to use the -exported_symbol ld option, if it does not
9935         # work, assume that -exports_file does not work either and
9936         # implicitly export all symbols.
9937         # This should be the same for all languages, so no per-tag cache variable.
9938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9939 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9940 if ${lt_cv_irix_exported_symbol+:} false; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   save_LDFLAGS="$LDFLAGS"
9944            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9945            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h.  */
9947 int foo (void) { return 0; }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950   lt_cv_irix_exported_symbol=yes
9951 else
9952   lt_cv_irix_exported_symbol=no
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext \
9955     conftest$ac_exeext conftest.$ac_ext
9956            LDFLAGS="$save_LDFLAGS"
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9959 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9960         if test "$lt_cv_irix_exported_symbol" = yes; then
9961           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'
9962         fi
9963       else
9964         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'
9965         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'
9966       fi
9967       archive_cmds_need_lc='no'
9968       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969       hardcode_libdir_separator=:
9970       inherit_rpath=yes
9971       link_all_deplibs=yes
9972       ;;
9973
9974     netbsd* | netbsdelf*-gnu)
9975       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9977       else
9978         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9979       fi
9980       hardcode_libdir_flag_spec='-R$libdir'
9981       hardcode_direct=yes
9982       hardcode_shlibpath_var=no
9983       ;;
9984
9985     newsos6)
9986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987       hardcode_direct=yes
9988       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989       hardcode_libdir_separator=:
9990       hardcode_shlibpath_var=no
9991       ;;
9992
9993     *nto* | *qnx*)
9994       ;;
9995
9996     openbsd*)
9997       if test -f /usr/libexec/ld.so; then
9998         hardcode_direct=yes
9999         hardcode_shlibpath_var=no
10000         hardcode_direct_absolute=yes
10001         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10004           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005           export_dynamic_flag_spec='${wl}-E'
10006         else
10007           case $host_os in
10008            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10009              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10010              hardcode_libdir_flag_spec='-R$libdir'
10011              ;;
10012            *)
10013              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10015              ;;
10016           esac
10017         fi
10018       else
10019         ld_shlibs=no
10020       fi
10021       ;;
10022
10023     os2*)
10024       hardcode_libdir_flag_spec='-L$libdir'
10025       hardcode_minus_L=yes
10026       allow_undefined_flag=unsupported
10027       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'
10028       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10029       ;;
10030
10031     osf3*)
10032       if test "$GCC" = yes; then
10033         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034         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'
10035       else
10036         allow_undefined_flag=' -expect_unresolved \*'
10037         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'
10038       fi
10039       archive_cmds_need_lc='no'
10040       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041       hardcode_libdir_separator=:
10042       ;;
10043
10044     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10045       if test "$GCC" = yes; then
10046         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10047         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'
10048         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10049       else
10050         allow_undefined_flag=' -expect_unresolved \*'
10051         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'
10052         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~
10053         $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'
10054
10055         # Both c and cxx compiler support -rpath directly
10056         hardcode_libdir_flag_spec='-rpath $libdir'
10057       fi
10058       archive_cmds_need_lc='no'
10059       hardcode_libdir_separator=:
10060       ;;
10061
10062     solaris*)
10063       no_undefined_flag=' -z defs'
10064       if test "$GCC" = yes; then
10065         wlarc='${wl}'
10066         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068           $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'
10069       else
10070         case `$CC -V 2>&1` in
10071         *"Compilers 5.0"*)
10072           wlarc=''
10073           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10076           ;;
10077         *)
10078           wlarc='${wl}'
10079           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10082           ;;
10083         esac
10084       fi
10085       hardcode_libdir_flag_spec='-R$libdir'
10086       hardcode_shlibpath_var=no
10087       case $host_os in
10088       solaris2.[0-5] | solaris2.[0-5].*) ;;
10089       *)
10090         # The compiler driver will combine and reorder linker options,
10091         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10092         # but is careful enough not to reorder.
10093         # Supported since Solaris 2.6 (maybe 2.5.1?)
10094         if test "$GCC" = yes; then
10095           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10096         else
10097           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10098         fi
10099         ;;
10100       esac
10101       link_all_deplibs=yes
10102       ;;
10103
10104     sunos4*)
10105       if test "x$host_vendor" = xsequent; then
10106         # Use $CC to link under sequent, because it throws in some extra .o
10107         # files that make .init and .fini sections work.
10108         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10109       else
10110         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10111       fi
10112       hardcode_libdir_flag_spec='-L$libdir'
10113       hardcode_direct=yes
10114       hardcode_minus_L=yes
10115       hardcode_shlibpath_var=no
10116       ;;
10117
10118     sysv4)
10119       case $host_vendor in
10120         sni)
10121           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122           hardcode_direct=yes # is this really true???
10123         ;;
10124         siemens)
10125           ## LD is ld it makes a PLAMLIB
10126           ## CC just makes a GrossModule.
10127           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10128           reload_cmds='$CC -r -o $output$reload_objs'
10129           hardcode_direct=no
10130         ;;
10131         motorola)
10132           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10134         ;;
10135       esac
10136       runpath_var='LD_RUN_PATH'
10137       hardcode_shlibpath_var=no
10138       ;;
10139
10140     sysv4.3*)
10141       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142       hardcode_shlibpath_var=no
10143       export_dynamic_flag_spec='-Bexport'
10144       ;;
10145
10146     sysv4*MP*)
10147       if test -d /usr/nec; then
10148         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149         hardcode_shlibpath_var=no
10150         runpath_var=LD_RUN_PATH
10151         hardcode_runpath_var=yes
10152         ld_shlibs=yes
10153       fi
10154       ;;
10155
10156     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10157       no_undefined_flag='${wl}-z,text'
10158       archive_cmds_need_lc=no
10159       hardcode_shlibpath_var=no
10160       runpath_var='LD_RUN_PATH'
10161
10162       if test "$GCC" = yes; then
10163         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165       else
10166         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168       fi
10169       ;;
10170
10171     sysv5* | sco3.2v5* | sco5v6*)
10172       # Note: We can NOT use -z defs as we might desire, because we do not
10173       # link with -lc, and that would cause any symbols used from libc to
10174       # always be unresolved, which means just about no library would
10175       # ever link correctly.  If we're not using GNU ld we use -z text
10176       # though, which does catch some bad symbols but isn't as heavy-handed
10177       # as -z defs.
10178       no_undefined_flag='${wl}-z,text'
10179       allow_undefined_flag='${wl}-z,nodefs'
10180       archive_cmds_need_lc=no
10181       hardcode_shlibpath_var=no
10182       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10183       hardcode_libdir_separator=':'
10184       link_all_deplibs=yes
10185       export_dynamic_flag_spec='${wl}-Bexport'
10186       runpath_var='LD_RUN_PATH'
10187
10188       if test "$GCC" = yes; then
10189         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191       else
10192         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194       fi
10195       ;;
10196
10197     uts4*)
10198       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199       hardcode_libdir_flag_spec='-L$libdir'
10200       hardcode_shlibpath_var=no
10201       ;;
10202
10203     *)
10204       ld_shlibs=no
10205       ;;
10206     esac
10207
10208     if test x$host_vendor = xsni; then
10209       case $host in
10210       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10211         export_dynamic_flag_spec='${wl}-Blargedynsym'
10212         ;;
10213       esac
10214     fi
10215   fi
10216
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10218 $as_echo "$ld_shlibs" >&6; }
10219 test "$ld_shlibs" = no && can_build_shared=no
10220
10221 with_gnu_ld=$with_gnu_ld
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237 #
10238 # Do we need to explicitly link libc?
10239 #
10240 case "x$archive_cmds_need_lc" in
10241 x|xyes)
10242   # Assume -lc should be added
10243   archive_cmds_need_lc=yes
10244
10245   if test "$enable_shared" = yes && test "$GCC" = yes; then
10246     case $archive_cmds in
10247     *'~'*)
10248       # FIXME: we may have to deal with multi-command sequences.
10249       ;;
10250     '$CC '*)
10251       # Test whether the compiler implicitly links with -lc since on some
10252       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10253       # to ld, don't add -lc before -lgcc.
10254       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10255 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10256 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10257   $as_echo_n "(cached) " >&6
10258 else
10259   $RM conftest*
10260         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10261
10262         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10263   (eval $ac_compile) 2>&5
10264   ac_status=$?
10265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266   test $ac_status = 0; } 2>conftest.err; then
10267           soname=conftest
10268           lib=conftest
10269           libobjs=conftest.$ac_objext
10270           deplibs=
10271           wl=$lt_prog_compiler_wl
10272           pic_flag=$lt_prog_compiler_pic
10273           compiler_flags=-v
10274           linker_flags=-v
10275           verstring=
10276           output_objdir=.
10277           libname=conftest
10278           lt_save_allow_undefined_flag=$allow_undefined_flag
10279           allow_undefined_flag=
10280           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10281   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10282   ac_status=$?
10283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10284   test $ac_status = 0; }
10285           then
10286             lt_cv_archive_cmds_need_lc=no
10287           else
10288             lt_cv_archive_cmds_need_lc=yes
10289           fi
10290           allow_undefined_flag=$lt_save_allow_undefined_flag
10291         else
10292           cat conftest.err 1>&5
10293         fi
10294         $RM conftest*
10295
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10298 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10299       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10300       ;;
10301     esac
10302   fi
10303   ;;
10304 esac
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10458 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10459
10460 if test "$GCC" = yes; then
10461   case $host_os in
10462     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10463     *) lt_awk_arg="/^libraries:/" ;;
10464   esac
10465   case $host_os in
10466     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10467     *) lt_sed_strip_eq="s,=/,/,g" ;;
10468   esac
10469   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10470   case $lt_search_path_spec in
10471   *\;*)
10472     # if the path contains ";" then we assume it to be the separator
10473     # otherwise default to the standard path separator (i.e. ":") - it is
10474     # assumed that no part of a normal pathname contains ";" but that should
10475     # okay in the real world where ";" in dirpaths is itself problematic.
10476     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10477     ;;
10478   *)
10479     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10480     ;;
10481   esac
10482   # Ok, now we have the path, separated by spaces, we can step through it
10483   # and add multilib dir if necessary.
10484   lt_tmp_lt_search_path_spec=
10485   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10486   for lt_sys_path in $lt_search_path_spec; do
10487     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10488       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10489     else
10490       test -d "$lt_sys_path" && \
10491         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10492     fi
10493   done
10494   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10495 BEGIN {RS=" "; FS="/|\n";} {
10496   lt_foo="";
10497   lt_count=0;
10498   for (lt_i = NF; lt_i > 0; lt_i--) {
10499     if ($lt_i != "" && $lt_i != ".") {
10500       if ($lt_i == "..") {
10501         lt_count++;
10502       } else {
10503         if (lt_count == 0) {
10504           lt_foo="/" $lt_i lt_foo;
10505         } else {
10506           lt_count--;
10507         }
10508       }
10509     }
10510   }
10511   if (lt_foo != "") { lt_freq[lt_foo]++; }
10512   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10513 }'`
10514   # AWK program above erroneously prepends '/' to C:/dos/paths
10515   # for these hosts.
10516   case $host_os in
10517     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10518       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10519   esac
10520   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10521 else
10522   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10523 fi
10524 library_names_spec=
10525 libname_spec='lib$name'
10526 soname_spec=
10527 shrext_cmds=".so"
10528 postinstall_cmds=
10529 postuninstall_cmds=
10530 finish_cmds=
10531 finish_eval=
10532 shlibpath_var=
10533 shlibpath_overrides_runpath=unknown
10534 version_type=none
10535 dynamic_linker="$host_os ld.so"
10536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10537 need_lib_prefix=unknown
10538 hardcode_into_libs=no
10539
10540 # when you set need_version to no, make sure it does not cause -set_version
10541 # flags to be left without arguments
10542 need_version=unknown
10543
10544 case $host_os in
10545 aix3*)
10546   version_type=linux # correct to gnu/linux during the next big refactor
10547   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10548   shlibpath_var=LIBPATH
10549
10550   # AIX 3 has no versioning support, so we append a major version to the name.
10551   soname_spec='${libname}${release}${shared_ext}$major'
10552   ;;
10553
10554 aix[4-9]*)
10555   version_type=linux # correct to gnu/linux during the next big refactor
10556   need_lib_prefix=no
10557   need_version=no
10558   hardcode_into_libs=yes
10559   if test "$host_cpu" = ia64; then
10560     # AIX 5 supports IA64
10561     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10562     shlibpath_var=LD_LIBRARY_PATH
10563   else
10564     # With GCC up to 2.95.x, collect2 would create an import file
10565     # for dependence libraries.  The import file would start with
10566     # the line `#! .'.  This would cause the generated library to
10567     # depend on `.', always an invalid library.  This was fixed in
10568     # development snapshots of GCC prior to 3.0.
10569     case $host_os in
10570       aix4 | aix4.[01] | aix4.[01].*)
10571       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10572            echo ' yes '
10573            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10574         :
10575       else
10576         can_build_shared=no
10577       fi
10578       ;;
10579     esac
10580     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10581     # soname into executable. Probably we can add versioning support to
10582     # collect2, so additional links can be useful in future.
10583     if test "$aix_use_runtimelinking" = yes; then
10584       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10585       # instead of lib<name>.a to let people know that these are not
10586       # typical AIX shared libraries.
10587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588     else
10589       # We preserve .a as extension for shared libraries through AIX4.2
10590       # and later when we are not doing run time linking.
10591       library_names_spec='${libname}${release}.a $libname.a'
10592       soname_spec='${libname}${release}${shared_ext}$major'
10593     fi
10594     shlibpath_var=LIBPATH
10595   fi
10596   ;;
10597
10598 amigaos*)
10599   case $host_cpu in
10600   powerpc)
10601     # Since July 2007 AmigaOS4 officially supports .so libraries.
10602     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604     ;;
10605   m68k)
10606     library_names_spec='$libname.ixlibrary $libname.a'
10607     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10608     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'
10609     ;;
10610   esac
10611   ;;
10612
10613 beos*)
10614   library_names_spec='${libname}${shared_ext}'
10615   dynamic_linker="$host_os ld.so"
10616   shlibpath_var=LIBRARY_PATH
10617   ;;
10618
10619 bsdi[45]*)
10620   version_type=linux # correct to gnu/linux during the next big refactor
10621   need_version=no
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10625   shlibpath_var=LD_LIBRARY_PATH
10626   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10627   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10628   # the default ld.so.conf also contains /usr/contrib/lib and
10629   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10630   # libtool to hard-code these into programs
10631   ;;
10632
10633 cygwin* | mingw* | pw32* | cegcc*)
10634   version_type=windows
10635   shrext_cmds=".dll"
10636   need_version=no
10637   need_lib_prefix=no
10638
10639   case $GCC,$cc_basename in
10640   yes,*)
10641     # gcc
10642     library_names_spec='$libname.dll.a'
10643     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10644     postinstall_cmds='base_file=`basename \${file}`~
10645       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10646       dldir=$destdir/`dirname \$dlpath`~
10647       test -d \$dldir || mkdir -p \$dldir~
10648       $install_prog $dir/$dlname \$dldir/$dlname~
10649       chmod a+x \$dldir/$dlname~
10650       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10651         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10652       fi'
10653     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10654       dlpath=$dir/\$dldll~
10655        $RM \$dlpath'
10656     shlibpath_overrides_runpath=yes
10657
10658     case $host_os in
10659     cygwin*)
10660       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10661       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662
10663       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10664       ;;
10665     mingw* | cegcc*)
10666       # MinGW DLLs use traditional 'lib' prefix
10667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668       ;;
10669     pw32*)
10670       # pw32 DLLs use 'pw' prefix rather than 'lib'
10671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10672       ;;
10673     esac
10674     dynamic_linker='Win32 ld.exe'
10675     ;;
10676
10677   *,cl*)
10678     # Native MSVC
10679     libname_spec='$name'
10680     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681     library_names_spec='${libname}.dll.lib'
10682
10683     case $build_os in
10684     mingw*)
10685       sys_lib_search_path_spec=
10686       lt_save_ifs=$IFS
10687       IFS=';'
10688       for lt_path in $LIB
10689       do
10690         IFS=$lt_save_ifs
10691         # Let DOS variable expansion print the short 8.3 style file name.
10692         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10693         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10694       done
10695       IFS=$lt_save_ifs
10696       # Convert to MSYS style.
10697       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10698       ;;
10699     cygwin*)
10700       # Convert to unix form, then to dos form, then back to unix form
10701       # but this time dos style (no spaces!) so that the unix form looks
10702       # like /cygdrive/c/PROGRA~1:/cygdr...
10703       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10704       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10705       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10706       ;;
10707     *)
10708       sys_lib_search_path_spec="$LIB"
10709       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10710         # It is most probably a Windows format PATH.
10711         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10712       else
10713         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10714       fi
10715       # FIXME: find the short name or the path components, as spaces are
10716       # common. (e.g. "Program Files" -> "PROGRA~1")
10717       ;;
10718     esac
10719
10720     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721     postinstall_cmds='base_file=`basename \${file}`~
10722       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10723       dldir=$destdir/`dirname \$dlpath`~
10724       test -d \$dldir || mkdir -p \$dldir~
10725       $install_prog $dir/$dlname \$dldir/$dlname'
10726     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10727       dlpath=$dir/\$dldll~
10728        $RM \$dlpath'
10729     shlibpath_overrides_runpath=yes
10730     dynamic_linker='Win32 link.exe'
10731     ;;
10732
10733   *)
10734     # Assume MSVC wrapper
10735     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10736     dynamic_linker='Win32 ld.exe'
10737     ;;
10738   esac
10739   # FIXME: first we should search . and the directory the executable is in
10740   shlibpath_var=PATH
10741   ;;
10742
10743 darwin* | rhapsody*)
10744   dynamic_linker="$host_os dyld"
10745   version_type=darwin
10746   need_lib_prefix=no
10747   need_version=no
10748   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10749   soname_spec='${libname}${release}${major}$shared_ext'
10750   shlibpath_overrides_runpath=yes
10751   shlibpath_var=DYLD_LIBRARY_PATH
10752   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10753
10754   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10755   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10756   ;;
10757
10758 dgux*)
10759   version_type=linux # correct to gnu/linux during the next big refactor
10760   need_lib_prefix=no
10761   need_version=no
10762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10763   soname_spec='${libname}${release}${shared_ext}$major'
10764   shlibpath_var=LD_LIBRARY_PATH
10765   ;;
10766
10767 freebsd* | dragonfly*)
10768   # DragonFly does not have aout.  When/if they implement a new
10769   # versioning mechanism, adjust this.
10770   if test -x /usr/bin/objformat; then
10771     objformat=`/usr/bin/objformat`
10772   else
10773     case $host_os in
10774     freebsd[23].*) objformat=aout ;;
10775     *) objformat=elf ;;
10776     esac
10777   fi
10778   version_type=freebsd-$objformat
10779   case $version_type in
10780     freebsd-elf*)
10781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10782       need_version=no
10783       need_lib_prefix=no
10784       ;;
10785     freebsd-*)
10786       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10787       need_version=yes
10788       ;;
10789   esac
10790   shlibpath_var=LD_LIBRARY_PATH
10791   case $host_os in
10792   freebsd2.*)
10793     shlibpath_overrides_runpath=yes
10794     ;;
10795   freebsd3.[01]* | freebsdelf3.[01]*)
10796     shlibpath_overrides_runpath=yes
10797     hardcode_into_libs=yes
10798     ;;
10799   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10800   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10801     shlibpath_overrides_runpath=no
10802     hardcode_into_libs=yes
10803     ;;
10804   *) # from 4.6 on, and DragonFly
10805     shlibpath_overrides_runpath=yes
10806     hardcode_into_libs=yes
10807     ;;
10808   esac
10809   ;;
10810
10811 gnu*)
10812   version_type=linux # correct to gnu/linux during the next big refactor
10813   need_lib_prefix=no
10814   need_version=no
10815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816   soname_spec='${libname}${release}${shared_ext}$major'
10817   shlibpath_var=LD_LIBRARY_PATH
10818   shlibpath_overrides_runpath=no
10819   hardcode_into_libs=yes
10820   ;;
10821
10822 haiku*)
10823   version_type=linux # correct to gnu/linux during the next big refactor
10824   need_lib_prefix=no
10825   need_version=no
10826   dynamic_linker="$host_os runtime_loader"
10827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828   soname_spec='${libname}${release}${shared_ext}$major'
10829   shlibpath_var=LIBRARY_PATH
10830   shlibpath_overrides_runpath=yes
10831   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10832   hardcode_into_libs=yes
10833   ;;
10834
10835 hpux9* | hpux10* | hpux11*)
10836   # Give a soname corresponding to the major version so that dld.sl refuses to
10837   # link against other versions.
10838   version_type=sunos
10839   need_lib_prefix=no
10840   need_version=no
10841   case $host_cpu in
10842   ia64*)
10843     shrext_cmds='.so'
10844     hardcode_into_libs=yes
10845     dynamic_linker="$host_os dld.so"
10846     shlibpath_var=LD_LIBRARY_PATH
10847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849     soname_spec='${libname}${release}${shared_ext}$major'
10850     if test "X$HPUX_IA64_MODE" = X32; then
10851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10852     else
10853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10854     fi
10855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10856     ;;
10857   hppa*64*)
10858     shrext_cmds='.sl'
10859     hardcode_into_libs=yes
10860     dynamic_linker="$host_os dld.sl"
10861     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10862     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864     soname_spec='${libname}${release}${shared_ext}$major'
10865     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10866     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867     ;;
10868   *)
10869     shrext_cmds='.sl'
10870     dynamic_linker="$host_os dld.sl"
10871     shlibpath_var=SHLIB_PATH
10872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874     soname_spec='${libname}${release}${shared_ext}$major'
10875     ;;
10876   esac
10877   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10878   postinstall_cmds='chmod 555 $lib'
10879   # or fails outright, so override atomically:
10880   install_override_mode=555
10881   ;;
10882
10883 interix[3-9]*)
10884   version_type=linux # correct to gnu/linux during the next big refactor
10885   need_lib_prefix=no
10886   need_version=no
10887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10888   soname_spec='${libname}${release}${shared_ext}$major'
10889   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10890   shlibpath_var=LD_LIBRARY_PATH
10891   shlibpath_overrides_runpath=no
10892   hardcode_into_libs=yes
10893   ;;
10894
10895 irix5* | irix6* | nonstopux*)
10896   case $host_os in
10897     nonstopux*) version_type=nonstopux ;;
10898     *)
10899         if test "$lt_cv_prog_gnu_ld" = yes; then
10900                 version_type=linux # correct to gnu/linux during the next big refactor
10901         else
10902                 version_type=irix
10903         fi ;;
10904   esac
10905   need_lib_prefix=no
10906   need_version=no
10907   soname_spec='${libname}${release}${shared_ext}$major'
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10909   case $host_os in
10910   irix5* | nonstopux*)
10911     libsuff= shlibsuff=
10912     ;;
10913   *)
10914     case $LD in # libtool.m4 will add one of these switches to LD
10915     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10916       libsuff= shlibsuff= libmagic=32-bit;;
10917     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10918       libsuff=32 shlibsuff=N32 libmagic=N32;;
10919     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10920       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10921     *) libsuff= shlibsuff= libmagic=never-match;;
10922     esac
10923     ;;
10924   esac
10925   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10926   shlibpath_overrides_runpath=no
10927   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10928   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10929   hardcode_into_libs=yes
10930   ;;
10931
10932 # No shared lib support for Linux oldld, aout, or coff.
10933 linux*oldld* | linux*aout* | linux*coff*)
10934   dynamic_linker=no
10935   ;;
10936
10937 # This must be glibc/ELF.
10938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10939   version_type=linux # correct to gnu/linux during the next big refactor
10940   need_lib_prefix=no
10941   need_version=no
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943   soname_spec='${libname}${release}${shared_ext}$major'
10944   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10945   shlibpath_var=LD_LIBRARY_PATH
10946   shlibpath_overrides_runpath=no
10947
10948   # Some binutils ld are patched to set DT_RUNPATH
10949   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10950   $as_echo_n "(cached) " >&6
10951 else
10952   lt_cv_shlibpath_overrides_runpath=no
10953     save_LDFLAGS=$LDFLAGS
10954     save_libdir=$libdir
10955     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10956          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h.  */
10959
10960 int
10961 main ()
10962 {
10963
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10970   lt_cv_shlibpath_overrides_runpath=yes
10971 fi
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974     conftest$ac_exeext conftest.$ac_ext
10975     LDFLAGS=$save_LDFLAGS
10976     libdir=$save_libdir
10977
10978 fi
10979
10980   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10981
10982   # This implies no fast_install, which is unacceptable.
10983   # Some rework will be needed to allow for fast_install
10984   # before this can be enabled.
10985   hardcode_into_libs=yes
10986
10987   # Append ld.so.conf contents to the search path
10988   if test -f /etc/ld.so.conf; then
10989     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' ' '`
10990     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10991   fi
10992
10993   # We used to test for /lib/ld.so.1 and disable shared libraries on
10994   # powerpc, because MkLinux only supported shared libraries with the
10995   # GNU dynamic linker.  Since this was broken with cross compilers,
10996   # most powerpc-linux boxes support dynamic linking these days and
10997   # people can always --disable-shared, the test was removed, and we
10998   # assume the GNU/Linux dynamic linker is in use.
10999   dynamic_linker='GNU/Linux ld.so'
11000   ;;
11001
11002 netbsdelf*-gnu)
11003   version_type=linux
11004   need_lib_prefix=no
11005   need_version=no
11006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007   soname_spec='${libname}${release}${shared_ext}$major'
11008   shlibpath_var=LD_LIBRARY_PATH
11009   shlibpath_overrides_runpath=no
11010   hardcode_into_libs=yes
11011   dynamic_linker='NetBSD ld.elf_so'
11012   ;;
11013
11014 netbsd*)
11015   version_type=sunos
11016   need_lib_prefix=no
11017   need_version=no
11018   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11020     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11021     dynamic_linker='NetBSD (a.out) ld.so'
11022   else
11023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11024     soname_spec='${libname}${release}${shared_ext}$major'
11025     dynamic_linker='NetBSD ld.elf_so'
11026   fi
11027   shlibpath_var=LD_LIBRARY_PATH
11028   shlibpath_overrides_runpath=yes
11029   hardcode_into_libs=yes
11030   ;;
11031
11032 newsos6)
11033   version_type=linux # correct to gnu/linux during the next big refactor
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035   shlibpath_var=LD_LIBRARY_PATH
11036   shlibpath_overrides_runpath=yes
11037   ;;
11038
11039 *nto* | *qnx*)
11040   version_type=qnx
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044   soname_spec='${libname}${release}${shared_ext}$major'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   shlibpath_overrides_runpath=no
11047   hardcode_into_libs=yes
11048   dynamic_linker='ldqnx.so'
11049   ;;
11050
11051 openbsd*)
11052   version_type=sunos
11053   sys_lib_dlsearch_path_spec="/usr/lib"
11054   need_lib_prefix=no
11055   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11056   case $host_os in
11057     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11058     *)                          need_version=no  ;;
11059   esac
11060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11061   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11062   shlibpath_var=LD_LIBRARY_PATH
11063   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11064     case $host_os in
11065       openbsd2.[89] | openbsd2.[89].*)
11066         shlibpath_overrides_runpath=no
11067         ;;
11068       *)
11069         shlibpath_overrides_runpath=yes
11070         ;;
11071       esac
11072   else
11073     shlibpath_overrides_runpath=yes
11074   fi
11075   ;;
11076
11077 os2*)
11078   libname_spec='$name'
11079   shrext_cmds=".dll"
11080   need_lib_prefix=no
11081   library_names_spec='$libname${shared_ext} $libname.a'
11082   dynamic_linker='OS/2 ld.exe'
11083   shlibpath_var=LIBPATH
11084   ;;
11085
11086 osf3* | osf4* | osf5*)
11087   version_type=osf
11088   need_lib_prefix=no
11089   need_version=no
11090   soname_spec='${libname}${release}${shared_ext}$major'
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11094   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11095   ;;
11096
11097 rdos*)
11098   dynamic_linker=no
11099   ;;
11100
11101 solaris*)
11102   version_type=linux # correct to gnu/linux during the next big refactor
11103   need_lib_prefix=no
11104   need_version=no
11105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106   soname_spec='${libname}${release}${shared_ext}$major'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=yes
11109   hardcode_into_libs=yes
11110   # ldd complains unless libraries are executable
11111   postinstall_cmds='chmod +x $lib'
11112   ;;
11113
11114 sunos4*)
11115   version_type=sunos
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11117   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=yes
11120   if test "$with_gnu_ld" = yes; then
11121     need_lib_prefix=no
11122   fi
11123   need_version=yes
11124   ;;
11125
11126 sysv4 | sysv4.3*)
11127   version_type=linux # correct to gnu/linux during the next big refactor
11128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129   soname_spec='${libname}${release}${shared_ext}$major'
11130   shlibpath_var=LD_LIBRARY_PATH
11131   case $host_vendor in
11132     sni)
11133       shlibpath_overrides_runpath=no
11134       need_lib_prefix=no
11135       runpath_var=LD_RUN_PATH
11136       ;;
11137     siemens)
11138       need_lib_prefix=no
11139       ;;
11140     motorola)
11141       need_lib_prefix=no
11142       need_version=no
11143       shlibpath_overrides_runpath=no
11144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11145       ;;
11146   esac
11147   ;;
11148
11149 sysv4*MP*)
11150   if test -d /usr/nec ;then
11151     version_type=linux # correct to gnu/linux during the next big refactor
11152     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11153     soname_spec='$libname${shared_ext}.$major'
11154     shlibpath_var=LD_LIBRARY_PATH
11155   fi
11156   ;;
11157
11158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11159   version_type=freebsd-elf
11160   need_lib_prefix=no
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   shlibpath_overrides_runpath=yes
11166   hardcode_into_libs=yes
11167   if test "$with_gnu_ld" = yes; then
11168     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11169   else
11170     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11171     case $host_os in
11172       sco3.2v5*)
11173         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11174         ;;
11175     esac
11176   fi
11177   sys_lib_dlsearch_path_spec='/usr/lib'
11178   ;;
11179
11180 tpf*)
11181   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11182   version_type=linux # correct to gnu/linux during the next big refactor
11183   need_lib_prefix=no
11184   need_version=no
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186   shlibpath_var=LD_LIBRARY_PATH
11187   shlibpath_overrides_runpath=no
11188   hardcode_into_libs=yes
11189   ;;
11190
11191 uts4*)
11192   version_type=linux # correct to gnu/linux during the next big refactor
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194   soname_spec='${libname}${release}${shared_ext}$major'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   ;;
11197
11198 *)
11199   dynamic_linker=no
11200   ;;
11201 esac
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11203 $as_echo "$dynamic_linker" >&6; }
11204 test "$dynamic_linker" = no && can_build_shared=no
11205
11206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11207 if test "$GCC" = yes; then
11208   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11209 fi
11210
11211 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11212   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11213 fi
11214 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11215   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11216 fi
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11310 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11311 hardcode_action=
11312 if test -n "$hardcode_libdir_flag_spec" ||
11313    test -n "$runpath_var" ||
11314    test "X$hardcode_automatic" = "Xyes" ; then
11315
11316   # We can hardcode non-existent directories.
11317   if test "$hardcode_direct" != no &&
11318      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11319      # have to relink, otherwise we might link with an installed library
11320      # when we should be linking with a yet-to-be-installed one
11321      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11322      test "$hardcode_minus_L" != no; then
11323     # Linking always hardcodes the temporary library directory.
11324     hardcode_action=relink
11325   else
11326     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11327     hardcode_action=immediate
11328   fi
11329 else
11330   # We cannot hardcode anything, or else we can only hardcode existing
11331   # directories.
11332   hardcode_action=unsupported
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11335 $as_echo "$hardcode_action" >&6; }
11336
11337 if test "$hardcode_action" = relink ||
11338    test "$inherit_rpath" = yes; then
11339   # Fast installation is not supported
11340   enable_fast_install=no
11341 elif test "$shlibpath_overrides_runpath" = yes ||
11342      test "$enable_shared" = no; then
11343   # Fast installation is not necessary
11344   enable_fast_install=needless
11345 fi
11346
11347
11348
11349
11350
11351
11352   if test "x$enable_dlopen" != xyes; then
11353   enable_dlopen=unknown
11354   enable_dlopen_self=unknown
11355   enable_dlopen_self_static=unknown
11356 else
11357   lt_cv_dlopen=no
11358   lt_cv_dlopen_libs=
11359
11360   case $host_os in
11361   beos*)
11362     lt_cv_dlopen="load_add_on"
11363     lt_cv_dlopen_libs=
11364     lt_cv_dlopen_self=yes
11365     ;;
11366
11367   mingw* | pw32* | cegcc*)
11368     lt_cv_dlopen="LoadLibrary"
11369     lt_cv_dlopen_libs=
11370     ;;
11371
11372   cygwin*)
11373     lt_cv_dlopen="dlopen"
11374     lt_cv_dlopen_libs=
11375     ;;
11376
11377   darwin*)
11378   # if libdl is installed we need to link against it
11379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11381 if ${ac_cv_lib_dl_dlopen+:} false; then :
11382   $as_echo_n "(cached) " >&6
11383 else
11384   ac_check_lib_save_LIBS=$LIBS
11385 LIBS="-ldl  $LIBS"
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h.  */
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390    Use char because int might match the return type of a GCC
11391    builtin and then its argument prototype would still apply.  */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char dlopen ();
11396 int
11397 main ()
11398 {
11399 return dlopen ();
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 if ac_fn_c_try_link "$LINENO"; then :
11405   ac_cv_lib_dl_dlopen=yes
11406 else
11407   ac_cv_lib_dl_dlopen=no
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext \
11410     conftest$ac_exeext conftest.$ac_ext
11411 LIBS=$ac_check_lib_save_LIBS
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11414 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11415 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11416   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11417 else
11418
11419     lt_cv_dlopen="dyld"
11420     lt_cv_dlopen_libs=
11421     lt_cv_dlopen_self=yes
11422
11423 fi
11424
11425     ;;
11426
11427   *)
11428     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11429 if test "x$ac_cv_func_shl_load" = xyes; then :
11430   lt_cv_dlopen="shl_load"
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11433 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11434 if ${ac_cv_lib_dld_shl_load+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldld  $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h.  */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443    Use char because int might match the return type of a GCC
11444    builtin and then its argument prototype would still apply.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char shl_load ();
11449 int
11450 main ()
11451 {
11452 return shl_load ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458   ac_cv_lib_dld_shl_load=yes
11459 else
11460   ac_cv_lib_dld_shl_load=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463     conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11467 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11468 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11469   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11470 else
11471   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11472 if test "x$ac_cv_func_dlopen" = xyes; then :
11473   lt_cv_dlopen="dlopen"
11474 else
11475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11476 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11477 if ${ac_cv_lib_dl_dlopen+:} false; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480   ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-ldl  $LIBS"
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h.  */
11484
11485 /* Override any GCC internal prototype to avoid an error.
11486    Use char because int might match the return type of a GCC
11487    builtin and then its argument prototype would still apply.  */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char dlopen ();
11492 int
11493 main ()
11494 {
11495 return dlopen ();
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 if ac_fn_c_try_link "$LINENO"; then :
11501   ac_cv_lib_dl_dlopen=yes
11502 else
11503   ac_cv_lib_dl_dlopen=no
11504 fi
11505 rm -f core conftest.err conftest.$ac_objext \
11506     conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11510 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11511 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11512   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11513 else
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11515 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11516 if ${ac_cv_lib_svld_dlopen+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-lsvld  $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h.  */
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525    Use char because int might match the return type of a GCC
11526    builtin and then its argument prototype would still apply.  */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char dlopen ();
11531 int
11532 main ()
11533 {
11534 return dlopen ();
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540   ac_cv_lib_svld_dlopen=yes
11541 else
11542   ac_cv_lib_svld_dlopen=no
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext \
11545     conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11547 fi
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11549 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11550 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11551   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11554 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11555 if ${ac_cv_lib_dld_dld_link+:} false; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldld  $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564    Use char because int might match the return type of a GCC
11565    builtin and then its argument prototype would still apply.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char dld_link ();
11570 int
11571 main ()
11572 {
11573 return dld_link ();
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579   ac_cv_lib_dld_dld_link=yes
11580 else
11581   ac_cv_lib_dld_dld_link=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584     conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11588 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11589 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11590   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11591 fi
11592
11593
11594 fi
11595
11596
11597 fi
11598
11599
11600 fi
11601
11602
11603 fi
11604
11605
11606 fi
11607
11608     ;;
11609   esac
11610
11611   if test "x$lt_cv_dlopen" != xno; then
11612     enable_dlopen=yes
11613   else
11614     enable_dlopen=no
11615   fi
11616
11617   case $lt_cv_dlopen in
11618   dlopen)
11619     save_CPPFLAGS="$CPPFLAGS"
11620     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11621
11622     save_LDFLAGS="$LDFLAGS"
11623     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11624
11625     save_LIBS="$LIBS"
11626     LIBS="$lt_cv_dlopen_libs $LIBS"
11627
11628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11629 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11630 if ${lt_cv_dlopen_self+:} false; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633           if test "$cross_compiling" = yes; then :
11634   lt_cv_dlopen_self=cross
11635 else
11636   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11637   lt_status=$lt_dlunknown
11638   cat > conftest.$ac_ext <<_LT_EOF
11639 #line $LINENO "configure"
11640 #include "confdefs.h"
11641
11642 #if HAVE_DLFCN_H
11643 #include <dlfcn.h>
11644 #endif
11645
11646 #include <stdio.h>
11647
11648 #ifdef RTLD_GLOBAL
11649 #  define LT_DLGLOBAL           RTLD_GLOBAL
11650 #else
11651 #  ifdef DL_GLOBAL
11652 #    define LT_DLGLOBAL         DL_GLOBAL
11653 #  else
11654 #    define LT_DLGLOBAL         0
11655 #  endif
11656 #endif
11657
11658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11659    find out it does not work in some platform. */
11660 #ifndef LT_DLLAZY_OR_NOW
11661 #  ifdef RTLD_LAZY
11662 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11663 #  else
11664 #    ifdef DL_LAZY
11665 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11666 #    else
11667 #      ifdef RTLD_NOW
11668 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11669 #      else
11670 #        ifdef DL_NOW
11671 #          define LT_DLLAZY_OR_NOW      DL_NOW
11672 #        else
11673 #          define LT_DLLAZY_OR_NOW      0
11674 #        endif
11675 #      endif
11676 #    endif
11677 #  endif
11678 #endif
11679
11680 /* When -fvisbility=hidden is used, assume the code has been annotated
11681    correspondingly for the symbols needed.  */
11682 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11683 int fnord () __attribute__((visibility("default")));
11684 #endif
11685
11686 int fnord () { return 42; }
11687 int main ()
11688 {
11689   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11690   int status = $lt_dlunknown;
11691
11692   if (self)
11693     {
11694       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11695       else
11696         {
11697           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11698           else puts (dlerror ());
11699         }
11700       /* dlclose (self); */
11701     }
11702   else
11703     puts (dlerror ());
11704
11705   return status;
11706 }
11707 _LT_EOF
11708   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11709   (eval $ac_link) 2>&5
11710   ac_status=$?
11711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11712   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11713     (./conftest; exit; ) >&5 2>/dev/null
11714     lt_status=$?
11715     case x$lt_status in
11716       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11717       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11718       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11719     esac
11720   else :
11721     # compilation failed
11722     lt_cv_dlopen_self=no
11723   fi
11724 fi
11725 rm -fr conftest*
11726
11727
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11730 $as_echo "$lt_cv_dlopen_self" >&6; }
11731
11732     if test "x$lt_cv_dlopen_self" = xyes; then
11733       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11734       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11735 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11736 if ${lt_cv_dlopen_self_static+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739           if test "$cross_compiling" = yes; then :
11740   lt_cv_dlopen_self_static=cross
11741 else
11742   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11743   lt_status=$lt_dlunknown
11744   cat > conftest.$ac_ext <<_LT_EOF
11745 #line $LINENO "configure"
11746 #include "confdefs.h"
11747
11748 #if HAVE_DLFCN_H
11749 #include <dlfcn.h>
11750 #endif
11751
11752 #include <stdio.h>
11753
11754 #ifdef RTLD_GLOBAL
11755 #  define LT_DLGLOBAL           RTLD_GLOBAL
11756 #else
11757 #  ifdef DL_GLOBAL
11758 #    define LT_DLGLOBAL         DL_GLOBAL
11759 #  else
11760 #    define LT_DLGLOBAL         0
11761 #  endif
11762 #endif
11763
11764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11765    find out it does not work in some platform. */
11766 #ifndef LT_DLLAZY_OR_NOW
11767 #  ifdef RTLD_LAZY
11768 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11769 #  else
11770 #    ifdef DL_LAZY
11771 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11772 #    else
11773 #      ifdef RTLD_NOW
11774 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11775 #      else
11776 #        ifdef DL_NOW
11777 #          define LT_DLLAZY_OR_NOW      DL_NOW
11778 #        else
11779 #          define LT_DLLAZY_OR_NOW      0
11780 #        endif
11781 #      endif
11782 #    endif
11783 #  endif
11784 #endif
11785
11786 /* When -fvisbility=hidden is used, assume the code has been annotated
11787    correspondingly for the symbols needed.  */
11788 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11789 int fnord () __attribute__((visibility("default")));
11790 #endif
11791
11792 int fnord () { return 42; }
11793 int main ()
11794 {
11795   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11796   int status = $lt_dlunknown;
11797
11798   if (self)
11799     {
11800       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11801       else
11802         {
11803           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11804           else puts (dlerror ());
11805         }
11806       /* dlclose (self); */
11807     }
11808   else
11809     puts (dlerror ());
11810
11811   return status;
11812 }
11813 _LT_EOF
11814   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11815   (eval $ac_link) 2>&5
11816   ac_status=$?
11817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11818   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11819     (./conftest; exit; ) >&5 2>/dev/null
11820     lt_status=$?
11821     case x$lt_status in
11822       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11823       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11824       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11825     esac
11826   else :
11827     # compilation failed
11828     lt_cv_dlopen_self_static=no
11829   fi
11830 fi
11831 rm -fr conftest*
11832
11833
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11836 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11837     fi
11838
11839     CPPFLAGS="$save_CPPFLAGS"
11840     LDFLAGS="$save_LDFLAGS"
11841     LIBS="$save_LIBS"
11842     ;;
11843   esac
11844
11845   case $lt_cv_dlopen_self in
11846   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11847   *) enable_dlopen_self=unknown ;;
11848   esac
11849
11850   case $lt_cv_dlopen_self_static in
11851   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11852   *) enable_dlopen_self_static=unknown ;;
11853   esac
11854 fi
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872 striplib=
11873 old_striplib=
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11875 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11876 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11877   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11878   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11880 $as_echo "yes" >&6; }
11881 else
11882 # FIXME - insert some real tests, host_os isn't really good enough
11883   case $host_os in
11884   darwin*)
11885     if test -n "$STRIP" ; then
11886       striplib="$STRIP -x"
11887       old_striplib="$STRIP -S"
11888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11890     else
11891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893     fi
11894     ;;
11895   *)
11896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898     ;;
11899   esac
11900 fi
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913   # Report which library types will actually be built
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11915 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11917 $as_echo "$can_build_shared" >&6; }
11918
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11920 $as_echo_n "checking whether to build shared libraries... " >&6; }
11921   test "$can_build_shared" = "no" && enable_shared=no
11922
11923   # On AIX, shared libraries and static libraries use the same namespace, and
11924   # are all built from PIC.
11925   case $host_os in
11926   aix3*)
11927     test "$enable_shared" = yes && enable_static=no
11928     if test -n "$RANLIB"; then
11929       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11930       postinstall_cmds='$RANLIB $lib'
11931     fi
11932     ;;
11933
11934   aix[4-9]*)
11935     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11936       test "$enable_shared" = yes && enable_static=no
11937     fi
11938     ;;
11939   esac
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11941 $as_echo "$enable_shared" >&6; }
11942
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11944 $as_echo_n "checking whether to build static libraries... " >&6; }
11945   # Make sure either enable_shared or enable_static is yes.
11946   test "$enable_shared" = yes || enable_static=yes
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11948 $as_echo "$enable_static" >&6; }
11949
11950
11951
11952
11953 fi
11954 ac_ext=c
11955 ac_cpp='$CPP $CPPFLAGS'
11956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11959
11960 CC="$lt_save_CC"
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976         ac_config_commands="$ac_config_commands libtool"
11977
11978
11979
11980
11981 # Only expand once:
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11994         if test -n "$ac_tool_prefix"; then
11995   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   case $PKG_CONFIG in
12003   [\\/]* | ?:[\\/]*)
12004   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12005   ;;
12006   *)
12007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010   IFS=$as_save_IFS
12011   test -z "$as_dir" && as_dir=.
12012     for ac_exec_ext in '' $ac_executable_extensions; do
12013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016     break 2
12017   fi
12018 done
12019   done
12020 IFS=$as_save_IFS
12021
12022   ;;
12023 esac
12024 fi
12025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12026 if test -n "$PKG_CONFIG"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12028 $as_echo "$PKG_CONFIG" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035 fi
12036 if test -z "$ac_cv_path_PKG_CONFIG"; then
12037   ac_pt_PKG_CONFIG=$PKG_CONFIG
12038   # Extract the first word of "pkg-config", so it can be a program name with args.
12039 set dummy pkg-config; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   case $ac_pt_PKG_CONFIG in
12046   [\\/]* | ?:[\\/]*)
12047   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12048   ;;
12049   *)
12050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053   IFS=$as_save_IFS
12054   test -z "$as_dir" && as_dir=.
12055     for ac_exec_ext in '' $ac_executable_extensions; do
12056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059     break 2
12060   fi
12061 done
12062   done
12063 IFS=$as_save_IFS
12064
12065   ;;
12066 esac
12067 fi
12068 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12069 if test -n "$ac_pt_PKG_CONFIG"; then
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12071 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12072 else
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076
12077   if test "x$ac_pt_PKG_CONFIG" = x; then
12078     PKG_CONFIG=""
12079   else
12080     case $cross_compiling:$ac_tool_warned in
12081 yes:)
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12084 ac_tool_warned=yes ;;
12085 esac
12086     PKG_CONFIG=$ac_pt_PKG_CONFIG
12087   fi
12088 else
12089   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12090 fi
12091
12092 fi
12093 if test -n "$PKG_CONFIG"; then
12094         _pkg_min_version=0.9.0
12095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12096 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12097         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12098                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12100         else
12101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12103                 PKG_CONFIG=""
12104         fi
12105 fi
12106
12107 pkg_failed=no
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTest" >&5
12109 $as_echo_n "checking for GTest... " >&6; }
12110
12111 if test -n "$GTest_CFLAGS"; then
12112     pkg_cv_GTest_CFLAGS="$GTest_CFLAGS"
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 \"glib-2.0 >= 2.16\""; } >&5
12116   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 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_GTest_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 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 if test -n "$GTest_LIBS"; then
12129     pkg_cv_GTest_LIBS="$GTest_LIBS"
12130  elif test -n "$PKG_CONFIG"; then
12131     if test -n "$PKG_CONFIG" && \
12132     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12133   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12134   ac_status=$?
12135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12136   test $ac_status = 0; }; then
12137   pkg_cv_GTest_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
12138                       test "x$?" != "x0" && pkg_failed=yes
12139 else
12140   pkg_failed=yes
12141 fi
12142  else
12143     pkg_failed=untried
12144 fi
12145
12146
12147
12148 if test $pkg_failed = yes; then
12149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151
12152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12153         _pkg_short_errors_supported=yes
12154 else
12155         _pkg_short_errors_supported=no
12156 fi
12157         if test $_pkg_short_errors_supported = yes; then
12158                 GTest_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12159         else
12160                 GTest_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12161         fi
12162         # Put the nasty error message in config.log where it belongs
12163         echo "$GTest_PKG_ERRORS" >&5
12164
12165         gtest=no
12166 elif test $pkg_failed = untried; then
12167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169         gtest=no
12170 else
12171         GTest_CFLAGS=$pkg_cv_GTest_CFLAGS
12172         GTest_LIBS=$pkg_cv_GTest_LIBS
12173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12174 $as_echo "yes" >&6; }
12175         gtest=yes
12176 fi
12177  if test x$gtest = xyes; then
12178   HAVE_GTEST_TRUE=
12179   HAVE_GTEST_FALSE='#'
12180 else
12181   HAVE_GTEST_TRUE='#'
12182   HAVE_GTEST_FALSE=
12183 fi
12184
12185
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
12187 $as_echo_n "checking operating system... " >&6; }
12188 case "$target_os" in
12189      mingw*|cygwin*)
12190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
12191 $as_echo "Win32" >&6; }
12192         UUID=uuid
12193         ;;
12194      darwin*)
12195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
12196 $as_echo "Darwin" >&6; }
12197         UUID=
12198         ;;
12199      *)
12200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
12201 $as_echo "$target_os" >&6; }
12202         UUID=uuid
12203         ;;
12204 esac
12205
12206
12207 pkg_failed=no
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12209 $as_echo_n "checking for LIBGUPNP... " >&6; }
12210
12211 if test -n "$LIBGUPNP_CFLAGS"; then
12212     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12213  elif test -n "$PKG_CONFIG"; then
12214     if test -n "$PKG_CONFIG" && \
12215     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12216                             gio-2.0 \\
12217                             gmodule-2.0 \\
12218                             gssdp-1.0 >= 0.13.0 \\
12219                             libsoup-2.4 >= 2.28.2 \\
12220                             libxml-2.0 \\
12221                             \$UUID\""; } >&5
12222   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12223                             gio-2.0 \
12224                             gmodule-2.0 \
12225                             gssdp-1.0 >= 0.13.0 \
12226                             libsoup-2.4 >= 2.28.2 \
12227                             libxml-2.0 \
12228                             $UUID") 2>&5
12229   ac_status=$?
12230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231   test $ac_status = 0; }; then
12232   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 \
12233                             gio-2.0 \
12234                             gmodule-2.0 \
12235                             gssdp-1.0 >= 0.13.0 \
12236                             libsoup-2.4 >= 2.28.2 \
12237                             libxml-2.0 \
12238                             $UUID" 2>/dev/null`
12239                       test "x$?" != "x0" && pkg_failed=yes
12240 else
12241   pkg_failed=yes
12242 fi
12243  else
12244     pkg_failed=untried
12245 fi
12246 if test -n "$LIBGUPNP_LIBS"; then
12247     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12248  elif test -n "$PKG_CONFIG"; then
12249     if test -n "$PKG_CONFIG" && \
12250     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12251                             gio-2.0 \\
12252                             gmodule-2.0 \\
12253                             gssdp-1.0 >= 0.13.0 \\
12254                             libsoup-2.4 >= 2.28.2 \\
12255                             libxml-2.0 \\
12256                             \$UUID\""; } >&5
12257   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12258                             gio-2.0 \
12259                             gmodule-2.0 \
12260                             gssdp-1.0 >= 0.13.0 \
12261                             libsoup-2.4 >= 2.28.2 \
12262                             libxml-2.0 \
12263                             $UUID") 2>&5
12264   ac_status=$?
12265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266   test $ac_status = 0; }; then
12267   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 \
12268                             gio-2.0 \
12269                             gmodule-2.0 \
12270                             gssdp-1.0 >= 0.13.0 \
12271                             libsoup-2.4 >= 2.28.2 \
12272                             libxml-2.0 \
12273                             $UUID" 2>/dev/null`
12274                       test "x$?" != "x0" && pkg_failed=yes
12275 else
12276   pkg_failed=yes
12277 fi
12278  else
12279     pkg_failed=untried
12280 fi
12281
12282
12283
12284 if test $pkg_failed = yes; then
12285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287
12288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12289         _pkg_short_errors_supported=yes
12290 else
12291         _pkg_short_errors_supported=no
12292 fi
12293         if test $_pkg_short_errors_supported = yes; then
12294                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12295                             gio-2.0 \
12296                             gmodule-2.0 \
12297                             gssdp-1.0 >= 0.13.0 \
12298                             libsoup-2.4 >= 2.28.2 \
12299                             libxml-2.0 \
12300                             $UUID" 2>&1`
12301         else
12302                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12303                             gio-2.0 \
12304                             gmodule-2.0 \
12305                             gssdp-1.0 >= 0.13.0 \
12306                             libsoup-2.4 >= 2.28.2 \
12307                             libxml-2.0 \
12308                             $UUID" 2>&1`
12309         fi
12310         # Put the nasty error message in config.log where it belongs
12311         echo "$LIBGUPNP_PKG_ERRORS" >&5
12312
12313         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 \
12314                             gio-2.0 \
12315                             gmodule-2.0 \
12316                             gssdp-1.0 >= 0.13.0 \
12317                             libsoup-2.4 >= 2.28.2 \
12318                             libxml-2.0 \
12319                             $UUID) were not met:
12320
12321 $LIBGUPNP_PKG_ERRORS
12322
12323 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12324 installed software in a non-standard prefix.
12325
12326 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12327 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12328 See the pkg-config man page for more details." "$LINENO" 5
12329 elif test $pkg_failed = untried; then
12330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12334 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12335 is in your PATH or set the PKG_CONFIG environment variable to the full
12336 path to pkg-config.
12337
12338 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12339 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12340 See the pkg-config man page for more details.
12341
12342 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12343 See \`config.log' for more details" "$LINENO" 5; }
12344 else
12345         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12346         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349
12350 fi
12351
12352
12353 pkg_failed=no
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12355 $as_echo_n "checking for GTHREAD... " >&6; }
12356
12357 if test -n "$GTHREAD_CFLAGS"; then
12358     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12359  elif test -n "$PKG_CONFIG"; then
12360     if test -n "$PKG_CONFIG" && \
12361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12362   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12363   ac_status=$?
12364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12365   test $ac_status = 0; }; then
12366   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
12367                       test "x$?" != "x0" && pkg_failed=yes
12368 else
12369   pkg_failed=yes
12370 fi
12371  else
12372     pkg_failed=untried
12373 fi
12374 if test -n "$GTHREAD_LIBS"; then
12375     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12376  elif test -n "$PKG_CONFIG"; then
12377     if test -n "$PKG_CONFIG" && \
12378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12379   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12380   ac_status=$?
12381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12382   test $ac_status = 0; }; then
12383   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12384                       test "x$?" != "x0" && pkg_failed=yes
12385 else
12386   pkg_failed=yes
12387 fi
12388  else
12389     pkg_failed=untried
12390 fi
12391
12392
12393
12394 if test $pkg_failed = yes; then
12395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397
12398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12399         _pkg_short_errors_supported=yes
12400 else
12401         _pkg_short_errors_supported=no
12402 fi
12403         if test $_pkg_short_errors_supported = yes; then
12404                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12405         else
12406                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12407         fi
12408         # Put the nasty error message in config.log where it belongs
12409         echo "$GTHREAD_PKG_ERRORS" >&5
12410
12411         as_fn_error $? "Package requirements (gthread-2.0) were not met:
12412
12413 $GTHREAD_PKG_ERRORS
12414
12415 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12416 installed software in a non-standard prefix.
12417
12418 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12419 and GTHREAD_LIBS to avoid the need to call pkg-config.
12420 See the pkg-config man page for more details." "$LINENO" 5
12421 elif test $pkg_failed = untried; then
12422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12426 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12427 is in your PATH or set the PKG_CONFIG environment variable to the full
12428 path to pkg-config.
12429
12430 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12431 and GTHREAD_LIBS to avoid the need to call pkg-config.
12432 See the pkg-config man page for more details.
12433
12434 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12435 See \`config.log' for more details" "$LINENO" 5; }
12436 else
12437         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12438         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12440 $as_echo "yes" >&6; }
12441
12442 fi
12443
12444
12445 # Check whether --with-context_manager was given.
12446 if test "${with_context_manager+set}" = set; then :
12447   withval=$with_context_manager;
12448 else
12449   with_context_manager="none"
12450 fi
12451
12452
12453 if test "x$with_context_manager" = "xnone"; then
12454         case "$target_os" in
12455         linux*)
12456                 with_context_manager="linux"
12457                 ;;
12458         *)
12459                 with_context_manager="unix"
12460                 ;;
12461         esac
12462 fi
12463
12464 for ac_header in sys/socket.h linux/rtnetlink.h
12465 do :
12466   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #ifdef HAVE_SYS_SOCKET_H
12468                   #include <sys/socket.h>
12469                   #endif
12470
12471 "
12472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12473   cat >>confdefs.h <<_ACEOF
12474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12475 _ACEOF
12476   HAVE_NETLINK=yes
12477 else
12478    HAVE_NETLINK=no
12479 fi
12480
12481 done
12482
12483  if test "x$HAVE_NETLINK" = "xyes"; then
12484   HAVE_NETLINK_TRUE=
12485   HAVE_NETLINK_FALSE='#'
12486 else
12487   HAVE_NETLINK_TRUE='#'
12488   HAVE_NETLINK_FALSE=
12489 fi
12490
12491
12492
12493 for ac_header in linux/wireless.h
12494 do :
12495   ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " #ifdef HAVE_SYS_SOCKET_H
12496                   #include <sys/socket.h>
12497                   #endif
12498
12499 "
12500 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
12501   cat >>confdefs.h <<_ACEOF
12502 #define HAVE_LINUX_WIRELESS_H 1
12503 _ACEOF
12504
12505 fi
12506
12507 done
12508
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
12511 $as_echo_n "checking Context Manager backend to use... " >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
12513 $as_echo "${with_context_manager}" >&6; }
12514
12515  if test "x$with_context_manager" = "xnetwork-manager"; then
12516   USE_NETWORK_MANAGER_TRUE=
12517   USE_NETWORK_MANAGER_FALSE='#'
12518 else
12519   USE_NETWORK_MANAGER_TRUE='#'
12520   USE_NETWORK_MANAGER_FALSE=
12521 fi
12522
12523 if test "x$with_context_manager" = "xnetwork-manager"; then :
12524
12525 pkg_failed=no
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12527 $as_echo_n "checking for GIO... " >&6; }
12528
12529 if test -n "$GIO_CFLAGS"; then
12530     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12531  elif test -n "$PKG_CONFIG"; then
12532     if test -n "$PKG_CONFIG" && \
12533     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12534   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12535   ac_status=$?
12536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537   test $ac_status = 0; }; then
12538   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12539                       test "x$?" != "x0" && pkg_failed=yes
12540 else
12541   pkg_failed=yes
12542 fi
12543  else
12544     pkg_failed=untried
12545 fi
12546 if test -n "$GIO_LIBS"; then
12547     pkg_cv_GIO_LIBS="$GIO_LIBS"
12548  elif test -n "$PKG_CONFIG"; then
12549     if test -n "$PKG_CONFIG" && \
12550     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12551   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12552   ac_status=$?
12553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12554   test $ac_status = 0; }; then
12555   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12556                       test "x$?" != "x0" && pkg_failed=yes
12557 else
12558   pkg_failed=yes
12559 fi
12560  else
12561     pkg_failed=untried
12562 fi
12563
12564
12565
12566 if test $pkg_failed = yes; then
12567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569
12570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12571         _pkg_short_errors_supported=yes
12572 else
12573         _pkg_short_errors_supported=no
12574 fi
12575         if test $_pkg_short_errors_supported = yes; then
12576                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12577         else
12578                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12579         fi
12580         # Put the nasty error message in config.log where it belongs
12581         echo "$GIO_PKG_ERRORS" >&5
12582
12583         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
12584
12585 $GIO_PKG_ERRORS
12586
12587 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12588 installed software in a non-standard prefix.
12589
12590 Alternatively, you may set the environment variables GIO_CFLAGS
12591 and GIO_LIBS to avoid the need to call pkg-config.
12592 See the pkg-config man page for more details." "$LINENO" 5
12593 elif test $pkg_failed = untried; then
12594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12598 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12599 is in your PATH or set the PKG_CONFIG environment variable to the full
12600 path to pkg-config.
12601
12602 Alternatively, you may set the environment variables GIO_CFLAGS
12603 and GIO_LIBS to avoid the need to call pkg-config.
12604 See the pkg-config man page for more details.
12605
12606 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12607 See \`config.log' for more details" "$LINENO" 5; }
12608 else
12609         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12610         GIO_LIBS=$pkg_cv_GIO_LIBS
12611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12613
12614 fi
12615 fi
12616
12617  if test "x$with_context_manager" = "xconnman"; then
12618   USE_CONNMAN_TRUE=
12619   USE_CONNMAN_FALSE='#'
12620 else
12621   USE_CONNMAN_TRUE='#'
12622   USE_CONNMAN_FALSE=
12623 fi
12624
12625
12626 if test "x$with_context_manager" = "xconnman"; then
12627
12628 pkg_failed=no
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONNMAN" >&5
12630 $as_echo_n "checking for CONNMAN... " >&6; }
12631
12632 if test -n "$CONNMAN_CFLAGS"; then
12633     pkg_cv_CONNMAN_CFLAGS="$CONNMAN_CFLAGS"
12634  elif test -n "$PKG_CONFIG"; then
12635     if test -n "$PKG_CONFIG" && \
12636     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12637   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12638   ac_status=$?
12639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640   test $ac_status = 0; }; then
12641   pkg_cv_CONNMAN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12642                       test "x$?" != "x0" && pkg_failed=yes
12643 else
12644   pkg_failed=yes
12645 fi
12646  else
12647     pkg_failed=untried
12648 fi
12649 if test -n "$CONNMAN_LIBS"; then
12650     pkg_cv_CONNMAN_LIBS="$CONNMAN_LIBS"
12651  elif test -n "$PKG_CONFIG"; then
12652     if test -n "$PKG_CONFIG" && \
12653     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12654   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12655   ac_status=$?
12656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12657   test $ac_status = 0; }; then
12658   pkg_cv_CONNMAN_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12659                       test "x$?" != "x0" && pkg_failed=yes
12660 else
12661   pkg_failed=yes
12662 fi
12663  else
12664     pkg_failed=untried
12665 fi
12666
12667
12668
12669 if test $pkg_failed = yes; then
12670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672
12673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12674         _pkg_short_errors_supported=yes
12675 else
12676         _pkg_short_errors_supported=no
12677 fi
12678         if test $_pkg_short_errors_supported = yes; then
12679                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12680         else
12681                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12682         fi
12683         # Put the nasty error message in config.log where it belongs
12684         echo "$CONNMAN_PKG_ERRORS" >&5
12685
12686         as_fn_error $? "Package requirements (glib-2.0 >= 2.28 connman >= 0.80) were not met:
12687
12688 $CONNMAN_PKG_ERRORS
12689
12690 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12691 installed software in a non-standard prefix.
12692
12693 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12694 and CONNMAN_LIBS to avoid the need to call pkg-config.
12695 See the pkg-config man page for more details." "$LINENO" 5
12696 elif test $pkg_failed = untried; then
12697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12701 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12702 is in your PATH or set the PKG_CONFIG environment variable to the full
12703 path to pkg-config.
12704
12705 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12706 and CONNMAN_LIBS to avoid the need to call pkg-config.
12707 See the pkg-config man page for more details.
12708
12709 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12710 See \`config.log' for more details" "$LINENO" 5; }
12711 else
12712         CONNMAN_CFLAGS=$pkg_cv_CONNMAN_CFLAGS
12713         CONNMAN_LIBS=$pkg_cv_CONNMAN_LIBS
12714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12716
12717 fi
12718 fi
12719
12720 USE_NETLINK=no
12721 if test "x$with_context_manager" = "xlinux"; then :
12722   if test "x$HAVE_NETLINK" = "xno"; then :
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: No rtnetlink found, falling back to static context manager" >&5
12724 $as_echo "$as_me: No rtnetlink found, falling back to static context manager" >&6;}
12725 else
12726   USE_NETLINK=yes
12727 fi
12728
12729 fi
12730
12731  if test "x$USE_NETLINK" = "xyes"; then
12732   USE_NETLINK_TRUE=
12733   USE_NETLINK_FALSE='#'
12734 else
12735   USE_NETLINK_TRUE='#'
12736   USE_NETLINK_FALSE=
12737 fi
12738
12739
12740
12741 # glib-genmarshal
12742 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12743
12744
12745 # Debugging
12746 # Check whether --enable-debug was given.
12747 if test "${enable_debug+set}" = set; then :
12748   enableval=$enable_debug;
12749 else
12750   enable_debug=no
12751 fi
12752
12753 if test "x$enable_debug" = "xyes"; then
12754         CFLAGS="$CFLAGS -g -Wall -Werror"
12755 fi
12756
12757
12758
12759
12760                 # Check whether --enable-introspection was given.
12761 if test "${enable_introspection+set}" = set; then :
12762   enableval=$enable_introspection;
12763 else
12764   enable_introspection=auto
12765 fi
12766
12767
12768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12769 $as_echo_n "checking for gobject-introspection... " >&6; }
12770
12771         case $enable_introspection in #(
12772   no) :
12773             found_introspection="no (disabled, use --enable-introspection to enable)"
12774      ;; #(
12775       yes) :
12776             if test -n "$PKG_CONFIG" && \
12777     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12778   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12779   ac_status=$?
12780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781   test $ac_status = 0; }; then
12782   :
12783 else
12784   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12785 fi
12786         if test -n "$PKG_CONFIG" && \
12787     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12788   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12789   ac_status=$?
12790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791   test $ac_status = 0; }; then
12792   found_introspection=yes
12793 else
12794   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12795 fi
12796      ;; #(
12797       auto) :
12798             if test -n "$PKG_CONFIG" && \
12799     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12800   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12801   ac_status=$?
12802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12803   test $ac_status = 0; }; then
12804   found_introspection=yes
12805 else
12806   found_introspection=no
12807 fi
12808      ;; #(
12809   *) :
12810                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12811      ;;
12812 esac
12813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12814 $as_echo "$found_introspection" >&6; }
12815
12816     INTROSPECTION_SCANNER=
12817     INTROSPECTION_COMPILER=
12818     INTROSPECTION_GENERATE=
12819     INTROSPECTION_GIRDIR=
12820     INTROSPECTION_TYPELIBDIR=
12821     if test "x$found_introspection" = "xyes"; then
12822        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12823        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12824        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12825        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12826        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12827        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12828        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12829        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12830     fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840      if test "x$found_introspection" = "xyes"; then
12841   HAVE_INTROSPECTION_TRUE=
12842   HAVE_INTROSPECTION_FALSE='#'
12843 else
12844   HAVE_INTROSPECTION_TRUE='#'
12845   HAVE_INTROSPECTION_FALSE=
12846 fi
12847
12848
12849
12850
12851 # vapigen
12852 if test "x$found_introspection" = "xyes"; then :
12853
12854        # Extract the first word of "vapigen", so it can be a program name with args.
12855 set dummy vapigen; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if ${ac_cv_path_VAPIGEN+:} false; then :
12859   $as_echo_n "(cached) " >&6
12860 else
12861   case $VAPIGEN in
12862   [\\/]* | ?:[\\/]*)
12863   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12864   ;;
12865   *)
12866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12868 do
12869   IFS=$as_save_IFS
12870   test -z "$as_dir" && as_dir=.
12871     for ac_exec_ext in '' $ac_executable_extensions; do
12872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875     break 2
12876   fi
12877 done
12878   done
12879 IFS=$as_save_IFS
12880
12881   ;;
12882 esac
12883 fi
12884 VAPIGEN=$ac_cv_path_VAPIGEN
12885 if test -n "$VAPIGEN"; then
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12887 $as_echo "$VAPIGEN" >&6; }
12888 else
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893
12894   if test -z "$VAPIGEN"; then :
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12896 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12897 else
12898   if test -n "0.14"; then :
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version 0.14" >&5
12900 $as_echo_n "checking $VAPIGEN is at least version 0.14... " >&6; }
12901          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
12902          as_arg_v1=0.14
12903 as_arg_v2="$am__vapigen_version"
12904 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12905 case $? in #(
12906   1) :
12907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; } ;; #(
12909   0) :
12910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12911 $as_echo "yes" >&6; } ;; #(
12912   2) :
12913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12915             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator 0.14 not found." >&5
12916 $as_echo "$as_me: WARNING: Vala API Generator 0.14 not found." >&2;} ;; #(
12917   *) :
12918      ;;
12919 esac
12920 fi
12921 fi
12922
12923
12924
12925 fi
12926  if test "x$VAPIGEN" != "x"; then
12927   HAVE_VAPIGEN_TRUE=
12928   HAVE_VAPIGEN_FALSE='#'
12929 else
12930   HAVE_VAPIGEN_TRUE='#'
12931   HAVE_VAPIGEN_FALSE=
12932 fi
12933
12934
12935 # Gtk-doc
12936
12937
12938
12939     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12940 set dummy gtkdoc-check; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12944   $as_echo_n "(cached) " >&6
12945 else
12946   case $GTKDOC_CHECK in
12947   [\\/]* | ?:[\\/]*)
12948   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12949   ;;
12950   *)
12951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12953 do
12954   IFS=$as_save_IFS
12955   test -z "$as_dir" && as_dir=.
12956     for ac_exec_ext in '' $ac_executable_extensions; do
12957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12958     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12960     break 2
12961   fi
12962 done
12963   done
12964 IFS=$as_save_IFS
12965
12966   ;;
12967 esac
12968 fi
12969 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12970 if test -n "$GTKDOC_CHECK"; then
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12972 $as_echo "$GTKDOC_CHECK" >&6; }
12973 else
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979   for ac_prog in gtkdoc-rebase
12980 do
12981   # Extract the first word of "$ac_prog", so it can be a program name with args.
12982 set dummy $ac_prog; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   case $GTKDOC_REBASE in
12989   [\\/]* | ?:[\\/]*)
12990   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12991   ;;
12992   *)
12993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12995 do
12996   IFS=$as_save_IFS
12997   test -z "$as_dir" && as_dir=.
12998     for ac_exec_ext in '' $ac_executable_extensions; do
12999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002     break 2
13003   fi
13004 done
13005   done
13006 IFS=$as_save_IFS
13007
13008   ;;
13009 esac
13010 fi
13011 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13012 if test -n "$GTKDOC_REBASE"; then
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13014 $as_echo "$GTKDOC_REBASE" >&6; }
13015 else
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13018 fi
13019
13020
13021   test -n "$GTKDOC_REBASE" && break
13022 done
13023 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13024
13025   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13026 set dummy gtkdoc-mkpdf; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   case $GTKDOC_MKPDF in
13033   [\\/]* | ?:[\\/]*)
13034   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13035   ;;
13036   *)
13037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13039 do
13040   IFS=$as_save_IFS
13041   test -z "$as_dir" && as_dir=.
13042     for ac_exec_ext in '' $ac_executable_extensions; do
13043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046     break 2
13047   fi
13048 done
13049   done
13050 IFS=$as_save_IFS
13051
13052   ;;
13053 esac
13054 fi
13055 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13056 if test -n "$GTKDOC_MKPDF"; then
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13058 $as_echo "$GTKDOC_MKPDF" >&6; }
13059 else
13060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13062 fi
13063
13064
13065
13066
13067 # Check whether --with-html-dir was given.
13068 if test "${with_html_dir+set}" = set; then :
13069   withval=$with_html_dir;
13070 else
13071   with_html_dir='${datadir}/gtk-doc/html'
13072 fi
13073
13074   HTML_DIR="$with_html_dir"
13075
13076
13077     # Check whether --enable-gtk-doc was given.
13078 if test "${enable_gtk_doc+set}" = set; then :
13079   enableval=$enable_gtk_doc;
13080 else
13081   enable_gtk_doc=no
13082 fi
13083
13084
13085   if test x$enable_gtk_doc = xyes; then
13086     if test -n "$PKG_CONFIG" && \
13087     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
13088   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
13089   ac_status=$?
13090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091   test $ac_status = 0; }; then
13092   :
13093 else
13094   as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
13095 fi
13096         if test "x$PACKAGE_NAME" != "xglib"; then
13097
13098 pkg_failed=no
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13100 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13101
13102 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13103     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13104  elif test -n "$PKG_CONFIG"; then
13105     if test -n "$PKG_CONFIG" && \
13106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13107   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13108   ac_status=$?
13109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13110   test $ac_status = 0; }; then
13111   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13112                       test "x$?" != "x0" && pkg_failed=yes
13113 else
13114   pkg_failed=yes
13115 fi
13116  else
13117     pkg_failed=untried
13118 fi
13119 if test -n "$GTKDOC_DEPS_LIBS"; then
13120     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13121  elif test -n "$PKG_CONFIG"; then
13122     if test -n "$PKG_CONFIG" && \
13123     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13124   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13125   ac_status=$?
13126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127   test $ac_status = 0; }; then
13128   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13129                       test "x$?" != "x0" && pkg_failed=yes
13130 else
13131   pkg_failed=yes
13132 fi
13133  else
13134     pkg_failed=untried
13135 fi
13136
13137
13138
13139 if test $pkg_failed = yes; then
13140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142
13143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13144         _pkg_short_errors_supported=yes
13145 else
13146         _pkg_short_errors_supported=no
13147 fi
13148         if test $_pkg_short_errors_supported = yes; then
13149                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13150         else
13151                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13152         fi
13153         # Put the nasty error message in config.log where it belongs
13154         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13155
13156         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13157
13158 $GTKDOC_DEPS_PKG_ERRORS
13159
13160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13161 installed software in a non-standard prefix.
13162
13163 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13164 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13165 See the pkg-config man page for more details." "$LINENO" 5
13166 elif test $pkg_failed = untried; then
13167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13171 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13172 is in your PATH or set the PKG_CONFIG environment variable to the full
13173 path to pkg-config.
13174
13175 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13176 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13177 See the pkg-config man page for more details.
13178
13179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13180 See \`config.log' for more details" "$LINENO" 5; }
13181 else
13182         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13183         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13186
13187 fi
13188     fi
13189   fi
13190
13191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13192 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13194 $as_echo "$enable_gtk_doc" >&6; }
13195
13196     # Check whether --enable-gtk-doc-html was given.
13197 if test "${enable_gtk_doc_html+set}" = set; then :
13198   enableval=$enable_gtk_doc_html;
13199 else
13200   enable_gtk_doc_html=yes
13201 fi
13202
13203     # Check whether --enable-gtk-doc-pdf was given.
13204 if test "${enable_gtk_doc_pdf+set}" = set; then :
13205   enableval=$enable_gtk_doc_pdf;
13206 else
13207   enable_gtk_doc_pdf=no
13208 fi
13209
13210
13211   if test -z "$GTKDOC_MKPDF"; then
13212     enable_gtk_doc_pdf=no
13213   fi
13214
13215
13216    if test x$enable_gtk_doc = xyes; then
13217   ENABLE_GTK_DOC_TRUE=
13218   ENABLE_GTK_DOC_FALSE='#'
13219 else
13220   ENABLE_GTK_DOC_TRUE='#'
13221   ENABLE_GTK_DOC_FALSE=
13222 fi
13223
13224    if test x$enable_gtk_doc_html = xyes; then
13225   GTK_DOC_BUILD_HTML_TRUE=
13226   GTK_DOC_BUILD_HTML_FALSE='#'
13227 else
13228   GTK_DOC_BUILD_HTML_TRUE='#'
13229   GTK_DOC_BUILD_HTML_FALSE=
13230 fi
13231
13232    if test x$enable_gtk_doc_pdf = xyes; then
13233   GTK_DOC_BUILD_PDF_TRUE=
13234   GTK_DOC_BUILD_PDF_FALSE='#'
13235 else
13236   GTK_DOC_BUILD_PDF_TRUE='#'
13237   GTK_DOC_BUILD_PDF_FALSE=
13238 fi
13239
13240    if test -n "$LIBTOOL"; then
13241   GTK_DOC_USE_LIBTOOL_TRUE=
13242   GTK_DOC_USE_LIBTOOL_FALSE='#'
13243 else
13244   GTK_DOC_USE_LIBTOOL_TRUE='#'
13245   GTK_DOC_USE_LIBTOOL_FALSE=
13246 fi
13247
13248    if test -n "$GTKDOC_REBASE"; then
13249   GTK_DOC_USE_REBASE_TRUE=
13250   GTK_DOC_USE_REBASE_FALSE='#'
13251 else
13252   GTK_DOC_USE_REBASE_TRUE='#'
13253   GTK_DOC_USE_REBASE_FALSE=
13254 fi
13255
13256
13257
13258 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile tests/gtest/Makefile doc/Makefile doc/version.xml vala/Makefile gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
13259
13260 cat >confcache <<\_ACEOF
13261 # This file is a shell script that caches the results of configure
13262 # tests run on this system so they can be shared between configure
13263 # scripts and configure runs, see configure's option --config-cache.
13264 # It is not useful on other systems.  If it contains results you don't
13265 # want to keep, you may remove or edit it.
13266 #
13267 # config.status only pays attention to the cache file if you give it
13268 # the --recheck option to rerun configure.
13269 #
13270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13272 # following values.
13273
13274 _ACEOF
13275
13276 # The following way of writing the cache mishandles newlines in values,
13277 # but we know of no workaround that is simple, portable, and efficient.
13278 # So, we kill variables containing newlines.
13279 # Ultrix sh set writes to stderr and can't be redirected directly,
13280 # and sets the high bit in the cache file unless we assign to the vars.
13281 (
13282   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13283     eval ac_val=\$$ac_var
13284     case $ac_val in #(
13285     *${as_nl}*)
13286       case $ac_var in #(
13287       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13289       esac
13290       case $ac_var in #(
13291       _ | IFS | as_nl) ;; #(
13292       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13293       *) { eval $ac_var=; unset $ac_var;} ;;
13294       esac ;;
13295     esac
13296   done
13297
13298   (set) 2>&1 |
13299     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13300     *${as_nl}ac_space=\ *)
13301       # `set' does not quote correctly, so add quotes: double-quote
13302       # substitution turns \\\\ into \\, and sed turns \\ into \.
13303       sed -n \
13304         "s/'/'\\\\''/g;
13305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13306       ;; #(
13307     *)
13308       # `set' quotes correctly as required by POSIX, so do not add quotes.
13309       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13310       ;;
13311     esac |
13312     sort
13313 ) |
13314   sed '
13315      /^ac_cv_env_/b end
13316      t clear
13317      :clear
13318      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13319      t end
13320      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13321      :end' >>confcache
13322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13323   if test -w "$cache_file"; then
13324     if test "x$cache_file" != "x/dev/null"; then
13325       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13326 $as_echo "$as_me: updating cache $cache_file" >&6;}
13327       if test ! -f "$cache_file" || test -h "$cache_file"; then
13328         cat confcache >"$cache_file"
13329       else
13330         case $cache_file in #(
13331         */* | ?:*)
13332           mv -f confcache "$cache_file"$$ &&
13333           mv -f "$cache_file"$$ "$cache_file" ;; #(
13334         *)
13335           mv -f confcache "$cache_file" ;;
13336         esac
13337       fi
13338     fi
13339   else
13340     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13341 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13342   fi
13343 fi
13344 rm -f confcache
13345
13346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13347 # Let make expand exec_prefix.
13348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13349
13350 DEFS=-DHAVE_CONFIG_H
13351
13352 ac_libobjs=
13353 ac_ltlibobjs=
13354 U=
13355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13356   # 1. Remove the extension, and $U if already installed.
13357   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13358   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13359   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13360   #    will be set to the directory where LIBOBJS objects are built.
13361   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13362   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13363 done
13364 LIBOBJS=$ac_libobjs
13365
13366 LTLIBOBJS=$ac_ltlibobjs
13367
13368
13369  if test -n "$EXEEXT"; then
13370   am__EXEEXT_TRUE=
13371   am__EXEEXT_FALSE='#'
13372 else
13373   am__EXEEXT_TRUE='#'
13374   am__EXEEXT_FALSE=
13375 fi
13376
13377 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13378   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13380 fi
13381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13382   as_fn_error $? "conditional \"AMDEP\" was never defined.
13383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13384 fi
13385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13386   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13388 fi
13389 if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
13390   as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
13391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13392 fi
13393 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
13394   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
13395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13396 fi
13397 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
13398   as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13400 fi
13401 if test -z "${USE_CONNMAN_TRUE}" && test -z "${USE_CONNMAN_FALSE}"; then
13402   as_fn_error $? "conditional \"USE_CONNMAN\" was never defined.
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13404 fi
13405 if test -z "${USE_NETLINK_TRUE}" && test -z "${USE_NETLINK_FALSE}"; then
13406   as_fn_error $? "conditional \"USE_NETLINK\" was never defined.
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13408 fi
13409 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13410   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13412 fi
13413 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13414   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13416 fi
13417 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13418   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13420 fi
13421 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13422   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13424 fi
13425 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13426   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13428 fi
13429 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13430   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13432 fi
13433 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13434   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13436 fi
13437
13438 : "${CONFIG_STATUS=./config.status}"
13439 ac_write_fail=0
13440 ac_clean_files_save=$ac_clean_files
13441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13443 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13444 as_write_fail=0
13445 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13446 #! $SHELL
13447 # Generated by $as_me.
13448 # Run this file to recreate the current configuration.
13449 # Compiler output produced by configure, useful for debugging
13450 # configure, is in config.log if it exists.
13451
13452 debug=false
13453 ac_cs_recheck=false
13454 ac_cs_silent=false
13455
13456 SHELL=\${CONFIG_SHELL-$SHELL}
13457 export SHELL
13458 _ASEOF
13459 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13460 ## -------------------- ##
13461 ## M4sh Initialization. ##
13462 ## -------------------- ##
13463
13464 # Be more Bourne compatible
13465 DUALCASE=1; export DUALCASE # for MKS sh
13466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13467   emulate sh
13468   NULLCMD=:
13469   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13470   # is contrary to our usage.  Disable this feature.
13471   alias -g '${1+"$@"}'='"$@"'
13472   setopt NO_GLOB_SUBST
13473 else
13474   case `(set -o) 2>/dev/null` in #(
13475   *posix*) :
13476     set -o posix ;; #(
13477   *) :
13478      ;;
13479 esac
13480 fi
13481
13482
13483 as_nl='
13484 '
13485 export as_nl
13486 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13487 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13490 # Prefer a ksh shell builtin over an external printf program on Solaris,
13491 # but without wasting forks for bash or zsh.
13492 if test -z "$BASH_VERSION$ZSH_VERSION" \
13493     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13494   as_echo='print -r --'
13495   as_echo_n='print -rn --'
13496 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13497   as_echo='printf %s\n'
13498   as_echo_n='printf %s'
13499 else
13500   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13501     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13502     as_echo_n='/usr/ucb/echo -n'
13503   else
13504     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13505     as_echo_n_body='eval
13506       arg=$1;
13507       case $arg in #(
13508       *"$as_nl"*)
13509         expr "X$arg" : "X\\(.*\\)$as_nl";
13510         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13511       esac;
13512       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13513     '
13514     export as_echo_n_body
13515     as_echo_n='sh -c $as_echo_n_body as_echo'
13516   fi
13517   export as_echo_body
13518   as_echo='sh -c $as_echo_body as_echo'
13519 fi
13520
13521 # The user is always right.
13522 if test "${PATH_SEPARATOR+set}" != set; then
13523   PATH_SEPARATOR=:
13524   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13525     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13526       PATH_SEPARATOR=';'
13527   }
13528 fi
13529
13530
13531 # IFS
13532 # We need space, tab and new line, in precisely that order.  Quoting is
13533 # there to prevent editors from complaining about space-tab.
13534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13535 # splitting by setting IFS to empty value.)
13536 IFS=" ""        $as_nl"
13537
13538 # Find who we are.  Look in the path if we contain no directory separator.
13539 as_myself=
13540 case $0 in #((
13541   *[\\/]* ) as_myself=$0 ;;
13542   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13544 do
13545   IFS=$as_save_IFS
13546   test -z "$as_dir" && as_dir=.
13547     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13548   done
13549 IFS=$as_save_IFS
13550
13551      ;;
13552 esac
13553 # We did not find ourselves, most probably we were run as `sh COMMAND'
13554 # in which case we are not to be found in the path.
13555 if test "x$as_myself" = x; then
13556   as_myself=$0
13557 fi
13558 if test ! -f "$as_myself"; then
13559   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13560   exit 1
13561 fi
13562
13563 # Unset variables that we do not need and which cause bugs (e.g. in
13564 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13565 # suppresses any "Segmentation fault" message there.  '((' could
13566 # trigger a bug in pdksh 5.2.14.
13567 for as_var in BASH_ENV ENV MAIL MAILPATH
13568 do eval test x\${$as_var+set} = xset \
13569   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13570 done
13571 PS1='$ '
13572 PS2='> '
13573 PS4='+ '
13574
13575 # NLS nuisances.
13576 LC_ALL=C
13577 export LC_ALL
13578 LANGUAGE=C
13579 export LANGUAGE
13580
13581 # CDPATH.
13582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13583
13584
13585 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13586 # ----------------------------------------
13587 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13588 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13589 # script with STATUS, using 1 if that was 0.
13590 as_fn_error ()
13591 {
13592   as_status=$1; test $as_status -eq 0 && as_status=1
13593   if test "$4"; then
13594     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13595     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13596   fi
13597   $as_echo "$as_me: error: $2" >&2
13598   as_fn_exit $as_status
13599 } # as_fn_error
13600
13601
13602 # as_fn_set_status STATUS
13603 # -----------------------
13604 # Set $? to STATUS, without forking.
13605 as_fn_set_status ()
13606 {
13607   return $1
13608 } # as_fn_set_status
13609
13610 # as_fn_exit STATUS
13611 # -----------------
13612 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13613 as_fn_exit ()
13614 {
13615   set +e
13616   as_fn_set_status $1
13617   exit $1
13618 } # as_fn_exit
13619
13620 # as_fn_unset VAR
13621 # ---------------
13622 # Portably unset VAR.
13623 as_fn_unset ()
13624 {
13625   { eval $1=; unset $1;}
13626 }
13627 as_unset=as_fn_unset
13628 # as_fn_append VAR VALUE
13629 # ----------------------
13630 # Append the text in VALUE to the end of the definition contained in VAR. Take
13631 # advantage of any shell optimizations that allow amortized linear growth over
13632 # repeated appends, instead of the typical quadratic growth present in naive
13633 # implementations.
13634 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13635   eval 'as_fn_append ()
13636   {
13637     eval $1+=\$2
13638   }'
13639 else
13640   as_fn_append ()
13641   {
13642     eval $1=\$$1\$2
13643   }
13644 fi # as_fn_append
13645
13646 # as_fn_arith ARG...
13647 # ------------------
13648 # Perform arithmetic evaluation on the ARGs, and store the result in the
13649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13650 # must be portable across $(()) and expr.
13651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13652   eval 'as_fn_arith ()
13653   {
13654     as_val=$(( $* ))
13655   }'
13656 else
13657   as_fn_arith ()
13658   {
13659     as_val=`expr "$@" || test $? -eq 1`
13660   }
13661 fi # as_fn_arith
13662
13663
13664 if expr a : '\(a\)' >/dev/null 2>&1 &&
13665    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13666   as_expr=expr
13667 else
13668   as_expr=false
13669 fi
13670
13671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13672   as_basename=basename
13673 else
13674   as_basename=false
13675 fi
13676
13677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13678   as_dirname=dirname
13679 else
13680   as_dirname=false
13681 fi
13682
13683 as_me=`$as_basename -- "$0" ||
13684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13685          X"$0" : 'X\(//\)$' \| \
13686          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13687 $as_echo X/"$0" |
13688     sed '/^.*\/\([^/][^/]*\)\/*$/{
13689             s//\1/
13690             q
13691           }
13692           /^X\/\(\/\/\)$/{
13693             s//\1/
13694             q
13695           }
13696           /^X\/\(\/\).*/{
13697             s//\1/
13698             q
13699           }
13700           s/.*/./; q'`
13701
13702 # Avoid depending upon Character Ranges.
13703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13706 as_cr_digits='0123456789'
13707 as_cr_alnum=$as_cr_Letters$as_cr_digits
13708
13709 ECHO_C= ECHO_N= ECHO_T=
13710 case `echo -n x` in #(((((
13711 -n*)
13712   case `echo 'xy\c'` in
13713   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13714   xy)  ECHO_C='\c';;
13715   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13716        ECHO_T=' ';;
13717   esac;;
13718 *)
13719   ECHO_N='-n';;
13720 esac
13721
13722 rm -f conf$$ conf$$.exe conf$$.file
13723 if test -d conf$$.dir; then
13724   rm -f conf$$.dir/conf$$.file
13725 else
13726   rm -f conf$$.dir
13727   mkdir conf$$.dir 2>/dev/null
13728 fi
13729 if (echo >conf$$.file) 2>/dev/null; then
13730   if ln -s conf$$.file conf$$ 2>/dev/null; then
13731     as_ln_s='ln -s'
13732     # ... but there are two gotchas:
13733     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13734     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13735     # In both cases, we have to default to `cp -pR'.
13736     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13737       as_ln_s='cp -pR'
13738   elif ln conf$$.file conf$$ 2>/dev/null; then
13739     as_ln_s=ln
13740   else
13741     as_ln_s='cp -pR'
13742   fi
13743 else
13744   as_ln_s='cp -pR'
13745 fi
13746 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13747 rmdir conf$$.dir 2>/dev/null
13748
13749
13750 # as_fn_mkdir_p
13751 # -------------
13752 # Create "$as_dir" as a directory, including parents if necessary.
13753 as_fn_mkdir_p ()
13754 {
13755
13756   case $as_dir in #(
13757   -*) as_dir=./$as_dir;;
13758   esac
13759   test -d "$as_dir" || eval $as_mkdir_p || {
13760     as_dirs=
13761     while :; do
13762       case $as_dir in #(
13763       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13764       *) as_qdir=$as_dir;;
13765       esac
13766       as_dirs="'$as_qdir' $as_dirs"
13767       as_dir=`$as_dirname -- "$as_dir" ||
13768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769          X"$as_dir" : 'X\(//\)[^/]' \| \
13770          X"$as_dir" : 'X\(//\)$' \| \
13771          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13772 $as_echo X"$as_dir" |
13773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13774             s//\1/
13775             q
13776           }
13777           /^X\(\/\/\)[^/].*/{
13778             s//\1/
13779             q
13780           }
13781           /^X\(\/\/\)$/{
13782             s//\1/
13783             q
13784           }
13785           /^X\(\/\).*/{
13786             s//\1/
13787             q
13788           }
13789           s/.*/./; q'`
13790       test -d "$as_dir" && break
13791     done
13792     test -z "$as_dirs" || eval "mkdir $as_dirs"
13793   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13794
13795
13796 } # as_fn_mkdir_p
13797 if mkdir -p . 2>/dev/null; then
13798   as_mkdir_p='mkdir -p "$as_dir"'
13799 else
13800   test -d ./-p && rmdir ./-p
13801   as_mkdir_p=false
13802 fi
13803
13804
13805 # as_fn_executable_p FILE
13806 # -----------------------
13807 # Test if FILE is an executable regular file.
13808 as_fn_executable_p ()
13809 {
13810   test -f "$1" && test -x "$1"
13811 } # as_fn_executable_p
13812 as_test_x='test -x'
13813 as_executable_p=as_fn_executable_p
13814
13815 # Sed expression to map a string onto a valid CPP name.
13816 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13817
13818 # Sed expression to map a string onto a valid variable name.
13819 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13820
13821
13822 exec 6>&1
13823 ## ----------------------------------- ##
13824 ## Main body of $CONFIG_STATUS script. ##
13825 ## ----------------------------------- ##
13826 _ASEOF
13827 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13828
13829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13830 # Save the log message, to keep $0 and so on meaningful, and to
13831 # report actual input values of CONFIG_FILES etc. instead of their
13832 # values after options handling.
13833 ac_log="
13834 This file was extended by gupnp $as_me 0.19.1, which was
13835 generated by GNU Autoconf 2.69.  Invocation command line was
13836
13837   CONFIG_FILES    = $CONFIG_FILES
13838   CONFIG_HEADERS  = $CONFIG_HEADERS
13839   CONFIG_LINKS    = $CONFIG_LINKS
13840   CONFIG_COMMANDS = $CONFIG_COMMANDS
13841   $ $0 $@
13842
13843 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13844 "
13845
13846 _ACEOF
13847
13848 case $ac_config_files in *"
13849 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13850 esac
13851
13852 case $ac_config_headers in *"
13853 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13854 esac
13855
13856
13857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13858 # Files that config.status was made for.
13859 config_files="$ac_config_files"
13860 config_headers="$ac_config_headers"
13861 config_commands="$ac_config_commands"
13862
13863 _ACEOF
13864
13865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13866 ac_cs_usage="\
13867 \`$as_me' instantiates files and other configuration actions
13868 from templates according to the current configuration.  Unless the files
13869 and actions are specified as TAGs, all are instantiated by default.
13870
13871 Usage: $0 [OPTION]... [TAG]...
13872
13873   -h, --help       print this help, then exit
13874   -V, --version    print version number and configuration settings, then exit
13875       --config     print configuration, then exit
13876   -q, --quiet, --silent
13877                    do not print progress messages
13878   -d, --debug      don't remove temporary files
13879       --recheck    update $as_me by reconfiguring in the same conditions
13880       --file=FILE[:TEMPLATE]
13881                    instantiate the configuration file FILE
13882       --header=FILE[:TEMPLATE]
13883                    instantiate the configuration header FILE
13884
13885 Configuration files:
13886 $config_files
13887
13888 Configuration headers:
13889 $config_headers
13890
13891 Configuration commands:
13892 $config_commands
13893
13894 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
13895 gupnp home page: <http://www.gupnp.org/>."
13896
13897 _ACEOF
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13900 ac_cs_version="\\
13901 gupnp config.status 0.19.1
13902 configured by $0, generated by GNU Autoconf 2.69,
13903   with options \\"\$ac_cs_config\\"
13904
13905 Copyright (C) 2012 Free Software Foundation, Inc.
13906 This config.status script is free software; the Free Software Foundation
13907 gives unlimited permission to copy, distribute and modify it."
13908
13909 ac_pwd='$ac_pwd'
13910 srcdir='$srcdir'
13911 INSTALL='$INSTALL'
13912 MKDIR_P='$MKDIR_P'
13913 AWK='$AWK'
13914 test -n "\$AWK" || AWK=awk
13915 _ACEOF
13916
13917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13918 # The default lists apply if the user does not specify any file.
13919 ac_need_defaults=:
13920 while test $# != 0
13921 do
13922   case $1 in
13923   --*=?*)
13924     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13925     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13926     ac_shift=:
13927     ;;
13928   --*=)
13929     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13930     ac_optarg=
13931     ac_shift=:
13932     ;;
13933   *)
13934     ac_option=$1
13935     ac_optarg=$2
13936     ac_shift=shift
13937     ;;
13938   esac
13939
13940   case $ac_option in
13941   # Handling of the options.
13942   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13943     ac_cs_recheck=: ;;
13944   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13945     $as_echo "$ac_cs_version"; exit ;;
13946   --config | --confi | --conf | --con | --co | --c )
13947     $as_echo "$ac_cs_config"; exit ;;
13948   --debug | --debu | --deb | --de | --d | -d )
13949     debug=: ;;
13950   --file | --fil | --fi | --f )
13951     $ac_shift
13952     case $ac_optarg in
13953     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13954     '') as_fn_error $? "missing file argument" ;;
13955     esac
13956     as_fn_append CONFIG_FILES " '$ac_optarg'"
13957     ac_need_defaults=false;;
13958   --header | --heade | --head | --hea )
13959     $ac_shift
13960     case $ac_optarg in
13961     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13962     esac
13963     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13964     ac_need_defaults=false;;
13965   --he | --h)
13966     # Conflict between --help and --header
13967     as_fn_error $? "ambiguous option: \`$1'
13968 Try \`$0 --help' for more information.";;
13969   --help | --hel | -h )
13970     $as_echo "$ac_cs_usage"; exit ;;
13971   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13972   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13973     ac_cs_silent=: ;;
13974
13975   # This is an error.
13976   -*) as_fn_error $? "unrecognized option: \`$1'
13977 Try \`$0 --help' for more information." ;;
13978
13979   *) as_fn_append ac_config_targets " $1"
13980      ac_need_defaults=false ;;
13981
13982   esac
13983   shift
13984 done
13985
13986 ac_configure_extra_args=
13987
13988 if $ac_cs_silent; then
13989   exec 6>/dev/null
13990   ac_configure_extra_args="$ac_configure_extra_args --silent"
13991 fi
13992
13993 _ACEOF
13994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995 if \$ac_cs_recheck; then
13996   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13997   shift
13998   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13999   CONFIG_SHELL='$SHELL'
14000   export CONFIG_SHELL
14001   exec "\$@"
14002 fi
14003
14004 _ACEOF
14005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14006 exec 5>>config.log
14007 {
14008   echo
14009   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14010 ## Running $as_me. ##
14011 _ASBOX
14012   $as_echo "$ac_log"
14013 } >&5
14014
14015 _ACEOF
14016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14017 #
14018 # INIT-COMMANDS
14019 #
14020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14021
14022
14023 # The HP-UX ksh and POSIX shell print the target directory to stdout
14024 # if CDPATH is set.
14025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14026
14027 sed_quote_subst='$sed_quote_subst'
14028 double_quote_subst='$double_quote_subst'
14029 delay_variable_subst='$delay_variable_subst'
14030 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14031 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14032 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14033 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14034 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14035 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14036 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14037 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14038 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14039 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14040 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14041 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14042 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14043 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14044 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14045 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14046 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14047 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14048 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14049 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14050 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14051 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14052 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14053 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14054 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14055 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14056 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14057 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14058 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14059 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14060 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14061 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14062 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14063 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14064 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14065 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14066 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14067 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14068 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14069 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14070 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14071 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14072 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14073 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14074 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14075 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14076 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14077 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14078 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14079 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14080 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14081 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14082 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14083 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14084 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14085 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14086 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"`'
14087 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14088 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14089 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14090 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14091 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14092 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14093 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14094 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14095 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14096 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14097 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14098 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14099 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14100 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14101 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14102 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14103 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14104 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14105 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14106 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14107 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14108 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14109 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14110 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14111 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14112 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14113 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14114 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14115 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14116 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14117 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14118 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14119 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14120 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14121 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14122 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14123 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14124 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14125 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14126 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14127 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14128 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14129 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14130 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14131 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14132 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14133 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14134 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14135 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14136 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14137 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14138 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14139 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14140 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14141 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14142 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14143 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14144 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14145 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14146 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14147 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14148 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14149 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14150 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14151 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14152 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14153 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14154 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14155 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14156 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14157 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14158 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14159 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14160
14161 LTCC='$LTCC'
14162 LTCFLAGS='$LTCFLAGS'
14163 compiler='$compiler_DEFAULT'
14164
14165 # A function that is used when there is no print builtin or printf.
14166 func_fallback_echo ()
14167 {
14168   eval 'cat <<_LTECHO_EOF
14169 \$1
14170 _LTECHO_EOF'
14171 }
14172
14173 # Quote evaled strings.
14174 for var in SHELL \
14175 ECHO \
14176 PATH_SEPARATOR \
14177 SED \
14178 GREP \
14179 EGREP \
14180 FGREP \
14181 LD \
14182 NM \
14183 LN_S \
14184 lt_SP2NL \
14185 lt_NL2SP \
14186 reload_flag \
14187 OBJDUMP \
14188 deplibs_check_method \
14189 file_magic_cmd \
14190 file_magic_glob \
14191 want_nocaseglob \
14192 DLLTOOL \
14193 sharedlib_from_linklib_cmd \
14194 AR \
14195 AR_FLAGS \
14196 archiver_list_spec \
14197 STRIP \
14198 RANLIB \
14199 CC \
14200 CFLAGS \
14201 compiler \
14202 lt_cv_sys_global_symbol_pipe \
14203 lt_cv_sys_global_symbol_to_cdecl \
14204 lt_cv_sys_global_symbol_to_c_name_address \
14205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14206 nm_file_list_spec \
14207 lt_prog_compiler_no_builtin_flag \
14208 lt_prog_compiler_pic \
14209 lt_prog_compiler_wl \
14210 lt_prog_compiler_static \
14211 lt_cv_prog_compiler_c_o \
14212 need_locks \
14213 MANIFEST_TOOL \
14214 DSYMUTIL \
14215 NMEDIT \
14216 LIPO \
14217 OTOOL \
14218 OTOOL64 \
14219 shrext_cmds \
14220 export_dynamic_flag_spec \
14221 whole_archive_flag_spec \
14222 compiler_needs_object \
14223 with_gnu_ld \
14224 allow_undefined_flag \
14225 no_undefined_flag \
14226 hardcode_libdir_flag_spec \
14227 hardcode_libdir_separator \
14228 exclude_expsyms \
14229 include_expsyms \
14230 file_list_spec \
14231 variables_saved_for_relink \
14232 libname_spec \
14233 library_names_spec \
14234 soname_spec \
14235 install_override_mode \
14236 finish_eval \
14237 old_striplib \
14238 striplib; do
14239     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14240     *[\\\\\\\`\\"\\\$]*)
14241       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14242       ;;
14243     *)
14244       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14245       ;;
14246     esac
14247 done
14248
14249 # Double-quote double-evaled strings.
14250 for var in reload_cmds \
14251 old_postinstall_cmds \
14252 old_postuninstall_cmds \
14253 old_archive_cmds \
14254 extract_expsyms_cmds \
14255 old_archive_from_new_cmds \
14256 old_archive_from_expsyms_cmds \
14257 archive_cmds \
14258 archive_expsym_cmds \
14259 module_cmds \
14260 module_expsym_cmds \
14261 export_symbols_cmds \
14262 prelink_cmds \
14263 postlink_cmds \
14264 postinstall_cmds \
14265 postuninstall_cmds \
14266 finish_cmds \
14267 sys_lib_search_path_spec \
14268 sys_lib_dlsearch_path_spec; do
14269     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14270     *[\\\\\\\`\\"\\\$]*)
14271       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14272       ;;
14273     *)
14274       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14275       ;;
14276     esac
14277 done
14278
14279 ac_aux_dir='$ac_aux_dir'
14280 xsi_shell='$xsi_shell'
14281 lt_shell_append='$lt_shell_append'
14282
14283 # See if we are running on zsh, and set the options which allow our
14284 # commands through without removal of \ escapes INIT.
14285 if test -n "\${ZSH_VERSION+set}" ; then
14286    setopt NO_GLOB_SUBST
14287 fi
14288
14289
14290     PACKAGE='$PACKAGE'
14291     VERSION='$VERSION'
14292     TIMESTAMP='$TIMESTAMP'
14293     RM='$RM'
14294     ofile='$ofile'
14295
14296
14297
14298
14299 _ACEOF
14300
14301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14302
14303 # Handling of arguments.
14304 for ac_config_target in $ac_config_targets
14305 do
14306   case $ac_config_target in
14307     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14308     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14309     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14310     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14311     "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
14312     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14313     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14314     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14315     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14316     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14317     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14318     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14319     "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
14320     "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
14321
14322   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14323   esac
14324 done
14325
14326
14327 # If the user did not use the arguments to specify the items to instantiate,
14328 # then the envvar interface is used.  Set only those that are not.
14329 # We use the long form for the default assignment because of an extremely
14330 # bizarre bug on SunOS 4.1.3.
14331 if $ac_need_defaults; then
14332   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14333   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14334   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14335 fi
14336
14337 # Have a temporary directory for convenience.  Make it in the build tree
14338 # simply because there is no reason against having it here, and in addition,
14339 # creating and moving files from /tmp can sometimes cause problems.
14340 # Hook for its removal unless debugging.
14341 # Note that there is a small window in which the directory will not be cleaned:
14342 # after its creation but before its name has been assigned to `$tmp'.
14343 $debug ||
14344 {
14345   tmp= ac_tmp=
14346   trap 'exit_status=$?
14347   : "${ac_tmp:=$tmp}"
14348   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14349 ' 0
14350   trap 'as_fn_exit 1' 1 2 13 15
14351 }
14352 # Create a (secure) tmp directory for tmp files.
14353
14354 {
14355   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14356   test -d "$tmp"
14357 }  ||
14358 {
14359   tmp=./conf$$-$RANDOM
14360   (umask 077 && mkdir "$tmp")
14361 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14362 ac_tmp=$tmp
14363
14364 # Set up the scripts for CONFIG_FILES section.
14365 # No need to generate them if there are no CONFIG_FILES.
14366 # This happens for instance with `./config.status config.h'.
14367 if test -n "$CONFIG_FILES"; then
14368
14369
14370 ac_cr=`echo X | tr X '\015'`
14371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14372 # But we know of no other shell where ac_cr would be empty at this
14373 # point, so we can use a bashism as a fallback.
14374 if test "x$ac_cr" = x; then
14375   eval ac_cr=\$\'\\r\'
14376 fi
14377 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14379   ac_cs_awk_cr='\\r'
14380 else
14381   ac_cs_awk_cr=$ac_cr
14382 fi
14383
14384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14385 _ACEOF
14386
14387
14388 {
14389   echo "cat >conf$$subs.awk <<_ACEOF" &&
14390   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14391   echo "_ACEOF"
14392 } >conf$$subs.sh ||
14393   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14395 ac_delim='%!_!# '
14396 for ac_last_try in false false false false false :; do
14397   . ./conf$$subs.sh ||
14398     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14399
14400   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14401   if test $ac_delim_n = $ac_delim_num; then
14402     break
14403   elif $ac_last_try; then
14404     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14405   else
14406     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14407   fi
14408 done
14409 rm -f conf$$subs.sh
14410
14411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14413 _ACEOF
14414 sed -n '
14415 h
14416 s/^/S["/; s/!.*/"]=/
14417 p
14418 g
14419 s/^[^!]*!//
14420 :repl
14421 t repl
14422 s/'"$ac_delim"'$//
14423 t delim
14424 :nl
14425 h
14426 s/\(.\{148\}\)..*/\1/
14427 t more1
14428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14429 p
14430 n
14431 b repl
14432 :more1
14433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14434 p
14435 g
14436 s/.\{148\}//
14437 t nl
14438 :delim
14439 h
14440 s/\(.\{148\}\)..*/\1/
14441 t more2
14442 s/["\\]/\\&/g; s/^/"/; s/$/"/
14443 p
14444 b
14445 :more2
14446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14447 p
14448 g
14449 s/.\{148\}//
14450 t delim
14451 ' <conf$$subs.awk | sed '
14452 /^[^""]/{
14453   N
14454   s/\n//
14455 }
14456 ' >>$CONFIG_STATUS || ac_write_fail=1
14457 rm -f conf$$subs.awk
14458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459 _ACAWK
14460 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14461   for (key in S) S_is_set[key] = 1
14462   FS = "\a"
14463
14464 }
14465 {
14466   line = $ 0
14467   nfields = split(line, field, "@")
14468   substed = 0
14469   len = length(field[1])
14470   for (i = 2; i < nfields; i++) {
14471     key = field[i]
14472     keylen = length(key)
14473     if (S_is_set[key]) {
14474       value = S[key]
14475       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14476       len += length(value) + length(field[++i])
14477       substed = 1
14478     } else
14479       len += 1 + keylen
14480   }
14481
14482   print line
14483 }
14484
14485 _ACAWK
14486 _ACEOF
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14489   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14490 else
14491   cat
14492 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14493   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14494 _ACEOF
14495
14496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14498 # trailing colons and then remove the whole line if VPATH becomes empty
14499 # (actually we leave an empty line to preserve line numbers).
14500 if test "x$srcdir" = x.; then
14501   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14502 h
14503 s///
14504 s/^/:/
14505 s/[      ]*$/:/
14506 s/:\$(srcdir):/:/g
14507 s/:\${srcdir}:/:/g
14508 s/:@srcdir@:/:/g
14509 s/^:*//
14510 s/:*$//
14511 x
14512 s/\(=[   ]*\).*/\1/
14513 G
14514 s/\n//
14515 s/^[^=]*=[       ]*$//
14516 }'
14517 fi
14518
14519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14520 fi # test -n "$CONFIG_FILES"
14521
14522 # Set up the scripts for CONFIG_HEADERS section.
14523 # No need to generate them if there are no CONFIG_HEADERS.
14524 # This happens for instance with `./config.status Makefile'.
14525 if test -n "$CONFIG_HEADERS"; then
14526 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14527 BEGIN {
14528 _ACEOF
14529
14530 # Transform confdefs.h into an awk script `defines.awk', embedded as
14531 # here-document in config.status, that substitutes the proper values into
14532 # config.h.in to produce config.h.
14533
14534 # Create a delimiter string that does not exist in confdefs.h, to ease
14535 # handling of long lines.
14536 ac_delim='%!_!# '
14537 for ac_last_try in false false :; do
14538   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14539   if test -z "$ac_tt"; then
14540     break
14541   elif $ac_last_try; then
14542     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14543   else
14544     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14545   fi
14546 done
14547
14548 # For the awk script, D is an array of macro values keyed by name,
14549 # likewise P contains macro parameters if any.  Preserve backslash
14550 # newline sequences.
14551
14552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14553 sed -n '
14554 s/.\{148\}/&'"$ac_delim"'/g
14555 t rset
14556 :rset
14557 s/^[     ]*#[    ]*define[       ][      ]*/ /
14558 t def
14559 d
14560 :def
14561 s/\\$//
14562 t bsnl
14563 s/["\\]/\\&/g
14564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14565 D["\1"]=" \3"/p
14566 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14567 d
14568 :bsnl
14569 s/["\\]/\\&/g
14570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14571 D["\1"]=" \3\\\\\\n"\\/p
14572 t cont
14573 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14574 t cont
14575 d
14576 :cont
14577 n
14578 s/.\{148\}/&'"$ac_delim"'/g
14579 t clear
14580 :clear
14581 s/\\$//
14582 t bsnlc
14583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14584 d
14585 :bsnlc
14586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14587 b cont
14588 ' <confdefs.h | sed '
14589 s/'"$ac_delim"'/"\\\
14590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14591
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593   for (key in D) D_is_set[key] = 1
14594   FS = "\a"
14595 }
14596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14597   line = \$ 0
14598   split(line, arg, " ")
14599   if (arg[1] == "#") {
14600     defundef = arg[2]
14601     mac1 = arg[3]
14602   } else {
14603     defundef = substr(arg[1], 2)
14604     mac1 = arg[2]
14605   }
14606   split(mac1, mac2, "(") #)
14607   macro = mac2[1]
14608   prefix = substr(line, 1, index(line, defundef) - 1)
14609   if (D_is_set[macro]) {
14610     # Preserve the white space surrounding the "#".
14611     print prefix "define", macro P[macro] D[macro]
14612     next
14613   } else {
14614     # Replace #undef with comments.  This is necessary, for example,
14615     # in the case of _POSIX_SOURCE, which is predefined and required
14616     # on some systems where configure will not decide to define it.
14617     if (defundef == "undef") {
14618       print "/*", prefix defundef, macro, "*/"
14619       next
14620     }
14621   }
14622 }
14623 { print }
14624 _ACAWK
14625 _ACEOF
14626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14627   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14628 fi # test -n "$CONFIG_HEADERS"
14629
14630
14631 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14632 shift
14633 for ac_tag
14634 do
14635   case $ac_tag in
14636   :[FHLC]) ac_mode=$ac_tag; continue;;
14637   esac
14638   case $ac_mode$ac_tag in
14639   :[FHL]*:*);;
14640   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14641   :[FH]-) ac_tag=-:-;;
14642   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14643   esac
14644   ac_save_IFS=$IFS
14645   IFS=:
14646   set x $ac_tag
14647   IFS=$ac_save_IFS
14648   shift
14649   ac_file=$1
14650   shift
14651
14652   case $ac_mode in
14653   :L) ac_source=$1;;
14654   :[FH])
14655     ac_file_inputs=
14656     for ac_f
14657     do
14658       case $ac_f in
14659       -) ac_f="$ac_tmp/stdin";;
14660       *) # Look for the file first in the build tree, then in the source tree
14661          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14662          # because $ac_f cannot contain `:'.
14663          test -f "$ac_f" ||
14664            case $ac_f in
14665            [\\/$]*) false;;
14666            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14667            esac ||
14668            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14669       esac
14670       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14671       as_fn_append ac_file_inputs " '$ac_f'"
14672     done
14673
14674     # Let's still pretend it is `configure' which instantiates (i.e., don't
14675     # use $as_me), people would be surprised to read:
14676     #    /* config.h.  Generated by config.status.  */
14677     configure_input='Generated from '`
14678           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14679         `' by configure.'
14680     if test x"$ac_file" != x-; then
14681       configure_input="$ac_file.  $configure_input"
14682       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14683 $as_echo "$as_me: creating $ac_file" >&6;}
14684     fi
14685     # Neutralize special characters interpreted by sed in replacement strings.
14686     case $configure_input in #(
14687     *\&* | *\|* | *\\* )
14688        ac_sed_conf_input=`$as_echo "$configure_input" |
14689        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14690     *) ac_sed_conf_input=$configure_input;;
14691     esac
14692
14693     case $ac_tag in
14694     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14695       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14696     esac
14697     ;;
14698   esac
14699
14700   ac_dir=`$as_dirname -- "$ac_file" ||
14701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702          X"$ac_file" : 'X\(//\)[^/]' \| \
14703          X"$ac_file" : 'X\(//\)$' \| \
14704          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X"$ac_file" |
14706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14707             s//\1/
14708             q
14709           }
14710           /^X\(\/\/\)[^/].*/{
14711             s//\1/
14712             q
14713           }
14714           /^X\(\/\/\)$/{
14715             s//\1/
14716             q
14717           }
14718           /^X\(\/\).*/{
14719             s//\1/
14720             q
14721           }
14722           s/.*/./; q'`
14723   as_dir="$ac_dir"; as_fn_mkdir_p
14724   ac_builddir=.
14725
14726 case "$ac_dir" in
14727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14728 *)
14729   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14730   # A ".." for each directory in $ac_dir_suffix.
14731   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14732   case $ac_top_builddir_sub in
14733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14735   esac ;;
14736 esac
14737 ac_abs_top_builddir=$ac_pwd
14738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14739 # for backward compatibility:
14740 ac_top_builddir=$ac_top_build_prefix
14741
14742 case $srcdir in
14743   .)  # We are building in place.
14744     ac_srcdir=.
14745     ac_top_srcdir=$ac_top_builddir_sub
14746     ac_abs_top_srcdir=$ac_pwd ;;
14747   [\\/]* | ?:[\\/]* )  # Absolute name.
14748     ac_srcdir=$srcdir$ac_dir_suffix;
14749     ac_top_srcdir=$srcdir
14750     ac_abs_top_srcdir=$srcdir ;;
14751   *) # Relative name.
14752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14753     ac_top_srcdir=$ac_top_build_prefix$srcdir
14754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14755 esac
14756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14757
14758
14759   case $ac_mode in
14760   :F)
14761   #
14762   # CONFIG_FILE
14763   #
14764
14765   case $INSTALL in
14766   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14767   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14768   esac
14769   ac_MKDIR_P=$MKDIR_P
14770   case $MKDIR_P in
14771   [\\/$]* | ?:[\\/]* ) ;;
14772   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14773   esac
14774 _ACEOF
14775
14776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14777 # If the template does not know about datarootdir, expand it.
14778 # FIXME: This hack should be removed a few years after 2.60.
14779 ac_datarootdir_hack=; ac_datarootdir_seen=
14780 ac_sed_dataroot='
14781 /datarootdir/ {
14782   p
14783   q
14784 }
14785 /@datadir@/p
14786 /@docdir@/p
14787 /@infodir@/p
14788 /@localedir@/p
14789 /@mandir@/p'
14790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14791 *datarootdir*) ac_datarootdir_seen=yes;;
14792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14795 _ACEOF
14796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14797   ac_datarootdir_hack='
14798   s&@datadir@&$datadir&g
14799   s&@docdir@&$docdir&g
14800   s&@infodir@&$infodir&g
14801   s&@localedir@&$localedir&g
14802   s&@mandir@&$mandir&g
14803   s&\\\${datarootdir}&$datarootdir&g' ;;
14804 esac
14805 _ACEOF
14806
14807 # Neutralize VPATH when `$srcdir' = `.'.
14808 # Shell code in configure.ac might set extrasub.
14809 # FIXME: do we really want to maintain this feature?
14810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14811 ac_sed_extra="$ac_vpsub
14812 $extrasub
14813 _ACEOF
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815 :t
14816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14817 s|@configure_input@|$ac_sed_conf_input|;t t
14818 s&@top_builddir@&$ac_top_builddir_sub&;t t
14819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14820 s&@srcdir@&$ac_srcdir&;t t
14821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14822 s&@top_srcdir@&$ac_top_srcdir&;t t
14823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14824 s&@builddir@&$ac_builddir&;t t
14825 s&@abs_builddir@&$ac_abs_builddir&;t t
14826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14827 s&@INSTALL@&$ac_INSTALL&;t t
14828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14829 $ac_datarootdir_hack
14830 "
14831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14832   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14833
14834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14835   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14836   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14837       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14839 which seems to be undefined.  Please make sure it is defined" >&5
14840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14841 which seems to be undefined.  Please make sure it is defined" >&2;}
14842
14843   rm -f "$ac_tmp/stdin"
14844   case $ac_file in
14845   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14846   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14847   esac \
14848   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14849  ;;
14850   :H)
14851   #
14852   # CONFIG_HEADER
14853   #
14854   if test x"$ac_file" != x-; then
14855     {
14856       $as_echo "/* $configure_input  */" \
14857       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14858     } >"$ac_tmp/config.h" \
14859       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14860     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14861       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14863     else
14864       rm -f "$ac_file"
14865       mv "$ac_tmp/config.h" "$ac_file" \
14866         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14867     fi
14868   else
14869     $as_echo "/* $configure_input  */" \
14870       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14871       || as_fn_error $? "could not create -" "$LINENO" 5
14872   fi
14873 # Compute "$ac_file"'s index in $config_headers.
14874 _am_arg="$ac_file"
14875 _am_stamp_count=1
14876 for _am_header in $config_headers :; do
14877   case $_am_header in
14878     $_am_arg | $_am_arg:* )
14879       break ;;
14880     * )
14881       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14882   esac
14883 done
14884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14886          X"$_am_arg" : 'X\(//\)[^/]' \| \
14887          X"$_am_arg" : 'X\(//\)$' \| \
14888          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14889 $as_echo X"$_am_arg" |
14890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14891             s//\1/
14892             q
14893           }
14894           /^X\(\/\/\)[^/].*/{
14895             s//\1/
14896             q
14897           }
14898           /^X\(\/\/\)$/{
14899             s//\1/
14900             q
14901           }
14902           /^X\(\/\).*/{
14903             s//\1/
14904             q
14905           }
14906           s/.*/./; q'`/stamp-h$_am_stamp_count
14907  ;;
14908
14909   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14910 $as_echo "$as_me: executing $ac_file commands" >&6;}
14911  ;;
14912   esac
14913
14914
14915   case $ac_file$ac_mode in
14916     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14917   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14918   # are listed without --file.  Let's play safe and only enable the eval
14919   # if we detect the quoting.
14920   case $CONFIG_FILES in
14921   *\'*) eval set x "$CONFIG_FILES" ;;
14922   *)   set x $CONFIG_FILES ;;
14923   esac
14924   shift
14925   for mf
14926   do
14927     # Strip MF so we end up with the name of the file.
14928     mf=`echo "$mf" | sed -e 's/:.*$//'`
14929     # Check whether this is an Automake generated Makefile or not.
14930     # We used to match only the files named `Makefile.in', but
14931     # some people rename them; so instead we look at the file content.
14932     # Grep'ing the first line is not enough: some people post-process
14933     # each Makefile.in and add a new line on top of each file to say so.
14934     # Grep'ing the whole file is not good either: AIX grep has a line
14935     # limit of 2048, but all sed's we know have understand at least 4000.
14936     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14937       dirpart=`$as_dirname -- "$mf" ||
14938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14939          X"$mf" : 'X\(//\)[^/]' \| \
14940          X"$mf" : 'X\(//\)$' \| \
14941          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14942 $as_echo X"$mf" |
14943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14944             s//\1/
14945             q
14946           }
14947           /^X\(\/\/\)[^/].*/{
14948             s//\1/
14949             q
14950           }
14951           /^X\(\/\/\)$/{
14952             s//\1/
14953             q
14954           }
14955           /^X\(\/\).*/{
14956             s//\1/
14957             q
14958           }
14959           s/.*/./; q'`
14960     else
14961       continue
14962     fi
14963     # Extract the definition of DEPDIR, am__include, and am__quote
14964     # from the Makefile without running `make'.
14965     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14966     test -z "$DEPDIR" && continue
14967     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14968     test -z "am__include" && continue
14969     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14970     # When using ansi2knr, U may be empty or an underscore; expand it
14971     U=`sed -n 's/^U = //p' < "$mf"`
14972     # Find all dependency output files, they are included files with
14973     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14974     # simplest approach to changing $(DEPDIR) to its actual value in the
14975     # expansion.
14976     for file in `sed -n "
14977       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14978          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14979       # Make sure the directory exists.
14980       test -f "$dirpart/$file" && continue
14981       fdir=`$as_dirname -- "$file" ||
14982 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14983          X"$file" : 'X\(//\)[^/]' \| \
14984          X"$file" : 'X\(//\)$' \| \
14985          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14986 $as_echo X"$file" |
14987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14988             s//\1/
14989             q
14990           }
14991           /^X\(\/\/\)[^/].*/{
14992             s//\1/
14993             q
14994           }
14995           /^X\(\/\/\)$/{
14996             s//\1/
14997             q
14998           }
14999           /^X\(\/\).*/{
15000             s//\1/
15001             q
15002           }
15003           s/.*/./; q'`
15004       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15005       # echo "creating $dirpart/$file"
15006       echo '# dummy' > "$dirpart/$file"
15007     done
15008   done
15009 }
15010  ;;
15011     "libtool":C)
15012
15013     # See if we are running on zsh, and set the options which allow our
15014     # commands through without removal of \ escapes.
15015     if test -n "${ZSH_VERSION+set}" ; then
15016       setopt NO_GLOB_SUBST
15017     fi
15018
15019     cfgfile="${ofile}T"
15020     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15021     $RM "$cfgfile"
15022
15023     cat <<_LT_EOF >> "$cfgfile"
15024 #! $SHELL
15025
15026 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15027 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15029 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15030 #
15031 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15032 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15033 #                 Foundation, Inc.
15034 #   Written by Gordon Matzigkeit, 1996
15035 #
15036 #   This file is part of GNU Libtool.
15037 #
15038 # GNU Libtool is free software; you can redistribute it and/or
15039 # modify it under the terms of the GNU General Public License as
15040 # published by the Free Software Foundation; either version 2 of
15041 # the License, or (at your option) any later version.
15042 #
15043 # As a special exception to the GNU General Public License,
15044 # if you distribute this file as part of a program or library that
15045 # is built using GNU Libtool, you may include this file under the
15046 # same distribution terms that you use for the rest of that program.
15047 #
15048 # GNU Libtool is distributed in the hope that it will be useful,
15049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15051 # GNU General Public License for more details.
15052 #
15053 # You should have received a copy of the GNU General Public License
15054 # along with GNU Libtool; see the file COPYING.  If not, a copy
15055 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15056 # obtained by writing to the Free Software Foundation, Inc.,
15057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15058
15059
15060 # The names of the tagged configurations supported by this script.
15061 available_tags=""
15062
15063 # ### BEGIN LIBTOOL CONFIG
15064
15065 # Which release of libtool.m4 was used?
15066 macro_version=$macro_version
15067 macro_revision=$macro_revision
15068
15069 # Whether or not to build shared libraries.
15070 build_libtool_libs=$enable_shared
15071
15072 # Whether or not to build static libraries.
15073 build_old_libs=$enable_static
15074
15075 # What type of objects to build.
15076 pic_mode=$pic_mode
15077
15078 # Whether or not to optimize for fast installation.
15079 fast_install=$enable_fast_install
15080
15081 # Shell to use when invoking shell scripts.
15082 SHELL=$lt_SHELL
15083
15084 # An echo program that protects backslashes.
15085 ECHO=$lt_ECHO
15086
15087 # The PATH separator for the build system.
15088 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15089
15090 # The host system.
15091 host_alias=$host_alias
15092 host=$host
15093 host_os=$host_os
15094
15095 # The build system.
15096 build_alias=$build_alias
15097 build=$build
15098 build_os=$build_os
15099
15100 # A sed program that does not truncate output.
15101 SED=$lt_SED
15102
15103 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15104 Xsed="\$SED -e 1s/^X//"
15105
15106 # A grep program that handles long lines.
15107 GREP=$lt_GREP
15108
15109 # An ERE matcher.
15110 EGREP=$lt_EGREP
15111
15112 # A literal string matcher.
15113 FGREP=$lt_FGREP
15114
15115 # A BSD- or MS-compatible name lister.
15116 NM=$lt_NM
15117
15118 # Whether we need soft or hard links.
15119 LN_S=$lt_LN_S
15120
15121 # What is the maximum length of a command?
15122 max_cmd_len=$max_cmd_len
15123
15124 # Object file suffix (normally "o").
15125 objext=$ac_objext
15126
15127 # Executable file suffix (normally "").
15128 exeext=$exeext
15129
15130 # whether the shell understands "unset".
15131 lt_unset=$lt_unset
15132
15133 # turn spaces into newlines.
15134 SP2NL=$lt_lt_SP2NL
15135
15136 # turn newlines into spaces.
15137 NL2SP=$lt_lt_NL2SP
15138
15139 # convert \$build file names to \$host format.
15140 to_host_file_cmd=$lt_cv_to_host_file_cmd
15141
15142 # convert \$build files to toolchain format.
15143 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15144
15145 # An object symbol dumper.
15146 OBJDUMP=$lt_OBJDUMP
15147
15148 # Method to check whether dependent libraries are shared objects.
15149 deplibs_check_method=$lt_deplibs_check_method
15150
15151 # Command to use when deplibs_check_method = "file_magic".
15152 file_magic_cmd=$lt_file_magic_cmd
15153
15154 # How to find potential files when deplibs_check_method = "file_magic".
15155 file_magic_glob=$lt_file_magic_glob
15156
15157 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15158 want_nocaseglob=$lt_want_nocaseglob
15159
15160 # DLL creation program.
15161 DLLTOOL=$lt_DLLTOOL
15162
15163 # Command to associate shared and link libraries.
15164 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15165
15166 # The archiver.
15167 AR=$lt_AR
15168
15169 # Flags to create an archive.
15170 AR_FLAGS=$lt_AR_FLAGS
15171
15172 # How to feed a file listing to the archiver.
15173 archiver_list_spec=$lt_archiver_list_spec
15174
15175 # A symbol stripping program.
15176 STRIP=$lt_STRIP
15177
15178 # Commands used to install an old-style archive.
15179 RANLIB=$lt_RANLIB
15180 old_postinstall_cmds=$lt_old_postinstall_cmds
15181 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15182
15183 # Whether to use a lock for old archive extraction.
15184 lock_old_archive_extraction=$lock_old_archive_extraction
15185
15186 # A C compiler.
15187 LTCC=$lt_CC
15188
15189 # LTCC compiler flags.
15190 LTCFLAGS=$lt_CFLAGS
15191
15192 # Take the output of nm and produce a listing of raw symbols and C names.
15193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15194
15195 # Transform the output of nm in a proper C declaration.
15196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15197
15198 # Transform the output of nm in a C name address pair.
15199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15200
15201 # Transform the output of nm in a C name address pair when lib prefix is needed.
15202 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15203
15204 # Specify filename containing input files for \$NM.
15205 nm_file_list_spec=$lt_nm_file_list_spec
15206
15207 # The root where to search for dependent libraries,and in which our libraries should be installed.
15208 lt_sysroot=$lt_sysroot
15209
15210 # The name of the directory that contains temporary libtool files.
15211 objdir=$objdir
15212
15213 # Used to examine libraries when file_magic_cmd begins with "file".
15214 MAGIC_CMD=$MAGIC_CMD
15215
15216 # Must we lock files when doing compilation?
15217 need_locks=$lt_need_locks
15218
15219 # Manifest tool.
15220 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15221
15222 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15223 DSYMUTIL=$lt_DSYMUTIL
15224
15225 # Tool to change global to local symbols on Mac OS X.
15226 NMEDIT=$lt_NMEDIT
15227
15228 # Tool to manipulate fat objects and archives on Mac OS X.
15229 LIPO=$lt_LIPO
15230
15231 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15232 OTOOL=$lt_OTOOL
15233
15234 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15235 OTOOL64=$lt_OTOOL64
15236
15237 # Old archive suffix (normally "a").
15238 libext=$libext
15239
15240 # Shared library suffix (normally ".so").
15241 shrext_cmds=$lt_shrext_cmds
15242
15243 # The commands to extract the exported symbol list from a shared archive.
15244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15245
15246 # Variables whose values should be saved in libtool wrapper scripts and
15247 # restored at link time.
15248 variables_saved_for_relink=$lt_variables_saved_for_relink
15249
15250 # Do we need the "lib" prefix for modules?
15251 need_lib_prefix=$need_lib_prefix
15252
15253 # Do we need a version for libraries?
15254 need_version=$need_version
15255
15256 # Library versioning type.
15257 version_type=$version_type
15258
15259 # Shared library runtime path variable.
15260 runpath_var=$runpath_var
15261
15262 # Shared library path variable.
15263 shlibpath_var=$shlibpath_var
15264
15265 # Is shlibpath searched before the hard-coded library search path?
15266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15267
15268 # Format of library name prefix.
15269 libname_spec=$lt_libname_spec
15270
15271 # List of archive names.  First name is the real one, the rest are links.
15272 # The last name is the one that the linker finds with -lNAME
15273 library_names_spec=$lt_library_names_spec
15274
15275 # The coded name of the library, if different from the real name.
15276 soname_spec=$lt_soname_spec
15277
15278 # Permission mode override for installation of shared libraries.
15279 install_override_mode=$lt_install_override_mode
15280
15281 # Command to use after installation of a shared archive.
15282 postinstall_cmds=$lt_postinstall_cmds
15283
15284 # Command to use after uninstallation of a shared archive.
15285 postuninstall_cmds=$lt_postuninstall_cmds
15286
15287 # Commands used to finish a libtool library installation in a directory.
15288 finish_cmds=$lt_finish_cmds
15289
15290 # As "finish_cmds", except a single script fragment to be evaled but
15291 # not shown.
15292 finish_eval=$lt_finish_eval
15293
15294 # Whether we should hardcode library paths into libraries.
15295 hardcode_into_libs=$hardcode_into_libs
15296
15297 # Compile-time system search path for libraries.
15298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15299
15300 # Run-time system search path for libraries.
15301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15302
15303 # Whether dlopen is supported.
15304 dlopen_support=$enable_dlopen
15305
15306 # Whether dlopen of programs is supported.
15307 dlopen_self=$enable_dlopen_self
15308
15309 # Whether dlopen of statically linked programs is supported.
15310 dlopen_self_static=$enable_dlopen_self_static
15311
15312 # Commands to strip libraries.
15313 old_striplib=$lt_old_striplib
15314 striplib=$lt_striplib
15315
15316
15317 # The linker used to build libraries.
15318 LD=$lt_LD
15319
15320 # How to create reloadable object files.
15321 reload_flag=$lt_reload_flag
15322 reload_cmds=$lt_reload_cmds
15323
15324 # Commands used to build an old-style archive.
15325 old_archive_cmds=$lt_old_archive_cmds
15326
15327 # A language specific compiler.
15328 CC=$lt_compiler
15329
15330 # Is the compiler the GNU compiler?
15331 with_gcc=$GCC
15332
15333 # Compiler flag to turn off builtin functions.
15334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15335
15336 # Additional compiler flags for building library objects.
15337 pic_flag=$lt_lt_prog_compiler_pic
15338
15339 # How to pass a linker flag through the compiler.
15340 wl=$lt_lt_prog_compiler_wl
15341
15342 # Compiler flag to prevent dynamic linking.
15343 link_static_flag=$lt_lt_prog_compiler_static
15344
15345 # Does compiler simultaneously support -c and -o options?
15346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15347
15348 # Whether or not to add -lc for building shared libraries.
15349 build_libtool_need_lc=$archive_cmds_need_lc
15350
15351 # Whether or not to disallow shared libs when runtime libs are static.
15352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15353
15354 # Compiler flag to allow reflexive dlopens.
15355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15356
15357 # Compiler flag to generate shared objects directly from archives.
15358 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15359
15360 # Whether the compiler copes with passing no objects directly.
15361 compiler_needs_object=$lt_compiler_needs_object
15362
15363 # Create an old-style archive from a shared archive.
15364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15365
15366 # Create a temporary old-style archive to link instead of a shared archive.
15367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15368
15369 # Commands used to build a shared archive.
15370 archive_cmds=$lt_archive_cmds
15371 archive_expsym_cmds=$lt_archive_expsym_cmds
15372
15373 # Commands used to build a loadable module if different from building
15374 # a shared archive.
15375 module_cmds=$lt_module_cmds
15376 module_expsym_cmds=$lt_module_expsym_cmds
15377
15378 # Whether we are building with GNU ld or not.
15379 with_gnu_ld=$lt_with_gnu_ld
15380
15381 # Flag that allows shared libraries with undefined symbols to be built.
15382 allow_undefined_flag=$lt_allow_undefined_flag
15383
15384 # Flag that enforces no undefined symbols.
15385 no_undefined_flag=$lt_no_undefined_flag
15386
15387 # Flag to hardcode \$libdir into a binary during linking.
15388 # This must work even if \$libdir does not exist
15389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15390
15391 # Whether we need a single "-rpath" flag with a separated argument.
15392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15393
15394 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15395 # DIR into the resulting binary.
15396 hardcode_direct=$hardcode_direct
15397
15398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15399 # DIR into the resulting binary and the resulting library dependency is
15400 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15401 # library is relocated.
15402 hardcode_direct_absolute=$hardcode_direct_absolute
15403
15404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15405 # into the resulting binary.
15406 hardcode_minus_L=$hardcode_minus_L
15407
15408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15409 # into the resulting binary.
15410 hardcode_shlibpath_var=$hardcode_shlibpath_var
15411
15412 # Set to "yes" if building a shared library automatically hardcodes DIR
15413 # into the library and all subsequent libraries and executables linked
15414 # against it.
15415 hardcode_automatic=$hardcode_automatic
15416
15417 # Set to yes if linker adds runtime paths of dependent libraries
15418 # to runtime path list.
15419 inherit_rpath=$inherit_rpath
15420
15421 # Whether libtool must link a program against all its dependency libraries.
15422 link_all_deplibs=$link_all_deplibs
15423
15424 # Set to "yes" if exported symbols are required.
15425 always_export_symbols=$always_export_symbols
15426
15427 # The commands to list exported symbols.
15428 export_symbols_cmds=$lt_export_symbols_cmds
15429
15430 # Symbols that should not be listed in the preloaded symbols.
15431 exclude_expsyms=$lt_exclude_expsyms
15432
15433 # Symbols that must always be exported.
15434 include_expsyms=$lt_include_expsyms
15435
15436 # Commands necessary for linking programs (against libraries) with templates.
15437 prelink_cmds=$lt_prelink_cmds
15438
15439 # Commands necessary for finishing linking programs.
15440 postlink_cmds=$lt_postlink_cmds
15441
15442 # Specify filename containing input files.
15443 file_list_spec=$lt_file_list_spec
15444
15445 # How to hardcode a shared library path into an executable.
15446 hardcode_action=$hardcode_action
15447
15448 # ### END LIBTOOL CONFIG
15449
15450 _LT_EOF
15451
15452   case $host_os in
15453   aix3*)
15454     cat <<\_LT_EOF >> "$cfgfile"
15455 # AIX sometimes has problems with the GCC collect2 program.  For some
15456 # reason, if we set the COLLECT_NAMES environment variable, the problems
15457 # vanish in a puff of smoke.
15458 if test "X${COLLECT_NAMES+set}" != Xset; then
15459   COLLECT_NAMES=
15460   export COLLECT_NAMES
15461 fi
15462 _LT_EOF
15463     ;;
15464   esac
15465
15466
15467 ltmain="$ac_aux_dir/ltmain.sh"
15468
15469
15470   # We use sed instead of cat because bash on DJGPP gets confused if
15471   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15472   # text mode, it properly converts lines to CR/LF.  This bash problem
15473   # is reportedly fixed, but why not run on old versions too?
15474   sed '$q' "$ltmain" >> "$cfgfile" \
15475      || (rm -f "$cfgfile"; exit 1)
15476
15477   if test x"$xsi_shell" = xyes; then
15478   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15479 func_dirname ()\
15480 {\
15481 \    case ${1} in\
15482 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15483 \      *  ) func_dirname_result="${3}" ;;\
15484 \    esac\
15485 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15486   && mv -f "$cfgfile.tmp" "$cfgfile" \
15487     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15488 test 0 -eq $? || _lt_function_replace_fail=:
15489
15490
15491   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15492 func_basename ()\
15493 {\
15494 \    func_basename_result="${1##*/}"\
15495 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15496   && mv -f "$cfgfile.tmp" "$cfgfile" \
15497     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15498 test 0 -eq $? || _lt_function_replace_fail=:
15499
15500
15501   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15502 func_dirname_and_basename ()\
15503 {\
15504 \    case ${1} in\
15505 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15506 \      *  ) func_dirname_result="${3}" ;;\
15507 \    esac\
15508 \    func_basename_result="${1##*/}"\
15509 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15510   && mv -f "$cfgfile.tmp" "$cfgfile" \
15511     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15512 test 0 -eq $? || _lt_function_replace_fail=:
15513
15514
15515   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15516 func_stripname ()\
15517 {\
15518 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15519 \    # positional parameters, so assign one to ordinary parameter first.\
15520 \    func_stripname_result=${3}\
15521 \    func_stripname_result=${func_stripname_result#"${1}"}\
15522 \    func_stripname_result=${func_stripname_result%"${2}"}\
15523 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15524   && mv -f "$cfgfile.tmp" "$cfgfile" \
15525     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15526 test 0 -eq $? || _lt_function_replace_fail=:
15527
15528
15529   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15530 func_split_long_opt ()\
15531 {\
15532 \    func_split_long_opt_name=${1%%=*}\
15533 \    func_split_long_opt_arg=${1#*=}\
15534 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15535   && mv -f "$cfgfile.tmp" "$cfgfile" \
15536     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15537 test 0 -eq $? || _lt_function_replace_fail=:
15538
15539
15540   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15541 func_split_short_opt ()\
15542 {\
15543 \    func_split_short_opt_arg=${1#??}\
15544 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15545 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15546   && mv -f "$cfgfile.tmp" "$cfgfile" \
15547     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15548 test 0 -eq $? || _lt_function_replace_fail=:
15549
15550
15551   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15552 func_lo2o ()\
15553 {\
15554 \    case ${1} in\
15555 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15556 \      *)    func_lo2o_result=${1} ;;\
15557 \    esac\
15558 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15559   && mv -f "$cfgfile.tmp" "$cfgfile" \
15560     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15561 test 0 -eq $? || _lt_function_replace_fail=:
15562
15563
15564   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15565 func_xform ()\
15566 {\
15567     func_xform_result=${1%.*}.lo\
15568 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15569   && mv -f "$cfgfile.tmp" "$cfgfile" \
15570     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15571 test 0 -eq $? || _lt_function_replace_fail=:
15572
15573
15574   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15575 func_arith ()\
15576 {\
15577     func_arith_result=$(( $* ))\
15578 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15579   && mv -f "$cfgfile.tmp" "$cfgfile" \
15580     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15581 test 0 -eq $? || _lt_function_replace_fail=:
15582
15583
15584   sed -e '/^func_len ()$/,/^} # func_len /c\
15585 func_len ()\
15586 {\
15587     func_len_result=${#1}\
15588 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15589   && mv -f "$cfgfile.tmp" "$cfgfile" \
15590     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15591 test 0 -eq $? || _lt_function_replace_fail=:
15592
15593 fi
15594
15595 if test x"$lt_shell_append" = xyes; then
15596   sed -e '/^func_append ()$/,/^} # func_append /c\
15597 func_append ()\
15598 {\
15599     eval "${1}+=\\${2}"\
15600 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15601   && mv -f "$cfgfile.tmp" "$cfgfile" \
15602     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15603 test 0 -eq $? || _lt_function_replace_fail=:
15604
15605
15606   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15607 func_append_quoted ()\
15608 {\
15609 \    func_quote_for_eval "${2}"\
15610 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15611 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15612   && mv -f "$cfgfile.tmp" "$cfgfile" \
15613     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15614 test 0 -eq $? || _lt_function_replace_fail=:
15615
15616
15617   # Save a `func_append' function call where possible by direct use of '+='
15618   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15619     && mv -f "$cfgfile.tmp" "$cfgfile" \
15620       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15621   test 0 -eq $? || _lt_function_replace_fail=:
15622 else
15623   # Save a `func_append' function call even when '+=' is not available
15624   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15625     && mv -f "$cfgfile.tmp" "$cfgfile" \
15626       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15627   test 0 -eq $? || _lt_function_replace_fail=:
15628 fi
15629
15630 if test x"$_lt_function_replace_fail" = x":"; then
15631   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15632 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15633 fi
15634
15635
15636    mv -f "$cfgfile" "$ofile" ||
15637     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15638   chmod +x "$ofile"
15639
15640  ;;
15641
15642   esac
15643 done # for ac_tag
15644
15645
15646 as_fn_exit 0
15647 _ACEOF
15648 ac_clean_files=$ac_clean_files_save
15649
15650 test $ac_write_fail = 0 ||
15651   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15652
15653
15654 # configure is writing to config.log, and then calls config.status.
15655 # config.status does its own redirection, appending to config.log.
15656 # Unfortunately, on DOS this fails, as config.log is still kept open
15657 # by configure, so config.status won't be able to write to it; its
15658 # output is simply discarded.  So we exec the FD to /dev/null,
15659 # effectively closing config.log, so it can be properly (re)opened and
15660 # appended to by config.status.  When coming back to configure, we
15661 # need to make the FD available again.
15662 if test "$no_create" != yes; then
15663   ac_cs_success=:
15664   ac_config_status_args=
15665   test "$silent" = yes &&
15666     ac_config_status_args="$ac_config_status_args --quiet"
15667   exec 5>/dev/null
15668   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15669   exec 5>>config.log
15670   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15671   # would make configure fail if this is the last instruction.
15672   $ac_cs_success || as_fn_exit 1
15673 fi
15674 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15675   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15676 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15677 fi
15678