Add gobject introspection
[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.20.5.
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.20.5'
655 PACKAGE_STRING='gupnp 0.20.5'
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 OS_WIN32_FALSE
746 OS_WIN32_TRUE
747 GTHREAD_LIBS
748 GTHREAD_CFLAGS
749 LIBGUPNP_LIBS
750 LIBGUPNP_CFLAGS
751 PKG_CONFIG_LIBDIR
752 PKG_CONFIG_PATH
753 PKG_CONFIG
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 MANIFEST_TOOL
760 RANLIB
761 ac_ct_AR
762 AR
763 DLLTOOL
764 OBJDUMP
765 LN_S
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 LD
770 FGREP
771 SED
772 LIBTOOL
773 EGREP
774 GREP
775 CPP
776 am__fastdepCC_FALSE
777 am__fastdepCC_TRUE
778 CCDEPMODE
779 am__nodep
780 AMDEPBACKSLASH
781 AMDEP_FALSE
782 AMDEP_TRUE
783 am__quote
784 am__include
785 DEPDIR
786 OBJEXT
787 EXEEXT
788 ac_ct_CC
789 CPPFLAGS
790 LDFLAGS
791 CFLAGS
792 CC
793 AM_BACKSLASH
794 AM_DEFAULT_VERBOSITY
795 AM_DEFAULT_V
796 AM_V
797 MAINT
798 MAINTAINER_MODE_FALSE
799 MAINTAINER_MODE_TRUE
800 am__untar
801 am__tar
802 AMTAR
803 am__leading_dot
804 SET_MAKE
805 AWK
806 mkdir_p
807 MKDIR_P
808 INSTALL_STRIP_PROGRAM
809 STRIP
810 install_sh
811 MAKEINFO
812 AUTOHEADER
813 AUTOMAKE
814 AUTOCONF
815 ACLOCAL
816 VERSION
817 PACKAGE
818 CYGPATH_W
819 am__isrc
820 INSTALL_DATA
821 INSTALL_SCRIPT
822 INSTALL_PROGRAM
823 target_os
824 target_vendor
825 target_cpu
826 target
827 host_os
828 host_vendor
829 host_cpu
830 host
831 build_os
832 build_vendor
833 build_cpu
834 build
835 target_alias
836 host_alias
837 build_alias
838 LIBS
839 ECHO_T
840 ECHO_N
841 ECHO_C
842 DEFS
843 mandir
844 localedir
845 libdir
846 psdir
847 pdfdir
848 dvidir
849 htmldir
850 infodir
851 docdir
852 oldincludedir
853 includedir
854 localstatedir
855 sharedstatedir
856 sysconfdir
857 datadir
858 datarootdir
859 libexecdir
860 sbindir
861 bindir
862 program_transform_name
863 prefix
864 exec_prefix
865 PACKAGE_URL
866 PACKAGE_BUGREPORT
867 PACKAGE_STRING
868 PACKAGE_VERSION
869 PACKAGE_TARNAME
870 PACKAGE_NAME
871 PATH_SEPARATOR
872 SHELL'
873 ac_subst_files=''
874 ac_user_opts='
875 enable_option_checking
876 enable_maintainer_mode
877 enable_silent_rules
878 enable_dependency_tracking
879 enable_largefile
880 enable_shared
881 enable_static
882 with_pic
883 enable_fast_install
884 with_gnu_ld
885 with_sysroot
886 enable_libtool_lock
887 with_context_manager
888 enable_debug
889 enable_introspection
890 with_html_dir
891 enable_gtk_doc
892 enable_gtk_doc_html
893 enable_gtk_doc_pdf
894 '
895       ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP
904 PKG_CONFIG
905 PKG_CONFIG_PATH
906 PKG_CONFIG_LIBDIR
907 LIBGUPNP_CFLAGS
908 LIBGUPNP_LIBS
909 GTHREAD_CFLAGS
910 GTHREAD_LIBS
911 GIO_CFLAGS
912 GIO_LIBS
913 CONNMAN_CFLAGS
914 CONNMAN_LIBS
915 GTKDOC_DEPS_CFLAGS
916 GTKDOC_DEPS_LIBS'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
966
967 ac_prev=
968 ac_dashdash=
969 for ac_option
970 do
971   # If the previous option needs an argument, assign it.
972   if test -n "$ac_prev"; then
973     eval $ac_prev=\$ac_option
974     ac_prev=
975     continue
976   fi
977
978   case $ac_option in
979   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980   *=)   ac_optarg= ;;
981   *)    ac_optarg=yes ;;
982   esac
983
984   # Accept the important Cygnus configure options, so we can diagnose typos.
985
986   case $ac_dashdash$ac_option in
987   --)
988     ac_dashdash=yes ;;
989
990   -bindir | --bindir | --bindi | --bind | --bin | --bi)
991     ac_prev=bindir ;;
992   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993     bindir=$ac_optarg ;;
994
995   -build | --build | --buil | --bui | --bu)
996     ac_prev=build_alias ;;
997   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998     build_alias=$ac_optarg ;;
999
1000   -cache-file | --cache-file | --cache-fil | --cache-fi \
1001   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002     ac_prev=cache_file ;;
1003   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005     cache_file=$ac_optarg ;;
1006
1007   --config-cache | -C)
1008     cache_file=config.cache ;;
1009
1010   -datadir | --datadir | --datadi | --datad)
1011     ac_prev=datadir ;;
1012   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013     datadir=$ac_optarg ;;
1014
1015   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016   | --dataroo | --dataro | --datar)
1017     ac_prev=datarootdir ;;
1018   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020     datarootdir=$ac_optarg ;;
1021
1022   -disable-* | --disable-*)
1023     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026       as_fn_error $? "invalid feature name: $ac_useropt"
1027     ac_useropt_orig=$ac_useropt
1028     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029     case $ac_user_opts in
1030       *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034          ac_unrecognized_sep=', ';;
1035     esac
1036     eval enable_$ac_useropt=no ;;
1037
1038   -docdir | --docdir | --docdi | --doc | --do)
1039     ac_prev=docdir ;;
1040   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041     docdir=$ac_optarg ;;
1042
1043   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044     ac_prev=dvidir ;;
1045   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046     dvidir=$ac_optarg ;;
1047
1048   -enable-* | --enable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error $? "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066   | --exec | --exe | --ex)
1067     ac_prev=exec_prefix ;;
1068   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070   | --exec=* | --exe=* | --ex=*)
1071     exec_prefix=$ac_optarg ;;
1072
1073   -gas | --gas | --ga | --g)
1074     # Obsolete; use --with-gas.
1075     with_gas=yes ;;
1076
1077   -help | --help | --hel | --he | -h)
1078     ac_init_help=long ;;
1079   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080     ac_init_help=recursive ;;
1081   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082     ac_init_help=short ;;
1083
1084   -host | --host | --hos | --ho)
1085     ac_prev=host_alias ;;
1086   -host=* | --host=* | --hos=* | --ho=*)
1087     host_alias=$ac_optarg ;;
1088
1089   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090     ac_prev=htmldir ;;
1091   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092   | --ht=*)
1093     htmldir=$ac_optarg ;;
1094
1095   -includedir | --includedir | --includedi | --included | --include \
1096   | --includ | --inclu | --incl | --inc)
1097     ac_prev=includedir ;;
1098   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099   | --includ=* | --inclu=* | --incl=* | --inc=*)
1100     includedir=$ac_optarg ;;
1101
1102   -infodir | --infodir | --infodi | --infod | --info | --inf)
1103     ac_prev=infodir ;;
1104   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105     infodir=$ac_optarg ;;
1106
1107   -libdir | --libdir | --libdi | --libd)
1108     ac_prev=libdir ;;
1109   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110     libdir=$ac_optarg ;;
1111
1112   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113   | --libexe | --libex | --libe)
1114     ac_prev=libexecdir ;;
1115   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116   | --libexe=* | --libex=* | --libe=*)
1117     libexecdir=$ac_optarg ;;
1118
1119   -localedir | --localedir | --localedi | --localed | --locale)
1120     ac_prev=localedir ;;
1121   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122     localedir=$ac_optarg ;;
1123
1124   -localstatedir | --localstatedir | --localstatedi | --localstated \
1125   | --localstate | --localstat | --localsta | --localst | --locals)
1126     ac_prev=localstatedir ;;
1127   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129     localstatedir=$ac_optarg ;;
1130
1131   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132     ac_prev=mandir ;;
1133   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134     mandir=$ac_optarg ;;
1135
1136   -nfp | --nfp | --nf)
1137     # Obsolete; use --without-fp.
1138     with_fp=no ;;
1139
1140   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141   | --no-cr | --no-c | -n)
1142     no_create=yes ;;
1143
1144   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146     no_recursion=yes ;;
1147
1148   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150   | --oldin | --oldi | --old | --ol | --o)
1151     ac_prev=oldincludedir ;;
1152   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155     oldincludedir=$ac_optarg ;;
1156
1157   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158     ac_prev=prefix ;;
1159   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160     prefix=$ac_optarg ;;
1161
1162   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163   | --program-pre | --program-pr | --program-p)
1164     ac_prev=program_prefix ;;
1165   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167     program_prefix=$ac_optarg ;;
1168
1169   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170   | --program-suf | --program-su | --program-s)
1171     ac_prev=program_suffix ;;
1172   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174     program_suffix=$ac_optarg ;;
1175
1176   -program-transform-name | --program-transform-name \
1177   | --program-transform-nam | --program-transform-na \
1178   | --program-transform-n | --program-transform- \
1179   | --program-transform | --program-transfor \
1180   | --program-transfo | --program-transf \
1181   | --program-trans | --program-tran \
1182   | --progr-tra | --program-tr | --program-t)
1183     ac_prev=program_transform_name ;;
1184   -program-transform-name=* | --program-transform-name=* \
1185   | --program-transform-nam=* | --program-transform-na=* \
1186   | --program-transform-n=* | --program-transform-=* \
1187   | --program-transform=* | --program-transfor=* \
1188   | --program-transfo=* | --program-transf=* \
1189   | --program-trans=* | --program-tran=* \
1190   | --progr-tra=* | --program-tr=* | --program-t=*)
1191     program_transform_name=$ac_optarg ;;
1192
1193   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194     ac_prev=pdfdir ;;
1195   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196     pdfdir=$ac_optarg ;;
1197
1198   -psdir | --psdir | --psdi | --psd | --ps)
1199     ac_prev=psdir ;;
1200   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201     psdir=$ac_optarg ;;
1202
1203   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204   | -silent | --silent | --silen | --sile | --sil)
1205     silent=yes ;;
1206
1207   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208     ac_prev=sbindir ;;
1209   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210   | --sbi=* | --sb=*)
1211     sbindir=$ac_optarg ;;
1212
1213   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215   | --sharedst | --shareds | --shared | --share | --shar \
1216   | --sha | --sh)
1217     ac_prev=sharedstatedir ;;
1218   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221   | --sha=* | --sh=*)
1222     sharedstatedir=$ac_optarg ;;
1223
1224   -site | --site | --sit)
1225     ac_prev=site ;;
1226   -site=* | --site=* | --sit=*)
1227     site=$ac_optarg ;;
1228
1229   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230     ac_prev=srcdir ;;
1231   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232     srcdir=$ac_optarg ;;
1233
1234   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235   | --syscon | --sysco | --sysc | --sys | --sy)
1236     ac_prev=sysconfdir ;;
1237   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239     sysconfdir=$ac_optarg ;;
1240
1241   -target | --target | --targe | --targ | --tar | --ta | --t)
1242     ac_prev=target_alias ;;
1243   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244     target_alias=$ac_optarg ;;
1245
1246   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247     verbose=yes ;;
1248
1249   -version | --version | --versio | --versi | --vers | -V)
1250     ac_init_version=: ;;
1251
1252   -with-* | --with-*)
1253     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256       as_fn_error $? "invalid package name: $ac_useropt"
1257     ac_useropt_orig=$ac_useropt
1258     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259     case $ac_user_opts in
1260       *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264          ac_unrecognized_sep=', ';;
1265     esac
1266     eval with_$ac_useropt=\$ac_optarg ;;
1267
1268   -without-* | --without-*)
1269     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272       as_fn_error $? "invalid package name: $ac_useropt"
1273     ac_useropt_orig=$ac_useropt
1274     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275     case $ac_user_opts in
1276       *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280          ac_unrecognized_sep=', ';;
1281     esac
1282     eval with_$ac_useropt=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information"
1304     ;;
1305
1306   *=*)
1307     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308     # Reject names that are not valid shell variable names.
1309     case $ac_envvar in #(
1310       '' | [0-9]* | *[!_$as_cr_alnum]* )
1311       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312     esac
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   as_fn_error $? "missing argument to $ac_option"
1330 fi
1331
1332 if test -n "$ac_unrecognized_opts"; then
1333   case $enable_option_checking in
1334     no) ;;
1335     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337   esac
1338 fi
1339
1340 # Check all directory arguments for consistency.
1341 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342                 datadir sysconfdir sharedstatedir localstatedir includedir \
1343                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344                 libdir localedir mandir
1345 do
1346   eval ac_val=\$$ac_var
1347   # Remove trailing slashes.
1348   case $ac_val in
1349     */ )
1350       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351       eval $ac_var=\$ac_val;;
1352   esac
1353   # Be sure to have absolute directory names.
1354   case $ac_val in
1355     [\\/$]* | ?:[\\/]* )  continue;;
1356     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357   esac
1358   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 done
1360
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370   if test "x$build_alias" = x; then
1371     cross_compiling=maybe
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$as_myself" : 'X\(//\)[^/]' \| \
1398          X"$as_myself" : 'X\(//\)$' \| \
1399          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432         pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435   srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_env_${ac_var}_value=\$${ac_var}
1446   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454   # Omit some internal or obsolete options to make the list less imposing.
1455   # This message is too long to be a string in the A/UX 3.1 sh.
1456   cat <<_ACEOF
1457 \`configure' configures gupnp 0.20.5 to adapt to many kinds of systems.
1458
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464 Defaults for the options are specified in brackets.
1465
1466 Configuration:
1467   -h, --help              display this help and exit
1468       --help=short        display options specific to this package
1469       --help=recursive    display the short help of all the included packages
1470   -V, --version           display version information and exit
1471   -q, --quiet, --silent   do not print \`checking ...' messages
1472       --cache-file=FILE   cache test results in FILE [disabled]
1473   -C, --config-cache      alias for \`--cache-file=config.cache'
1474   -n, --no-create         do not create output files
1475       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477 Installation directories:
1478   --prefix=PREFIX         install architecture-independent files in PREFIX
1479                           [$ac_default_prefix]
1480   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                           [PREFIX]
1482
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1487
1488 For better control, use the options below.
1489
1490 Fine tuning of the installation directories:
1491   --bindir=DIR            user executables [EPREFIX/bin]
1492   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493   --libexecdir=DIR        program executables [EPREFIX/libexec]
1494   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497   --libdir=DIR            object code libraries [EPREFIX/lib]
1498   --includedir=DIR        C header files [PREFIX/include]
1499   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502   --infodir=DIR           info documentation [DATAROOTDIR/info]
1503   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504   --mandir=DIR            man documentation [DATAROOTDIR/man]
1505   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp]
1506   --htmldir=DIR           html documentation [DOCDIR]
1507   --dvidir=DIR            dvi documentation [DOCDIR]
1508   --pdfdir=DIR            pdf documentation [DOCDIR]
1509   --psdir=DIR             ps documentation [DOCDIR]
1510 _ACEOF
1511
1512   cat <<\_ACEOF
1513
1514 Program names:
1515   --program-prefix=PREFIX            prepend PREFIX to installed program names
1516   --program-suffix=SUFFIX            append SUFFIX to installed program names
1517   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522   --target=TARGET   configure for building compilers for TARGET [HOST]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of gupnp 0.20.5:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-option-checking  ignore unrecognized --enable/--with options
1534   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536   --disable-maintainer-mode  disable make rules and dependencies not useful
1537                           (and sometimes confusing) to the casual installer
1538   --enable-silent-rules          less verbose build output (undo: `make V=1')
1539   --disable-silent-rules         verbose build output (undo: `make V=0')
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --disable-largefile     omit support for large files
1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
1544   --enable-static[=PKGS]  build static libraries [default=yes]
1545   --enable-fast-install[=PKGS]
1546                           optimize for fast installation [default=yes]
1547   --disable-libtool-lock  avoid locking (might break parallel builds)
1548   --enable-debug          enable debugging
1549   --enable-introspection=[no/auto/yes]
1550                           Enable introspection for this build
1551   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1552   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1553   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1554
1555 Optional Packages:
1556   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1559                           both]
1560   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1561   --with-sysroot=DIR Search for dependent libraries within DIR
1562                         (or the compiler's sysroot if not specified).
1563   --with-context-manager=[network-manager/connman/unix/linux]
1564                           Context Manager backend to use
1565   --with-html-dir=PATH    path to installed docs
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CPP         C preprocessor
1576   PKG_CONFIG  path to pkg-config utility
1577   PKG_CONFIG_PATH
1578               directories to add to pkg-config's search path
1579   PKG_CONFIG_LIBDIR
1580               path overriding pkg-config's built-in search path
1581   LIBGUPNP_CFLAGS
1582               C compiler flags for LIBGUPNP, overriding pkg-config
1583   LIBGUPNP_LIBS
1584               linker flags for LIBGUPNP, overriding pkg-config
1585   GTHREAD_CFLAGS
1586               C compiler flags for GTHREAD, overriding pkg-config
1587   GTHREAD_LIBS
1588               linker flags for GTHREAD, overriding pkg-config
1589   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1590   GIO_LIBS    linker flags for GIO, overriding pkg-config
1591   CONNMAN_CFLAGS
1592               C compiler flags for CONNMAN, overriding pkg-config
1593   CONNMAN_LIBS
1594               linker flags for CONNMAN, overriding pkg-config
1595   GTKDOC_DEPS_CFLAGS
1596               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1597   GTKDOC_DEPS_LIBS
1598               linker flags for GTKDOC_DEPS, overriding pkg-config
1599
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1602
1603 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
1604 gupnp home page: <http://www.gupnp.org/>.
1605 _ACEOF
1606 ac_status=$?
1607 fi
1608
1609 if test "$ac_init_help" = "recursive"; then
1610   # If there are subdirs, report their specific --help.
1611   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612     test -d "$ac_dir" ||
1613       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614       continue
1615     ac_builddir=.
1616
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *)
1620   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621   # A ".." for each directory in $ac_dir_suffix.
1622   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623   case $ac_top_builddir_sub in
1624   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626   esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1632
1633 case $srcdir in
1634   .)  # We are building in place.
1635     ac_srcdir=.
1636     ac_top_srcdir=$ac_top_builddir_sub
1637     ac_abs_top_srcdir=$ac_pwd ;;
1638   [\\/]* | ?:[\\/]* )  # Absolute name.
1639     ac_srcdir=$srcdir$ac_dir_suffix;
1640     ac_top_srcdir=$srcdir
1641     ac_abs_top_srcdir=$srcdir ;;
1642   *) # Relative name.
1643     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644     ac_top_srcdir=$ac_top_build_prefix$srcdir
1645     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649     cd "$ac_dir" || { ac_status=$?; continue; }
1650     # Check for guested configure.
1651     if test -f "$ac_srcdir/configure.gnu"; then
1652       echo &&
1653       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654     elif test -f "$ac_srcdir/configure"; then
1655       echo &&
1656       $SHELL "$ac_srcdir/configure" --help=recursive
1657     else
1658       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659     fi || ac_status=$?
1660     cd "$ac_pwd" || { ac_status=$?; break; }
1661   done
1662 fi
1663
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666   cat <<\_ACEOF
1667 gupnp configure 0.20.5
1668 generated by GNU Autoconf 2.69
1669
1670 Copyright (C) 2012 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673 _ACEOF
1674   exit
1675 fi
1676
1677 ## ------------------------ ##
1678 ## Autoconf initialization. ##
1679 ## ------------------------ ##
1680
1681 # ac_fn_c_try_compile LINENO
1682 # --------------------------
1683 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_compile ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   rm -f conftest.$ac_objext
1688   if { { ac_try="$ac_compile"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_compile") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } && {
1704          test -z "$ac_c_werror_flag" ||
1705          test ! -s conftest.err
1706        } && test -s conftest.$ac_objext; then :
1707   ac_retval=0
1708 else
1709   $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712         ac_retval=1
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_compile
1718
1719 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists and can be compiled using the include files in
1722 # INCLUDES, setting the cache variable VAR accordingly.
1723 ac_fn_c_check_header_compile ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729   $as_echo_n "(cached) " >&6
1730 else
1731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h.  */
1733 $4
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737   eval "$3=yes"
1738 else
1739   eval "$3=no"
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748 } # ac_fn_c_check_header_compile
1749
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_cpp ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   if { { ac_try="$ac_cpp conftest.$ac_ext"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } > conftest.i && {
1772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780     ac_retval=1
1781 fi
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_cpp
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_link") 2>&5
1802   ac_status=$?
1803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805   { { case "(($ac_try" in
1806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807   *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811   (eval "$ac_try") 2>&5
1812   ac_status=$?
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; }; }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: program exited with status $ac_status" >&5
1818        $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821        ac_retval=$ac_status
1822 fi
1823   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825   as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   rm -f conftest.$ac_objext conftest$ac_exeext
1836   if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_link") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } && {
1852          test -z "$ac_c_werror_flag" ||
1853          test ! -s conftest.err
1854        } && test -s conftest$ac_exeext && {
1855          test "$cross_compiling" = yes ||
1856          test -x conftest$ac_exeext
1857        }; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867   # interfere with the next link command; also delete a directory that is
1868   # left behind by Apple's compiler.  We do this before executing the actions.
1869   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_link
1874
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1890 #define $2 innocuous_$2
1891
1892 /* System header to define __stub macros and hopefully few prototypes,
1893     which can conflict with char $2 (); below.
1894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895     <limits.h> exists even on freestanding compilers.  */
1896
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1902
1903 #undef $2
1904
1905 /* Override any GCC internal prototype to avoid an error.
1906    Use char because int might match the return type of a GCC
1907    builtin and then its argument prototype would still apply.  */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913     to always fail with ENOSYS.  Some functions are actually named
1914     something starting with __ and the normal name is an alias.  */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1918
1919 int
1920 main ()
1921 {
1922 return $2 ();
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext \
1933     conftest$ac_exeext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_func
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1944
1945 It was created by gupnp $as_me 0.20.5, which was
1946 generated by GNU Autoconf 2.69.  Invocation command line was
1947
1948   $ $0 $@
1949
1950 _ACEOF
1951 exec 5>>config.log
1952 {
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1957
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1966
1967 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1968 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1971 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1972 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1973 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1974
1975 _ASUNAME
1976
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982     $as_echo "PATH: $as_dir"
1983   done
1984 IFS=$as_save_IFS
1985
1986 } >&5
1987
1988 cat >&5 <<_ACEOF
1989
1990
1991 ## ----------- ##
1992 ## Core tests. ##
1993 ## ----------- ##
1994
1995 _ACEOF
1996
1997
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_configure_args=
2004 ac_configure_args0=
2005 ac_configure_args1=
2006 ac_must_keep_next=false
2007 for ac_pass in 1 2
2008 do
2009   for ac_arg
2010   do
2011     case $ac_arg in
2012     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014     | -silent | --silent | --silen | --sile | --sil)
2015       continue ;;
2016     *\'*)
2017       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     esac
2019     case $ac_pass in
2020     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021     2)
2022       as_fn_append ac_configure_args1 " '$ac_arg'"
2023       if test $ac_must_keep_next = true; then
2024         ac_must_keep_next=false # Got value, back to normal.
2025       else
2026         case $ac_arg in
2027           *=* | --config-cache | -C | -disable-* | --disable-* \
2028           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030           | -with-* | --with-* | -without-* | --without-* | --x)
2031             case "$ac_configure_args0 " in
2032               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033             esac
2034             ;;
2035           -* ) ac_must_keep_next=true ;;
2036         esac
2037       fi
2038       as_fn_append ac_configure_args " '$ac_arg'"
2039       ;;
2040     esac
2041   done
2042 done
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2045
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log.  We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052   # Save into config.log some information that might help in debugging.
2053   {
2054     echo
2055
2056     $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059     echo
2060     # The following way of writing the cache mishandles newlines in values,
2061 (
2062   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063     eval ac_val=\$$ac_var
2064     case $ac_val in #(
2065     *${as_nl}*)
2066       case $ac_var in #(
2067       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069       esac
2070       case $ac_var in #(
2071       _ | IFS | as_nl) ;; #(
2072       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073       *) { eval $ac_var=; unset $ac_var;} ;;
2074       esac ;;
2075     esac
2076   done
2077   (set) 2>&1 |
2078     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079     *${as_nl}ac_space=\ *)
2080       sed -n \
2081         "s/'\''/'\''\\\\'\'''\''/g;
2082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083       ;; #(
2084     *)
2085       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086       ;;
2087     esac |
2088     sort
2089 )
2090     echo
2091
2092     $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095     echo
2096     for ac_var in $ac_subst_vars
2097     do
2098       eval ac_val=\$$ac_var
2099       case $ac_val in
2100       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101       esac
2102       $as_echo "$ac_var='\''$ac_val'\''"
2103     done | sort
2104     echo
2105
2106     if test -n "$ac_subst_files"; then
2107       $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110       echo
2111       for ac_var in $ac_subst_files
2112       do
2113         eval ac_val=\$$ac_var
2114         case $ac_val in
2115         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116         esac
2117         $as_echo "$ac_var='\''$ac_val'\''"
2118       done | sort
2119       echo
2120     fi
2121
2122     if test -s confdefs.h; then
2123       $as_echo "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126       echo
2127       cat confdefs.h
2128       echo
2129     fi
2130     test "$ac_signal" != 0 &&
2131       $as_echo "$as_me: caught signal $ac_signal"
2132     $as_echo "$as_me: exit $exit_status"
2133   } >&5
2134   rm -f core *.core core.conftest.* &&
2135     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136     exit $exit_status
2137 ' 0
2138 for ac_signal in 1 2 13 15; do
2139   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2142
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2145
2146 $as_echo "/* confdefs.h */" > confdefs.h
2147
2148 # Predefined preprocessor variables.
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2173
2174
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180   # We do not want a PATH search for config.site.
2181   case $CONFIG_SITE in #((
2182     -*)  ac_site_file1=./$CONFIG_SITE;;
2183     */*) ac_site_file1=$CONFIG_SITE;;
2184     *)   ac_site_file1=./$CONFIG_SITE;;
2185   esac
2186 elif test "x$prefix" != xNONE; then
2187   ac_site_file1=$prefix/share/config.site
2188   ac_site_file2=$prefix/etc/config.site
2189 else
2190   ac_site_file1=$ac_default_prefix/share/config.site
2191   ac_site_file2=$ac_default_prefix/etc/config.site
2192 fi
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194 do
2195   test "x$ac_site_file" = xNONE && continue
2196   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199     sed 's/^/| /' "$ac_site_file" >&5
2200     . "$ac_site_file" \
2201       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2205   fi
2206 done
2207
2208 if test -r "$cache_file"; then
2209   # Some versions of bash will fail to source /dev/null (special files
2210   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2211   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214     case $cache_file in
2215       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216       *)                      . "./$cache_file";;
2217     esac
2218   fi
2219 else
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2222   >$cache_file
2223 fi
2224
2225 as_fn_append ac_header_list " stdlib.h"
2226 as_fn_append ac_header_list " unistd.h"
2227 as_fn_append ac_header_list " sys/param.h"
2228 # Check that the precious variables saved in the cache have kept the same
2229 # value.
2230 ac_cache_corrupted=false
2231 for ac_var in $ac_precious_vars; do
2232   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233   eval ac_new_set=\$ac_env_${ac_var}_set
2234   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235   eval ac_new_val=\$ac_env_${ac_var}_value
2236   case $ac_old_set,$ac_new_set in
2237     set,)
2238       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240       ac_cache_corrupted=: ;;
2241     ,set)
2242       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244       ac_cache_corrupted=: ;;
2245     ,);;
2246     *)
2247       if test "x$ac_old_val" != "x$ac_new_val"; then
2248         # differences in whitespace do not lead to failure.
2249         ac_old_val_w=`echo x $ac_old_val`
2250         ac_new_val_w=`echo x $ac_new_val`
2251         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254           ac_cache_corrupted=:
2255         else
2256           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258           eval $ac_var=\$ac_old_val
2259         fi
2260         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2261 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2262         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2264       fi;;
2265   esac
2266   # Pass precious variables to config.status.
2267   if test "$ac_new_set" = set; then
2268     case $ac_new_val in
2269     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270     *) ac_arg=$ac_var=$ac_new_val ;;
2271     esac
2272     case " $ac_configure_args " in
2273       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2274       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275     esac
2276   fi
2277 done
2278 if $ac_cache_corrupted; then
2279   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 fi
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2288
2289 ac_ext=c
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
2295
2296
2297 ac_config_headers="$ac_config_headers config.h"
2298
2299
2300
2301 ac_aux_dir=
2302 for ac_dir in build-aux "$srcdir"/build-aux; do
2303   if test -f "$ac_dir/install-sh"; then
2304     ac_aux_dir=$ac_dir
2305     ac_install_sh="$ac_aux_dir/install-sh -c"
2306     break
2307   elif test -f "$ac_dir/install.sh"; then
2308     ac_aux_dir=$ac_dir
2309     ac_install_sh="$ac_aux_dir/install.sh -c"
2310     break
2311   elif test -f "$ac_dir/shtool"; then
2312     ac_aux_dir=$ac_dir
2313     ac_install_sh="$ac_aux_dir/shtool install -c"
2314     break
2315   fi
2316 done
2317 if test -z "$ac_aux_dir"; then
2318   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2319 fi
2320
2321 # These three variables are undocumented and unsupported,
2322 # and are intended to be withdrawn in a future Autoconf release.
2323 # They can cause serious problems if a builder's source tree is in a directory
2324 # whose full name contains unusual characters.
2325 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2326 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2327 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2328
2329
2330
2331 # Make sure we can run config.sub.
2332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2333   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2334
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2336 $as_echo_n "checking build system type... " >&6; }
2337 if ${ac_cv_build+:} false; then :
2338   $as_echo_n "(cached) " >&6
2339 else
2340   ac_build_alias=$build_alias
2341 test "x$ac_build_alias" = x &&
2342   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2343 test "x$ac_build_alias" = x &&
2344   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2346   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2347
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2350 $as_echo "$ac_cv_build" >&6; }
2351 case $ac_cv_build in
2352 *-*-*) ;;
2353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2354 esac
2355 build=$ac_cv_build
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_build
2358 shift
2359 build_cpu=$1
2360 build_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 build_os=$*
2365 IFS=$ac_save_IFS
2366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2367
2368
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2370 $as_echo_n "checking host system type... " >&6; }
2371 if ${ac_cv_host+:} false; then :
2372   $as_echo_n "(cached) " >&6
2373 else
2374   if test "x$host_alias" = x; then
2375   ac_cv_host=$ac_cv_build
2376 else
2377   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2378     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2379 fi
2380
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2383 $as_echo "$ac_cv_host" >&6; }
2384 case $ac_cv_host in
2385 *-*-*) ;;
2386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2387 esac
2388 host=$ac_cv_host
2389 ac_save_IFS=$IFS; IFS='-'
2390 set x $ac_cv_host
2391 shift
2392 host_cpu=$1
2393 host_vendor=$2
2394 shift; shift
2395 # Remember, the first character of IFS is used to create $*,
2396 # except with old shells:
2397 host_os=$*
2398 IFS=$ac_save_IFS
2399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2400
2401
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2403 $as_echo_n "checking target system type... " >&6; }
2404 if ${ac_cv_target+:} false; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   if test "x$target_alias" = x; then
2408   ac_cv_target=$ac_cv_host
2409 else
2410   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2411     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2412 fi
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2416 $as_echo "$ac_cv_target" >&6; }
2417 case $ac_cv_target in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2420 esac
2421 target=$ac_cv_target
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_target
2424 shift
2425 target_cpu=$1
2426 target_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 target_os=$*
2431 IFS=$ac_save_IFS
2432 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 # The aliases save the names the user supplied, while $host etc.
2436 # will get canonicalized.
2437 test -n "$target_alias" &&
2438   test "$program_prefix$program_suffix$program_transform_name" = \
2439     NONENONEs,x,x, &&
2440   program_prefix=${target_alias}-
2441
2442 am__api_version='1.11'
2443
2444 # Find a good install program.  We prefer a C program (faster),
2445 # so one script is as good as another.  But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if ${ac_cv_path_install+:} false; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469     # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471   ./ | .// | /[cC]/* | \
2472   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474   /usr/ucb/* ) ;;
2475   *)
2476     # OSF1 and SCO ODT 3.0 have their own names for install.
2477     # Don't use installbsd from OSF since it installs stuff as root
2478     # by default.
2479     for ac_prog in ginstall scoinst install; do
2480       for ac_exec_ext in '' $ac_executable_extensions; do
2481         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2482           if test $ac_prog = install &&
2483             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484             # AIX install.  It has an incompatible calling convention.
2485             :
2486           elif test $ac_prog = install &&
2487             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488             # program-specific install script used by HP pwplus--don't use.
2489             :
2490           else
2491             rm -rf conftest.one conftest.two conftest.dir
2492             echo one > conftest.one
2493             echo two > conftest.two
2494             mkdir conftest.dir
2495             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496               test -s conftest.one && test -s conftest.two &&
2497               test -s conftest.dir/conftest.one &&
2498               test -s conftest.dir/conftest.two
2499             then
2500               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501               break 3
2502             fi
2503           fi
2504         fi
2505       done
2506     done
2507     ;;
2508 esac
2509
2510   done
2511 IFS=$as_save_IFS
2512
2513 rm -rf conftest.one conftest.two conftest.dir
2514
2515 fi
2516   if test "${ac_cv_path_install+set}" = set; then
2517     INSTALL=$ac_cv_path_install
2518   else
2519     # As a last resort, use the slow shell script.  Don't cache a
2520     # value for INSTALL within a source directory, because that will
2521     # break other packages using the cache if that directory is
2522     # removed, or if the value is a relative name.
2523     INSTALL=$ac_install_sh
2524   fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2528
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2538 $as_echo_n "checking whether build environment is sane... " >&6; }
2539 # Just in case
2540 sleep 1
2541 echo timestamp > conftest.file
2542 # Reject unsafe characters in $srcdir or the absolute working directory
2543 # name.  Accept space and tab only in the latter.
2544 am_lf='
2545 '
2546 case `pwd` in
2547   *[\\\"\#\$\&\'\`$am_lf]*)
2548     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2549 esac
2550 case $srcdir in
2551   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2552     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2553 esac
2554
2555 # Do `set' in a subshell so we don't clobber the current shell's
2556 # arguments.  Must try -L first in case configure is actually a
2557 # symlink; some systems play weird games with the mod time of symlinks
2558 # (eg FreeBSD returns the mod time of the symlink's containing
2559 # directory).
2560 if (
2561    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2562    if test "$*" = "X"; then
2563       # -L didn't work.
2564       set X `ls -t "$srcdir/configure" conftest.file`
2565    fi
2566    rm -f conftest.file
2567    if test "$*" != "X $srcdir/configure conftest.file" \
2568       && test "$*" != "X conftest.file $srcdir/configure"; then
2569
2570       # If neither matched, then we have a broken ls.  This can happen
2571       # if, for instance, CONFIG_SHELL is bash and it inherits a
2572       # broken ls alias from the environment.  This has actually
2573       # happened.  Such a system could not be considered "sane".
2574       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2575 alias in your environment" "$LINENO" 5
2576    fi
2577
2578    test "$2" = conftest.file
2579    )
2580 then
2581    # Ok.
2582    :
2583 else
2584    as_fn_error $? "newly created file is older than distributed files!
2585 Check your system clock" "$LINENO" 5
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 test "$program_prefix" != NONE &&
2590   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591 # Use a double $ so make ignores it.
2592 test "$program_suffix" != NONE &&
2593   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594 # Double any \ or $.
2595 # By default was `s,x,x', remove it if useless.
2596 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2598
2599 # expand $ac_aux_dir to an absolute path
2600 am_aux_dir=`cd $ac_aux_dir && pwd`
2601
2602 if test x"${MISSING+set}" != xset; then
2603   case $am_aux_dir in
2604   *\ * | *\     *)
2605     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2606   *)
2607     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608   esac
2609 fi
2610 # Use eval to expand $SHELL
2611 if eval "$MISSING --run true"; then
2612   am_missing_run="$MISSING --run "
2613 else
2614   am_missing_run=
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2616 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2617 fi
2618
2619 if test x"${install_sh}" != xset; then
2620   case $am_aux_dir in
2621   *\ * | *\     *)
2622     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2623   *)
2624     install_sh="\${SHELL} $am_aux_dir/install-sh"
2625   esac
2626 fi
2627
2628 # Installed binaries are usually stripped using `strip' when the user
2629 # run `make install-strip'.  However `strip' might not be the right
2630 # tool to use in cross-compilation environments, therefore Automake
2631 # will honor the `STRIP' environment variable to overrule this program.
2632 if test "$cross_compiling" != no; then
2633   if test -n "$ac_tool_prefix"; then
2634   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_STRIP+:} false; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$STRIP"; then
2642   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649     for ac_exec_ext in '' $ac_executable_extensions; do
2650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656   done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 STRIP=$ac_cv_prog_STRIP
2662 if test -n "$STRIP"; then
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664 $as_echo "$STRIP" >&6; }
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671 fi
2672 if test -z "$ac_cv_prog_STRIP"; then
2673   ac_ct_STRIP=$STRIP
2674   # Extract the first word of "strip", so it can be a program name with args.
2675 set dummy strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if test -n "$ac_ct_STRIP"; then
2682   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_exec_ext in '' $ac_executable_extensions; do
2690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_ac_ct_STRIP="strip"
2692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696   done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702 if test -n "$ac_ct_STRIP"; then
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704 $as_echo "$ac_ct_STRIP" >&6; }
2705 else
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710   if test "x$ac_ct_STRIP" = x; then
2711     STRIP=":"
2712   else
2713     case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719     STRIP=$ac_ct_STRIP
2720   fi
2721 else
2722   STRIP="$ac_cv_prog_STRIP"
2723 fi
2724
2725 fi
2726 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2727
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730 if test -z "$MKDIR_P"; then
2731   if ${ac_cv_path_mkdir+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739     for ac_prog in mkdir gmkdir; do
2740          for ac_exec_ext in '' $ac_executable_extensions; do
2741            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2742            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743              'mkdir (GNU coreutils) '* | \
2744              'mkdir (coreutils) '* | \
2745              'mkdir (fileutils) '4.1*)
2746                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747                break 3;;
2748            esac
2749          done
2750        done
2751   done
2752 IFS=$as_save_IFS
2753
2754 fi
2755
2756   test -d ./--version && rmdir ./--version
2757   if test "${ac_cv_path_mkdir+set}" = set; then
2758     MKDIR_P="$ac_cv_path_mkdir -p"
2759   else
2760     # As a last resort, use the slow shell script.  Don't cache a
2761     # value for MKDIR_P within a source directory, because that will
2762     # break other packages using the cache if that directory is
2763     # removed, or if the value is a relative name.
2764     MKDIR_P="$ac_install_sh -d"
2765   fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768 $as_echo "$MKDIR_P" >&6; }
2769
2770 mkdir_p="$MKDIR_P"
2771 case $mkdir_p in
2772   [\\/$]* | ?:[\\/]*) ;;
2773   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2774 esac
2775
2776 for ac_prog in gawk mawk nawk awk
2777 do
2778   # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_AWK+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$AWK"; then
2786   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_prog_AWK="$ac_prog"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 AWK=$ac_cv_prog_AWK
2806 if test -n "$AWK"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2808 $as_echo "$AWK" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815   test -n "$AWK" && break
2816 done
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2820 set x ${MAKE-make}
2821 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   cat >conftest.make <<\_ACEOF
2826 SHELL = /bin/sh
2827 all:
2828         @echo '@@@%%%=$(MAKE)=@@@%%%'
2829 _ACEOF
2830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2832   *@@@%%%=?*=@@@%%%*)
2833     eval ac_cv_prog_make_${ac_make}_set=yes;;
2834   *)
2835     eval ac_cv_prog_make_${ac_make}_set=no;;
2836 esac
2837 rm -f conftest.make
2838 fi
2839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2842   SET_MAKE=
2843 else
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846   SET_MAKE="MAKE=${MAKE-make}"
2847 fi
2848
2849 rm -rf .tst 2>/dev/null
2850 mkdir .tst 2>/dev/null
2851 if test -d .tst; then
2852   am__leading_dot=.
2853 else
2854   am__leading_dot=_
2855 fi
2856 rmdir .tst 2>/dev/null
2857
2858 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2859   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2860   # is not polluted with repeated "-I."
2861   am__isrc=' -I$(srcdir)'
2862   # test to see if srcdir already configured
2863   if test -f $srcdir/config.status; then
2864     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2865   fi
2866 fi
2867
2868 # test whether we have cygpath
2869 if test -z "$CYGPATH_W"; then
2870   if (cygpath --version) >/dev/null 2>/dev/null; then
2871     CYGPATH_W='cygpath -w'
2872   else
2873     CYGPATH_W=echo
2874   fi
2875 fi
2876
2877
2878 # Define the identity of the package.
2879  PACKAGE='gupnp'
2880  VERSION='0.20.5'
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE "$PACKAGE"
2885 _ACEOF
2886
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define VERSION "$VERSION"
2890 _ACEOF
2891
2892 # Some tools Automake needs.
2893
2894 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2895
2896
2897 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2898
2899
2900 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2901
2902
2903 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2904
2905
2906 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2907
2908 # We need awk for the "check" target.  The system "awk" is bad on
2909 # some platforms.
2910 # Always define AMTAR for backward compatibility.  Yes, it's still used
2911 # in the wild :-(  We should find a proper way to deprecate it ...
2912 AMTAR='$${TAR-tar}'
2913
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2916 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2917 # Loop over all known methods to create a tar archive until one works.
2918 _am_tools='gnutar plaintar pax cpio none'
2919 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2920 # Do not fold the above two line into one, because Tru64 sh and
2921 # Solaris sh will not grok spaces in the rhs of `-'.
2922 for _am_tool in $_am_tools
2923 do
2924   case $_am_tool in
2925   gnutar)
2926     for _am_tar in tar gnutar gtar;
2927     do
2928       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2929    ($_am_tar --version) >&5 2>&5
2930    ac_status=$?
2931    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932    (exit $ac_status); } && break
2933     done
2934     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2935     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2936     am__untar="$_am_tar -xf -"
2937     ;;
2938   plaintar)
2939     # Must skip GNU tar: if it does not support --format= it doesn't create
2940     # ustar tarball either.
2941     (tar --version) >/dev/null 2>&1 && continue
2942     am__tar='tar chf - "$$tardir"'
2943     am__tar_='tar chf - "$tardir"'
2944     am__untar='tar xf -'
2945     ;;
2946   pax)
2947     am__tar='pax -L -x ustar -w "$$tardir"'
2948     am__tar_='pax -L -x ustar -w "$tardir"'
2949     am__untar='pax -r'
2950     ;;
2951   cpio)
2952     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2953     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2954     am__untar='cpio -i -H ustar -d'
2955     ;;
2956   none)
2957     am__tar=false
2958     am__tar_=false
2959     am__untar=false
2960     ;;
2961   esac
2962
2963   # If the value was cached, stop now.  We just wanted to have am__tar
2964   # and am__untar set.
2965   test -n "${am_cv_prog_tar_ustar}" && break
2966
2967   # tar/untar a dummy directory, and stop if the command works
2968   rm -rf conftest.dir
2969   mkdir conftest.dir
2970   echo GrepMe > conftest.dir/file
2971   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2972    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2973    ac_status=$?
2974    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975    (exit $ac_status); }
2976   rm -rf conftest.dir
2977   if test -s conftest.tar; then
2978     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2979    ($am__untar <conftest.tar) >&5 2>&5
2980    ac_status=$?
2981    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982    (exit $ac_status); }
2983     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2984   fi
2985 done
2986 rm -rf conftest.dir
2987
2988 if ${am_cv_prog_tar_ustar+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   am_cv_prog_tar_ustar=$_am_tool
2992 fi
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2995 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2996
2997
2998
2999
3000
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3003 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3004     # Check whether --enable-maintainer-mode was given.
3005 if test "${enable_maintainer_mode+set}" = set; then :
3006   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3007 else
3008   USE_MAINTAINER_MODE=yes
3009 fi
3010
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3012 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3013    if test $USE_MAINTAINER_MODE = yes; then
3014   MAINTAINER_MODE_TRUE=
3015   MAINTAINER_MODE_FALSE='#'
3016 else
3017   MAINTAINER_MODE_TRUE='#'
3018   MAINTAINER_MODE_FALSE=
3019 fi
3020
3021   MAINT=$MAINTAINER_MODE_TRUE
3022
3023
3024
3025 # Check whether --enable-silent-rules was given.
3026 if test "${enable_silent_rules+set}" = set; then :
3027   enableval=$enable_silent_rules;
3028 fi
3029
3030 case $enable_silent_rules in
3031 yes) AM_DEFAULT_VERBOSITY=0;;
3032 no)  AM_DEFAULT_VERBOSITY=1;;
3033 *)   AM_DEFAULT_VERBOSITY=0;;
3034 esac
3035 am_make=${MAKE-make}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3037 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3038 if ${am_cv_make_support_nested_variables+:} false; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if $as_echo 'TRUE=$(BAR$(V))
3042 BAR0=false
3043 BAR1=true
3044 V=1
3045 am__doit:
3046         @$(TRUE)
3047 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3048   am_cv_make_support_nested_variables=yes
3049 else
3050   am_cv_make_support_nested_variables=no
3051 fi
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3054 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3055 if test $am_cv_make_support_nested_variables = yes; then
3056     AM_V='$(V)'
3057   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3058 else
3059   AM_V=$AM_DEFAULT_VERBOSITY
3060   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3061 fi
3062 AM_BACKSLASH='\'
3063
3064
3065 # Check for programs
3066 ac_ext=c
3067 ac_cpp='$CPP $CPPFLAGS'
3068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071 if test -n "$ac_tool_prefix"; then
3072   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$CC"; then
3080   ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$ac_cv_prog_CC"; then
3111   ac_ct_CC=$CC
3112   # Extract the first word of "gcc", so it can be a program name with args.
3113 set dummy gcc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$ac_ct_CC"; then
3120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129     ac_cv_prog_ac_ct_CC="gcc"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140 if test -n "$ac_ct_CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3142 $as_echo "$ac_ct_CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148   if test "x$ac_ct_CC" = x; then
3149     CC=""
3150   else
3151     case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157     CC=$ac_ct_CC
3158   fi
3159 else
3160   CC="$ac_cv_prog_CC"
3161 fi
3162
3163 if test -z "$CC"; then
3164           if test -n "$ac_tool_prefix"; then
3165     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}cc; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test -n "$CC"; then
3173   ac_cv_prog_CC="$CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_exec_ext in '' $ac_executable_extensions; do
3181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182     ac_cv_prog_CC="${ac_tool_prefix}cc"
3183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187   done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 CC=$ac_cv_prog_CC
3193 if test -n "$CC"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 $as_echo "$CC" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202   fi
3203 fi
3204 if test -z "$CC"; then
3205   # Extract the first word of "cc", so it can be a program name with args.
3206 set dummy cc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   if test -n "$CC"; then
3213   ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215   ac_prog_rejected=no
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3224        ac_prog_rejected=yes
3225        continue
3226      fi
3227     ac_cv_prog_CC="cc"
3228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232   done
3233 IFS=$as_save_IFS
3234
3235 if test $ac_prog_rejected = yes; then
3236   # We found a bogon in the path, so make sure we never use it.
3237   set dummy $ac_cv_prog_CC
3238   shift
3239   if test $# != 0; then
3240     # We chose a different compiler from the bogus one.
3241     # However, it has the same basename, so the bogon will be chosen
3242     # first if we set CC to just the basename; use the full file name.
3243     shift
3244     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3245   fi
3246 fi
3247 fi
3248 fi
3249 CC=$ac_cv_prog_CC
3250 if test -n "$CC"; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252 $as_echo "$CC" >&6; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258
3259 fi
3260 if test -z "$CC"; then
3261   if test -n "$ac_tool_prefix"; then
3262   for ac_prog in cl.exe
3263   do
3264     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -n "$CC"; then
3272   ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279     for ac_exec_ext in '' $ac_executable_extensions; do
3280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286   done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301     test -n "$CC" && break
3302   done
3303 fi
3304 if test -z "$CC"; then
3305   ac_ct_CC=$CC
3306   for ac_prog in cl.exe
3307 do
3308   # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3313   $as_echo_n "(cached) " >&6
3314 else
3315   if test -n "$ac_ct_CC"; then
3316   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321   IFS=$as_save_IFS
3322   test -z "$as_dir" && as_dir=.
3323     for ac_exec_ext in '' $ac_executable_extensions; do
3324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325     ac_cv_prog_ac_ct_CC="$ac_prog"
3326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327     break 2
3328   fi
3329 done
3330   done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3338 $as_echo "$ac_ct_CC" >&6; }
3339 else
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345   test -n "$ac_ct_CC" && break
3346 done
3347
3348   if test "x$ac_ct_CC" = x; then
3349     CC=""
3350   else
3351     case $cross_compiling:$ac_tool_warned in
3352 yes:)
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355 ac_tool_warned=yes ;;
3356 esac
3357     CC=$ac_ct_CC
3358   fi
3359 fi
3360
3361 fi
3362
3363
3364 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error $? "no acceptable C compiler found in \$PATH
3367 See \`config.log' for more details" "$LINENO" 5; }
3368
3369 # Provide some information about the compiler.
3370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3371 set X $ac_compile
3372 ac_compiler=$2
3373 for ac_option in --version -v -V -qversion; do
3374   { { ac_try="$ac_compiler $ac_option >&5"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3382   ac_status=$?
3383   if test -s conftest.err; then
3384     sed '10a\
3385 ... rest of stderr output deleted ...
3386          10q' conftest.err >conftest.er1
3387     cat conftest.er1 >&5
3388   fi
3389   rm -f conftest.er1 conftest.err
3390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391   test $ac_status = 0; }
3392 done
3393
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h.  */
3396
3397 int
3398 main ()
3399 {
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 ac_clean_files_save=$ac_clean_files
3406 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3407 # Try to create an executable without -o first, disregard a.out.
3408 # It will help us diagnose broken compilers, and finding out an intuition
3409 # of exeext.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3411 $as_echo_n "checking whether the C compiler works... " >&6; }
3412 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413
3414 # The possible output files:
3415 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3416
3417 ac_rmfiles=
3418 for ac_file in $ac_files
3419 do
3420   case $ac_file in
3421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3423   esac
3424 done
3425 rm -f $ac_rmfiles
3426
3427 if { { ac_try="$ac_link_default"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434   (eval "$ac_link_default") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437   test $ac_status = 0; }; then :
3438   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3439 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3440 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3441 # so that the user can short-circuit this test for compilers unknown to
3442 # Autoconf.
3443 for ac_file in $ac_files ''
3444 do
3445   test -f "$ac_file" || continue
3446   case $ac_file in
3447     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3448         ;;
3449     [ab].out )
3450         # We found the default executable, but exeext='' is most
3451         # certainly right.
3452         break;;
3453     *.* )
3454         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455         then :; else
3456            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457         fi
3458         # We set ac_cv_exeext here because the later test for it is not
3459         # safe: cross compilers may not add the suffix if given an `-o'
3460         # argument, so we may need to know it at that point already.
3461         # Even if this section looks crufty: it has the advantage of
3462         # actually working.
3463         break;;
3464     * )
3465         break;;
3466   esac
3467 done
3468 test "$ac_cv_exeext" = no && ac_cv_exeext=
3469
3470 else
3471   ac_file=''
3472 fi
3473 if test -z "$ac_file"; then :
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error 77 "C compiler cannot create executables
3482 See \`config.log' for more details" "$LINENO" 5; }
3483 else
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 $as_echo "yes" >&6; }
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3488 $as_echo_n "checking for C compiler default output file name... " >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3490 $as_echo "$ac_file" >&6; }
3491 ac_exeext=$ac_cv_exeext
3492
3493 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3494 ac_clean_files=$ac_clean_files_save
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3496 $as_echo_n "checking for suffix of executables... " >&6; }
3497 if { { ac_try="$ac_link"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504   (eval "$ac_link") 2>&5
3505   ac_status=$?
3506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507   test $ac_status = 0; }; then :
3508   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3509 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3510 # work properly (i.e., refer to `conftest.exe'), while it won't with
3511 # `rm'.
3512 for ac_file in conftest.exe conftest conftest.*; do
3513   test -f "$ac_file" || continue
3514   case $ac_file in
3515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517           break;;
3518     * ) break;;
3519   esac
3520 done
3521 else
3522   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3525 See \`config.log' for more details" "$LINENO" 5; }
3526 fi
3527 rm -f conftest conftest$ac_cv_exeext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3529 $as_echo "$ac_cv_exeext" >&6; }
3530
3531 rm -f conftest.$ac_ext
3532 EXEEXT=$ac_cv_exeext
3533 ac_exeext=$EXEEXT
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h.  */
3536 #include <stdio.h>
3537 int
3538 main ()
3539 {
3540 FILE *f = fopen ("conftest.out", "w");
3541  return ferror (f) || fclose (f) != 0;
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 ac_clean_files="$ac_clean_files conftest.out"
3548 # Check that the compiler produces executables we can run.  If not, either
3549 # the compiler is broken, or we cross compile.
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3551 $as_echo_n "checking whether we are cross compiling... " >&6; }
3552 if test "$cross_compiling" != yes; then
3553   { { ac_try="$ac_link"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560   (eval "$ac_link") 2>&5
3561   ac_status=$?
3562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563   test $ac_status = 0; }
3564   if { ac_try='./conftest$ac_cv_exeext'
3565   { { case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571   (eval "$ac_try") 2>&5
3572   ac_status=$?
3573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574   test $ac_status = 0; }; }; then
3575     cross_compiling=no
3576   else
3577     if test "$cross_compiling" = maybe; then
3578         cross_compiling=yes
3579     else
3580         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error $? "cannot run C compiled programs.
3583 If you meant to cross compile, use \`--host'.
3584 See \`config.log' for more details" "$LINENO" 5; }
3585     fi
3586   fi
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3589 $as_echo "$cross_compiling" >&6; }
3590
3591 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3592 ac_clean_files=$ac_clean_files_save
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3594 $as_echo_n "checking for suffix of object files... " >&6; }
3595 if ${ac_cv_objext+:} false; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h.  */
3600
3601 int
3602 main ()
3603 {
3604
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.o conftest.obj
3610 if { { ac_try="$ac_compile"
3611 case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617   (eval "$ac_compile") 2>&5
3618   ac_status=$?
3619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620   test $ac_status = 0; }; then :
3621   for ac_file in conftest.o conftest.obj conftest.*; do
3622   test -f "$ac_file" || continue;
3623   case $ac_file in
3624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3625     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3626        break;;
3627   esac
3628 done
3629 else
3630   $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $? "cannot compute suffix of object files: cannot compile
3636 See \`config.log' for more details" "$LINENO" 5; }
3637 fi
3638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639 fi
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3641 $as_echo "$ac_cv_objext" >&6; }
3642 OBJEXT=$ac_cv_objext
3643 ac_objext=$OBJEXT
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3646 if ${ac_cv_c_compiler_gnu+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655 #ifndef __GNUC__
3656        choke me
3657 #endif
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664   ac_compiler_gnu=yes
3665 else
3666   ac_compiler_gnu=no
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3670
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3674 if test $ac_compiler_gnu = yes; then
3675   GCC=yes
3676 else
3677   GCC=
3678 fi
3679 ac_test_CFLAGS=${CFLAGS+set}
3680 ac_save_CFLAGS=$CFLAGS
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3683 if ${ac_cv_prog_cc_g+:} false; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   ac_save_c_werror_flag=$ac_c_werror_flag
3687    ac_c_werror_flag=yes
3688    ac_cv_prog_cc_g=no
3689    CFLAGS="-g"
3690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h.  */
3692
3693 int
3694 main ()
3695 {
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702   ac_cv_prog_cc_g=yes
3703 else
3704   CFLAGS=""
3705       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h.  */
3707
3708 int
3709 main ()
3710 {
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717
3718 else
3719   ac_c_werror_flag=$ac_save_c_werror_flag
3720          CFLAGS="-g"
3721          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733   ac_cv_prog_cc_g=yes
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740    ac_c_werror_flag=$ac_save_c_werror_flag
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3743 $as_echo "$ac_cv_prog_cc_g" >&6; }
3744 if test "$ac_test_CFLAGS" = set; then
3745   CFLAGS=$ac_save_CFLAGS
3746 elif test $ac_cv_prog_cc_g = yes; then
3747   if test "$GCC" = yes; then
3748     CFLAGS="-g -O2"
3749   else
3750     CFLAGS="-g"
3751   fi
3752 else
3753   if test "$GCC" = yes; then
3754     CFLAGS="-O2"
3755   else
3756     CFLAGS=
3757   fi
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3761 if ${ac_cv_prog_cc_c89+:} false; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   ac_cv_prog_cc_c89=no
3765 ac_save_CC=$CC
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <stdarg.h>
3769 #include <stdio.h>
3770 struct stat;
3771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3772 struct buf { int x; };
3773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3774 static char *e (p, i)
3775      char **p;
3776      int i;
3777 {
3778   return p[i];
3779 }
3780 static char *f (char * (*g) (char **, int), char **p, ...)
3781 {
3782   char *s;
3783   va_list v;
3784   va_start (v,p);
3785   s = g (p, va_arg (v,int));
3786   va_end (v);
3787   return s;
3788 }
3789
3790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3791    function prototypes and stuff, but not '\xHH' hex character constants.
3792    These don't provoke an error unfortunately, instead are silently treated
3793    as 'x'.  The following induces an error, until -std is added to get
3794    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3795    array size at least.  It's necessary to write '\x00'==0 to get something
3796    that's true only with -std.  */
3797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798
3799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3800    inside strings and character constants.  */
3801 #define FOO(x) 'x'
3802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803
3804 int test (int i, double x);
3805 struct s1 {int (*f) (int a);};
3806 struct s2 {int (*f) (double a);};
3807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3808 int argc;
3809 char **argv;
3810 int
3811 main ()
3812 {
3813 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3819         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820 do
3821   CC="$ac_save_CC $ac_arg"
3822   if ac_fn_c_try_compile "$LINENO"; then :
3823   ac_cv_prog_cc_c89=$ac_arg
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext
3826   test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 done
3828 rm -f conftest.$ac_ext
3829 CC=$ac_save_CC
3830
3831 fi
3832 # AC_CACHE_VAL
3833 case "x$ac_cv_prog_cc_c89" in
3834   x)
3835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3836 $as_echo "none needed" >&6; } ;;
3837   xno)
3838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3839 $as_echo "unsupported" >&6; } ;;
3840   *)
3841     CC="$CC $ac_cv_prog_cc_c89"
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3843 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3844 esac
3845 if test "x$ac_cv_prog_cc_c89" != xno; then :
3846
3847 fi
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 DEPDIR="${am__leading_dot}deps"
3855
3856 ac_config_commands="$ac_config_commands depfiles"
3857
3858
3859 am_make=${MAKE-make}
3860 cat > confinc << 'END'
3861 am__doit:
3862         @echo this is the am__doit target
3863 .PHONY: am__doit
3864 END
3865 # If we don't find an include directive, just comment out the code.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3868 am__include="#"
3869 am__quote=
3870 _am_result=none
3871 # First try GNU make style include.
3872 echo "include confinc" > confmf
3873 # Ignore all kinds of additional output from `make'.
3874 case `$am_make -s -f confmf 2> /dev/null` in #(
3875 *the\ am__doit\ target*)
3876   am__include=include
3877   am__quote=
3878   _am_result=GNU
3879   ;;
3880 esac
3881 # Now try BSD make style include.
3882 if test "$am__include" = "#"; then
3883    echo '.include "confinc"' > confmf
3884    case `$am_make -s -f confmf 2> /dev/null` in #(
3885    *the\ am__doit\ target*)
3886      am__include=.include
3887      am__quote="\""
3888      _am_result=BSD
3889      ;;
3890    esac
3891 fi
3892
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3895 $as_echo "$_am_result" >&6; }
3896 rm -f confinc confmf
3897
3898 # Check whether --enable-dependency-tracking was given.
3899 if test "${enable_dependency_tracking+set}" = set; then :
3900   enableval=$enable_dependency_tracking;
3901 fi
3902
3903 if test "x$enable_dependency_tracking" != xno; then
3904   am_depcomp="$ac_aux_dir/depcomp"
3905   AMDEPBACKSLASH='\'
3906   am__nodep='_no'
3907 fi
3908  if test "x$enable_dependency_tracking" != xno; then
3909   AMDEP_TRUE=
3910   AMDEP_FALSE='#'
3911 else
3912   AMDEP_TRUE='#'
3913   AMDEP_FALSE=
3914 fi
3915
3916
3917
3918 depcc="$CC"   am_compiler_list=
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921 $as_echo_n "checking dependency style of $depcc... " >&6; }
3922 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926   # We make a subdir and do the tests there.  Otherwise we can end up
3927   # making bogus files that we don't know about and never remove.  For
3928   # instance it was reported that on HP-UX the gcc test will end up
3929   # making a dummy file named `D' -- because `-MD' means `put the output
3930   # in D'.
3931   rm -rf conftest.dir
3932   mkdir conftest.dir
3933   # Copy depcomp to subdir because otherwise we won't find it if we're
3934   # using a relative directory.
3935   cp "$am_depcomp" conftest.dir
3936   cd conftest.dir
3937   # We will build objects and dependencies in a subdirectory because
3938   # it helps to detect inapplicable dependency modes.  For instance
3939   # both Tru64's cc and ICC support -MD to output dependencies as a
3940   # side effect of compilation, but ICC will put the dependencies in
3941   # the current directory while Tru64 will put them in the object
3942   # directory.
3943   mkdir sub
3944
3945   am_cv_CC_dependencies_compiler_type=none
3946   if test "$am_compiler_list" = ""; then
3947      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948   fi
3949   am__universal=false
3950   case " $depcc " in #(
3951      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3952      esac
3953
3954   for depmode in $am_compiler_list; do
3955     # Setup a source with many dependencies, because some compilers
3956     # like to wrap large dependency lists on column 80 (with \), and
3957     # we should not choose a depcomp mode which is confused by this.
3958     #
3959     # We need to recreate these files for each test, as the compiler may
3960     # overwrite some of them when testing with obscure command lines.
3961     # This happens at least with the AIX C compiler.
3962     : > sub/conftest.c
3963     for i in 1 2 3 4 5 6; do
3964       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3966       # Solaris 8's {/usr,}/bin/sh.
3967       touch sub/conftst$i.h
3968     done
3969     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3972     # mode.  It turns out that the SunPro C++ compiler does not properly
3973     # handle `-M -o', and we need to detect this.  Also, some Intel
3974     # versions had trouble with output in subdirs
3975     am__obj=sub/conftest.${OBJEXT-o}
3976     am__minus_obj="-o $am__obj"
3977     case $depmode in
3978     gcc)
3979       # This depmode causes a compiler race in universal mode.
3980       test "$am__universal" = false || continue
3981       ;;
3982     nosideeffect)
3983       # after this tag, mechanisms are not by side-effect, so they'll
3984       # only be used when explicitly requested
3985       if test "x$enable_dependency_tracking" = xyes; then
3986         continue
3987       else
3988         break
3989       fi
3990       ;;
3991     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992       # This compiler won't grok `-c -o', but also, the minuso test has
3993       # not run yet.  These depmodes are late enough in the game, and
3994       # so weak that their functioning should not be impacted.
3995       am__obj=conftest.${OBJEXT-o}
3996       am__minus_obj=
3997       ;;
3998     none) break ;;
3999     esac
4000     if depmode=$depmode \
4001        source=sub/conftest.c object=$am__obj \
4002        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4003        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4004          >/dev/null 2>conftest.err &&
4005        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4006        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4007        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4008        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009       # icc doesn't choke on unknown options, it will just issue warnings
4010       # or remarks (even with -Werror).  So we grep stderr for any message
4011       # that says an option was ignored or not supported.
4012       # When given -MP, icc 7.0 and 7.1 complain thusly:
4013       #   icc: Command line warning: ignoring option '-M'; no argument required
4014       # The diagnosis changed in icc 8.0:
4015       #   icc: Command line remark: option '-MP' not supported
4016       if (grep 'ignoring option' conftest.err ||
4017           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4018         am_cv_CC_dependencies_compiler_type=$depmode
4019         break
4020       fi
4021     fi
4022   done
4023
4024   cd ..
4025   rm -rf conftest.dir
4026 else
4027   am_cv_CC_dependencies_compiler_type=none
4028 fi
4029
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4032 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4033 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4034
4035  if
4036   test "x$enable_dependency_tracking" != xno \
4037   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4038   am__fastdepCC_TRUE=
4039   am__fastdepCC_FALSE='#'
4040 else
4041   am__fastdepCC_TRUE='#'
4042   am__fastdepCC_FALSE=
4043 fi
4044
4045
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4054 # On Suns, sometimes $CPP names a directory.
4055 if test -n "$CPP" && test -d "$CPP"; then
4056   CPP=
4057 fi
4058 if test -z "$CPP"; then
4059   if ${ac_cv_prog_CPP+:} false; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062       # Double quotes because CPP needs to be expanded
4063     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064     do
4065       ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4067 do
4068   # Use a header file that comes with gcc, so configuring glibc
4069   # with a fresh cross-compiler works.
4070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071   # <limits.h> exists even on freestanding compilers.
4072   # On the NeXT, cc -E runs the code through the compiler's parser,
4073   # not just through cpp. "Syntax error" is here to catch this case.
4074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081                      Syntax error
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084
4085 else
4086   # Broken: fails on valid input.
4087 continue
4088 fi
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4090
4091   # OK, works on sane cases.  Now check whether nonexistent headers
4092   # can be detected and how.
4093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098   # Broken: success on invalid input.
4099 continue
4100 else
4101   # Passes both tests.
4102 ac_preproc_ok=:
4103 break
4104 fi
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4106
4107 done
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4111   break
4112 fi
4113
4114     done
4115     ac_cv_prog_CPP=$CPP
4116
4117 fi
4118   CPP=$ac_cv_prog_CPP
4119 else
4120   ac_cv_prog_CPP=$CPP
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4123 $as_echo "$CPP" >&6; }
4124 ac_preproc_ok=false
4125 for ac_c_preproc_warn_flag in '' yes
4126 do
4127   # Use a header file that comes with gcc, so configuring glibc
4128   # with a fresh cross-compiler works.
4129   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130   # <limits.h> exists even on freestanding compilers.
4131   # On the NeXT, cc -E runs the code through the compiler's parser,
4132   # not just through cpp. "Syntax error" is here to catch this case.
4133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h.  */
4135 #ifdef __STDC__
4136 # include <limits.h>
4137 #else
4138 # include <assert.h>
4139 #endif
4140                      Syntax error
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4143
4144 else
4145   # Broken: fails on valid input.
4146 continue
4147 fi
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4149
4150   # OK, works on sane cases.  Now check whether nonexistent headers
4151   # can be detected and how.
4152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154 #include <ac_nonexistent.h>
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157   # Broken: success on invalid input.
4158 continue
4159 else
4160   # Passes both tests.
4161 ac_preproc_ok=:
4162 break
4163 fi
4164 rm -f conftest.err conftest.i conftest.$ac_ext
4165
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.i conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then :
4170
4171 else
4172   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details" "$LINENO" 5; }
4176 fi
4177
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4186 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4187 if ${ac_cv_path_GREP+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -z "$GREP"; then
4191   ac_path_GREP_found=false
4192   # Loop through the user's path and test for each of PROGNAME-LIST
4193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_prog in grep ggrep; do
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4201       as_fn_executable_p "$ac_path_GREP" || continue
4202 # Check for GNU ac_path_GREP and select it if it is found.
4203   # Check for GNU $ac_path_GREP
4204 case `"$ac_path_GREP" --version 2>&1` in
4205 *GNU*)
4206   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4207 *)
4208   ac_count=0
4209   $as_echo_n 0123456789 >"conftest.in"
4210   while :
4211   do
4212     cat "conftest.in" "conftest.in" >"conftest.tmp"
4213     mv "conftest.tmp" "conftest.in"
4214     cp "conftest.in" "conftest.nl"
4215     $as_echo 'GREP' >> "conftest.nl"
4216     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218     as_fn_arith $ac_count + 1 && ac_count=$as_val
4219     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4220       # Best one so far, save it but keep looking for a better one
4221       ac_cv_path_GREP="$ac_path_GREP"
4222       ac_path_GREP_max=$ac_count
4223     fi
4224     # 10*(2^10) chars as input seems more than enough
4225     test $ac_count -gt 10 && break
4226   done
4227   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228 esac
4229
4230       $ac_path_GREP_found && break 3
4231     done
4232   done
4233   done
4234 IFS=$as_save_IFS
4235   if test -z "$ac_cv_path_GREP"; then
4236     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237   fi
4238 else
4239   ac_cv_path_GREP=$GREP
4240 fi
4241
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4244 $as_echo "$ac_cv_path_GREP" >&6; }
4245  GREP="$ac_cv_path_GREP"
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4249 $as_echo_n "checking for egrep... " >&6; }
4250 if ${ac_cv_path_EGREP+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4254    then ac_cv_path_EGREP="$GREP -E"
4255    else
4256      if test -z "$EGREP"; then
4257   ac_path_EGREP_found=false
4258   # Loop through the user's path and test for each of PROGNAME-LIST
4259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264     for ac_prog in egrep; do
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4267       as_fn_executable_p "$ac_path_EGREP" || continue
4268 # Check for GNU ac_path_EGREP and select it if it is found.
4269   # Check for GNU $ac_path_EGREP
4270 case `"$ac_path_EGREP" --version 2>&1` in
4271 *GNU*)
4272   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4273 *)
4274   ac_count=0
4275   $as_echo_n 0123456789 >"conftest.in"
4276   while :
4277   do
4278     cat "conftest.in" "conftest.in" >"conftest.tmp"
4279     mv "conftest.tmp" "conftest.in"
4280     cp "conftest.in" "conftest.nl"
4281     $as_echo 'EGREP' >> "conftest.nl"
4282     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284     as_fn_arith $ac_count + 1 && ac_count=$as_val
4285     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4286       # Best one so far, save it but keep looking for a better one
4287       ac_cv_path_EGREP="$ac_path_EGREP"
4288       ac_path_EGREP_max=$ac_count
4289     fi
4290     # 10*(2^10) chars as input seems more than enough
4291     test $ac_count -gt 10 && break
4292   done
4293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296       $ac_path_EGREP_found && break 3
4297     done
4298   done
4299   done
4300 IFS=$as_save_IFS
4301   if test -z "$ac_cv_path_EGREP"; then
4302     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303   fi
4304 else
4305   ac_cv_path_EGREP=$EGREP
4306 fi
4307
4308    fi
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4311 $as_echo "$ac_cv_path_EGREP" >&6; }
4312  EGREP="$ac_cv_path_EGREP"
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4316 $as_echo_n "checking for ANSI C header files... " >&6; }
4317 if ${ac_cv_header_stdc+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h.  */
4322 #include <stdlib.h>
4323 #include <stdarg.h>
4324 #include <string.h>
4325 #include <float.h>
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336   ac_cv_header_stdc=yes
4337 else
4338   ac_cv_header_stdc=no
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341
4342 if test $ac_cv_header_stdc = yes; then
4343   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h.  */
4346 #include <string.h>
4347
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350   $EGREP "memchr" >/dev/null 2>&1; then :
4351
4352 else
4353   ac_cv_header_stdc=no
4354 fi
4355 rm -f conftest*
4356
4357 fi
4358
4359 if test $ac_cv_header_stdc = yes; then
4360   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363 #include <stdlib.h>
4364
4365 _ACEOF
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367   $EGREP "free" >/dev/null 2>&1; then :
4368
4369 else
4370   ac_cv_header_stdc=no
4371 fi
4372 rm -f conftest*
4373
4374 fi
4375
4376 if test $ac_cv_header_stdc = yes; then
4377   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4378   if test "$cross_compiling" = yes; then :
4379   :
4380 else
4381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h.  */
4383 #include <ctype.h>
4384 #include <stdlib.h>
4385 #if ((' ' & 0x0FF) == 0x020)
4386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4388 #else
4389 # define ISLOWER(c) \
4390                    (('a' <= (c) && (c) <= 'i') \
4391                      || ('j' <= (c) && (c) <= 'r') \
4392                      || ('s' <= (c) && (c) <= 'z'))
4393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4394 #endif
4395
4396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4397 int
4398 main ()
4399 {
4400   int i;
4401   for (i = 0; i < 256; i++)
4402     if (XOR (islower (i), ISLOWER (i))
4403         || toupper (i) != TOUPPER (i))
4404       return 2;
4405   return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_run "$LINENO"; then :
4409
4410 else
4411   ac_cv_header_stdc=no
4412 fi
4413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4414   conftest.$ac_objext conftest.beam conftest.$ac_ext
4415 fi
4416
4417 fi
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4420 $as_echo "$ac_cv_header_stdc" >&6; }
4421 if test $ac_cv_header_stdc = yes; then
4422
4423 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4424
4425 fi
4426
4427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4428 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4429                   inttypes.h stdint.h unistd.h
4430 do :
4431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4433 "
4434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4435   cat >>confdefs.h <<_ACEOF
4436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437 _ACEOF
4438
4439 fi
4440
4441 done
4442
4443
4444
4445
4446
4447   for ac_header in $ac_header_list
4448 do :
4449   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4451 "
4452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4453   cat >>confdefs.h <<_ACEOF
4454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4455 _ACEOF
4456
4457 fi
4458
4459 done
4460
4461
4462
4463
4464
4465
4466
4467
4468 for ac_func in getpagesize
4469 do :
4470   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4471 if test "x$ac_cv_func_getpagesize" = xyes; then :
4472   cat >>confdefs.h <<_ACEOF
4473 #define HAVE_GETPAGESIZE 1
4474 _ACEOF
4475
4476 fi
4477 done
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4480 $as_echo_n "checking for working mmap... " >&6; }
4481 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484   if test "$cross_compiling" = yes; then :
4485   ac_cv_func_mmap_fixed_mapped=no
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489 $ac_includes_default
4490 /* malloc might have been renamed as rpl_malloc. */
4491 #undef malloc
4492
4493 /* Thanks to Mike Haertel and Jim Avera for this test.
4494    Here is a matrix of mmap possibilities:
4495         mmap private not fixed
4496         mmap private fixed at somewhere currently unmapped
4497         mmap private fixed at somewhere already mapped
4498         mmap shared not fixed
4499         mmap shared fixed at somewhere currently unmapped
4500         mmap shared fixed at somewhere already mapped
4501    For private mappings, we should verify that changes cannot be read()
4502    back from the file, nor mmap's back from the file at a different
4503    address.  (There have been systems where private was not correctly
4504    implemented like the infamous i386 svr4.0, and systems where the
4505    VM page cache was not coherent with the file system buffer cache
4506    like early versions of FreeBSD and possibly contemporary NetBSD.)
4507    For shared mappings, we should conversely verify that changes get
4508    propagated back to all the places they're supposed to be.
4509
4510    Grep wants private fixed already mapped.
4511    The main things grep needs to know about mmap are:
4512    * does it exist and is it safe to write into the mmap'd area
4513    * how to use it (BSD variants)  */
4514
4515 #include <fcntl.h>
4516 #include <sys/mman.h>
4517
4518 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4519 char *malloc ();
4520 #endif
4521
4522 /* This mess was copied from the GNU getpagesize.h.  */
4523 #ifndef HAVE_GETPAGESIZE
4524 # ifdef _SC_PAGESIZE
4525 #  define getpagesize() sysconf(_SC_PAGESIZE)
4526 # else /* no _SC_PAGESIZE */
4527 #  ifdef HAVE_SYS_PARAM_H
4528 #   include <sys/param.h>
4529 #   ifdef EXEC_PAGESIZE
4530 #    define getpagesize() EXEC_PAGESIZE
4531 #   else /* no EXEC_PAGESIZE */
4532 #    ifdef NBPG
4533 #     define getpagesize() NBPG * CLSIZE
4534 #     ifndef CLSIZE
4535 #      define CLSIZE 1
4536 #     endif /* no CLSIZE */
4537 #    else /* no NBPG */
4538 #     ifdef NBPC
4539 #      define getpagesize() NBPC
4540 #     else /* no NBPC */
4541 #      ifdef PAGESIZE
4542 #       define getpagesize() PAGESIZE
4543 #      endif /* PAGESIZE */
4544 #     endif /* no NBPC */
4545 #    endif /* no NBPG */
4546 #   endif /* no EXEC_PAGESIZE */
4547 #  else /* no HAVE_SYS_PARAM_H */
4548 #   define getpagesize() 8192   /* punt totally */
4549 #  endif /* no HAVE_SYS_PARAM_H */
4550 # endif /* no _SC_PAGESIZE */
4551
4552 #endif /* no HAVE_GETPAGESIZE */
4553
4554 int
4555 main ()
4556 {
4557   char *data, *data2, *data3;
4558   const char *cdata2;
4559   int i, pagesize;
4560   int fd, fd2;
4561
4562   pagesize = getpagesize ();
4563
4564   /* First, make a file with some known garbage in it. */
4565   data = (char *) malloc (pagesize);
4566   if (!data)
4567     return 1;
4568   for (i = 0; i < pagesize; ++i)
4569     *(data + i) = rand ();
4570   umask (0);
4571   fd = creat ("conftest.mmap", 0600);
4572   if (fd < 0)
4573     return 2;
4574   if (write (fd, data, pagesize) != pagesize)
4575     return 3;
4576   close (fd);
4577
4578   /* Next, check that the tail of a page is zero-filled.  File must have
4579      non-zero length, otherwise we risk SIGBUS for entire page.  */
4580   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4581   if (fd2 < 0)
4582     return 4;
4583   cdata2 = "";
4584   if (write (fd2, cdata2, 1) != 1)
4585     return 5;
4586   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4587   if (data2 == MAP_FAILED)
4588     return 6;
4589   for (i = 0; i < pagesize; ++i)
4590     if (*(data2 + i))
4591       return 7;
4592   close (fd2);
4593   if (munmap (data2, pagesize))
4594     return 8;
4595
4596   /* Next, try to mmap the file at a fixed address which already has
4597      something else allocated at it.  If we can, also make sure that
4598      we see the same garbage.  */
4599   fd = open ("conftest.mmap", O_RDWR);
4600   if (fd < 0)
4601     return 9;
4602   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4603                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4604     return 10;
4605   for (i = 0; i < pagesize; ++i)
4606     if (*(data + i) != *(data2 + i))
4607       return 11;
4608
4609   /* Finally, make sure that changes to the mapped area do not
4610      percolate back to the file as seen by read().  (This is a bug on
4611      some variants of i386 svr4.0.)  */
4612   for (i = 0; i < pagesize; ++i)
4613     *(data2 + i) = *(data2 + i) + 1;
4614   data3 = (char *) malloc (pagesize);
4615   if (!data3)
4616     return 12;
4617   if (read (fd, data3, pagesize) != pagesize)
4618     return 13;
4619   for (i = 0; i < pagesize; ++i)
4620     if (*(data + i) != *(data3 + i))
4621       return 14;
4622   close (fd);
4623   return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_run "$LINENO"; then :
4627   ac_cv_func_mmap_fixed_mapped=yes
4628 else
4629   ac_cv_func_mmap_fixed_mapped=no
4630 fi
4631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4632   conftest.$ac_objext conftest.beam conftest.$ac_ext
4633 fi
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4637 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4638 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4639
4640 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4641
4642 fi
4643 rm -f conftest.mmap conftest.txt
4644
4645 # Check whether --enable-largefile was given.
4646 if test "${enable_largefile+set}" = set; then :
4647   enableval=$enable_largefile;
4648 fi
4649
4650 if test "$enable_largefile" != no; then
4651
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4653 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4654 if ${ac_cv_sys_largefile_CC+:} false; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   ac_cv_sys_largefile_CC=no
4658      if test "$GCC" != yes; then
4659        ac_save_CC=$CC
4660        while :; do
4661          # IRIX 6.2 and later do not support large files by default,
4662          # so use the C compiler's -n32 option if that helps.
4663          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 #include <sys/types.h>
4666  /* Check that off_t can represent 2**63 - 1 correctly.
4667     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4668     since some C++ compilers masquerading as C compilers
4669     incorrectly reject 9223372036854775807.  */
4670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4671   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4672                        && LARGE_OFF_T % 2147483647 == 1)
4673                       ? 1 : -1];
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682          if ac_fn_c_try_compile "$LINENO"; then :
4683   break
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext
4686          CC="$CC -n32"
4687          if ac_fn_c_try_compile "$LINENO"; then :
4688   ac_cv_sys_largefile_CC=' -n32'; break
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext
4691          break
4692        done
4693        CC=$ac_save_CC
4694        rm -f conftest.$ac_ext
4695     fi
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4698 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4699   if test "$ac_cv_sys_largefile_CC" != no; then
4700     CC=$CC$ac_cv_sys_largefile_CC
4701   fi
4702
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4704 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4705 if ${ac_cv_sys_file_offset_bits+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   while :; do
4709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h.  */
4711 #include <sys/types.h>
4712  /* Check that off_t can represent 2**63 - 1 correctly.
4713     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4714     since some C++ compilers masquerading as C compilers
4715     incorrectly reject 9223372036854775807.  */
4716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4717   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4718                        && LARGE_OFF_T % 2147483647 == 1)
4719                       ? 1 : -1];
4720 int
4721 main ()
4722 {
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729   ac_cv_sys_file_offset_bits=no; break
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734 #define _FILE_OFFSET_BITS 64
4735 #include <sys/types.h>
4736  /* Check that off_t can represent 2**63 - 1 correctly.
4737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4738     since some C++ compilers masquerading as C compilers
4739     incorrectly reject 9223372036854775807.  */
4740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4742                        && LARGE_OFF_T % 2147483647 == 1)
4743                       ? 1 : -1];
4744 int
4745 main ()
4746 {
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753   ac_cv_sys_file_offset_bits=64; break
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756   ac_cv_sys_file_offset_bits=unknown
4757   break
4758 done
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4761 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4762 case $ac_cv_sys_file_offset_bits in #(
4763   no | unknown) ;;
4764   *)
4765 cat >>confdefs.h <<_ACEOF
4766 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4767 _ACEOF
4768 ;;
4769 esac
4770 rm -rf conftest*
4771   if test $ac_cv_sys_file_offset_bits = unknown; then
4772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4773 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4774 if ${ac_cv_sys_large_files+:} false; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   while :; do
4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h.  */
4780 #include <sys/types.h>
4781  /* Check that off_t can represent 2**63 - 1 correctly.
4782     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4783     since some C++ compilers masquerading as C compilers
4784     incorrectly reject 9223372036854775807.  */
4785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4786   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4787                        && LARGE_OFF_T % 2147483647 == 1)
4788                       ? 1 : -1];
4789 int
4790 main ()
4791 {
4792
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798   ac_cv_sys_large_files=no; break
4799 fi
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h.  */
4803 #define _LARGE_FILES 1
4804 #include <sys/types.h>
4805  /* Check that off_t can represent 2**63 - 1 correctly.
4806     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4807     since some C++ compilers masquerading as C compilers
4808     incorrectly reject 9223372036854775807.  */
4809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4810   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4811                        && LARGE_OFF_T % 2147483647 == 1)
4812                       ? 1 : -1];
4813 int
4814 main ()
4815 {
4816
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822   ac_cv_sys_large_files=1; break
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825   ac_cv_sys_large_files=unknown
4826   break
4827 done
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4830 $as_echo "$ac_cv_sys_large_files" >&6; }
4831 case $ac_cv_sys_large_files in #(
4832   no | unknown) ;;
4833   *)
4834 cat >>confdefs.h <<_ACEOF
4835 #define _LARGE_FILES $ac_cv_sys_large_files
4836 _ACEOF
4837 ;;
4838 esac
4839 rm -rf conftest*
4840   fi
4841
4842
4843 fi
4844
4845
4846 # Initialize libtool
4847
4848 case `pwd` in
4849   *\ * | *\     *)
4850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4851 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4852 esac
4853
4854
4855
4856 macro_version='2.4.2'
4857 macro_revision='1.3337'
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871 ltmain="$ac_aux_dir/ltmain.sh"
4872
4873 # Backslashify metacharacters that are still active within
4874 # double-quoted strings.
4875 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4876
4877 # Same as above, but do not quote variable references.
4878 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4879
4880 # Sed substitution to delay expansion of an escaped shell variable in a
4881 # double_quote_subst'ed string.
4882 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4883
4884 # Sed substitution to delay expansion of an escaped single quote.
4885 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4886
4887 # Sed substitution to avoid accidental globbing in evaled expressions
4888 no_glob_subst='s/\*/\\\*/g'
4889
4890 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4892 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4895 $as_echo_n "checking how to print strings... " >&6; }
4896 # Test print first, because it will be a builtin if present.
4897 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4898    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4899   ECHO='print -r --'
4900 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4901   ECHO='printf %s\n'
4902 else
4903   # Use this function as a fallback that always works.
4904   func_fallback_echo ()
4905   {
4906     eval 'cat <<_LTECHO_EOF
4907 $1
4908 _LTECHO_EOF'
4909   }
4910   ECHO='func_fallback_echo'
4911 fi
4912
4913 # func_echo_all arg...
4914 # Invoke $ECHO with all args, space-separated.
4915 func_echo_all ()
4916 {
4917     $ECHO ""
4918 }
4919
4920 case "$ECHO" in
4921   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4922 $as_echo "printf" >&6; } ;;
4923   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4924 $as_echo "print -r" >&6; } ;;
4925   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4926 $as_echo "cat" >&6; } ;;
4927 esac
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4943 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4944 if ${ac_cv_path_SED+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4948      for ac_i in 1 2 3 4 5 6 7; do
4949        ac_script="$ac_script$as_nl$ac_script"
4950      done
4951      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4952      { ac_script=; unset ac_script;}
4953      if test -z "$SED"; then
4954   ac_path_SED_found=false
4955   # Loop through the user's path and test for each of PROGNAME-LIST
4956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961     for ac_prog in sed gsed; do
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4964       as_fn_executable_p "$ac_path_SED" || continue
4965 # Check for GNU ac_path_SED and select it if it is found.
4966   # Check for GNU $ac_path_SED
4967 case `"$ac_path_SED" --version 2>&1` in
4968 *GNU*)
4969   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4970 *)
4971   ac_count=0
4972   $as_echo_n 0123456789 >"conftest.in"
4973   while :
4974   do
4975     cat "conftest.in" "conftest.in" >"conftest.tmp"
4976     mv "conftest.tmp" "conftest.in"
4977     cp "conftest.in" "conftest.nl"
4978     $as_echo '' >> "conftest.nl"
4979     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4980     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4981     as_fn_arith $ac_count + 1 && ac_count=$as_val
4982     if test $ac_count -gt ${ac_path_SED_max-0}; then
4983       # Best one so far, save it but keep looking for a better one
4984       ac_cv_path_SED="$ac_path_SED"
4985       ac_path_SED_max=$ac_count
4986     fi
4987     # 10*(2^10) chars as input seems more than enough
4988     test $ac_count -gt 10 && break
4989   done
4990   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4991 esac
4992
4993       $ac_path_SED_found && break 3
4994     done
4995   done
4996   done
4997 IFS=$as_save_IFS
4998   if test -z "$ac_cv_path_SED"; then
4999     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5000   fi
5001 else
5002   ac_cv_path_SED=$SED
5003 fi
5004
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5007 $as_echo "$ac_cv_path_SED" >&6; }
5008  SED="$ac_cv_path_SED"
5009   rm -f conftest.sed
5010
5011 test -z "$SED" && SED=sed
5012 Xsed="$SED -e 1s/^X//"
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5025 $as_echo_n "checking for fgrep... " >&6; }
5026 if ${ac_cv_path_FGREP+:} false; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5030    then ac_cv_path_FGREP="$GREP -F"
5031    else
5032      if test -z "$FGREP"; then
5033   ac_path_FGREP_found=false
5034   # Loop through the user's path and test for each of PROGNAME-LIST
5035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5037 do
5038   IFS=$as_save_IFS
5039   test -z "$as_dir" && as_dir=.
5040     for ac_prog in fgrep; do
5041     for ac_exec_ext in '' $ac_executable_extensions; do
5042       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5043       as_fn_executable_p "$ac_path_FGREP" || continue
5044 # Check for GNU ac_path_FGREP and select it if it is found.
5045   # Check for GNU $ac_path_FGREP
5046 case `"$ac_path_FGREP" --version 2>&1` in
5047 *GNU*)
5048   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5049 *)
5050   ac_count=0
5051   $as_echo_n 0123456789 >"conftest.in"
5052   while :
5053   do
5054     cat "conftest.in" "conftest.in" >"conftest.tmp"
5055     mv "conftest.tmp" "conftest.in"
5056     cp "conftest.in" "conftest.nl"
5057     $as_echo 'FGREP' >> "conftest.nl"
5058     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5059     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5060     as_fn_arith $ac_count + 1 && ac_count=$as_val
5061     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5062       # Best one so far, save it but keep looking for a better one
5063       ac_cv_path_FGREP="$ac_path_FGREP"
5064       ac_path_FGREP_max=$ac_count
5065     fi
5066     # 10*(2^10) chars as input seems more than enough
5067     test $ac_count -gt 10 && break
5068   done
5069   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5070 esac
5071
5072       $ac_path_FGREP_found && break 3
5073     done
5074   done
5075   done
5076 IFS=$as_save_IFS
5077   if test -z "$ac_cv_path_FGREP"; then
5078     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5079   fi
5080 else
5081   ac_cv_path_FGREP=$FGREP
5082 fi
5083
5084    fi
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5087 $as_echo "$ac_cv_path_FGREP" >&6; }
5088  FGREP="$ac_cv_path_FGREP"
5089
5090
5091 test -z "$GREP" && GREP=grep
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111 # Check whether --with-gnu-ld was given.
5112 if test "${with_gnu_ld+set}" = set; then :
5113   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5114 else
5115   with_gnu_ld=no
5116 fi
5117
5118 ac_prog=ld
5119 if test "$GCC" = yes; then
5120   # Check if gcc -print-prog-name=ld gives a path.
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5122 $as_echo_n "checking for ld used by $CC... " >&6; }
5123   case $host in
5124   *-*-mingw*)
5125     # gcc leaves a trailing carriage return which upsets mingw
5126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5127   *)
5128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5129   esac
5130   case $ac_prog in
5131     # Accept absolute paths.
5132     [\\/]* | ?:[\\/]*)
5133       re_direlt='/[^/][^/]*/\.\./'
5134       # Canonicalize the pathname of ld
5135       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5136       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5137         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5138       done
5139       test -z "$LD" && LD="$ac_prog"
5140       ;;
5141   "")
5142     # If it fails, then pretend we aren't using GCC.
5143     ac_prog=ld
5144     ;;
5145   *)
5146     # If it is relative, then search for the first ld in PATH.
5147     with_gnu_ld=unknown
5148     ;;
5149   esac
5150 elif test "$with_gnu_ld" = yes; then
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5152 $as_echo_n "checking for GNU ld... " >&6; }
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5155 $as_echo_n "checking for non-GNU ld... " >&6; }
5156 fi
5157 if ${lt_cv_path_LD+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   if test -z "$LD"; then
5161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5162   for ac_dir in $PATH; do
5163     IFS="$lt_save_ifs"
5164     test -z "$ac_dir" && ac_dir=.
5165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5166       lt_cv_path_LD="$ac_dir/$ac_prog"
5167       # Check to see if the program is GNU ld.  I'd rather use --version,
5168       # but apparently some variants of GNU ld only accept -v.
5169       # Break only if it was the GNU/non-GNU ld that we prefer.
5170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5171       *GNU* | *'with BFD'*)
5172         test "$with_gnu_ld" != no && break
5173         ;;
5174       *)
5175         test "$with_gnu_ld" != yes && break
5176         ;;
5177       esac
5178     fi
5179   done
5180   IFS="$lt_save_ifs"
5181 else
5182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5183 fi
5184 fi
5185
5186 LD="$lt_cv_path_LD"
5187 if test -n "$LD"; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5189 $as_echo "$LD" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5197 if ${lt_cv_prog_gnu_ld+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5201 case `$LD -v 2>&1 </dev/null` in
5202 *GNU* | *'with BFD'*)
5203   lt_cv_prog_gnu_ld=yes
5204   ;;
5205 *)
5206   lt_cv_prog_gnu_ld=no
5207   ;;
5208 esac
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5211 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5212 with_gnu_ld=$lt_cv_prog_gnu_ld
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5223 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5224 if ${lt_cv_path_NM+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   if test -n "$NM"; then
5228   # Let the user override the test.
5229   lt_cv_path_NM="$NM"
5230 else
5231   lt_nm_to_check="${ac_tool_prefix}nm"
5232   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5233     lt_nm_to_check="$lt_nm_to_check nm"
5234   fi
5235   for lt_tmp_nm in $lt_nm_to_check; do
5236     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5237     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5238       IFS="$lt_save_ifs"
5239       test -z "$ac_dir" && ac_dir=.
5240       tmp_nm="$ac_dir/$lt_tmp_nm"
5241       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5242         # Check to see if the nm accepts a BSD-compat flag.
5243         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5244         #   nm: unknown option "B" ignored
5245         # Tru64's nm complains that /dev/null is an invalid object file
5246         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5247         */dev/null* | *'Invalid file or object type'*)
5248           lt_cv_path_NM="$tmp_nm -B"
5249           break
5250           ;;
5251         *)
5252           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5253           */dev/null*)
5254             lt_cv_path_NM="$tmp_nm -p"
5255             break
5256             ;;
5257           *)
5258             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5259             continue # so that we can try to find one that supports BSD flags
5260             ;;
5261           esac
5262           ;;
5263         esac
5264       fi
5265     done
5266     IFS="$lt_save_ifs"
5267   done
5268   : ${lt_cv_path_NM=no}
5269 fi
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5272 $as_echo "$lt_cv_path_NM" >&6; }
5273 if test "$lt_cv_path_NM" != "no"; then
5274   NM="$lt_cv_path_NM"
5275 else
5276   # Didn't find any BSD compatible name lister, look for dumpbin.
5277   if test -n "$DUMPBIN"; then :
5278     # Let the user override the test.
5279   else
5280     if test -n "$ac_tool_prefix"; then
5281   for ac_prog in dumpbin "link -dump"
5282   do
5283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_DUMPBIN+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   if test -n "$DUMPBIN"; then
5291   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 DUMPBIN=$ac_cv_prog_DUMPBIN
5311 if test -n "$DUMPBIN"; then
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5313 $as_echo "$DUMPBIN" >&6; }
5314 else
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319
5320     test -n "$DUMPBIN" && break
5321   done
5322 fi
5323 if test -z "$DUMPBIN"; then
5324   ac_ct_DUMPBIN=$DUMPBIN
5325   for ac_prog in dumpbin "link -dump"
5326 do
5327   # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   if test -n "$ac_ct_DUMPBIN"; then
5335   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342     for ac_exec_ext in '' $ac_executable_extensions; do
5343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349   done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5355 if test -n "$ac_ct_DUMPBIN"; then
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5357 $as_echo "$ac_ct_DUMPBIN" >&6; }
5358 else
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363
5364   test -n "$ac_ct_DUMPBIN" && break
5365 done
5366
5367   if test "x$ac_ct_DUMPBIN" = x; then
5368     DUMPBIN=":"
5369   else
5370     case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376     DUMPBIN=$ac_ct_DUMPBIN
5377   fi
5378 fi
5379
5380     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5381     *COFF*)
5382       DUMPBIN="$DUMPBIN -symbols"
5383       ;;
5384     *)
5385       DUMPBIN=:
5386       ;;
5387     esac
5388   fi
5389
5390   if test "$DUMPBIN" != ":"; then
5391     NM="$DUMPBIN"
5392   fi
5393 fi
5394 test -z "$NM" && NM=nm
5395
5396
5397
5398
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5402 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5403 if ${lt_cv_nm_interface+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   lt_cv_nm_interface="BSD nm"
5407   echo "int some_variable = 0;" > conftest.$ac_ext
5408   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5409   (eval "$ac_compile" 2>conftest.err)
5410   cat conftest.err >&5
5411   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5412   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5413   cat conftest.err >&5
5414   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5415   cat conftest.out >&5
5416   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5417     lt_cv_nm_interface="MS dumpbin"
5418   fi
5419   rm -f conftest*
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5422 $as_echo "$lt_cv_nm_interface" >&6; }
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5425 $as_echo_n "checking whether ln -s works... " >&6; }
5426 LN_S=$as_ln_s
5427 if test "$LN_S" = "ln -s"; then
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 $as_echo "yes" >&6; }
5430 else
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5432 $as_echo "no, using $LN_S" >&6; }
5433 fi
5434
5435 # find the maximum length of command line arguments
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5437 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5438 if ${lt_cv_sys_max_cmd_len+:} false; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441     i=0
5442   teststring="ABCD"
5443
5444   case $build_os in
5445   msdosdjgpp*)
5446     # On DJGPP, this test can blow up pretty badly due to problems in libc
5447     # (any single argument exceeding 2000 bytes causes a buffer overrun
5448     # during glob expansion).  Even if it were fixed, the result of this
5449     # check would be larger than it should be.
5450     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5451     ;;
5452
5453   gnu*)
5454     # Under GNU Hurd, this test is not required because there is
5455     # no limit to the length of command line arguments.
5456     # Libtool will interpret -1 as no limit whatsoever
5457     lt_cv_sys_max_cmd_len=-1;
5458     ;;
5459
5460   cygwin* | mingw* | cegcc*)
5461     # On Win9x/ME, this test blows up -- it succeeds, but takes
5462     # about 5 minutes as the teststring grows exponentially.
5463     # Worse, since 9x/ME are not pre-emptively multitasking,
5464     # you end up with a "frozen" computer, even though with patience
5465     # the test eventually succeeds (with a max line length of 256k).
5466     # Instead, let's just punt: use the minimum linelength reported by
5467     # all of the supported platforms: 8192 (on NT/2K/XP).
5468     lt_cv_sys_max_cmd_len=8192;
5469     ;;
5470
5471   mint*)
5472     # On MiNT this can take a long time and run out of memory.
5473     lt_cv_sys_max_cmd_len=8192;
5474     ;;
5475
5476   amigaos*)
5477     # On AmigaOS with pdksh, this test takes hours, literally.
5478     # So we just punt and use a minimum line length of 8192.
5479     lt_cv_sys_max_cmd_len=8192;
5480     ;;
5481
5482   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5483     # This has been around since 386BSD, at least.  Likely further.
5484     if test -x /sbin/sysctl; then
5485       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5486     elif test -x /usr/sbin/sysctl; then
5487       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5488     else
5489       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5490     fi
5491     # And add a safety zone
5492     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5493     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5494     ;;
5495
5496   interix*)
5497     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5498     lt_cv_sys_max_cmd_len=196608
5499     ;;
5500
5501   os2*)
5502     # The test takes a long time on OS/2.
5503     lt_cv_sys_max_cmd_len=8192
5504     ;;
5505
5506   osf*)
5507     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5508     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5509     # nice to cause kernel panics so lets avoid the loop below.
5510     # First set a reasonable default.
5511     lt_cv_sys_max_cmd_len=16384
5512     #
5513     if test -x /sbin/sysconfig; then
5514       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5515         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5516       esac
5517     fi
5518     ;;
5519   sco3.2v5*)
5520     lt_cv_sys_max_cmd_len=102400
5521     ;;
5522   sysv5* | sco5v6* | sysv4.2uw2*)
5523     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5524     if test -n "$kargmax"; then
5525       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5526     else
5527       lt_cv_sys_max_cmd_len=32768
5528     fi
5529     ;;
5530   *)
5531     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5532     if test -n "$lt_cv_sys_max_cmd_len" && \
5533         test undefined != "$lt_cv_sys_max_cmd_len"; then
5534       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5535       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5536     else
5537       # Make teststring a little bigger before we do anything with it.
5538       # a 1K string should be a reasonable start.
5539       for i in 1 2 3 4 5 6 7 8 ; do
5540         teststring=$teststring$teststring
5541       done
5542       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5543       # If test is not a shell built-in, we'll probably end up computing a
5544       # maximum length that is only half of the actual maximum length, but
5545       # we can't tell.
5546       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5547                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5548               test $i != 17 # 1/2 MB should be enough
5549       do
5550         i=`expr $i + 1`
5551         teststring=$teststring$teststring
5552       done
5553       # Only check the string length outside the loop.
5554       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5555       teststring=
5556       # Add a significant safety factor because C++ compilers can tack on
5557       # massive amounts of additional arguments before passing them to the
5558       # linker.  It appears as though 1/2 is a usable value.
5559       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5560     fi
5561     ;;
5562   esac
5563
5564 fi
5565
5566 if test -n $lt_cv_sys_max_cmd_len ; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5568 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5571 $as_echo "none" >&6; }
5572 fi
5573 max_cmd_len=$lt_cv_sys_max_cmd_len
5574
5575
5576
5577
5578
5579
5580 : ${CP="cp -f"}
5581 : ${MV="mv -f"}
5582 : ${RM="rm -f"}
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5585 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5586 # Try some XSI features
5587 xsi_shell=no
5588 ( _lt_dummy="a/b/c"
5589   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5590       = c,a/b,b/c, \
5591     && eval 'test $(( 1 + 1 )) -eq 2 \
5592     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5593   && xsi_shell=yes
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5595 $as_echo "$xsi_shell" >&6; }
5596
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5599 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5600 lt_shell_append=no
5601 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5602     >/dev/null 2>&1 \
5603   && lt_shell_append=yes
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5605 $as_echo "$lt_shell_append" >&6; }
5606
5607
5608 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5609   lt_unset=unset
5610 else
5611   lt_unset=false
5612 fi
5613
5614
5615
5616
5617
5618 # test EBCDIC or ASCII
5619 case `echo X|tr X '\101'` in
5620  A) # ASCII based system
5621     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5622   lt_SP2NL='tr \040 \012'
5623   lt_NL2SP='tr \015\012 \040\040'
5624   ;;
5625  *) # EBCDIC based system
5626   lt_SP2NL='tr \100 \n'
5627   lt_NL2SP='tr \r\n \100\100'
5628   ;;
5629 esac
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5640 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5641 if ${lt_cv_to_host_file_cmd+:} false; then :
5642   $as_echo_n "(cached) " >&6
5643 else
5644   case $host in
5645   *-*-mingw* )
5646     case $build in
5647       *-*-mingw* ) # actually msys
5648         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5649         ;;
5650       *-*-cygwin* )
5651         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5652         ;;
5653       * ) # otherwise, assume *nix
5654         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5655         ;;
5656     esac
5657     ;;
5658   *-*-cygwin* )
5659     case $build in
5660       *-*-mingw* ) # actually msys
5661         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5662         ;;
5663       *-*-cygwin* )
5664         lt_cv_to_host_file_cmd=func_convert_file_noop
5665         ;;
5666       * ) # otherwise, assume *nix
5667         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5668         ;;
5669     esac
5670     ;;
5671   * ) # unhandled hosts (and "normal" native builds)
5672     lt_cv_to_host_file_cmd=func_convert_file_noop
5673     ;;
5674 esac
5675
5676 fi
5677
5678 to_host_file_cmd=$lt_cv_to_host_file_cmd
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5680 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5681
5682
5683
5684
5685
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5687 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5688 if ${lt_cv_to_tool_file_cmd+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   #assume ordinary cross tools, or native build.
5692 lt_cv_to_tool_file_cmd=func_convert_file_noop
5693 case $host in
5694   *-*-mingw* )
5695     case $build in
5696       *-*-mingw* ) # actually msys
5697         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5698         ;;
5699     esac
5700     ;;
5701 esac
5702
5703 fi
5704
5705 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5707 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5708
5709
5710
5711
5712
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5714 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5715 if ${lt_cv_ld_reload_flag+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   lt_cv_ld_reload_flag='-r'
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5721 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5722 reload_flag=$lt_cv_ld_reload_flag
5723 case $reload_flag in
5724 "" | " "*) ;;
5725 *) reload_flag=" $reload_flag" ;;
5726 esac
5727 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5728 case $host_os in
5729   cygwin* | mingw* | pw32* | cegcc*)
5730     if test "$GCC" != yes; then
5731       reload_cmds=false
5732     fi
5733     ;;
5734   darwin*)
5735     if test "$GCC" = yes; then
5736       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5737     else
5738       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5739     fi
5740     ;;
5741 esac
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 if test -n "$ac_tool_prefix"; then
5752   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_OBJDUMP+:} false; then :
5757   $as_echo_n "(cached) " >&6
5758 else
5759   if test -n "$OBJDUMP"; then
5760   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767     for ac_exec_ext in '' $ac_executable_extensions; do
5768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774   done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 OBJDUMP=$ac_cv_prog_OBJDUMP
5780 if test -n "$OBJDUMP"; then
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5782 $as_echo "$OBJDUMP" >&6; }
5783 else
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789 fi
5790 if test -z "$ac_cv_prog_OBJDUMP"; then
5791   ac_ct_OBJDUMP=$OBJDUMP
5792   # Extract the first word of "objdump", so it can be a program name with args.
5793 set dummy objdump; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5797   $as_echo_n "(cached) " >&6
5798 else
5799   if test -n "$ac_ct_OBJDUMP"; then
5800   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807     for ac_exec_ext in '' $ac_executable_extensions; do
5808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814   done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5820 if test -n "$ac_ct_OBJDUMP"; then
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5822 $as_echo "$ac_ct_OBJDUMP" >&6; }
5823 else
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828   if test "x$ac_ct_OBJDUMP" = x; then
5829     OBJDUMP="false"
5830   else
5831     case $cross_compiling:$ac_tool_warned in
5832 yes:)
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835 ac_tool_warned=yes ;;
5836 esac
5837     OBJDUMP=$ac_ct_OBJDUMP
5838   fi
5839 else
5840   OBJDUMP="$ac_cv_prog_OBJDUMP"
5841 fi
5842
5843 test -z "$OBJDUMP" && OBJDUMP=objdump
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5854 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5855 if ${lt_cv_deplibs_check_method+:} false; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   lt_cv_file_magic_cmd='$MAGIC_CMD'
5859 lt_cv_file_magic_test_file=
5860 lt_cv_deplibs_check_method='unknown'
5861 # Need to set the preceding variable on all platforms that support
5862 # interlibrary dependencies.
5863 # 'none' -- dependencies not supported.
5864 # `unknown' -- same as none, but documents that we really don't know.
5865 # 'pass_all' -- all dependencies passed with no checks.
5866 # 'test_compile' -- check by making test program.
5867 # 'file_magic [[regex]]' -- check by looking for files in library path
5868 # which responds to the $file_magic_cmd with a given extended regex.
5869 # If you have `file' or equivalent on your system and you're not sure
5870 # whether `pass_all' will *always* work, you probably want this one.
5871
5872 case $host_os in
5873 aix[4-9]*)
5874   lt_cv_deplibs_check_method=pass_all
5875   ;;
5876
5877 beos*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 bsdi[45]*)
5882   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5883   lt_cv_file_magic_cmd='/usr/bin/file -L'
5884   lt_cv_file_magic_test_file=/shlib/libc.so
5885   ;;
5886
5887 cygwin*)
5888   # func_win32_libid is a shell function defined in ltmain.sh
5889   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5890   lt_cv_file_magic_cmd='func_win32_libid'
5891   ;;
5892
5893 mingw* | pw32*)
5894   # Base MSYS/MinGW do not provide the 'file' command needed by
5895   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5896   # unless we find 'file', for example because we are cross-compiling.
5897   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5898   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5899     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5900     lt_cv_file_magic_cmd='func_win32_libid'
5901   else
5902     # Keep this pattern in sync with the one in func_win32_libid.
5903     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5904     lt_cv_file_magic_cmd='$OBJDUMP -f'
5905   fi
5906   ;;
5907
5908 cegcc*)
5909   # use the weaker test based on 'objdump'. See mingw*.
5910   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5911   lt_cv_file_magic_cmd='$OBJDUMP -f'
5912   ;;
5913
5914 darwin* | rhapsody*)
5915   lt_cv_deplibs_check_method=pass_all
5916   ;;
5917
5918 freebsd* | dragonfly*)
5919   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5920     case $host_cpu in
5921     i*86 )
5922       # Not sure whether the presence of OpenBSD here was a mistake.
5923       # Let's accept both of them until this is cleared up.
5924       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5925       lt_cv_file_magic_cmd=/usr/bin/file
5926       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5927       ;;
5928     esac
5929   else
5930     lt_cv_deplibs_check_method=pass_all
5931   fi
5932   ;;
5933
5934 haiku*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 hpux10.20* | hpux11*)
5939   lt_cv_file_magic_cmd=/usr/bin/file
5940   case $host_cpu in
5941   ia64*)
5942     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5943     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5944     ;;
5945   hppa*64*)
5946     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]'
5947     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5948     ;;
5949   *)
5950     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5951     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5952     ;;
5953   esac
5954   ;;
5955
5956 interix[3-9]*)
5957   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5958   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5959   ;;
5960
5961 irix5* | irix6* | nonstopux*)
5962   case $LD in
5963   *-32|*"-32 ") libmagic=32-bit;;
5964   *-n32|*"-n32 ") libmagic=N32;;
5965   *-64|*"-64 ") libmagic=64-bit;;
5966   *) libmagic=never-match;;
5967   esac
5968   lt_cv_deplibs_check_method=pass_all
5969   ;;
5970
5971 # This must be glibc/ELF.
5972 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5973   lt_cv_deplibs_check_method=pass_all
5974   ;;
5975
5976 netbsd* | netbsdelf*-gnu)
5977   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5978     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5979   else
5980     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5981   fi
5982   ;;
5983
5984 newos6*)
5985   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5986   lt_cv_file_magic_cmd=/usr/bin/file
5987   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5988   ;;
5989
5990 *nto* | *qnx*)
5991   lt_cv_deplibs_check_method=pass_all
5992   ;;
5993
5994 openbsd*)
5995   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5996     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5997   else
5998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5999   fi
6000   ;;
6001
6002 osf3* | osf4* | osf5*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 rdos*)
6007   lt_cv_deplibs_check_method=pass_all
6008   ;;
6009
6010 solaris*)
6011   lt_cv_deplibs_check_method=pass_all
6012   ;;
6013
6014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6015   lt_cv_deplibs_check_method=pass_all
6016   ;;
6017
6018 sysv4 | sysv4.3*)
6019   case $host_vendor in
6020   motorola)
6021     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]'
6022     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6023     ;;
6024   ncr)
6025     lt_cv_deplibs_check_method=pass_all
6026     ;;
6027   sequent)
6028     lt_cv_file_magic_cmd='/bin/file'
6029     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6030     ;;
6031   sni)
6032     lt_cv_file_magic_cmd='/bin/file'
6033     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6034     lt_cv_file_magic_test_file=/lib/libc.so
6035     ;;
6036   siemens)
6037     lt_cv_deplibs_check_method=pass_all
6038     ;;
6039   pc)
6040     lt_cv_deplibs_check_method=pass_all
6041     ;;
6042   esac
6043   ;;
6044
6045 tpf*)
6046   lt_cv_deplibs_check_method=pass_all
6047   ;;
6048 esac
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6052 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6053
6054 file_magic_glob=
6055 want_nocaseglob=no
6056 if test "$build" = "$host"; then
6057   case $host_os in
6058   mingw* | pw32*)
6059     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6060       want_nocaseglob=yes
6061     else
6062       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6063     fi
6064     ;;
6065   esac
6066 fi
6067
6068 file_magic_cmd=$lt_cv_file_magic_cmd
6069 deplibs_check_method=$lt_cv_deplibs_check_method
6070 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 if test -n "$ac_tool_prefix"; then
6094   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if ${ac_cv_prog_DLLTOOL+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   if test -n "$DLLTOOL"; then
6102   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116   done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 DLLTOOL=$ac_cv_prog_DLLTOOL
6122 if test -n "$DLLTOOL"; then
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6124 $as_echo "$DLLTOOL" >&6; }
6125 else
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_DLLTOOL"; then
6133   ac_ct_DLLTOOL=$DLLTOOL
6134   # Extract the first word of "dlltool", so it can be a program name with args.
6135 set dummy dlltool; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if test -n "$ac_ct_DLLTOOL"; then
6142   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156   done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6162 if test -n "$ac_ct_DLLTOOL"; then
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6164 $as_echo "$ac_ct_DLLTOOL" >&6; }
6165 else
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170   if test "x$ac_ct_DLLTOOL" = x; then
6171     DLLTOOL="false"
6172   else
6173     case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179     DLLTOOL=$ac_ct_DLLTOOL
6180   fi
6181 else
6182   DLLTOOL="$ac_cv_prog_DLLTOOL"
6183 fi
6184
6185 test -z "$DLLTOOL" && DLLTOOL=dlltool
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6197 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6198 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6199   $as_echo_n "(cached) " >&6
6200 else
6201   lt_cv_sharedlib_from_linklib_cmd='unknown'
6202
6203 case $host_os in
6204 cygwin* | mingw* | pw32* | cegcc*)
6205   # two different shell functions defined in ltmain.sh
6206   # decide which to use based on capabilities of $DLLTOOL
6207   case `$DLLTOOL --help 2>&1` in
6208   *--identify-strict*)
6209     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6210     ;;
6211   *)
6212     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6213     ;;
6214   esac
6215   ;;
6216 *)
6217   # fallback: assume linklib IS sharedlib
6218   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6219   ;;
6220 esac
6221
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6224 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6225 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6226 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6227
6228
6229
6230
6231
6232
6233
6234 if test -n "$ac_tool_prefix"; then
6235   for ac_prog in ar
6236   do
6237     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_AR+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   if test -n "$AR"; then
6245   ac_cv_prog_AR="$AR" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252     for ac_exec_ext in '' $ac_executable_extensions; do
6253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259   done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 AR=$ac_cv_prog_AR
6265 if test -n "$AR"; then
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6267 $as_echo "$AR" >&6; }
6268 else
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274     test -n "$AR" && break
6275   done
6276 fi
6277 if test -z "$AR"; then
6278   ac_ct_AR=$AR
6279   for ac_prog in ar
6280 do
6281   # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if test -n "$ac_ct_AR"; then
6289   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_exec_ext in '' $ac_executable_extensions; do
6297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_ac_ct_AR="$ac_prog"
6299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303   done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6309 if test -n "$ac_ct_AR"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6311 $as_echo "$ac_ct_AR" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317
6318   test -n "$ac_ct_AR" && break
6319 done
6320
6321   if test "x$ac_ct_AR" = x; then
6322     AR="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330     AR=$ac_ct_AR
6331   fi
6332 fi
6333
6334 : ${AR=ar}
6335 : ${AR_FLAGS=cru}
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6348 $as_echo_n "checking for archiver @FILE support... " >&6; }
6349 if ${lt_cv_ar_at_file+:} false; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   lt_cv_ar_at_file=no
6353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355
6356 int
6357 main ()
6358 {
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365   echo conftest.$ac_objext > conftest.lst
6366       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6367       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6368   (eval $lt_ar_try) 2>&5
6369   ac_status=$?
6370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371   test $ac_status = 0; }
6372       if test "$ac_status" -eq 0; then
6373         # Ensure the archiver fails upon bogus file names.
6374         rm -f conftest.$ac_objext libconftest.a
6375         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6376   (eval $lt_ar_try) 2>&5
6377   ac_status=$?
6378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379   test $ac_status = 0; }
6380         if test "$ac_status" -ne 0; then
6381           lt_cv_ar_at_file=@
6382         fi
6383       fi
6384       rm -f conftest.* libconftest.a
6385
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6391 $as_echo "$lt_cv_ar_at_file" >&6; }
6392
6393 if test "x$lt_cv_ar_at_file" = xno; then
6394   archiver_list_spec=
6395 else
6396   archiver_list_spec=$lt_cv_ar_at_file
6397 fi
6398
6399
6400
6401
6402
6403
6404
6405 if test -n "$ac_tool_prefix"; then
6406   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_STRIP+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$STRIP"; then
6414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443 fi
6444 if test -z "$ac_cv_prog_STRIP"; then
6445   ac_ct_STRIP=$STRIP
6446   # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$ac_ct_STRIP"; then
6454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463     ac_cv_prog_ac_ct_STRIP="strip"
6464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468   done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482   if test "x$ac_ct_STRIP" = x; then
6483     STRIP=":"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     STRIP=$ac_ct_STRIP
6492   fi
6493 else
6494   STRIP="$ac_cv_prog_STRIP"
6495 fi
6496
6497 test -z "$STRIP" && STRIP=:
6498
6499
6500
6501
6502
6503
6504 if test -n "$ac_tool_prefix"; then
6505   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_RANLIB+:} false; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   if test -n "$RANLIB"; then
6513   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 RANLIB=$ac_cv_prog_RANLIB
6533 if test -n "$RANLIB"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6535 $as_echo "$RANLIB" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 fi
6543 if test -z "$ac_cv_prog_RANLIB"; then
6544   ac_ct_RANLIB=$RANLIB
6545   # Extract the first word of "ranlib", so it can be a program name with args.
6546 set dummy ranlib; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$ac_ct_RANLIB"; then
6553   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562     ac_cv_prog_ac_ct_RANLIB="ranlib"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6573 if test -n "$ac_ct_RANLIB"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6575 $as_echo "$ac_ct_RANLIB" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581   if test "x$ac_ct_RANLIB" = x; then
6582     RANLIB=":"
6583   else
6584     case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590     RANLIB=$ac_ct_RANLIB
6591   fi
6592 else
6593   RANLIB="$ac_cv_prog_RANLIB"
6594 fi
6595
6596 test -z "$RANLIB" && RANLIB=:
6597
6598
6599
6600
6601
6602
6603 # Determine commands to create old-style static archives.
6604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6605 old_postinstall_cmds='chmod 644 $oldlib'
6606 old_postuninstall_cmds=
6607
6608 if test -n "$RANLIB"; then
6609   case $host_os in
6610   openbsd*)
6611     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6612     ;;
6613   *)
6614     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6615     ;;
6616   esac
6617   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6618 fi
6619
6620 case $host_os in
6621   darwin*)
6622     lock_old_archive_extraction=yes ;;
6623   *)
6624     lock_old_archive_extraction=no ;;
6625 esac
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
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 # If no C compiler was specified, use CC.
6666 LTCC=${LTCC-"$CC"}
6667
6668 # If no C compiler flags were specified, use CFLAGS.
6669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6670
6671 # Allow CC to be a program name with arguments.
6672 compiler=$CC
6673
6674
6675 # Check for command to grab the raw symbol name followed by C symbol from nm.
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6677 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6678 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681
6682 # These are sane defaults that work on at least a few old systems.
6683 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6684
6685 # Character class describing NM global symbol codes.
6686 symcode='[BCDEGRST]'
6687
6688 # Regexp to match symbols that can be accessed directly from C.
6689 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6690
6691 # Define system-specific variables.
6692 case $host_os in
6693 aix*)
6694   symcode='[BCDT]'
6695   ;;
6696 cygwin* | mingw* | pw32* | cegcc*)
6697   symcode='[ABCDGISTW]'
6698   ;;
6699 hpux*)
6700   if test "$host_cpu" = ia64; then
6701     symcode='[ABCDEGRST]'
6702   fi
6703   ;;
6704 irix* | nonstopux*)
6705   symcode='[BCDEGRST]'
6706   ;;
6707 osf*)
6708   symcode='[BCDEGQRST]'
6709   ;;
6710 solaris*)
6711   symcode='[BDRT]'
6712   ;;
6713 sco3.2v5*)
6714   symcode='[DT]'
6715   ;;
6716 sysv4.2uw2*)
6717   symcode='[DT]'
6718   ;;
6719 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6720   symcode='[ABDT]'
6721   ;;
6722 sysv4)
6723   symcode='[DFNSTU]'
6724   ;;
6725 esac
6726
6727 # If we're using GNU nm, then use its standard symbol codes.
6728 case `$NM -V 2>&1` in
6729 *GNU* | *'with BFD'*)
6730   symcode='[ABCDGIRSTW]' ;;
6731 esac
6732
6733 # Transform an extracted symbol line into a proper C declaration.
6734 # Some systems (esp. on ia64) link data and code symbols differently,
6735 # so use this general approach.
6736 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6737
6738 # Transform an extracted symbol line into symbol name and symbol address
6739 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6740 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'"
6741
6742 # Handle CRLF in mingw tool chain
6743 opt_cr=
6744 case $build_os in
6745 mingw*)
6746   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6747   ;;
6748 esac
6749
6750 # Try without a prefix underscore, then with it.
6751 for ac_symprfx in "" "_"; do
6752
6753   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6754   symxfrm="\\1 $ac_symprfx\\2 \\2"
6755
6756   # Write the raw and C identifiers.
6757   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6758     # Fake it for dumpbin and say T for any non-static function
6759     # and D for any global variable.
6760     # Also find C++ and __fastcall symbols from MSVC++,
6761     # which start with @ or ?.
6762     lt_cv_sys_global_symbol_pipe="$AWK '"\
6763 "     {last_section=section; section=\$ 3};"\
6764 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6765 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6766 "     \$ 0!~/External *\|/{next};"\
6767 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6768 "     {if(hide[section]) next};"\
6769 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6770 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6771 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6772 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6773 "     ' prfx=^$ac_symprfx"
6774   else
6775     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6776   fi
6777   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6778
6779   # Check to see that the pipe works correctly.
6780   pipe_works=no
6781
6782   rm -f conftest*
6783   cat > conftest.$ac_ext <<_LT_EOF
6784 #ifdef __cplusplus
6785 extern "C" {
6786 #endif
6787 char nm_test_var;
6788 void nm_test_func(void);
6789 void nm_test_func(void){}
6790 #ifdef __cplusplus
6791 }
6792 #endif
6793 int main(){nm_test_var='a';nm_test_func();return(0);}
6794 _LT_EOF
6795
6796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797   (eval $ac_compile) 2>&5
6798   ac_status=$?
6799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800   test $ac_status = 0; }; then
6801     # Now try to grab the symbols.
6802     nlist=conftest.nm
6803     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6804   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6805   ac_status=$?
6806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807   test $ac_status = 0; } && test -s "$nlist"; then
6808       # Try sorting and uniquifying the output.
6809       if sort "$nlist" | uniq > "$nlist"T; then
6810         mv -f "$nlist"T "$nlist"
6811       else
6812         rm -f "$nlist"T
6813       fi
6814
6815       # Make sure that we snagged all the symbols we need.
6816       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6817         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6818           cat <<_LT_EOF > conftest.$ac_ext
6819 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6820 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6821 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6822    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6823 # define LT_DLSYM_CONST
6824 #elif defined(__osf__)
6825 /* This system does not cope well with relocations in const data.  */
6826 # define LT_DLSYM_CONST
6827 #else
6828 # define LT_DLSYM_CONST const
6829 #endif
6830
6831 #ifdef __cplusplus
6832 extern "C" {
6833 #endif
6834
6835 _LT_EOF
6836           # Now generate the symbol file.
6837           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6838
6839           cat <<_LT_EOF >> conftest.$ac_ext
6840
6841 /* The mapping between symbol names and symbols.  */
6842 LT_DLSYM_CONST struct {
6843   const char *name;
6844   void       *address;
6845 }
6846 lt__PROGRAM__LTX_preloaded_symbols[] =
6847 {
6848   { "@PROGRAM@", (void *) 0 },
6849 _LT_EOF
6850           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6851           cat <<\_LT_EOF >> conftest.$ac_ext
6852   {0, (void *) 0}
6853 };
6854
6855 /* This works around a problem in FreeBSD linker */
6856 #ifdef FREEBSD_WORKAROUND
6857 static const void *lt_preloaded_setup() {
6858   return lt__PROGRAM__LTX_preloaded_symbols;
6859 }
6860 #endif
6861
6862 #ifdef __cplusplus
6863 }
6864 #endif
6865 _LT_EOF
6866           # Now try linking the two files.
6867           mv conftest.$ac_objext conftstm.$ac_objext
6868           lt_globsym_save_LIBS=$LIBS
6869           lt_globsym_save_CFLAGS=$CFLAGS
6870           LIBS="conftstm.$ac_objext"
6871           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6872           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6873   (eval $ac_link) 2>&5
6874   ac_status=$?
6875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6877             pipe_works=yes
6878           fi
6879           LIBS=$lt_globsym_save_LIBS
6880           CFLAGS=$lt_globsym_save_CFLAGS
6881         else
6882           echo "cannot find nm_test_func in $nlist" >&5
6883         fi
6884       else
6885         echo "cannot find nm_test_var in $nlist" >&5
6886       fi
6887     else
6888       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6889     fi
6890   else
6891     echo "$progname: failed program was:" >&5
6892     cat conftest.$ac_ext >&5
6893   fi
6894   rm -rf conftest* conftst*
6895
6896   # Do not use the global_symbol_pipe unless it works.
6897   if test "$pipe_works" = yes; then
6898     break
6899   else
6900     lt_cv_sys_global_symbol_pipe=
6901   fi
6902 done
6903
6904 fi
6905
6906 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6907   lt_cv_sys_global_symbol_to_cdecl=
6908 fi
6909 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6911 $as_echo "failed" >&6; }
6912 else
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6914 $as_echo "ok" >&6; }
6915 fi
6916
6917 # Response file support.
6918 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6919   nm_file_list_spec='@'
6920 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6921   nm_file_list_spec='@'
6922 fi
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6951 $as_echo_n "checking for sysroot... " >&6; }
6952
6953 # Check whether --with-sysroot was given.
6954 if test "${with_sysroot+set}" = set; then :
6955   withval=$with_sysroot;
6956 else
6957   with_sysroot=no
6958 fi
6959
6960
6961 lt_sysroot=
6962 case ${with_sysroot} in #(
6963  yes)
6964    if test "$GCC" = yes; then
6965      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6966    fi
6967    ;; #(
6968  /*)
6969    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6970    ;; #(
6971  no|'')
6972    ;; #(
6973  *)
6974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6975 $as_echo "${with_sysroot}" >&6; }
6976    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6977    ;;
6978 esac
6979
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6981 $as_echo "${lt_sysroot:-no}" >&6; }
6982
6983
6984
6985
6986
6987 # Check whether --enable-libtool-lock was given.
6988 if test "${enable_libtool_lock+set}" = set; then :
6989   enableval=$enable_libtool_lock;
6990 fi
6991
6992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6993
6994 # Some flags need to be propagated to the compiler or linker for good
6995 # libtool support.
6996 case $host in
6997 ia64-*-hpux*)
6998   # Find out which ABI we are using.
6999   echo 'int i;' > conftest.$ac_ext
7000   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004   test $ac_status = 0; }; then
7005     case `/usr/bin/file conftest.$ac_objext` in
7006       *ELF-32*)
7007         HPUX_IA64_MODE="32"
7008         ;;
7009       *ELF-64*)
7010         HPUX_IA64_MODE="64"
7011         ;;
7012     esac
7013   fi
7014   rm -rf conftest*
7015   ;;
7016 *-*-irix6*)
7017   # Find out which ABI we are using.
7018   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7019   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7020   (eval $ac_compile) 2>&5
7021   ac_status=$?
7022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023   test $ac_status = 0; }; then
7024     if test "$lt_cv_prog_gnu_ld" = yes; then
7025       case `/usr/bin/file conftest.$ac_objext` in
7026         *32-bit*)
7027           LD="${LD-ld} -melf32bsmip"
7028           ;;
7029         *N32*)
7030           LD="${LD-ld} -melf32bmipn32"
7031           ;;
7032         *64-bit*)
7033           LD="${LD-ld} -melf64bmip"
7034         ;;
7035       esac
7036     else
7037       case `/usr/bin/file conftest.$ac_objext` in
7038         *32-bit*)
7039           LD="${LD-ld} -32"
7040           ;;
7041         *N32*)
7042           LD="${LD-ld} -n32"
7043           ;;
7044         *64-bit*)
7045           LD="${LD-ld} -64"
7046           ;;
7047       esac
7048     fi
7049   fi
7050   rm -rf conftest*
7051   ;;
7052
7053 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7054 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7055   # Find out which ABI we are using.
7056   echo 'int i;' > conftest.$ac_ext
7057   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7058   (eval $ac_compile) 2>&5
7059   ac_status=$?
7060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061   test $ac_status = 0; }; then
7062     case `/usr/bin/file conftest.o` in
7063       *32-bit*)
7064         case $host in
7065           x86_64-*kfreebsd*-gnu)
7066             LD="${LD-ld} -m elf_i386_fbsd"
7067             ;;
7068           x86_64-*linux*)
7069             case `/usr/bin/file conftest.o` in
7070               *x86-64*)
7071                 LD="${LD-ld} -m elf32_x86_64"
7072                 ;;
7073               *)
7074                 LD="${LD-ld} -m elf_i386"
7075                 ;;
7076             esac
7077             ;;
7078           ppc64-*linux*|powerpc64-*linux*)
7079             LD="${LD-ld} -m elf32ppclinux"
7080             ;;
7081           s390x-*linux*)
7082             LD="${LD-ld} -m elf_s390"
7083             ;;
7084           sparc64-*linux*)
7085             LD="${LD-ld} -m elf32_sparc"
7086             ;;
7087         esac
7088         ;;
7089       *64-bit*)
7090         case $host in
7091           x86_64-*kfreebsd*-gnu)
7092             LD="${LD-ld} -m elf_x86_64_fbsd"
7093             ;;
7094           x86_64-*linux*)
7095             LD="${LD-ld} -m elf_x86_64"
7096             ;;
7097           ppc*-*linux*|powerpc*-*linux*)
7098             LD="${LD-ld} -m elf64ppc"
7099             ;;
7100           s390*-*linux*|s390*-*tpf*)
7101             LD="${LD-ld} -m elf64_s390"
7102             ;;
7103           sparc*-*linux*)
7104             LD="${LD-ld} -m elf64_sparc"
7105             ;;
7106         esac
7107         ;;
7108     esac
7109   fi
7110   rm -rf conftest*
7111   ;;
7112
7113 *-*-sco3.2v5*)
7114   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7115   SAVE_CFLAGS="$CFLAGS"
7116   CFLAGS="$CFLAGS -belf"
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7118 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7119 if ${lt_cv_cc_needs_belf+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   ac_ext=c
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7127
7128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h.  */
7130
7131 int
7132 main ()
7133 {
7134
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_link "$LINENO"; then :
7140   lt_cv_cc_needs_belf=yes
7141 else
7142   lt_cv_cc_needs_belf=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext \
7145     conftest$ac_exeext conftest.$ac_ext
7146      ac_ext=c
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7154 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7155   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7156     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7157     CFLAGS="$SAVE_CFLAGS"
7158   fi
7159   ;;
7160 *-*solaris*)
7161   # Find out which ABI we are using.
7162   echo 'int i;' > conftest.$ac_ext
7163   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164   (eval $ac_compile) 2>&5
7165   ac_status=$?
7166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167   test $ac_status = 0; }; then
7168     case `/usr/bin/file conftest.o` in
7169     *64-bit*)
7170       case $lt_cv_prog_gnu_ld in
7171       yes*)
7172         case $host in
7173         i?86-*-solaris*)
7174           LD="${LD-ld} -m elf_x86_64"
7175           ;;
7176         sparc*-*-solaris*)
7177           LD="${LD-ld} -m elf64_sparc"
7178           ;;
7179         esac
7180         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7181         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7182           LD="${LD-ld}_sol2"
7183         fi
7184         ;;
7185       *)
7186         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7187           LD="${LD-ld} -64"
7188         fi
7189         ;;
7190       esac
7191       ;;
7192     esac
7193   fi
7194   rm -rf conftest*
7195   ;;
7196 esac
7197
7198 need_locks="$enable_libtool_lock"
7199
7200 if test -n "$ac_tool_prefix"; then
7201   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}mt; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$MANIFEST_TOOL"; then
7209   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223   done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7229 if test -n "$MANIFEST_TOOL"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7231 $as_echo "$MANIFEST_TOOL" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238 fi
7239 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7240   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7241   # Extract the first word of "mt", so it can be a program name with args.
7242 set dummy mt; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$ac_ct_MANIFEST_TOOL"; then
7249   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7269 if test -n "$ac_ct_MANIFEST_TOOL"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7271 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7278     MANIFEST_TOOL=":"
7279   else
7280     case $cross_compiling:$ac_tool_warned in
7281 yes:)
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7287   fi
7288 else
7289   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7290 fi
7291
7292 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7294 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7295 if ${lt_cv_path_mainfest_tool+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   lt_cv_path_mainfest_tool=no
7299   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7300   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7301   cat conftest.err >&5
7302   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7303     lt_cv_path_mainfest_tool=yes
7304   fi
7305   rm -f conftest*
7306 fi
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7308 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7309 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7310   MANIFEST_TOOL=:
7311 fi
7312
7313
7314
7315
7316
7317
7318   case $host_os in
7319     rhapsody* | darwin*)
7320     if test -n "$ac_tool_prefix"; then
7321   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   if test -n "$DSYMUTIL"; then
7329   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336     for ac_exec_ext in '' $ac_executable_extensions; do
7337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343   done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7349 if test -n "$DSYMUTIL"; then
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7351 $as_echo "$DSYMUTIL" >&6; }
7352 else
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357
7358 fi
7359 if test -z "$ac_cv_prog_DSYMUTIL"; then
7360   ac_ct_DSYMUTIL=$DSYMUTIL
7361   # Extract the first word of "dsymutil", so it can be a program name with args.
7362 set dummy dsymutil; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$ac_ct_DSYMUTIL"; then
7369   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7389 if test -n "$ac_ct_DSYMUTIL"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7391 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397   if test "x$ac_ct_DSYMUTIL" = x; then
7398     DSYMUTIL=":"
7399   else
7400     case $cross_compiling:$ac_tool_warned in
7401 yes:)
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404 ac_tool_warned=yes ;;
7405 esac
7406     DSYMUTIL=$ac_ct_DSYMUTIL
7407   fi
7408 else
7409   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7410 fi
7411
7412     if test -n "$ac_tool_prefix"; then
7413   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_NMEDIT+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   if test -n "$NMEDIT"; then
7421   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435   done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 NMEDIT=$ac_cv_prog_NMEDIT
7441 if test -n "$NMEDIT"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7443 $as_echo "$NMEDIT" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_NMEDIT"; then
7452   ac_ct_NMEDIT=$NMEDIT
7453   # Extract the first word of "nmedit", so it can be a program name with args.
7454 set dummy nmedit; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$ac_ct_NMEDIT"; then
7461   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7481 if test -n "$ac_ct_NMEDIT"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7483 $as_echo "$ac_ct_NMEDIT" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489   if test "x$ac_ct_NMEDIT" = x; then
7490     NMEDIT=":"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     NMEDIT=$ac_ct_NMEDIT
7499   fi
7500 else
7501   NMEDIT="$ac_cv_prog_NMEDIT"
7502 fi
7503
7504     if test -n "$ac_tool_prefix"; then
7505   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_LIPO+:} false; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   if test -n "$LIPO"; then
7513   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520     for ac_exec_ext in '' $ac_executable_extensions; do
7521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527   done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 LIPO=$ac_cv_prog_LIPO
7533 if test -n "$LIPO"; then
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7535 $as_echo "$LIPO" >&6; }
7536 else
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541
7542 fi
7543 if test -z "$ac_cv_prog_LIPO"; then
7544   ac_ct_LIPO=$LIPO
7545   # Extract the first word of "lipo", so it can be a program name with args.
7546 set dummy lipo; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$ac_ct_LIPO"; then
7553   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_prog_ac_ct_LIPO="lipo"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7573 if test -n "$ac_ct_LIPO"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7575 $as_echo "$ac_ct_LIPO" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581   if test "x$ac_ct_LIPO" = x; then
7582     LIPO=":"
7583   else
7584     case $cross_compiling:$ac_tool_warned in
7585 yes:)
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588 ac_tool_warned=yes ;;
7589 esac
7590     LIPO=$ac_ct_LIPO
7591   fi
7592 else
7593   LIPO="$ac_cv_prog_LIPO"
7594 fi
7595
7596     if test -n "$ac_tool_prefix"; then
7597   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}otool; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_OTOOL+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$OTOOL"; then
7605   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 OTOOL=$ac_cv_prog_OTOOL
7625 if test -n "$OTOOL"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7627 $as_echo "$OTOOL" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634 fi
7635 if test -z "$ac_cv_prog_OTOOL"; then
7636   ac_ct_OTOOL=$OTOOL
7637   # Extract the first word of "otool", so it can be a program name with args.
7638 set dummy otool; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$ac_ct_OTOOL"; then
7645   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_ac_ct_OTOOL="otool"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7665 if test -n "$ac_ct_OTOOL"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7667 $as_echo "$ac_ct_OTOOL" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673   if test "x$ac_ct_OTOOL" = x; then
7674     OTOOL=":"
7675   else
7676     case $cross_compiling:$ac_tool_warned in
7677 yes:)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     OTOOL=$ac_ct_OTOOL
7683   fi
7684 else
7685   OTOOL="$ac_cv_prog_OTOOL"
7686 fi
7687
7688     if test -n "$ac_tool_prefix"; then
7689   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_prog_OTOOL64+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   if test -n "$OTOOL64"; then
7697   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711   done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 OTOOL64=$ac_cv_prog_OTOOL64
7717 if test -n "$OTOOL64"; then
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7719 $as_echo "$OTOOL64" >&6; }
7720 else
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725
7726 fi
7727 if test -z "$ac_cv_prog_OTOOL64"; then
7728   ac_ct_OTOOL64=$OTOOL64
7729   # Extract the first word of "otool64", so it can be a program name with args.
7730 set dummy otool64; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   if test -n "$ac_ct_OTOOL64"; then
7737   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744     for ac_exec_ext in '' $ac_executable_extensions; do
7745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746     ac_cv_prog_ac_ct_OTOOL64="otool64"
7747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751   done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7757 if test -n "$ac_ct_OTOOL64"; then
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7759 $as_echo "$ac_ct_OTOOL64" >&6; }
7760 else
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765   if test "x$ac_ct_OTOOL64" = x; then
7766     OTOOL64=":"
7767   else
7768     case $cross_compiling:$ac_tool_warned in
7769 yes:)
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772 ac_tool_warned=yes ;;
7773 esac
7774     OTOOL64=$ac_ct_OTOOL64
7775   fi
7776 else
7777   OTOOL64="$ac_cv_prog_OTOOL64"
7778 fi
7779
7780
7781
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7807 $as_echo_n "checking for -single_module linker flag... " >&6; }
7808 if ${lt_cv_apple_cc_single_mod+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   lt_cv_apple_cc_single_mod=no
7812       if test -z "${LT_MULTI_MODULE}"; then
7813         # By default we will add the -single_module flag. You can override
7814         # by either setting the environment variable LT_MULTI_MODULE
7815         # non-empty at configure time, or by adding -multi_module to the
7816         # link flags.
7817         rm -rf libconftest.dylib*
7818         echo "int foo(void){return 1;}" > conftest.c
7819         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820 -dynamiclib -Wl,-single_module conftest.c" >&5
7821         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7822           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7823         _lt_result=$?
7824         # If there is a non-empty error log, and "single_module"
7825         # appears in it, assume the flag caused a linker warning
7826         if test -s conftest.err && $GREP single_module conftest.err; then
7827           cat conftest.err >&5
7828         # Otherwise, if the output was created with a 0 exit code from
7829         # the compiler, it worked.
7830         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7831           lt_cv_apple_cc_single_mod=yes
7832         else
7833           cat conftest.err >&5
7834         fi
7835         rm -rf libconftest.dylib*
7836         rm -f conftest.*
7837       fi
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841
7842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7843 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7844 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   lt_cv_ld_exported_symbols_list=no
7848       save_LDFLAGS=$LDFLAGS
7849       echo "_main" > conftest.sym
7850       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h.  */
7853
7854 int
7855 main ()
7856 {
7857
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_link "$LINENO"; then :
7863   lt_cv_ld_exported_symbols_list=yes
7864 else
7865   lt_cv_ld_exported_symbols_list=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext \
7868     conftest$ac_exeext conftest.$ac_ext
7869         LDFLAGS="$save_LDFLAGS"
7870
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7873 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7874
7875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7876 $as_echo_n "checking for -force_load linker flag... " >&6; }
7877 if ${lt_cv_ld_force_load+:} false; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   lt_cv_ld_force_load=no
7881       cat > conftest.c << _LT_EOF
7882 int forced_loaded() { return 2;}
7883 _LT_EOF
7884       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7885       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7886       echo "$AR cru libconftest.a conftest.o" >&5
7887       $AR cru libconftest.a conftest.o 2>&5
7888       echo "$RANLIB libconftest.a" >&5
7889       $RANLIB libconftest.a 2>&5
7890       cat > conftest.c << _LT_EOF
7891 int main() { return 0;}
7892 _LT_EOF
7893       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7894       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7895       _lt_result=$?
7896       if test -s conftest.err && $GREP force_load conftest.err; then
7897         cat conftest.err >&5
7898       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7899         lt_cv_ld_force_load=yes
7900       else
7901         cat conftest.err >&5
7902       fi
7903         rm -f conftest.err libconftest.a conftest conftest.c
7904         rm -rf conftest.dSYM
7905
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7908 $as_echo "$lt_cv_ld_force_load" >&6; }
7909     case $host_os in
7910     rhapsody* | darwin1.[012])
7911       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7912     darwin1.*)
7913       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7914     darwin*) # darwin 5.x on
7915       # if running on 10.5 or later, the deployment target defaults
7916       # to the OS version, if on x86, and 10.4, the deployment
7917       # target defaults to 10.4. Don't you love it?
7918       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7919         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7920           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7921         10.[012]*)
7922           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7923         10.*)
7924           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7925       esac
7926     ;;
7927   esac
7928     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7929       _lt_dar_single_mod='$single_module'
7930     fi
7931     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7932       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7933     else
7934       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7935     fi
7936     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7937       _lt_dsymutil='~$DSYMUTIL $lib || :'
7938     else
7939       _lt_dsymutil=
7940     fi
7941     ;;
7942   esac
7943
7944 for ac_header in dlfcn.h
7945 do :
7946   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7947 "
7948 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7949   cat >>confdefs.h <<_ACEOF
7950 #define HAVE_DLFCN_H 1
7951 _ACEOF
7952
7953 fi
7954
7955 done
7956
7957
7958
7959
7960
7961 # Set options
7962
7963
7964
7965         enable_dlopen=no
7966
7967
7968   enable_win32_dll=no
7969
7970
7971             # Check whether --enable-shared was given.
7972 if test "${enable_shared+set}" = set; then :
7973   enableval=$enable_shared; p=${PACKAGE-default}
7974     case $enableval in
7975     yes) enable_shared=yes ;;
7976     no) enable_shared=no ;;
7977     *)
7978       enable_shared=no
7979       # Look at the argument we got.  We use all the common list separators.
7980       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7981       for pkg in $enableval; do
7982         IFS="$lt_save_ifs"
7983         if test "X$pkg" = "X$p"; then
7984           enable_shared=yes
7985         fi
7986       done
7987       IFS="$lt_save_ifs"
7988       ;;
7989     esac
7990 else
7991   enable_shared=yes
7992 fi
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002   # Check whether --enable-static was given.
8003 if test "${enable_static+set}" = set; then :
8004   enableval=$enable_static; p=${PACKAGE-default}
8005     case $enableval in
8006     yes) enable_static=yes ;;
8007     no) enable_static=no ;;
8008     *)
8009      enable_static=no
8010       # Look at the argument we got.  We use all the common list separators.
8011       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8012       for pkg in $enableval; do
8013         IFS="$lt_save_ifs"
8014         if test "X$pkg" = "X$p"; then
8015           enable_static=yes
8016         fi
8017       done
8018       IFS="$lt_save_ifs"
8019       ;;
8020     esac
8021 else
8022   enable_static=yes
8023 fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 # Check whether --with-pic was given.
8035 if test "${with_pic+set}" = set; then :
8036   withval=$with_pic; lt_p=${PACKAGE-default}
8037     case $withval in
8038     yes|no) pic_mode=$withval ;;
8039     *)
8040       pic_mode=default
8041       # Look at the argument we got.  We use all the common list separators.
8042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8043       for lt_pkg in $withval; do
8044         IFS="$lt_save_ifs"
8045         if test "X$lt_pkg" = "X$lt_p"; then
8046           pic_mode=yes
8047         fi
8048       done
8049       IFS="$lt_save_ifs"
8050       ;;
8051     esac
8052 else
8053   pic_mode=default
8054 fi
8055
8056
8057 test -z "$pic_mode" && pic_mode=default
8058
8059
8060
8061
8062
8063
8064
8065   # Check whether --enable-fast-install was given.
8066 if test "${enable_fast_install+set}" = set; then :
8067   enableval=$enable_fast_install; p=${PACKAGE-default}
8068     case $enableval in
8069     yes) enable_fast_install=yes ;;
8070     no) enable_fast_install=no ;;
8071     *)
8072       enable_fast_install=no
8073       # Look at the argument we got.  We use all the common list separators.
8074       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8075       for pkg in $enableval; do
8076         IFS="$lt_save_ifs"
8077         if test "X$pkg" = "X$p"; then
8078           enable_fast_install=yes
8079         fi
8080       done
8081       IFS="$lt_save_ifs"
8082       ;;
8083     esac
8084 else
8085   enable_fast_install=yes
8086 fi
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 # This can be used to rebuild libtool when needed
8099 LIBTOOL_DEPS="$ltmain"
8100
8101 # Always use our own libtool.
8102 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8103
8104
8105
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 test -z "$LN_S" && LN_S="ln -s"
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 if test -n "${ZSH_VERSION+set}" ; then
8149    setopt NO_GLOB_SUBST
8150 fi
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8153 $as_echo_n "checking for objdir... " >&6; }
8154 if ${lt_cv_objdir+:} false; then :
8155   $as_echo_n "(cached) " >&6
8156 else
8157   rm -f .libs 2>/dev/null
8158 mkdir .libs 2>/dev/null
8159 if test -d .libs; then
8160   lt_cv_objdir=.libs
8161 else
8162   # MS-DOS does not allow filenames that begin with a dot.
8163   lt_cv_objdir=_libs
8164 fi
8165 rmdir .libs 2>/dev/null
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8168 $as_echo "$lt_cv_objdir" >&6; }
8169 objdir=$lt_cv_objdir
8170
8171
8172
8173
8174
8175 cat >>confdefs.h <<_ACEOF
8176 #define LT_OBJDIR "$lt_cv_objdir/"
8177 _ACEOF
8178
8179
8180
8181
8182 case $host_os in
8183 aix3*)
8184   # AIX sometimes has problems with the GCC collect2 program.  For some
8185   # reason, if we set the COLLECT_NAMES environment variable, the problems
8186   # vanish in a puff of smoke.
8187   if test "X${COLLECT_NAMES+set}" != Xset; then
8188     COLLECT_NAMES=
8189     export COLLECT_NAMES
8190   fi
8191   ;;
8192 esac
8193
8194 # Global variables:
8195 ofile=libtool
8196 can_build_shared=yes
8197
8198 # All known linkers require a `.a' archive for static linking (except MSVC,
8199 # which needs '.lib').
8200 libext=a
8201
8202 with_gnu_ld="$lt_cv_prog_gnu_ld"
8203
8204 old_CC="$CC"
8205 old_CFLAGS="$CFLAGS"
8206
8207 # Set sane defaults for various variables
8208 test -z "$CC" && CC=cc
8209 test -z "$LTCC" && LTCC=$CC
8210 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8211 test -z "$LD" && LD=ld
8212 test -z "$ac_objext" && ac_objext=o
8213
8214 for cc_temp in $compiler""; do
8215   case $cc_temp in
8216     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8217     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8218     \-*) ;;
8219     *) break;;
8220   esac
8221 done
8222 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8223
8224
8225 # Only perform the check for file, if the check method requires it
8226 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8227 case $deplibs_check_method in
8228 file_magic*)
8229   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8231 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8232 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   case $MAGIC_CMD in
8236 [\\/*] |  ?:[\\/]*)
8237   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8238   ;;
8239 *)
8240   lt_save_MAGIC_CMD="$MAGIC_CMD"
8241   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8242   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8243   for ac_dir in $ac_dummy; do
8244     IFS="$lt_save_ifs"
8245     test -z "$ac_dir" && ac_dir=.
8246     if test -f $ac_dir/${ac_tool_prefix}file; then
8247       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8248       if test -n "$file_magic_test_file"; then
8249         case $deplibs_check_method in
8250         "file_magic "*)
8251           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8252           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8254             $EGREP "$file_magic_regex" > /dev/null; then
8255             :
8256           else
8257             cat <<_LT_EOF 1>&2
8258
8259 *** Warning: the command libtool uses to detect shared libraries,
8260 *** $file_magic_cmd, produces output that libtool cannot recognize.
8261 *** The result is that libtool may fail to recognize shared libraries
8262 *** as such.  This will affect the creation of libtool libraries that
8263 *** depend on shared libraries, but programs linked with such libtool
8264 *** libraries will work regardless of this problem.  Nevertheless, you
8265 *** may want to report the problem to your system manager and/or to
8266 *** bug-libtool@gnu.org
8267
8268 _LT_EOF
8269           fi ;;
8270         esac
8271       fi
8272       break
8273     fi
8274   done
8275   IFS="$lt_save_ifs"
8276   MAGIC_CMD="$lt_save_MAGIC_CMD"
8277   ;;
8278 esac
8279 fi
8280
8281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282 if test -n "$MAGIC_CMD"; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8284 $as_echo "$MAGIC_CMD" >&6; }
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291
8292
8293
8294 if test -z "$lt_cv_path_MAGIC_CMD"; then
8295   if test -n "$ac_tool_prefix"; then
8296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8297 $as_echo_n "checking for file... " >&6; }
8298 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   case $MAGIC_CMD in
8302 [\\/*] |  ?:[\\/]*)
8303   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8304   ;;
8305 *)
8306   lt_save_MAGIC_CMD="$MAGIC_CMD"
8307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8308   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8309   for ac_dir in $ac_dummy; do
8310     IFS="$lt_save_ifs"
8311     test -z "$ac_dir" && ac_dir=.
8312     if test -f $ac_dir/file; then
8313       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8314       if test -n "$file_magic_test_file"; then
8315         case $deplibs_check_method in
8316         "file_magic "*)
8317           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8318           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8319           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8320             $EGREP "$file_magic_regex" > /dev/null; then
8321             :
8322           else
8323             cat <<_LT_EOF 1>&2
8324
8325 *** Warning: the command libtool uses to detect shared libraries,
8326 *** $file_magic_cmd, produces output that libtool cannot recognize.
8327 *** The result is that libtool may fail to recognize shared libraries
8328 *** as such.  This will affect the creation of libtool libraries that
8329 *** depend on shared libraries, but programs linked with such libtool
8330 *** libraries will work regardless of this problem.  Nevertheless, you
8331 *** may want to report the problem to your system manager and/or to
8332 *** bug-libtool@gnu.org
8333
8334 _LT_EOF
8335           fi ;;
8336         esac
8337       fi
8338       break
8339     fi
8340   done
8341   IFS="$lt_save_ifs"
8342   MAGIC_CMD="$lt_save_MAGIC_CMD"
8343   ;;
8344 esac
8345 fi
8346
8347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8348 if test -n "$MAGIC_CMD"; then
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8350 $as_echo "$MAGIC_CMD" >&6; }
8351 else
8352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 fi
8355
8356
8357   else
8358     MAGIC_CMD=:
8359   fi
8360 fi
8361
8362   fi
8363   ;;
8364 esac
8365
8366 # Use C for the default configuration in the libtool script
8367
8368 lt_save_CC="$CC"
8369 ac_ext=c
8370 ac_cpp='$CPP $CPPFLAGS'
8371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8374
8375
8376 # Source file extension for C test sources.
8377 ac_ext=c
8378
8379 # Object file extension for compiled C test sources.
8380 objext=o
8381 objext=$objext
8382
8383 # Code to be used in simple compile tests
8384 lt_simple_compile_test_code="int some_variable = 0;"
8385
8386 # Code to be used in simple link tests
8387 lt_simple_link_test_code='int main(){return(0);}'
8388
8389
8390
8391
8392
8393
8394
8395 # If no C compiler was specified, use CC.
8396 LTCC=${LTCC-"$CC"}
8397
8398 # If no C compiler flags were specified, use CFLAGS.
8399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8400
8401 # Allow CC to be a program name with arguments.
8402 compiler=$CC
8403
8404 # Save the default compiler, since it gets overwritten when the other
8405 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8406 compiler_DEFAULT=$CC
8407
8408 # save warnings/boilerplate of simple test code
8409 ac_outfile=conftest.$ac_objext
8410 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8411 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8412 _lt_compiler_boilerplate=`cat conftest.err`
8413 $RM conftest*
8414
8415 ac_outfile=conftest.$ac_objext
8416 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8417 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8418 _lt_linker_boilerplate=`cat conftest.err`
8419 $RM -r conftest*
8420
8421
8422 ## CAVEAT EMPTOR:
8423 ## There is no encapsulation within the following macros, do not change
8424 ## the running order or otherwise move them around unless you know exactly
8425 ## what you are doing...
8426 if test -n "$compiler"; then
8427
8428 lt_prog_compiler_no_builtin_flag=
8429
8430 if test "$GCC" = yes; then
8431   case $cc_basename in
8432   nvcc*)
8433     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8434   *)
8435     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8436   esac
8437
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8439 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8440 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   lt_cv_prog_compiler_rtti_exceptions=no
8444    ac_outfile=conftest.$ac_objext
8445    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8446    lt_compiler_flag="-fno-rtti -fno-exceptions"
8447    # Insert the option either (1) after the last *FLAGS variable, or
8448    # (2) before a word containing "conftest.", or (3) at the end.
8449    # Note that $ac_compile itself does not contain backslashes and begins
8450    # with a dollar sign (not a hyphen), so the echo should work correctly.
8451    # The option is referenced via a variable to avoid confusing sed.
8452    lt_compile=`echo "$ac_compile" | $SED \
8453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8455    -e 's:$: $lt_compiler_flag:'`
8456    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8457    (eval "$lt_compile" 2>conftest.err)
8458    ac_status=$?
8459    cat conftest.err >&5
8460    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461    if (exit $ac_status) && test -s "$ac_outfile"; then
8462      # The compiler can only warn and ignore the option if not recognized
8463      # So say no if there are warnings other than the usual output.
8464      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8465      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8466      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8467        lt_cv_prog_compiler_rtti_exceptions=yes
8468      fi
8469    fi
8470    $RM conftest*
8471
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8474 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8475
8476 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8477     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8478 else
8479     :
8480 fi
8481
8482 fi
8483
8484
8485
8486
8487
8488
8489   lt_prog_compiler_wl=
8490 lt_prog_compiler_pic=
8491 lt_prog_compiler_static=
8492
8493
8494   if test "$GCC" = yes; then
8495     lt_prog_compiler_wl='-Wl,'
8496     lt_prog_compiler_static='-static'
8497
8498     case $host_os in
8499       aix*)
8500       # All AIX code is PIC.
8501       if test "$host_cpu" = ia64; then
8502         # AIX 5 now supports IA64 processor
8503         lt_prog_compiler_static='-Bstatic'
8504       fi
8505       ;;
8506
8507     amigaos*)
8508       case $host_cpu in
8509       powerpc)
8510             # see comment about AmigaOS4 .so support
8511             lt_prog_compiler_pic='-fPIC'
8512         ;;
8513       m68k)
8514             # FIXME: we need at least 68020 code to build shared libraries, but
8515             # adding the `-m68020' flag to GCC prevents building anything better,
8516             # like `-m68040'.
8517             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8518         ;;
8519       esac
8520       ;;
8521
8522     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8523       # PIC is the default for these OSes.
8524       ;;
8525
8526     mingw* | cygwin* | pw32* | os2* | cegcc*)
8527       # This hack is so that the source file can tell whether it is being
8528       # built for inclusion in a dll (and should export symbols for example).
8529       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8530       # (--disable-auto-import) libraries
8531       lt_prog_compiler_pic='-DDLL_EXPORT'
8532       ;;
8533
8534     darwin* | rhapsody*)
8535       # PIC is the default on this platform
8536       # Common symbols not allowed in MH_DYLIB files
8537       lt_prog_compiler_pic='-fno-common'
8538       ;;
8539
8540     haiku*)
8541       # PIC is the default for Haiku.
8542       # The "-static" flag exists, but is broken.
8543       lt_prog_compiler_static=
8544       ;;
8545
8546     hpux*)
8547       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8548       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8549       # sets the default TLS model and affects inlining.
8550       case $host_cpu in
8551       hppa*64*)
8552         # +Z the default
8553         ;;
8554       *)
8555         lt_prog_compiler_pic='-fPIC'
8556         ;;
8557       esac
8558       ;;
8559
8560     interix[3-9]*)
8561       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8562       # Instead, we relocate shared libraries at runtime.
8563       ;;
8564
8565     msdosdjgpp*)
8566       # Just because we use GCC doesn't mean we suddenly get shared libraries
8567       # on systems that don't support them.
8568       lt_prog_compiler_can_build_shared=no
8569       enable_shared=no
8570       ;;
8571
8572     *nto* | *qnx*)
8573       # QNX uses GNU C++, but need to define -shared option too, otherwise
8574       # it will coredump.
8575       lt_prog_compiler_pic='-fPIC -shared'
8576       ;;
8577
8578     sysv4*MP*)
8579       if test -d /usr/nec; then
8580         lt_prog_compiler_pic=-Kconform_pic
8581       fi
8582       ;;
8583
8584     *)
8585       lt_prog_compiler_pic='-fPIC'
8586       ;;
8587     esac
8588
8589     case $cc_basename in
8590     nvcc*) # Cuda Compiler Driver 2.2
8591       lt_prog_compiler_wl='-Xlinker '
8592       if test -n "$lt_prog_compiler_pic"; then
8593         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8594       fi
8595       ;;
8596     esac
8597   else
8598     # PORTME Check for flag to pass linker flags through the system compiler.
8599     case $host_os in
8600     aix*)
8601       lt_prog_compiler_wl='-Wl,'
8602       if test "$host_cpu" = ia64; then
8603         # AIX 5 now supports IA64 processor
8604         lt_prog_compiler_static='-Bstatic'
8605       else
8606         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8607       fi
8608       ;;
8609
8610     mingw* | cygwin* | pw32* | os2* | cegcc*)
8611       # This hack is so that the source file can tell whether it is being
8612       # built for inclusion in a dll (and should export symbols for example).
8613       lt_prog_compiler_pic='-DDLL_EXPORT'
8614       ;;
8615
8616     hpux9* | hpux10* | hpux11*)
8617       lt_prog_compiler_wl='-Wl,'
8618       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8619       # not for PA HP-UX.
8620       case $host_cpu in
8621       hppa*64*|ia64*)
8622         # +Z the default
8623         ;;
8624       *)
8625         lt_prog_compiler_pic='+Z'
8626         ;;
8627       esac
8628       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8629       lt_prog_compiler_static='${wl}-a ${wl}archive'
8630       ;;
8631
8632     irix5* | irix6* | nonstopux*)
8633       lt_prog_compiler_wl='-Wl,'
8634       # PIC (with -KPIC) is the default.
8635       lt_prog_compiler_static='-non_shared'
8636       ;;
8637
8638     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8639       case $cc_basename in
8640       # old Intel for x86_64 which still supported -KPIC.
8641       ecc*)
8642         lt_prog_compiler_wl='-Wl,'
8643         lt_prog_compiler_pic='-KPIC'
8644         lt_prog_compiler_static='-static'
8645         ;;
8646       # icc used to be incompatible with GCC.
8647       # ICC 10 doesn't accept -KPIC any more.
8648       icc* | ifort*)
8649         lt_prog_compiler_wl='-Wl,'
8650         lt_prog_compiler_pic='-fPIC'
8651         lt_prog_compiler_static='-static'
8652         ;;
8653       # Lahey Fortran 8.1.
8654       lf95*)
8655         lt_prog_compiler_wl='-Wl,'
8656         lt_prog_compiler_pic='--shared'
8657         lt_prog_compiler_static='--static'
8658         ;;
8659       nagfor*)
8660         # NAG Fortran compiler
8661         lt_prog_compiler_wl='-Wl,-Wl,,'
8662         lt_prog_compiler_pic='-PIC'
8663         lt_prog_compiler_static='-Bstatic'
8664         ;;
8665       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8666         # Portland Group compilers (*not* the Pentium gcc compiler,
8667         # which looks to be a dead project)
8668         lt_prog_compiler_wl='-Wl,'
8669         lt_prog_compiler_pic='-fpic'
8670         lt_prog_compiler_static='-Bstatic'
8671         ;;
8672       ccc*)
8673         lt_prog_compiler_wl='-Wl,'
8674         # All Alpha code is PIC.
8675         lt_prog_compiler_static='-non_shared'
8676         ;;
8677       xl* | bgxl* | bgf* | mpixl*)
8678         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8679         lt_prog_compiler_wl='-Wl,'
8680         lt_prog_compiler_pic='-qpic'
8681         lt_prog_compiler_static='-qstaticlink'
8682         ;;
8683       *)
8684         case `$CC -V 2>&1 | sed 5q` in
8685         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8686           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8687           lt_prog_compiler_pic='-KPIC'
8688           lt_prog_compiler_static='-Bstatic'
8689           lt_prog_compiler_wl=''
8690           ;;
8691         *Sun\ F* | *Sun*Fortran*)
8692           lt_prog_compiler_pic='-KPIC'
8693           lt_prog_compiler_static='-Bstatic'
8694           lt_prog_compiler_wl='-Qoption ld '
8695           ;;
8696         *Sun\ C*)
8697           # Sun C 5.9
8698           lt_prog_compiler_pic='-KPIC'
8699           lt_prog_compiler_static='-Bstatic'
8700           lt_prog_compiler_wl='-Wl,'
8701           ;;
8702         *Intel*\ [CF]*Compiler*)
8703           lt_prog_compiler_wl='-Wl,'
8704           lt_prog_compiler_pic='-fPIC'
8705           lt_prog_compiler_static='-static'
8706           ;;
8707         *Portland\ Group*)
8708           lt_prog_compiler_wl='-Wl,'
8709           lt_prog_compiler_pic='-fpic'
8710           lt_prog_compiler_static='-Bstatic'
8711           ;;
8712         esac
8713         ;;
8714       esac
8715       ;;
8716
8717     newsos6)
8718       lt_prog_compiler_pic='-KPIC'
8719       lt_prog_compiler_static='-Bstatic'
8720       ;;
8721
8722     *nto* | *qnx*)
8723       # QNX uses GNU C++, but need to define -shared option too, otherwise
8724       # it will coredump.
8725       lt_prog_compiler_pic='-fPIC -shared'
8726       ;;
8727
8728     osf3* | osf4* | osf5*)
8729       lt_prog_compiler_wl='-Wl,'
8730       # All OSF/1 code is PIC.
8731       lt_prog_compiler_static='-non_shared'
8732       ;;
8733
8734     rdos*)
8735       lt_prog_compiler_static='-non_shared'
8736       ;;
8737
8738     solaris*)
8739       lt_prog_compiler_pic='-KPIC'
8740       lt_prog_compiler_static='-Bstatic'
8741       case $cc_basename in
8742       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8743         lt_prog_compiler_wl='-Qoption ld ';;
8744       *)
8745         lt_prog_compiler_wl='-Wl,';;
8746       esac
8747       ;;
8748
8749     sunos4*)
8750       lt_prog_compiler_wl='-Qoption ld '
8751       lt_prog_compiler_pic='-PIC'
8752       lt_prog_compiler_static='-Bstatic'
8753       ;;
8754
8755     sysv4 | sysv4.2uw2* | sysv4.3*)
8756       lt_prog_compiler_wl='-Wl,'
8757       lt_prog_compiler_pic='-KPIC'
8758       lt_prog_compiler_static='-Bstatic'
8759       ;;
8760
8761     sysv4*MP*)
8762       if test -d /usr/nec ;then
8763         lt_prog_compiler_pic='-Kconform_pic'
8764         lt_prog_compiler_static='-Bstatic'
8765       fi
8766       ;;
8767
8768     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8769       lt_prog_compiler_wl='-Wl,'
8770       lt_prog_compiler_pic='-KPIC'
8771       lt_prog_compiler_static='-Bstatic'
8772       ;;
8773
8774     unicos*)
8775       lt_prog_compiler_wl='-Wl,'
8776       lt_prog_compiler_can_build_shared=no
8777       ;;
8778
8779     uts4*)
8780       lt_prog_compiler_pic='-pic'
8781       lt_prog_compiler_static='-Bstatic'
8782       ;;
8783
8784     *)
8785       lt_prog_compiler_can_build_shared=no
8786       ;;
8787     esac
8788   fi
8789
8790 case $host_os in
8791   # For platforms which do not support PIC, -DPIC is meaningless:
8792   *djgpp*)
8793     lt_prog_compiler_pic=
8794     ;;
8795   *)
8796     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8797     ;;
8798 esac
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8801 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8802 if ${lt_cv_prog_compiler_pic+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8808 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8809 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8810
8811 #
8812 # Check to make sure the PIC flag actually works.
8813 #
8814 if test -n "$lt_prog_compiler_pic"; then
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8816 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8817 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8818   $as_echo_n "(cached) " >&6
8819 else
8820   lt_cv_prog_compiler_pic_works=no
8821    ac_outfile=conftest.$ac_objext
8822    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8823    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8824    # Insert the option either (1) after the last *FLAGS variable, or
8825    # (2) before a word containing "conftest.", or (3) at the end.
8826    # Note that $ac_compile itself does not contain backslashes and begins
8827    # with a dollar sign (not a hyphen), so the echo should work correctly.
8828    # The option is referenced via a variable to avoid confusing sed.
8829    lt_compile=`echo "$ac_compile" | $SED \
8830    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8831    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8832    -e 's:$: $lt_compiler_flag:'`
8833    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8834    (eval "$lt_compile" 2>conftest.err)
8835    ac_status=$?
8836    cat conftest.err >&5
8837    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838    if (exit $ac_status) && test -s "$ac_outfile"; then
8839      # The compiler can only warn and ignore the option if not recognized
8840      # So say no if there are warnings other than the usual output.
8841      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8842      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8844        lt_cv_prog_compiler_pic_works=yes
8845      fi
8846    fi
8847    $RM conftest*
8848
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8851 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8852
8853 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8854     case $lt_prog_compiler_pic in
8855      "" | " "*) ;;
8856      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8857      esac
8858 else
8859     lt_prog_compiler_pic=
8860      lt_prog_compiler_can_build_shared=no
8861 fi
8862
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875 #
8876 # Check to make sure the static flag actually works.
8877 #
8878 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8880 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8881 if ${lt_cv_prog_compiler_static_works+:} false; then :
8882   $as_echo_n "(cached) " >&6
8883 else
8884   lt_cv_prog_compiler_static_works=no
8885    save_LDFLAGS="$LDFLAGS"
8886    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8887    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8888    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8889      # The linker can only warn and ignore the option if not recognized
8890      # So say no if there are warnings
8891      if test -s conftest.err; then
8892        # Append any errors to the config.log.
8893        cat conftest.err 1>&5
8894        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8895        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8896        if diff conftest.exp conftest.er2 >/dev/null; then
8897          lt_cv_prog_compiler_static_works=yes
8898        fi
8899      else
8900        lt_cv_prog_compiler_static_works=yes
8901      fi
8902    fi
8903    $RM -r conftest*
8904    LDFLAGS="$save_LDFLAGS"
8905
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8908 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8909
8910 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8911     :
8912 else
8913     lt_prog_compiler_static=
8914 fi
8915
8916
8917
8918
8919
8920
8921
8922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8923 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8924 if ${lt_cv_prog_compiler_c_o+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   lt_cv_prog_compiler_c_o=no
8928    $RM -r conftest 2>/dev/null
8929    mkdir conftest
8930    cd conftest
8931    mkdir out
8932    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933
8934    lt_compiler_flag="-o out/conftest2.$ac_objext"
8935    # Insert the option either (1) after the last *FLAGS variable, or
8936    # (2) before a word containing "conftest.", or (3) at the end.
8937    # Note that $ac_compile itself does not contain backslashes and begins
8938    # with a dollar sign (not a hyphen), so the echo should work correctly.
8939    lt_compile=`echo "$ac_compile" | $SED \
8940    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942    -e 's:$: $lt_compiler_flag:'`
8943    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8944    (eval "$lt_compile" 2>out/conftest.err)
8945    ac_status=$?
8946    cat out/conftest.err >&5
8947    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8949    then
8950      # The compiler can only warn and ignore the option if not recognized
8951      # So say no if there are warnings
8952      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8953      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8954      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8955        lt_cv_prog_compiler_c_o=yes
8956      fi
8957    fi
8958    chmod u+w . 2>&5
8959    $RM conftest*
8960    # SGI C++ compiler will create directory out/ii_files/ for
8961    # template instantiation
8962    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8963    $RM out/* && rmdir out
8964    cd ..
8965    $RM -r conftest
8966    $RM conftest*
8967
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8970 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8971
8972
8973
8974
8975
8976
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979 if ${lt_cv_prog_compiler_c_o+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   lt_cv_prog_compiler_c_o=no
8983    $RM -r conftest 2>/dev/null
8984    mkdir conftest
8985    cd conftest
8986    mkdir out
8987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989    lt_compiler_flag="-o out/conftest2.$ac_objext"
8990    # Insert the option either (1) after the last *FLAGS variable, or
8991    # (2) before a word containing "conftest.", or (3) at the end.
8992    # Note that $ac_compile itself does not contain backslashes and begins
8993    # with a dollar sign (not a hyphen), so the echo should work correctly.
8994    lt_compile=`echo "$ac_compile" | $SED \
8995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997    -e 's:$: $lt_compiler_flag:'`
8998    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999    (eval "$lt_compile" 2>out/conftest.err)
9000    ac_status=$?
9001    cat out/conftest.err >&5
9002    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004    then
9005      # The compiler can only warn and ignore the option if not recognized
9006      # So say no if there are warnings
9007      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010        lt_cv_prog_compiler_c_o=yes
9011      fi
9012    fi
9013    chmod u+w . 2>&5
9014    $RM conftest*
9015    # SGI C++ compiler will create directory out/ii_files/ for
9016    # template instantiation
9017    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018    $RM out/* && rmdir out
9019    cd ..
9020    $RM -r conftest
9021    $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030 hard_links="nottested"
9031 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9032   # do not overwrite the value of need_locks provided by the user
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9034 $as_echo_n "checking if we can lock with hard links... " >&6; }
9035   hard_links=yes
9036   $RM conftest*
9037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9038   touch conftest.a
9039   ln conftest.a conftest.b 2>&5 || hard_links=no
9040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9042 $as_echo "$hard_links" >&6; }
9043   if test "$hard_links" = no; then
9044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9045 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9046     need_locks=warn
9047   fi
9048 else
9049   need_locks=no
9050 fi
9051
9052
9053
9054
9055
9056
9057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9058 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9059
9060   runpath_var=
9061   allow_undefined_flag=
9062   always_export_symbols=no
9063   archive_cmds=
9064   archive_expsym_cmds=
9065   compiler_needs_object=no
9066   enable_shared_with_static_runtimes=no
9067   export_dynamic_flag_spec=
9068   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9069   hardcode_automatic=no
9070   hardcode_direct=no
9071   hardcode_direct_absolute=no
9072   hardcode_libdir_flag_spec=
9073   hardcode_libdir_separator=
9074   hardcode_minus_L=no
9075   hardcode_shlibpath_var=unsupported
9076   inherit_rpath=no
9077   link_all_deplibs=unknown
9078   module_cmds=
9079   module_expsym_cmds=
9080   old_archive_from_new_cmds=
9081   old_archive_from_expsyms_cmds=
9082   thread_safe_flag_spec=
9083   whole_archive_flag_spec=
9084   # include_expsyms should be a list of space-separated symbols to be *always*
9085   # included in the symbol list
9086   include_expsyms=
9087   # exclude_expsyms can be an extended regexp of symbols to exclude
9088   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9089   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9090   # as well as any symbol that contains `d'.
9091   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9092   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9093   # platforms (ab)use it in PIC code, but their linkers get confused if
9094   # the symbol is explicitly referenced.  Since portable code cannot
9095   # rely on this symbol name, it's probably fine to never include it in
9096   # preloaded symbol tables.
9097   # Exclude shared library initialization/finalization symbols.
9098   extract_expsyms_cmds=
9099
9100   case $host_os in
9101   cygwin* | mingw* | pw32* | cegcc*)
9102     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9103     # When not using gcc, we currently assume that we are using
9104     # Microsoft Visual C++.
9105     if test "$GCC" != yes; then
9106       with_gnu_ld=no
9107     fi
9108     ;;
9109   interix*)
9110     # we just hope/assume this is gcc and not c89 (= MSVC++)
9111     with_gnu_ld=yes
9112     ;;
9113   openbsd*)
9114     with_gnu_ld=no
9115     ;;
9116   linux* | k*bsd*-gnu | gnu*)
9117     link_all_deplibs=no
9118     ;;
9119   esac
9120
9121   ld_shlibs=yes
9122
9123   # On some targets, GNU ld is compatible enough with the native linker
9124   # that we're better off using the native interface for both.
9125   lt_use_gnu_ld_interface=no
9126   if test "$with_gnu_ld" = yes; then
9127     case $host_os in
9128       aix*)
9129         # The AIX port of GNU ld has always aspired to compatibility
9130         # with the native linker.  However, as the warning in the GNU ld
9131         # block says, versions before 2.19.5* couldn't really create working
9132         # shared libraries, regardless of the interface used.
9133         case `$LD -v 2>&1` in
9134           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9135           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9136           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9137           *)
9138             lt_use_gnu_ld_interface=yes
9139             ;;
9140         esac
9141         ;;
9142       *)
9143         lt_use_gnu_ld_interface=yes
9144         ;;
9145     esac
9146   fi
9147
9148   if test "$lt_use_gnu_ld_interface" = yes; then
9149     # If archive_cmds runs LD, not CC, wlarc should be empty
9150     wlarc='${wl}'
9151
9152     # Set some defaults for GNU ld with shared library support. These
9153     # are reset later if shared libraries are not supported. Putting them
9154     # here allows them to be overridden if necessary.
9155     runpath_var=LD_RUN_PATH
9156     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157     export_dynamic_flag_spec='${wl}--export-dynamic'
9158     # ancient GNU ld didn't support --whole-archive et. al.
9159     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9160       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9161     else
9162       whole_archive_flag_spec=
9163     fi
9164     supports_anon_versioning=no
9165     case `$LD -v 2>&1` in
9166       *GNU\ gold*) supports_anon_versioning=yes ;;
9167       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9168       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9169       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9170       *\ 2.11.*) ;; # other 2.11 versions
9171       *) supports_anon_versioning=yes ;;
9172     esac
9173
9174     # See if GNU ld supports shared libraries.
9175     case $host_os in
9176     aix[3-9]*)
9177       # On AIX/PPC, the GNU linker is very broken
9178       if test "$host_cpu" != ia64; then
9179         ld_shlibs=no
9180         cat <<_LT_EOF 1>&2
9181
9182 *** Warning: the GNU linker, at least up to release 2.19, is reported
9183 *** to be unable to reliably create shared libraries on AIX.
9184 *** Therefore, libtool is disabling shared libraries support.  If you
9185 *** really care for shared libraries, you may want to install binutils
9186 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9187 *** You will then need to restart the configuration process.
9188
9189 _LT_EOF
9190       fi
9191       ;;
9192
9193     amigaos*)
9194       case $host_cpu in
9195       powerpc)
9196             # see comment about AmigaOS4 .so support
9197             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198             archive_expsym_cmds=''
9199         ;;
9200       m68k)
9201             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)'
9202             hardcode_libdir_flag_spec='-L$libdir'
9203             hardcode_minus_L=yes
9204         ;;
9205       esac
9206       ;;
9207
9208     beos*)
9209       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9210         allow_undefined_flag=unsupported
9211         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9212         # support --undefined.  This deserves some investigation.  FIXME
9213         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214       else
9215         ld_shlibs=no
9216       fi
9217       ;;
9218
9219     cygwin* | mingw* | pw32* | cegcc*)
9220       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9221       # as there is no search path for DLLs.
9222       hardcode_libdir_flag_spec='-L$libdir'
9223       export_dynamic_flag_spec='${wl}--export-all-symbols'
9224       allow_undefined_flag=unsupported
9225       always_export_symbols=no
9226       enable_shared_with_static_runtimes=yes
9227       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'
9228       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9229
9230       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9232         # If the export-symbols file already is a .def file (1st line
9233         # is EXPORTS), use it as is; otherwise, prepend...
9234         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9235           cp $export_symbols $output_objdir/$soname.def;
9236         else
9237           echo EXPORTS > $output_objdir/$soname.def;
9238           cat $export_symbols >> $output_objdir/$soname.def;
9239         fi~
9240         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9241       else
9242         ld_shlibs=no
9243       fi
9244       ;;
9245
9246     haiku*)
9247       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248       link_all_deplibs=yes
9249       ;;
9250
9251     interix[3-9]*)
9252       hardcode_direct=no
9253       hardcode_shlibpath_var=no
9254       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9255       export_dynamic_flag_spec='${wl}-E'
9256       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9257       # Instead, shared libraries are loaded at an image base (0x10000000 by
9258       # default) and relocated if they conflict, which is a slow very memory
9259       # consuming and fragmenting process.  To avoid this, we pick a random,
9260       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9261       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9262       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9263       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'
9264       ;;
9265
9266     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9267       tmp_diet=no
9268       if test "$host_os" = linux-dietlibc; then
9269         case $cc_basename in
9270           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9271         esac
9272       fi
9273       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9274          && test "$tmp_diet" = no
9275       then
9276         tmp_addflag=' $pic_flag'
9277         tmp_sharedflag='-shared'
9278         case $cc_basename,$host_cpu in
9279         pgcc*)                          # Portland Group C compiler
9280           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'
9281           tmp_addflag=' $pic_flag'
9282           ;;
9283         pgf77* | pgf90* | pgf95* | pgfortran*)
9284                                         # Portland Group f77 and f90 compilers
9285           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'
9286           tmp_addflag=' $pic_flag -Mnomain' ;;
9287         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9288           tmp_addflag=' -i_dynamic' ;;
9289         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9290           tmp_addflag=' -i_dynamic -nofor_main' ;;
9291         ifc* | ifort*)                  # Intel Fortran compiler
9292           tmp_addflag=' -nofor_main' ;;
9293         lf95*)                          # Lahey Fortran 8.1
9294           whole_archive_flag_spec=
9295           tmp_sharedflag='--shared' ;;
9296         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9297           tmp_sharedflag='-qmkshrobj'
9298           tmp_addflag= ;;
9299         nvcc*)  # Cuda Compiler Driver 2.2
9300           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'
9301           compiler_needs_object=yes
9302           ;;
9303         esac
9304         case `$CC -V 2>&1 | sed 5q` in
9305         *Sun\ C*)                       # Sun C 5.9
9306           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'
9307           compiler_needs_object=yes
9308           tmp_sharedflag='-G' ;;
9309         *Sun\ F*)                       # Sun Fortran 8.3
9310           tmp_sharedflag='-G' ;;
9311         esac
9312         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313
9314         if test "x$supports_anon_versioning" = xyes; then
9315           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9316             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9317             echo "local: *; };" >> $output_objdir/$libname.ver~
9318             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9319         fi
9320
9321         case $cc_basename in
9322         xlf* | bgf* | bgxlf* | mpixlf*)
9323           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9324           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9325           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9326           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9327           if test "x$supports_anon_versioning" = xyes; then
9328             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9329               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9330               echo "local: *; };" >> $output_objdir/$libname.ver~
9331               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9332           fi
9333           ;;
9334         esac
9335       else
9336         ld_shlibs=no
9337       fi
9338       ;;
9339
9340     netbsd* | netbsdelf*-gnu)
9341       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9342         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9343         wlarc=
9344       else
9345         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9347       fi
9348       ;;
9349
9350     solaris*)
9351       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9352         ld_shlibs=no
9353         cat <<_LT_EOF 1>&2
9354
9355 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9356 *** create shared libraries on Solaris systems.  Therefore, libtool
9357 *** is disabling shared libraries support.  We urge you to upgrade GNU
9358 *** binutils to release 2.9.1 or newer.  Another option is to modify
9359 *** your PATH or compiler configuration so that the native linker is
9360 *** used, and then restart.
9361
9362 _LT_EOF
9363       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9364         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9366       else
9367         ld_shlibs=no
9368       fi
9369       ;;
9370
9371     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9372       case `$LD -v 2>&1` in
9373         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9374         ld_shlibs=no
9375         cat <<_LT_EOF 1>&2
9376
9377 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9378 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9379 *** is disabling shared libraries support.  We urge you to upgrade GNU
9380 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9381 *** your PATH or compiler configuration so that the native linker is
9382 *** used, and then restart.
9383
9384 _LT_EOF
9385         ;;
9386         *)
9387           # For security reasons, it is highly recommended that you always
9388           # use absolute paths for naming shared libraries, and exclude the
9389           # DT_RUNPATH tag from executables and libraries.  But doing so
9390           # requires that you compile everything twice, which is a pain.
9391           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9393             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9394             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9395           else
9396             ld_shlibs=no
9397           fi
9398         ;;
9399       esac
9400       ;;
9401
9402     sunos4*)
9403       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9404       wlarc=
9405       hardcode_direct=yes
9406       hardcode_shlibpath_var=no
9407       ;;
9408
9409     *)
9410       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9411         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413       else
9414         ld_shlibs=no
9415       fi
9416       ;;
9417     esac
9418
9419     if test "$ld_shlibs" = no; then
9420       runpath_var=
9421       hardcode_libdir_flag_spec=
9422       export_dynamic_flag_spec=
9423       whole_archive_flag_spec=
9424     fi
9425   else
9426     # PORTME fill in a description of your system's linker (not GNU ld)
9427     case $host_os in
9428     aix3*)
9429       allow_undefined_flag=unsupported
9430       always_export_symbols=yes
9431       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'
9432       # Note: this linker hardcodes the directories in LIBPATH if there
9433       # are no directories specified by -L.
9434       hardcode_minus_L=yes
9435       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9436         # Neither direct hardcoding nor static linking is supported with a
9437         # broken collect2.
9438         hardcode_direct=unsupported
9439       fi
9440       ;;
9441
9442     aix[4-9]*)
9443       if test "$host_cpu" = ia64; then
9444         # On IA64, the linker does run time linking by default, so we don't
9445         # have to do anything special.
9446         aix_use_runtimelinking=no
9447         exp_sym_flag='-Bexport'
9448         no_entry_flag=""
9449       else
9450         # If we're using GNU nm, then we don't want the "-C" option.
9451         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9452         # Also, AIX nm treats weak defined symbols like other global
9453         # defined symbols, whereas GNU nm marks them as "W".
9454         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9455           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'
9456         else
9457           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'
9458         fi
9459         aix_use_runtimelinking=no
9460
9461         # Test if we are trying to use run time linking or normal
9462         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9463         # need to do runtime linking.
9464         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9465           for ld_flag in $LDFLAGS; do
9466           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9467             aix_use_runtimelinking=yes
9468             break
9469           fi
9470           done
9471           ;;
9472         esac
9473
9474         exp_sym_flag='-bexport'
9475         no_entry_flag='-bnoentry'
9476       fi
9477
9478       # When large executables or shared objects are built, AIX ld can
9479       # have problems creating the table of contents.  If linking a library
9480       # or program results in "error TOC overflow" add -mminimal-toc to
9481       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9482       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9483
9484       archive_cmds=''
9485       hardcode_direct=yes
9486       hardcode_direct_absolute=yes
9487       hardcode_libdir_separator=':'
9488       link_all_deplibs=yes
9489       file_list_spec='${wl}-f,'
9490
9491       if test "$GCC" = yes; then
9492         case $host_os in aix4.[012]|aix4.[012].*)
9493         # We only want to do this on AIX 4.2 and lower, the check
9494         # below for broken collect2 doesn't work under 4.3+
9495           collect2name=`${CC} -print-prog-name=collect2`
9496           if test -f "$collect2name" &&
9497            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9498           then
9499           # We have reworked collect2
9500           :
9501           else
9502           # We have old collect2
9503           hardcode_direct=unsupported
9504           # It fails to find uninstalled libraries when the uninstalled
9505           # path is not listed in the libpath.  Setting hardcode_minus_L
9506           # to unsupported forces relinking
9507           hardcode_minus_L=yes
9508           hardcode_libdir_flag_spec='-L$libdir'
9509           hardcode_libdir_separator=
9510           fi
9511           ;;
9512         esac
9513         shared_flag='-shared'
9514         if test "$aix_use_runtimelinking" = yes; then
9515           shared_flag="$shared_flag "'${wl}-G'
9516         fi
9517         link_all_deplibs=no
9518       else
9519         # not using gcc
9520         if test "$host_cpu" = ia64; then
9521         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9522         # chokes on -Wl,-G. The following line is correct:
9523           shared_flag='-G'
9524         else
9525           if test "$aix_use_runtimelinking" = yes; then
9526             shared_flag='${wl}-G'
9527           else
9528             shared_flag='${wl}-bM:SRE'
9529           fi
9530         fi
9531       fi
9532
9533       export_dynamic_flag_spec='${wl}-bexpall'
9534       # It seems that -bexpall does not export symbols beginning with
9535       # underscore (_), so it is better to generate a list of symbols to export.
9536       always_export_symbols=yes
9537       if test "$aix_use_runtimelinking" = yes; then
9538         # Warning - without using the other runtime loading flags (-brtl),
9539         # -berok will link without error, but may produce a broken library.
9540         allow_undefined_flag='-berok'
9541         # Determine the default libpath from the value encoded in an
9542         # empty executable.
9543         if test "${lt_cv_aix_libpath+set}" = set; then
9544   aix_libpath=$lt_cv_aix_libpath
9545 else
9546   if ${lt_cv_aix_libpath_+:} false; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h.  */
9551
9552 int
9553 main ()
9554 {
9555
9556   ;
9557   return 0;
9558 }
9559 _ACEOF
9560 if ac_fn_c_try_link "$LINENO"; then :
9561
9562   lt_aix_libpath_sed='
9563       /Import File Strings/,/^$/ {
9564           /^0/ {
9565               s/^0  *\([^ ]*\) *$/\1/
9566               p
9567           }
9568       }'
9569   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9570   # Check for a 64-bit object if we didn't find anything.
9571   if test -z "$lt_cv_aix_libpath_"; then
9572     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573   fi
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576     conftest$ac_exeext conftest.$ac_ext
9577   if test -z "$lt_cv_aix_libpath_"; then
9578     lt_cv_aix_libpath_="/usr/lib:/lib"
9579   fi
9580
9581 fi
9582
9583   aix_libpath=$lt_cv_aix_libpath_
9584 fi
9585
9586         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9587         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"
9588       else
9589         if test "$host_cpu" = ia64; then
9590           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9591           allow_undefined_flag="-z nodefs"
9592           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"
9593         else
9594          # Determine the default libpath from the value encoded in an
9595          # empty executable.
9596          if test "${lt_cv_aix_libpath+set}" = set; then
9597   aix_libpath=$lt_cv_aix_libpath
9598 else
9599   if ${lt_cv_aix_libpath_+:} false; then :
9600   $as_echo_n "(cached) " >&6
9601 else
9602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h.  */
9604
9605 int
9606 main ()
9607 {
9608
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614
9615   lt_aix_libpath_sed='
9616       /Import File Strings/,/^$/ {
9617           /^0/ {
9618               s/^0  *\([^ ]*\) *$/\1/
9619               p
9620           }
9621       }'
9622   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623   # Check for a 64-bit object if we didn't find anything.
9624   if test -z "$lt_cv_aix_libpath_"; then
9625     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626   fi
9627 fi
9628 rm -f core conftest.err conftest.$ac_objext \
9629     conftest$ac_exeext conftest.$ac_ext
9630   if test -z "$lt_cv_aix_libpath_"; then
9631     lt_cv_aix_libpath_="/usr/lib:/lib"
9632   fi
9633
9634 fi
9635
9636   aix_libpath=$lt_cv_aix_libpath_
9637 fi
9638
9639          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9640           # Warning - without using the other run time loading flags,
9641           # -berok will link without error, but may produce a broken library.
9642           no_undefined_flag=' ${wl}-bernotok'
9643           allow_undefined_flag=' ${wl}-berok'
9644           if test "$with_gnu_ld" = yes; then
9645             # We only use this code for GNU lds that support --whole-archive.
9646             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9647           else
9648             # Exported symbols can be pulled into shared objects from archives
9649             whole_archive_flag_spec='$convenience'
9650           fi
9651           archive_cmds_need_lc=yes
9652           # This is similar to how AIX traditionally builds its shared libraries.
9653           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'
9654         fi
9655       fi
9656       ;;
9657
9658     amigaos*)
9659       case $host_cpu in
9660       powerpc)
9661             # see comment about AmigaOS4 .so support
9662             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663             archive_expsym_cmds=''
9664         ;;
9665       m68k)
9666             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)'
9667             hardcode_libdir_flag_spec='-L$libdir'
9668             hardcode_minus_L=yes
9669         ;;
9670       esac
9671       ;;
9672
9673     bsdi[45]*)
9674       export_dynamic_flag_spec=-rdynamic
9675       ;;
9676
9677     cygwin* | mingw* | pw32* | cegcc*)
9678       # When not using gcc, we currently assume that we are using
9679       # Microsoft Visual C++.
9680       # hardcode_libdir_flag_spec is actually meaningless, as there is
9681       # no search path for DLLs.
9682       case $cc_basename in
9683       cl*)
9684         # Native MSVC
9685         hardcode_libdir_flag_spec=' '
9686         allow_undefined_flag=unsupported
9687         always_export_symbols=yes
9688         file_list_spec='@'
9689         # Tell ltmain to make .lib files, not .a files.
9690         libext=lib
9691         # Tell ltmain to make .dll files, not .so files.
9692         shrext_cmds=".dll"
9693         # FIXME: Setting linknames here is a bad hack.
9694         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9695         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9696             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9697           else
9698             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9699           fi~
9700           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9701           linknames='
9702         # The linker will not automatically build a static lib if we build a DLL.
9703         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9704         enable_shared_with_static_runtimes=yes
9705         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9706         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9707         # Don't use ranlib
9708         old_postinstall_cmds='chmod 644 $oldlib'
9709         postlink_cmds='lt_outputfile="@OUTPUT@"~
9710           lt_tool_outputfile="@TOOL_OUTPUT@"~
9711           case $lt_outputfile in
9712             *.exe|*.EXE) ;;
9713             *)
9714               lt_outputfile="$lt_outputfile.exe"
9715               lt_tool_outputfile="$lt_tool_outputfile.exe"
9716               ;;
9717           esac~
9718           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9719             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9720             $RM "$lt_outputfile.manifest";
9721           fi'
9722         ;;
9723       *)
9724         # Assume MSVC wrapper
9725         hardcode_libdir_flag_spec=' '
9726         allow_undefined_flag=unsupported
9727         # Tell ltmain to make .lib files, not .a files.
9728         libext=lib
9729         # Tell ltmain to make .dll files, not .so files.
9730         shrext_cmds=".dll"
9731         # FIXME: Setting linknames here is a bad hack.
9732         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9733         # The linker will automatically build a .lib file if we build a DLL.
9734         old_archive_from_new_cmds='true'
9735         # FIXME: Should let the user specify the lib program.
9736         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9737         enable_shared_with_static_runtimes=yes
9738         ;;
9739       esac
9740       ;;
9741
9742     darwin* | rhapsody*)
9743
9744
9745   archive_cmds_need_lc=no
9746   hardcode_direct=no
9747   hardcode_automatic=yes
9748   hardcode_shlibpath_var=unsupported
9749   if test "$lt_cv_ld_force_load" = "yes"; then
9750     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\"`'
9751
9752   else
9753     whole_archive_flag_spec=''
9754   fi
9755   link_all_deplibs=yes
9756   allow_undefined_flag="$_lt_dar_allow_undefined"
9757   case $cc_basename in
9758      ifort*) _lt_dar_can_shared=yes ;;
9759      *) _lt_dar_can_shared=$GCC ;;
9760   esac
9761   if test "$_lt_dar_can_shared" = "yes"; then
9762     output_verbose_link_cmd=func_echo_all
9763     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9764     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9765     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}"
9766     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}"
9767
9768   else
9769   ld_shlibs=no
9770   fi
9771
9772       ;;
9773
9774     dgux*)
9775       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776       hardcode_libdir_flag_spec='-L$libdir'
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9781     # support.  Future versions do this automatically, but an explicit c++rt0.o
9782     # does not break anything, and helps significantly (at the cost of a little
9783     # extra space).
9784     freebsd2.2*)
9785       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9786       hardcode_libdir_flag_spec='-R$libdir'
9787       hardcode_direct=yes
9788       hardcode_shlibpath_var=no
9789       ;;
9790
9791     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9792     freebsd2.*)
9793       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9794       hardcode_direct=yes
9795       hardcode_minus_L=yes
9796       hardcode_shlibpath_var=no
9797       ;;
9798
9799     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9800     freebsd* | dragonfly*)
9801       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9802       hardcode_libdir_flag_spec='-R$libdir'
9803       hardcode_direct=yes
9804       hardcode_shlibpath_var=no
9805       ;;
9806
9807     hpux9*)
9808       if test "$GCC" = yes; then
9809         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'
9810       else
9811         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'
9812       fi
9813       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814       hardcode_libdir_separator=:
9815       hardcode_direct=yes
9816
9817       # hardcode_minus_L: Not really in the search PATH,
9818       # but as the default location of the library.
9819       hardcode_minus_L=yes
9820       export_dynamic_flag_spec='${wl}-E'
9821       ;;
9822
9823     hpux10*)
9824       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9825         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826       else
9827         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828       fi
9829       if test "$with_gnu_ld" = no; then
9830         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831         hardcode_libdir_separator=:
9832         hardcode_direct=yes
9833         hardcode_direct_absolute=yes
9834         export_dynamic_flag_spec='${wl}-E'
9835         # hardcode_minus_L: Not really in the search PATH,
9836         # but as the default location of the library.
9837         hardcode_minus_L=yes
9838       fi
9839       ;;
9840
9841     hpux11*)
9842       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9843         case $host_cpu in
9844         hppa*64*)
9845           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9846           ;;
9847         ia64*)
9848           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         *)
9851           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         esac
9854       else
9855         case $host_cpu in
9856         hppa*64*)
9857           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9858           ;;
9859         ia64*)
9860           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9861           ;;
9862         *)
9863
9864           # Older versions of the 11.00 compiler do not understand -b yet
9865           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9866           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9867 $as_echo_n "checking if $CC understands -b... " >&6; }
9868 if ${lt_cv_prog_compiler__b+:} false; then :
9869   $as_echo_n "(cached) " >&6
9870 else
9871   lt_cv_prog_compiler__b=no
9872    save_LDFLAGS="$LDFLAGS"
9873    LDFLAGS="$LDFLAGS -b"
9874    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9875    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9876      # The linker can only warn and ignore the option if not recognized
9877      # So say no if there are warnings
9878      if test -s conftest.err; then
9879        # Append any errors to the config.log.
9880        cat conftest.err 1>&5
9881        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9882        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9883        if diff conftest.exp conftest.er2 >/dev/null; then
9884          lt_cv_prog_compiler__b=yes
9885        fi
9886      else
9887        lt_cv_prog_compiler__b=yes
9888      fi
9889    fi
9890    $RM -r conftest*
9891    LDFLAGS="$save_LDFLAGS"
9892
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9895 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9896
9897 if test x"$lt_cv_prog_compiler__b" = xyes; then
9898     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9899 else
9900     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9901 fi
9902
9903           ;;
9904         esac
9905       fi
9906       if test "$with_gnu_ld" = no; then
9907         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908         hardcode_libdir_separator=:
9909
9910         case $host_cpu in
9911         hppa*64*|ia64*)
9912           hardcode_direct=no
9913           hardcode_shlibpath_var=no
9914           ;;
9915         *)
9916           hardcode_direct=yes
9917           hardcode_direct_absolute=yes
9918           export_dynamic_flag_spec='${wl}-E'
9919
9920           # hardcode_minus_L: Not really in the search PATH,
9921           # but as the default location of the library.
9922           hardcode_minus_L=yes
9923           ;;
9924         esac
9925       fi
9926       ;;
9927
9928     irix5* | irix6* | nonstopux*)
9929       if test "$GCC" = yes; then
9930         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'
9931         # Try to use the -exported_symbol ld option, if it does not
9932         # work, assume that -exports_file does not work either and
9933         # implicitly export all symbols.
9934         # This should be the same for all languages, so no per-tag cache variable.
9935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9936 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9937 if ${lt_cv_irix_exported_symbol+:} false; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   save_LDFLAGS="$LDFLAGS"
9941            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9942            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h.  */
9944 int foo (void) { return 0; }
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"; then :
9947   lt_cv_irix_exported_symbol=yes
9948 else
9949   lt_cv_irix_exported_symbol=no
9950 fi
9951 rm -f core conftest.err conftest.$ac_objext \
9952     conftest$ac_exeext conftest.$ac_ext
9953            LDFLAGS="$save_LDFLAGS"
9954 fi
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9956 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9957         if test "$lt_cv_irix_exported_symbol" = yes; then
9958           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'
9959         fi
9960       else
9961         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'
9962         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'
9963       fi
9964       archive_cmds_need_lc='no'
9965       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966       hardcode_libdir_separator=:
9967       inherit_rpath=yes
9968       link_all_deplibs=yes
9969       ;;
9970
9971     netbsd* | netbsdelf*-gnu)
9972       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9973         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9974       else
9975         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9976       fi
9977       hardcode_libdir_flag_spec='-R$libdir'
9978       hardcode_direct=yes
9979       hardcode_shlibpath_var=no
9980       ;;
9981
9982     newsos6)
9983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984       hardcode_direct=yes
9985       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9986       hardcode_libdir_separator=:
9987       hardcode_shlibpath_var=no
9988       ;;
9989
9990     *nto* | *qnx*)
9991       ;;
9992
9993     openbsd*)
9994       if test -f /usr/libexec/ld.so; then
9995         hardcode_direct=yes
9996         hardcode_shlibpath_var=no
9997         hardcode_direct_absolute=yes
9998         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9999           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10000           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10001           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10002           export_dynamic_flag_spec='${wl}-E'
10003         else
10004           case $host_os in
10005            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10006              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10007              hardcode_libdir_flag_spec='-R$libdir'
10008              ;;
10009            *)
10010              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10012              ;;
10013           esac
10014         fi
10015       else
10016         ld_shlibs=no
10017       fi
10018       ;;
10019
10020     os2*)
10021       hardcode_libdir_flag_spec='-L$libdir'
10022       hardcode_minus_L=yes
10023       allow_undefined_flag=unsupported
10024       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'
10025       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10026       ;;
10027
10028     osf3*)
10029       if test "$GCC" = yes; then
10030         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10031         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'
10032       else
10033         allow_undefined_flag=' -expect_unresolved \*'
10034         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'
10035       fi
10036       archive_cmds_need_lc='no'
10037       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038       hardcode_libdir_separator=:
10039       ;;
10040
10041     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10042       if test "$GCC" = yes; then
10043         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10044         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'
10045         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10046       else
10047         allow_undefined_flag=' -expect_unresolved \*'
10048         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'
10049         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~
10050         $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'
10051
10052         # Both c and cxx compiler support -rpath directly
10053         hardcode_libdir_flag_spec='-rpath $libdir'
10054       fi
10055       archive_cmds_need_lc='no'
10056       hardcode_libdir_separator=:
10057       ;;
10058
10059     solaris*)
10060       no_undefined_flag=' -z defs'
10061       if test "$GCC" = yes; then
10062         wlarc='${wl}'
10063         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10064         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10065           $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'
10066       else
10067         case `$CC -V 2>&1` in
10068         *"Compilers 5.0"*)
10069           wlarc=''
10070           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10072           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10073           ;;
10074         *)
10075           wlarc='${wl}'
10076           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10077           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10078           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10079           ;;
10080         esac
10081       fi
10082       hardcode_libdir_flag_spec='-R$libdir'
10083       hardcode_shlibpath_var=no
10084       case $host_os in
10085       solaris2.[0-5] | solaris2.[0-5].*) ;;
10086       *)
10087         # The compiler driver will combine and reorder linker options,
10088         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10089         # but is careful enough not to reorder.
10090         # Supported since Solaris 2.6 (maybe 2.5.1?)
10091         if test "$GCC" = yes; then
10092           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10093         else
10094           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10095         fi
10096         ;;
10097       esac
10098       link_all_deplibs=yes
10099       ;;
10100
10101     sunos4*)
10102       if test "x$host_vendor" = xsequent; then
10103         # Use $CC to link under sequent, because it throws in some extra .o
10104         # files that make .init and .fini sections work.
10105         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10106       else
10107         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10108       fi
10109       hardcode_libdir_flag_spec='-L$libdir'
10110       hardcode_direct=yes
10111       hardcode_minus_L=yes
10112       hardcode_shlibpath_var=no
10113       ;;
10114
10115     sysv4)
10116       case $host_vendor in
10117         sni)
10118           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119           hardcode_direct=yes # is this really true???
10120         ;;
10121         siemens)
10122           ## LD is ld it makes a PLAMLIB
10123           ## CC just makes a GrossModule.
10124           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10125           reload_cmds='$CC -r -o $output$reload_objs'
10126           hardcode_direct=no
10127         ;;
10128         motorola)
10129           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10131         ;;
10132       esac
10133       runpath_var='LD_RUN_PATH'
10134       hardcode_shlibpath_var=no
10135       ;;
10136
10137     sysv4.3*)
10138       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139       hardcode_shlibpath_var=no
10140       export_dynamic_flag_spec='-Bexport'
10141       ;;
10142
10143     sysv4*MP*)
10144       if test -d /usr/nec; then
10145         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146         hardcode_shlibpath_var=no
10147         runpath_var=LD_RUN_PATH
10148         hardcode_runpath_var=yes
10149         ld_shlibs=yes
10150       fi
10151       ;;
10152
10153     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10154       no_undefined_flag='${wl}-z,text'
10155       archive_cmds_need_lc=no
10156       hardcode_shlibpath_var=no
10157       runpath_var='LD_RUN_PATH'
10158
10159       if test "$GCC" = yes; then
10160         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162       else
10163         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165       fi
10166       ;;
10167
10168     sysv5* | sco3.2v5* | sco5v6*)
10169       # Note: We can NOT use -z defs as we might desire, because we do not
10170       # link with -lc, and that would cause any symbols used from libc to
10171       # always be unresolved, which means just about no library would
10172       # ever link correctly.  If we're not using GNU ld we use -z text
10173       # though, which does catch some bad symbols but isn't as heavy-handed
10174       # as -z defs.
10175       no_undefined_flag='${wl}-z,text'
10176       allow_undefined_flag='${wl}-z,nodefs'
10177       archive_cmds_need_lc=no
10178       hardcode_shlibpath_var=no
10179       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10180       hardcode_libdir_separator=':'
10181       link_all_deplibs=yes
10182       export_dynamic_flag_spec='${wl}-Bexport'
10183       runpath_var='LD_RUN_PATH'
10184
10185       if test "$GCC" = yes; then
10186         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188       else
10189         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191       fi
10192       ;;
10193
10194     uts4*)
10195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196       hardcode_libdir_flag_spec='-L$libdir'
10197       hardcode_shlibpath_var=no
10198       ;;
10199
10200     *)
10201       ld_shlibs=no
10202       ;;
10203     esac
10204
10205     if test x$host_vendor = xsni; then
10206       case $host in
10207       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10208         export_dynamic_flag_spec='${wl}-Blargedynsym'
10209         ;;
10210       esac
10211     fi
10212   fi
10213
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10215 $as_echo "$ld_shlibs" >&6; }
10216 test "$ld_shlibs" = no && can_build_shared=no
10217
10218 with_gnu_ld=$with_gnu_ld
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234 #
10235 # Do we need to explicitly link libc?
10236 #
10237 case "x$archive_cmds_need_lc" in
10238 x|xyes)
10239   # Assume -lc should be added
10240   archive_cmds_need_lc=yes
10241
10242   if test "$enable_shared" = yes && test "$GCC" = yes; then
10243     case $archive_cmds in
10244     *'~'*)
10245       # FIXME: we may have to deal with multi-command sequences.
10246       ;;
10247     '$CC '*)
10248       # Test whether the compiler implicitly links with -lc since on some
10249       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10250       # to ld, don't add -lc before -lgcc.
10251       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10252 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10253 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   $RM conftest*
10257         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10258
10259         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263   test $ac_status = 0; } 2>conftest.err; then
10264           soname=conftest
10265           lib=conftest
10266           libobjs=conftest.$ac_objext
10267           deplibs=
10268           wl=$lt_prog_compiler_wl
10269           pic_flag=$lt_prog_compiler_pic
10270           compiler_flags=-v
10271           linker_flags=-v
10272           verstring=
10273           output_objdir=.
10274           libname=conftest
10275           lt_save_allow_undefined_flag=$allow_undefined_flag
10276           allow_undefined_flag=
10277           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10278   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10279   ac_status=$?
10280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281   test $ac_status = 0; }
10282           then
10283             lt_cv_archive_cmds_need_lc=no
10284           else
10285             lt_cv_archive_cmds_need_lc=yes
10286           fi
10287           allow_undefined_flag=$lt_save_allow_undefined_flag
10288         else
10289           cat conftest.err 1>&5
10290         fi
10291         $RM conftest*
10292
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10295 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10296       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10297       ;;
10298     esac
10299   fi
10300   ;;
10301 esac
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10456
10457 if test "$GCC" = yes; then
10458   case $host_os in
10459     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10460     *) lt_awk_arg="/^libraries:/" ;;
10461   esac
10462   case $host_os in
10463     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10464     *) lt_sed_strip_eq="s,=/,/,g" ;;
10465   esac
10466   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10467   case $lt_search_path_spec in
10468   *\;*)
10469     # if the path contains ";" then we assume it to be the separator
10470     # otherwise default to the standard path separator (i.e. ":") - it is
10471     # assumed that no part of a normal pathname contains ";" but that should
10472     # okay in the real world where ";" in dirpaths is itself problematic.
10473     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10474     ;;
10475   *)
10476     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10477     ;;
10478   esac
10479   # Ok, now we have the path, separated by spaces, we can step through it
10480   # and add multilib dir if necessary.
10481   lt_tmp_lt_search_path_spec=
10482   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10483   for lt_sys_path in $lt_search_path_spec; do
10484     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10485       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10486     else
10487       test -d "$lt_sys_path" && \
10488         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10489     fi
10490   done
10491   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10492 BEGIN {RS=" "; FS="/|\n";} {
10493   lt_foo="";
10494   lt_count=0;
10495   for (lt_i = NF; lt_i > 0; lt_i--) {
10496     if ($lt_i != "" && $lt_i != ".") {
10497       if ($lt_i == "..") {
10498         lt_count++;
10499       } else {
10500         if (lt_count == 0) {
10501           lt_foo="/" $lt_i lt_foo;
10502         } else {
10503           lt_count--;
10504         }
10505       }
10506     }
10507   }
10508   if (lt_foo != "") { lt_freq[lt_foo]++; }
10509   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10510 }'`
10511   # AWK program above erroneously prepends '/' to C:/dos/paths
10512   # for these hosts.
10513   case $host_os in
10514     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10515       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10516   esac
10517   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10518 else
10519   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10520 fi
10521 library_names_spec=
10522 libname_spec='lib$name'
10523 soname_spec=
10524 shrext_cmds=".so"
10525 postinstall_cmds=
10526 postuninstall_cmds=
10527 finish_cmds=
10528 finish_eval=
10529 shlibpath_var=
10530 shlibpath_overrides_runpath=unknown
10531 version_type=none
10532 dynamic_linker="$host_os ld.so"
10533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10534 need_lib_prefix=unknown
10535 hardcode_into_libs=no
10536
10537 # when you set need_version to no, make sure it does not cause -set_version
10538 # flags to be left without arguments
10539 need_version=unknown
10540
10541 case $host_os in
10542 aix3*)
10543   version_type=linux # correct to gnu/linux during the next big refactor
10544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10545   shlibpath_var=LIBPATH
10546
10547   # AIX 3 has no versioning support, so we append a major version to the name.
10548   soname_spec='${libname}${release}${shared_ext}$major'
10549   ;;
10550
10551 aix[4-9]*)
10552   version_type=linux # correct to gnu/linux during the next big refactor
10553   need_lib_prefix=no
10554   need_version=no
10555   hardcode_into_libs=yes
10556   if test "$host_cpu" = ia64; then
10557     # AIX 5 supports IA64
10558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10559     shlibpath_var=LD_LIBRARY_PATH
10560   else
10561     # With GCC up to 2.95.x, collect2 would create an import file
10562     # for dependence libraries.  The import file would start with
10563     # the line `#! .'.  This would cause the generated library to
10564     # depend on `.', always an invalid library.  This was fixed in
10565     # development snapshots of GCC prior to 3.0.
10566     case $host_os in
10567       aix4 | aix4.[01] | aix4.[01].*)
10568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10569            echo ' yes '
10570            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10571         :
10572       else
10573         can_build_shared=no
10574       fi
10575       ;;
10576     esac
10577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10578     # soname into executable. Probably we can add versioning support to
10579     # collect2, so additional links can be useful in future.
10580     if test "$aix_use_runtimelinking" = yes; then
10581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10582       # instead of lib<name>.a to let people know that these are not
10583       # typical AIX shared libraries.
10584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585     else
10586       # We preserve .a as extension for shared libraries through AIX4.2
10587       # and later when we are not doing run time linking.
10588       library_names_spec='${libname}${release}.a $libname.a'
10589       soname_spec='${libname}${release}${shared_ext}$major'
10590     fi
10591     shlibpath_var=LIBPATH
10592   fi
10593   ;;
10594
10595 amigaos*)
10596   case $host_cpu in
10597   powerpc)
10598     # Since July 2007 AmigaOS4 officially supports .so libraries.
10599     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601     ;;
10602   m68k)
10603     library_names_spec='$libname.ixlibrary $libname.a'
10604     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10605     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'
10606     ;;
10607   esac
10608   ;;
10609
10610 beos*)
10611   library_names_spec='${libname}${shared_ext}'
10612   dynamic_linker="$host_os ld.so"
10613   shlibpath_var=LIBRARY_PATH
10614   ;;
10615
10616 bsdi[45]*)
10617   version_type=linux # correct to gnu/linux during the next big refactor
10618   need_version=no
10619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620   soname_spec='${libname}${release}${shared_ext}$major'
10621   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10622   shlibpath_var=LD_LIBRARY_PATH
10623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10625   # the default ld.so.conf also contains /usr/contrib/lib and
10626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10627   # libtool to hard-code these into programs
10628   ;;
10629
10630 cygwin* | mingw* | pw32* | cegcc*)
10631   version_type=windows
10632   shrext_cmds=".dll"
10633   need_version=no
10634   need_lib_prefix=no
10635
10636   case $GCC,$cc_basename in
10637   yes,*)
10638     # gcc
10639     library_names_spec='$libname.dll.a'
10640     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10641     postinstall_cmds='base_file=`basename \${file}`~
10642       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10643       dldir=$destdir/`dirname \$dlpath`~
10644       test -d \$dldir || mkdir -p \$dldir~
10645       $install_prog $dir/$dlname \$dldir/$dlname~
10646       chmod a+x \$dldir/$dlname~
10647       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10648         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10649       fi'
10650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10651       dlpath=$dir/\$dldll~
10652        $RM \$dlpath'
10653     shlibpath_overrides_runpath=yes
10654
10655     case $host_os in
10656     cygwin*)
10657       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10658       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659
10660       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10661       ;;
10662     mingw* | cegcc*)
10663       # MinGW DLLs use traditional 'lib' prefix
10664       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665       ;;
10666     pw32*)
10667       # pw32 DLLs use 'pw' prefix rather than 'lib'
10668       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669       ;;
10670     esac
10671     dynamic_linker='Win32 ld.exe'
10672     ;;
10673
10674   *,cl*)
10675     # Native MSVC
10676     libname_spec='$name'
10677     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10678     library_names_spec='${libname}.dll.lib'
10679
10680     case $build_os in
10681     mingw*)
10682       sys_lib_search_path_spec=
10683       lt_save_ifs=$IFS
10684       IFS=';'
10685       for lt_path in $LIB
10686       do
10687         IFS=$lt_save_ifs
10688         # Let DOS variable expansion print the short 8.3 style file name.
10689         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10690         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10691       done
10692       IFS=$lt_save_ifs
10693       # Convert to MSYS style.
10694       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10695       ;;
10696     cygwin*)
10697       # Convert to unix form, then to dos form, then back to unix form
10698       # but this time dos style (no spaces!) so that the unix form looks
10699       # like /cygdrive/c/PROGRA~1:/cygdr...
10700       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10701       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10702       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10703       ;;
10704     *)
10705       sys_lib_search_path_spec="$LIB"
10706       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10707         # It is most probably a Windows format PATH.
10708         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10709       else
10710         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10711       fi
10712       # FIXME: find the short name or the path components, as spaces are
10713       # common. (e.g. "Program Files" -> "PROGRA~1")
10714       ;;
10715     esac
10716
10717     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10718     postinstall_cmds='base_file=`basename \${file}`~
10719       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10720       dldir=$destdir/`dirname \$dlpath`~
10721       test -d \$dldir || mkdir -p \$dldir~
10722       $install_prog $dir/$dlname \$dldir/$dlname'
10723     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724       dlpath=$dir/\$dldll~
10725        $RM \$dlpath'
10726     shlibpath_overrides_runpath=yes
10727     dynamic_linker='Win32 link.exe'
10728     ;;
10729
10730   *)
10731     # Assume MSVC wrapper
10732     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10733     dynamic_linker='Win32 ld.exe'
10734     ;;
10735   esac
10736   # FIXME: first we should search . and the directory the executable is in
10737   shlibpath_var=PATH
10738   ;;
10739
10740 darwin* | rhapsody*)
10741   dynamic_linker="$host_os dyld"
10742   version_type=darwin
10743   need_lib_prefix=no
10744   need_version=no
10745   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746   soname_spec='${libname}${release}${major}$shared_ext'
10747   shlibpath_overrides_runpath=yes
10748   shlibpath_var=DYLD_LIBRARY_PATH
10749   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10750
10751   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10752   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10753   ;;
10754
10755 dgux*)
10756   version_type=linux # correct to gnu/linux during the next big refactor
10757   need_lib_prefix=no
10758   need_version=no
10759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10760   soname_spec='${libname}${release}${shared_ext}$major'
10761   shlibpath_var=LD_LIBRARY_PATH
10762   ;;
10763
10764 freebsd* | dragonfly*)
10765   # DragonFly does not have aout.  When/if they implement a new
10766   # versioning mechanism, adjust this.
10767   if test -x /usr/bin/objformat; then
10768     objformat=`/usr/bin/objformat`
10769   else
10770     case $host_os in
10771     freebsd[23].*) objformat=aout ;;
10772     *) objformat=elf ;;
10773     esac
10774   fi
10775   version_type=freebsd-$objformat
10776   case $version_type in
10777     freebsd-elf*)
10778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10779       need_version=no
10780       need_lib_prefix=no
10781       ;;
10782     freebsd-*)
10783       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10784       need_version=yes
10785       ;;
10786   esac
10787   shlibpath_var=LD_LIBRARY_PATH
10788   case $host_os in
10789   freebsd2.*)
10790     shlibpath_overrides_runpath=yes
10791     ;;
10792   freebsd3.[01]* | freebsdelf3.[01]*)
10793     shlibpath_overrides_runpath=yes
10794     hardcode_into_libs=yes
10795     ;;
10796   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10797   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10798     shlibpath_overrides_runpath=no
10799     hardcode_into_libs=yes
10800     ;;
10801   *) # from 4.6 on, and DragonFly
10802     shlibpath_overrides_runpath=yes
10803     hardcode_into_libs=yes
10804     ;;
10805   esac
10806   ;;
10807
10808 haiku*)
10809   version_type=linux # correct to gnu/linux during the next big refactor
10810   need_lib_prefix=no
10811   need_version=no
10812   dynamic_linker="$host_os runtime_loader"
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   shlibpath_var=LIBRARY_PATH
10816   shlibpath_overrides_runpath=yes
10817   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10818   hardcode_into_libs=yes
10819   ;;
10820
10821 hpux9* | hpux10* | hpux11*)
10822   # Give a soname corresponding to the major version so that dld.sl refuses to
10823   # link against other versions.
10824   version_type=sunos
10825   need_lib_prefix=no
10826   need_version=no
10827   case $host_cpu in
10828   ia64*)
10829     shrext_cmds='.so'
10830     hardcode_into_libs=yes
10831     dynamic_linker="$host_os dld.so"
10832     shlibpath_var=LD_LIBRARY_PATH
10833     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835     soname_spec='${libname}${release}${shared_ext}$major'
10836     if test "X$HPUX_IA64_MODE" = X32; then
10837       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10838     else
10839       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10840     fi
10841     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10842     ;;
10843   hppa*64*)
10844     shrext_cmds='.sl'
10845     hardcode_into_libs=yes
10846     dynamic_linker="$host_os dld.sl"
10847     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10848     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850     soname_spec='${libname}${release}${shared_ext}$major'
10851     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10853     ;;
10854   *)
10855     shrext_cmds='.sl'
10856     dynamic_linker="$host_os dld.sl"
10857     shlibpath_var=SHLIB_PATH
10858     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860     soname_spec='${libname}${release}${shared_ext}$major'
10861     ;;
10862   esac
10863   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10864   postinstall_cmds='chmod 555 $lib'
10865   # or fails outright, so override atomically:
10866   install_override_mode=555
10867   ;;
10868
10869 interix[3-9]*)
10870   version_type=linux # correct to gnu/linux during the next big refactor
10871   need_lib_prefix=no
10872   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10876   shlibpath_var=LD_LIBRARY_PATH
10877   shlibpath_overrides_runpath=no
10878   hardcode_into_libs=yes
10879   ;;
10880
10881 irix5* | irix6* | nonstopux*)
10882   case $host_os in
10883     nonstopux*) version_type=nonstopux ;;
10884     *)
10885         if test "$lt_cv_prog_gnu_ld" = yes; then
10886                 version_type=linux # correct to gnu/linux during the next big refactor
10887         else
10888                 version_type=irix
10889         fi ;;
10890   esac
10891   need_lib_prefix=no
10892   need_version=no
10893   soname_spec='${libname}${release}${shared_ext}$major'
10894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10895   case $host_os in
10896   irix5* | nonstopux*)
10897     libsuff= shlibsuff=
10898     ;;
10899   *)
10900     case $LD in # libtool.m4 will add one of these switches to LD
10901     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10902       libsuff= shlibsuff= libmagic=32-bit;;
10903     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10904       libsuff=32 shlibsuff=N32 libmagic=N32;;
10905     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10906       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10907     *) libsuff= shlibsuff= libmagic=never-match;;
10908     esac
10909     ;;
10910   esac
10911   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10912   shlibpath_overrides_runpath=no
10913   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10914   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10915   hardcode_into_libs=yes
10916   ;;
10917
10918 # No shared lib support for Linux oldld, aout, or coff.
10919 linux*oldld* | linux*aout* | linux*coff*)
10920   dynamic_linker=no
10921   ;;
10922
10923 # This must be glibc/ELF.
10924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10925   version_type=linux # correct to gnu/linux during the next big refactor
10926   need_lib_prefix=no
10927   need_version=no
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   shlibpath_overrides_runpath=no
10933
10934   # Some binutils ld are patched to set DT_RUNPATH
10935   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938   lt_cv_shlibpath_overrides_runpath=no
10939     save_LDFLAGS=$LDFLAGS
10940     save_libdir=$libdir
10941     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10942          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h.  */
10945
10946 int
10947 main ()
10948 {
10949
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10956   lt_cv_shlibpath_overrides_runpath=yes
10957 fi
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext \
10960     conftest$ac_exeext conftest.$ac_ext
10961     LDFLAGS=$save_LDFLAGS
10962     libdir=$save_libdir
10963
10964 fi
10965
10966   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10967
10968   # This implies no fast_install, which is unacceptable.
10969   # Some rework will be needed to allow for fast_install
10970   # before this can be enabled.
10971   hardcode_into_libs=yes
10972
10973   # Append ld.so.conf contents to the search path
10974   if test -f /etc/ld.so.conf; then
10975     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' ' '`
10976     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10977   fi
10978
10979   # We used to test for /lib/ld.so.1 and disable shared libraries on
10980   # powerpc, because MkLinux only supported shared libraries with the
10981   # GNU dynamic linker.  Since this was broken with cross compilers,
10982   # most powerpc-linux boxes support dynamic linking these days and
10983   # people can always --disable-shared, the test was removed, and we
10984   # assume the GNU/Linux dynamic linker is in use.
10985   dynamic_linker='GNU/Linux ld.so'
10986   ;;
10987
10988 netbsdelf*-gnu)
10989   version_type=linux
10990   need_lib_prefix=no
10991   need_version=no
10992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10993   soname_spec='${libname}${release}${shared_ext}$major'
10994   shlibpath_var=LD_LIBRARY_PATH
10995   shlibpath_overrides_runpath=no
10996   hardcode_into_libs=yes
10997   dynamic_linker='NetBSD ld.elf_so'
10998   ;;
10999
11000 netbsd*)
11001   version_type=sunos
11002   need_lib_prefix=no
11003   need_version=no
11004   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11006     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11007     dynamic_linker='NetBSD (a.out) ld.so'
11008   else
11009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010     soname_spec='${libname}${release}${shared_ext}$major'
11011     dynamic_linker='NetBSD ld.elf_so'
11012   fi
11013   shlibpath_var=LD_LIBRARY_PATH
11014   shlibpath_overrides_runpath=yes
11015   hardcode_into_libs=yes
11016   ;;
11017
11018 newsos6)
11019   version_type=linux # correct to gnu/linux during the next big refactor
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   shlibpath_overrides_runpath=yes
11023   ;;
11024
11025 *nto* | *qnx*)
11026   version_type=qnx
11027   need_lib_prefix=no
11028   need_version=no
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030   soname_spec='${libname}${release}${shared_ext}$major'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   shlibpath_overrides_runpath=no
11033   hardcode_into_libs=yes
11034   dynamic_linker='ldqnx.so'
11035   ;;
11036
11037 openbsd*)
11038   version_type=sunos
11039   sys_lib_dlsearch_path_spec="/usr/lib"
11040   need_lib_prefix=no
11041   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11042   case $host_os in
11043     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11044     *)                          need_version=no  ;;
11045   esac
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11047   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11050     case $host_os in
11051       openbsd2.[89] | openbsd2.[89].*)
11052         shlibpath_overrides_runpath=no
11053         ;;
11054       *)
11055         shlibpath_overrides_runpath=yes
11056         ;;
11057       esac
11058   else
11059     shlibpath_overrides_runpath=yes
11060   fi
11061   ;;
11062
11063 os2*)
11064   libname_spec='$name'
11065   shrext_cmds=".dll"
11066   need_lib_prefix=no
11067   library_names_spec='$libname${shared_ext} $libname.a'
11068   dynamic_linker='OS/2 ld.exe'
11069   shlibpath_var=LIBPATH
11070   ;;
11071
11072 osf3* | osf4* | osf5*)
11073   version_type=osf
11074   need_lib_prefix=no
11075   need_version=no
11076   soname_spec='${libname}${release}${shared_ext}$major'
11077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11080   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11081   ;;
11082
11083 rdos*)
11084   dynamic_linker=no
11085   ;;
11086
11087 solaris*)
11088   version_type=linux # correct to gnu/linux during the next big refactor
11089   need_lib_prefix=no
11090   need_version=no
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   shlibpath_var=LD_LIBRARY_PATH
11094   shlibpath_overrides_runpath=yes
11095   hardcode_into_libs=yes
11096   # ldd complains unless libraries are executable
11097   postinstall_cmds='chmod +x $lib'
11098   ;;
11099
11100 sunos4*)
11101   version_type=sunos
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11103   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=yes
11106   if test "$with_gnu_ld" = yes; then
11107     need_lib_prefix=no
11108   fi
11109   need_version=yes
11110   ;;
11111
11112 sysv4 | sysv4.3*)
11113   version_type=linux # correct to gnu/linux during the next big refactor
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115   soname_spec='${libname}${release}${shared_ext}$major'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   case $host_vendor in
11118     sni)
11119       shlibpath_overrides_runpath=no
11120       need_lib_prefix=no
11121       runpath_var=LD_RUN_PATH
11122       ;;
11123     siemens)
11124       need_lib_prefix=no
11125       ;;
11126     motorola)
11127       need_lib_prefix=no
11128       need_version=no
11129       shlibpath_overrides_runpath=no
11130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11131       ;;
11132   esac
11133   ;;
11134
11135 sysv4*MP*)
11136   if test -d /usr/nec ;then
11137     version_type=linux # correct to gnu/linux during the next big refactor
11138     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11139     soname_spec='$libname${shared_ext}.$major'
11140     shlibpath_var=LD_LIBRARY_PATH
11141   fi
11142   ;;
11143
11144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11145   version_type=freebsd-elf
11146   need_lib_prefix=no
11147   need_version=no
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11149   soname_spec='${libname}${release}${shared_ext}$major'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   shlibpath_overrides_runpath=yes
11152   hardcode_into_libs=yes
11153   if test "$with_gnu_ld" = yes; then
11154     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11155   else
11156     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11157     case $host_os in
11158       sco3.2v5*)
11159         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11160         ;;
11161     esac
11162   fi
11163   sys_lib_dlsearch_path_spec='/usr/lib'
11164   ;;
11165
11166 tpf*)
11167   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11168   version_type=linux # correct to gnu/linux during the next big refactor
11169   need_lib_prefix=no
11170   need_version=no
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   shlibpath_overrides_runpath=no
11174   hardcode_into_libs=yes
11175   ;;
11176
11177 uts4*)
11178   version_type=linux # correct to gnu/linux during the next big refactor
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180   soname_spec='${libname}${release}${shared_ext}$major'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   ;;
11183
11184 *)
11185   dynamic_linker=no
11186   ;;
11187 esac
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11189 $as_echo "$dynamic_linker" >&6; }
11190 test "$dynamic_linker" = no && can_build_shared=no
11191
11192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11193 if test "$GCC" = yes; then
11194   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11195 fi
11196
11197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11198   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11199 fi
11200 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11201   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11202 fi
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11296 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11297 hardcode_action=
11298 if test -n "$hardcode_libdir_flag_spec" ||
11299    test -n "$runpath_var" ||
11300    test "X$hardcode_automatic" = "Xyes" ; then
11301
11302   # We can hardcode non-existent directories.
11303   if test "$hardcode_direct" != no &&
11304      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11305      # have to relink, otherwise we might link with an installed library
11306      # when we should be linking with a yet-to-be-installed one
11307      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11308      test "$hardcode_minus_L" != no; then
11309     # Linking always hardcodes the temporary library directory.
11310     hardcode_action=relink
11311   else
11312     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11313     hardcode_action=immediate
11314   fi
11315 else
11316   # We cannot hardcode anything, or else we can only hardcode existing
11317   # directories.
11318   hardcode_action=unsupported
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11321 $as_echo "$hardcode_action" >&6; }
11322
11323 if test "$hardcode_action" = relink ||
11324    test "$inherit_rpath" = yes; then
11325   # Fast installation is not supported
11326   enable_fast_install=no
11327 elif test "$shlibpath_overrides_runpath" = yes ||
11328      test "$enable_shared" = no; then
11329   # Fast installation is not necessary
11330   enable_fast_install=needless
11331 fi
11332
11333
11334
11335
11336
11337
11338   if test "x$enable_dlopen" != xyes; then
11339   enable_dlopen=unknown
11340   enable_dlopen_self=unknown
11341   enable_dlopen_self_static=unknown
11342 else
11343   lt_cv_dlopen=no
11344   lt_cv_dlopen_libs=
11345
11346   case $host_os in
11347   beos*)
11348     lt_cv_dlopen="load_add_on"
11349     lt_cv_dlopen_libs=
11350     lt_cv_dlopen_self=yes
11351     ;;
11352
11353   mingw* | pw32* | cegcc*)
11354     lt_cv_dlopen="LoadLibrary"
11355     lt_cv_dlopen_libs=
11356     ;;
11357
11358   cygwin*)
11359     lt_cv_dlopen="dlopen"
11360     lt_cv_dlopen_libs=
11361     ;;
11362
11363   darwin*)
11364   # if libdl is installed we need to link against it
11365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11366 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11367 if ${ac_cv_lib_dl_dlopen+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-ldl  $LIBS"
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h.  */
11374
11375 /* Override any GCC internal prototype to avoid an error.
11376    Use char because int might match the return type of a GCC
11377    builtin and then its argument prototype would still apply.  */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 char dlopen ();
11382 int
11383 main ()
11384 {
11385 return dlopen ();
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391   ac_cv_lib_dl_dlopen=yes
11392 else
11393   ac_cv_lib_dl_dlopen=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396     conftest$ac_exeext conftest.$ac_ext
11397 LIBS=$ac_check_lib_save_LIBS
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11400 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11401 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11402   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11403 else
11404
11405     lt_cv_dlopen="dyld"
11406     lt_cv_dlopen_libs=
11407     lt_cv_dlopen_self=yes
11408
11409 fi
11410
11411     ;;
11412
11413   *)
11414     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11415 if test "x$ac_cv_func_shl_load" = xyes; then :
11416   lt_cv_dlopen="shl_load"
11417 else
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11419 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11420 if ${ac_cv_lib_dld_shl_load+:} false; then :
11421   $as_echo_n "(cached) " >&6
11422 else
11423   ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldld  $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h.  */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char shl_load ();
11435 int
11436 main ()
11437 {
11438 return shl_load ();
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444   ac_cv_lib_dld_shl_load=yes
11445 else
11446   ac_cv_lib_dld_shl_load=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449     conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11453 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11454 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11455   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11456 else
11457   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11458 if test "x$ac_cv_func_dlopen" = xyes; then :
11459   lt_cv_dlopen="dlopen"
11460 else
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11462 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11463 if ${ac_cv_lib_dl_dlopen+:} false; then :
11464   $as_echo_n "(cached) " >&6
11465 else
11466   ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldl  $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h.  */
11470
11471 /* Override any GCC internal prototype to avoid an error.
11472    Use char because int might match the return type of a GCC
11473    builtin and then its argument prototype would still apply.  */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dlopen ();
11478 int
11479 main ()
11480 {
11481 return dlopen ();
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487   ac_cv_lib_dl_dlopen=yes
11488 else
11489   ac_cv_lib_dl_dlopen=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492     conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11497 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11498   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 else
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11501 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11502 if ${ac_cv_lib_svld_dlopen+:} false; then :
11503   $as_echo_n "(cached) " >&6
11504 else
11505   ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-lsvld  $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h.  */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511    Use char because int might match the return type of a GCC
11512    builtin and then its argument prototype would still apply.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char dlopen ();
11517 int
11518 main ()
11519 {
11520 return dlopen ();
11521   ;
11522   return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526   ac_cv_lib_svld_dlopen=yes
11527 else
11528   ac_cv_lib_svld_dlopen=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531     conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11535 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11536 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11538 else
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11540 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11541 if ${ac_cv_lib_dld_dld_link+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldld  $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h.  */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550    Use char because int might match the return type of a GCC
11551    builtin and then its argument prototype would still apply.  */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dld_link ();
11556 int
11557 main ()
11558 {
11559 return dld_link ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565   ac_cv_lib_dld_dld_link=yes
11566 else
11567   ac_cv_lib_dld_dld_link=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570     conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11574 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11575 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11576   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11577 fi
11578
11579
11580 fi
11581
11582
11583 fi
11584
11585
11586 fi
11587
11588
11589 fi
11590
11591
11592 fi
11593
11594     ;;
11595   esac
11596
11597   if test "x$lt_cv_dlopen" != xno; then
11598     enable_dlopen=yes
11599   else
11600     enable_dlopen=no
11601   fi
11602
11603   case $lt_cv_dlopen in
11604   dlopen)
11605     save_CPPFLAGS="$CPPFLAGS"
11606     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11607
11608     save_LDFLAGS="$LDFLAGS"
11609     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11610
11611     save_LIBS="$LIBS"
11612     LIBS="$lt_cv_dlopen_libs $LIBS"
11613
11614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11615 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11616 if ${lt_cv_dlopen_self+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619           if test "$cross_compiling" = yes; then :
11620   lt_cv_dlopen_self=cross
11621 else
11622   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11623   lt_status=$lt_dlunknown
11624   cat > conftest.$ac_ext <<_LT_EOF
11625 #line $LINENO "configure"
11626 #include "confdefs.h"
11627
11628 #if HAVE_DLFCN_H
11629 #include <dlfcn.h>
11630 #endif
11631
11632 #include <stdio.h>
11633
11634 #ifdef RTLD_GLOBAL
11635 #  define LT_DLGLOBAL           RTLD_GLOBAL
11636 #else
11637 #  ifdef DL_GLOBAL
11638 #    define LT_DLGLOBAL         DL_GLOBAL
11639 #  else
11640 #    define LT_DLGLOBAL         0
11641 #  endif
11642 #endif
11643
11644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11645    find out it does not work in some platform. */
11646 #ifndef LT_DLLAZY_OR_NOW
11647 #  ifdef RTLD_LAZY
11648 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11649 #  else
11650 #    ifdef DL_LAZY
11651 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11652 #    else
11653 #      ifdef RTLD_NOW
11654 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11655 #      else
11656 #        ifdef DL_NOW
11657 #          define LT_DLLAZY_OR_NOW      DL_NOW
11658 #        else
11659 #          define LT_DLLAZY_OR_NOW      0
11660 #        endif
11661 #      endif
11662 #    endif
11663 #  endif
11664 #endif
11665
11666 /* When -fvisbility=hidden is used, assume the code has been annotated
11667    correspondingly for the symbols needed.  */
11668 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11669 int fnord () __attribute__((visibility("default")));
11670 #endif
11671
11672 int fnord () { return 42; }
11673 int main ()
11674 {
11675   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11676   int status = $lt_dlunknown;
11677
11678   if (self)
11679     {
11680       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11681       else
11682         {
11683           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11684           else puts (dlerror ());
11685         }
11686       /* dlclose (self); */
11687     }
11688   else
11689     puts (dlerror ());
11690
11691   return status;
11692 }
11693 _LT_EOF
11694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11695   (eval $ac_link) 2>&5
11696   ac_status=$?
11697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11699     (./conftest; exit; ) >&5 2>/dev/null
11700     lt_status=$?
11701     case x$lt_status in
11702       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11703       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11704       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11705     esac
11706   else :
11707     # compilation failed
11708     lt_cv_dlopen_self=no
11709   fi
11710 fi
11711 rm -fr conftest*
11712
11713
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11716 $as_echo "$lt_cv_dlopen_self" >&6; }
11717
11718     if test "x$lt_cv_dlopen_self" = xyes; then
11719       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11721 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11722 if ${lt_cv_dlopen_self_static+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725           if test "$cross_compiling" = yes; then :
11726   lt_cv_dlopen_self_static=cross
11727 else
11728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11729   lt_status=$lt_dlunknown
11730   cat > conftest.$ac_ext <<_LT_EOF
11731 #line $LINENO "configure"
11732 #include "confdefs.h"
11733
11734 #if HAVE_DLFCN_H
11735 #include <dlfcn.h>
11736 #endif
11737
11738 #include <stdio.h>
11739
11740 #ifdef RTLD_GLOBAL
11741 #  define LT_DLGLOBAL           RTLD_GLOBAL
11742 #else
11743 #  ifdef DL_GLOBAL
11744 #    define LT_DLGLOBAL         DL_GLOBAL
11745 #  else
11746 #    define LT_DLGLOBAL         0
11747 #  endif
11748 #endif
11749
11750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11751    find out it does not work in some platform. */
11752 #ifndef LT_DLLAZY_OR_NOW
11753 #  ifdef RTLD_LAZY
11754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11755 #  else
11756 #    ifdef DL_LAZY
11757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11758 #    else
11759 #      ifdef RTLD_NOW
11760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11761 #      else
11762 #        ifdef DL_NOW
11763 #          define LT_DLLAZY_OR_NOW      DL_NOW
11764 #        else
11765 #          define LT_DLLAZY_OR_NOW      0
11766 #        endif
11767 #      endif
11768 #    endif
11769 #  endif
11770 #endif
11771
11772 /* When -fvisbility=hidden is used, assume the code has been annotated
11773    correspondingly for the symbols needed.  */
11774 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11775 int fnord () __attribute__((visibility("default")));
11776 #endif
11777
11778 int fnord () { return 42; }
11779 int main ()
11780 {
11781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11782   int status = $lt_dlunknown;
11783
11784   if (self)
11785     {
11786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11787       else
11788         {
11789           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11790           else puts (dlerror ());
11791         }
11792       /* dlclose (self); */
11793     }
11794   else
11795     puts (dlerror ());
11796
11797   return status;
11798 }
11799 _LT_EOF
11800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11801   (eval $ac_link) 2>&5
11802   ac_status=$?
11803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11804   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11805     (./conftest; exit; ) >&5 2>/dev/null
11806     lt_status=$?
11807     case x$lt_status in
11808       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11809       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11810       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11811     esac
11812   else :
11813     # compilation failed
11814     lt_cv_dlopen_self_static=no
11815   fi
11816 fi
11817 rm -fr conftest*
11818
11819
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11822 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11823     fi
11824
11825     CPPFLAGS="$save_CPPFLAGS"
11826     LDFLAGS="$save_LDFLAGS"
11827     LIBS="$save_LIBS"
11828     ;;
11829   esac
11830
11831   case $lt_cv_dlopen_self in
11832   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11833   *) enable_dlopen_self=unknown ;;
11834   esac
11835
11836   case $lt_cv_dlopen_self_static in
11837   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11838   *) enable_dlopen_self_static=unknown ;;
11839   esac
11840 fi
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858 striplib=
11859 old_striplib=
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11861 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11862 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11863   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11864   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867 else
11868 # FIXME - insert some real tests, host_os isn't really good enough
11869   case $host_os in
11870   darwin*)
11871     if test -n "$STRIP" ; then
11872       striplib="$STRIP -x"
11873       old_striplib="$STRIP -S"
11874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; }
11876     else
11877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879     fi
11880     ;;
11881   *)
11882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884     ;;
11885   esac
11886 fi
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899   # Report which library types will actually be built
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11903 $as_echo "$can_build_shared" >&6; }
11904
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11906 $as_echo_n "checking whether to build shared libraries... " >&6; }
11907   test "$can_build_shared" = "no" && enable_shared=no
11908
11909   # On AIX, shared libraries and static libraries use the same namespace, and
11910   # are all built from PIC.
11911   case $host_os in
11912   aix3*)
11913     test "$enable_shared" = yes && enable_static=no
11914     if test -n "$RANLIB"; then
11915       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11916       postinstall_cmds='$RANLIB $lib'
11917     fi
11918     ;;
11919
11920   aix[4-9]*)
11921     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11922       test "$enable_shared" = yes && enable_static=no
11923     fi
11924     ;;
11925   esac
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11927 $as_echo "$enable_shared" >&6; }
11928
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11930 $as_echo_n "checking whether to build static libraries... " >&6; }
11931   # Make sure either enable_shared or enable_static is yes.
11932   test "$enable_shared" = yes || enable_static=yes
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11934 $as_echo "$enable_static" >&6; }
11935
11936
11937
11938
11939 fi
11940 ac_ext=c
11941 ac_cpp='$CPP $CPPFLAGS'
11942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11945
11946 CC="$lt_save_CC"
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962         ac_config_commands="$ac_config_commands libtool"
11963
11964
11965
11966
11967 # Only expand once:
11968
11969
11970
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
11973 $as_echo_n "checking operating system... " >&6; }
11974 os_win32=no
11975 case "$target_os" in
11976      mingw*|cygwin*)
11977         os_win32=yes
11978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
11979 $as_echo "Win32" >&6; }
11980         UUID=
11981         ;;
11982      darwin*)
11983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
11984 $as_echo "Darwin" >&6; }
11985         UUID=
11986         ;;
11987      *)
11988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
11989 $as_echo "$target_os" >&6; }
11990         UUID=uuid
11991         ;;
11992 esac
11993
11994
11995
11996
11997
11998
11999
12000
12001 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12002         if test -n "$ac_tool_prefix"; then
12003   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12004 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   case $PKG_CONFIG in
12011   [\\/]* | ?:[\\/]*)
12012   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12013   ;;
12014   *)
12015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12017 do
12018   IFS=$as_save_IFS
12019   test -z "$as_dir" && as_dir=.
12020     for ac_exec_ext in '' $ac_executable_extensions; do
12021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12022     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024     break 2
12025   fi
12026 done
12027   done
12028 IFS=$as_save_IFS
12029
12030   ;;
12031 esac
12032 fi
12033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12034 if test -n "$PKG_CONFIG"; then
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12036 $as_echo "$PKG_CONFIG" >&6; }
12037 else
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12040 fi
12041
12042
12043 fi
12044 if test -z "$ac_cv_path_PKG_CONFIG"; then
12045   ac_pt_PKG_CONFIG=$PKG_CONFIG
12046   # Extract the first word of "pkg-config", so it can be a program name with args.
12047 set dummy pkg-config; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12051   $as_echo_n "(cached) " >&6
12052 else
12053   case $ac_pt_PKG_CONFIG in
12054   [\\/]* | ?:[\\/]*)
12055   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12056   ;;
12057   *)
12058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063     for ac_exec_ext in '' $ac_executable_extensions; do
12064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070   done
12071 IFS=$as_save_IFS
12072
12073   ;;
12074 esac
12075 fi
12076 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12077 if test -n "$ac_pt_PKG_CONFIG"; then
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12079 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12080 else
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084
12085   if test "x$ac_pt_PKG_CONFIG" = x; then
12086     PKG_CONFIG=""
12087   else
12088     case $cross_compiling:$ac_tool_warned in
12089 yes:)
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12092 ac_tool_warned=yes ;;
12093 esac
12094     PKG_CONFIG=$ac_pt_PKG_CONFIG
12095   fi
12096 else
12097   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12098 fi
12099
12100 fi
12101 if test -n "$PKG_CONFIG"; then
12102         _pkg_min_version=0.9.0
12103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12104 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12105         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12106                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107 $as_echo "yes" >&6; }
12108         else
12109                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111                 PKG_CONFIG=""
12112         fi
12113 fi
12114
12115 pkg_failed=no
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12117 $as_echo_n "checking for LIBGUPNP... " >&6; }
12118
12119 if test -n "$LIBGUPNP_CFLAGS"; then
12120     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12121  elif test -n "$PKG_CONFIG"; then
12122     if test -n "$PKG_CONFIG" && \
12123     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12124                             gio-2.0 \\
12125                             gmodule-2.0 \\
12126                             gssdp-1.0 >= 0.13.0 \\
12127                             libsoup-2.4 >= 2.28.2 \\
12128                             libxml-2.0 \\
12129                             \$UUID\""; } >&5
12130   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12131                             gio-2.0 \
12132                             gmodule-2.0 \
12133                             gssdp-1.0 >= 0.13.0 \
12134                             libsoup-2.4 >= 2.28.2 \
12135                             libxml-2.0 \
12136                             $UUID") 2>&5
12137   ac_status=$?
12138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12139   test $ac_status = 0; }; then
12140   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 \
12141                             gio-2.0 \
12142                             gmodule-2.0 \
12143                             gssdp-1.0 >= 0.13.0 \
12144                             libsoup-2.4 >= 2.28.2 \
12145                             libxml-2.0 \
12146                             $UUID" 2>/dev/null`
12147                       test "x$?" != "x0" && pkg_failed=yes
12148 else
12149   pkg_failed=yes
12150 fi
12151  else
12152     pkg_failed=untried
12153 fi
12154 if test -n "$LIBGUPNP_LIBS"; then
12155     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12156  elif test -n "$PKG_CONFIG"; then
12157     if test -n "$PKG_CONFIG" && \
12158     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12159                             gio-2.0 \\
12160                             gmodule-2.0 \\
12161                             gssdp-1.0 >= 0.13.0 \\
12162                             libsoup-2.4 >= 2.28.2 \\
12163                             libxml-2.0 \\
12164                             \$UUID\""; } >&5
12165   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12166                             gio-2.0 \
12167                             gmodule-2.0 \
12168                             gssdp-1.0 >= 0.13.0 \
12169                             libsoup-2.4 >= 2.28.2 \
12170                             libxml-2.0 \
12171                             $UUID") 2>&5
12172   ac_status=$?
12173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174   test $ac_status = 0; }; then
12175   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 \
12176                             gio-2.0 \
12177                             gmodule-2.0 \
12178                             gssdp-1.0 >= 0.13.0 \
12179                             libsoup-2.4 >= 2.28.2 \
12180                             libxml-2.0 \
12181                             $UUID" 2>/dev/null`
12182                       test "x$?" != "x0" && pkg_failed=yes
12183 else
12184   pkg_failed=yes
12185 fi
12186  else
12187     pkg_failed=untried
12188 fi
12189
12190
12191
12192 if test $pkg_failed = yes; then
12193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195
12196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12197         _pkg_short_errors_supported=yes
12198 else
12199         _pkg_short_errors_supported=no
12200 fi
12201         if test $_pkg_short_errors_supported = yes; then
12202                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12203                             gio-2.0 \
12204                             gmodule-2.0 \
12205                             gssdp-1.0 >= 0.13.0 \
12206                             libsoup-2.4 >= 2.28.2 \
12207                             libxml-2.0 \
12208                             $UUID" 2>&1`
12209         else
12210                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12211                             gio-2.0 \
12212                             gmodule-2.0 \
12213                             gssdp-1.0 >= 0.13.0 \
12214                             libsoup-2.4 >= 2.28.2 \
12215                             libxml-2.0 \
12216                             $UUID" 2>&1`
12217         fi
12218         # Put the nasty error message in config.log where it belongs
12219         echo "$LIBGUPNP_PKG_ERRORS" >&5
12220
12221         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 \
12222                             gio-2.0 \
12223                             gmodule-2.0 \
12224                             gssdp-1.0 >= 0.13.0 \
12225                             libsoup-2.4 >= 2.28.2 \
12226                             libxml-2.0 \
12227                             $UUID) were not met:
12228
12229 $LIBGUPNP_PKG_ERRORS
12230
12231 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12232 installed software in a non-standard prefix.
12233
12234 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12235 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12236 See the pkg-config man page for more details." "$LINENO" 5
12237 elif test $pkg_failed = untried; then
12238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12242 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12243 is in your PATH or set the PKG_CONFIG environment variable to the full
12244 path to pkg-config.
12245
12246 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12247 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12248 See the pkg-config man page for more details.
12249
12250 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12251 See \`config.log' for more details" "$LINENO" 5; }
12252 else
12253         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12254         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256 $as_echo "yes" >&6; }
12257
12258 fi
12259
12260 pkg_failed=no
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12262 $as_echo_n "checking for GTHREAD... " >&6; }
12263
12264 if test -n "$GTHREAD_CFLAGS"; then
12265     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12266  elif test -n "$PKG_CONFIG"; then
12267     if test -n "$PKG_CONFIG" && \
12268     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12269   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12270   ac_status=$?
12271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12272   test $ac_status = 0; }; then
12273   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 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 if test -n "$GTHREAD_LIBS"; then
12282     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12283  elif test -n "$PKG_CONFIG"; then
12284     if test -n "$PKG_CONFIG" && \
12285     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12286   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12287   ac_status=$?
12288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12289   test $ac_status = 0; }; then
12290   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12291                       test "x$?" != "x0" && pkg_failed=yes
12292 else
12293   pkg_failed=yes
12294 fi
12295  else
12296     pkg_failed=untried
12297 fi
12298
12299
12300
12301 if test $pkg_failed = yes; then
12302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304
12305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12306         _pkg_short_errors_supported=yes
12307 else
12308         _pkg_short_errors_supported=no
12309 fi
12310         if test $_pkg_short_errors_supported = yes; then
12311                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12312         else
12313                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12314         fi
12315         # Put the nasty error message in config.log where it belongs
12316         echo "$GTHREAD_PKG_ERRORS" >&5
12317
12318         as_fn_error $? "Package requirements (gthread-2.0) were not met:
12319
12320 $GTHREAD_PKG_ERRORS
12321
12322 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12323 installed software in a non-standard prefix.
12324
12325 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12326 and GTHREAD_LIBS to avoid the need to call pkg-config.
12327 See the pkg-config man page for more details." "$LINENO" 5
12328 elif test $pkg_failed = untried; then
12329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12334 is in your PATH or set the PKG_CONFIG environment variable to the full
12335 path to pkg-config.
12336
12337 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12338 and GTHREAD_LIBS to avoid the need to call pkg-config.
12339 See the pkg-config man page for more details.
12340
12341 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12342 See \`config.log' for more details" "$LINENO" 5; }
12343 else
12344         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12345         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12347 $as_echo "yes" >&6; }
12348
12349 fi
12350
12351  if test "x$os_win32" = "xyes"; then
12352   OS_WIN32_TRUE=
12353   OS_WIN32_FALSE='#'
12354 else
12355   OS_WIN32_TRUE='#'
12356   OS_WIN32_FALSE=
12357 fi
12358
12359 if test "x$os_win32" = "xno"; then
12360
12361 # Check whether --with-context_manager was given.
12362 if test "${with_context_manager+set}" = set; then :
12363   withval=$with_context_manager;
12364 else
12365   with_context_manager="none"
12366 fi
12367
12368 else
12369     LIBGUPNP_LIBS="$LIBGUPNP_LIBS -lrpcrt4"
12370     with_context_manager="windows"
12371 fi
12372
12373 if test "x$with_context_manager" = "xnone"; then
12374         case "$target_os" in
12375         linux*)
12376                 with_context_manager="linux"
12377                 ;;
12378         *)
12379                 with_context_manager="unix"
12380                 ;;
12381         esac
12382 fi
12383
12384 for ac_header in sys/socket.h linux/rtnetlink.h
12385 do :
12386   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #ifdef HAVE_SYS_SOCKET_H
12388                   #include <sys/socket.h>
12389                   #endif
12390
12391 "
12392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12393   cat >>confdefs.h <<_ACEOF
12394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12395 _ACEOF
12396   HAVE_NETLINK=yes
12397 else
12398    HAVE_NETLINK=no
12399 fi
12400
12401 done
12402
12403  if test "x$HAVE_NETLINK" = "xyes"; then
12404   HAVE_NETLINK_TRUE=
12405   HAVE_NETLINK_FALSE='#'
12406 else
12407   HAVE_NETLINK_TRUE='#'
12408   HAVE_NETLINK_FALSE=
12409 fi
12410
12411
12412
12413 for ac_header in linux/wireless.h
12414 do :
12415   ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " #ifdef HAVE_SYS_SOCKET_H
12416                   #include <sys/socket.h>
12417                   #endif
12418
12419 "
12420 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
12421   cat >>confdefs.h <<_ACEOF
12422 #define HAVE_LINUX_WIRELESS_H 1
12423 _ACEOF
12424
12425 fi
12426
12427 done
12428
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
12431 $as_echo_n "checking Context Manager backend to use... " >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
12433 $as_echo "${with_context_manager}" >&6; }
12434
12435  if test "x$with_context_manager" = "xnetwork-manager"; then
12436   USE_NETWORK_MANAGER_TRUE=
12437   USE_NETWORK_MANAGER_FALSE='#'
12438 else
12439   USE_NETWORK_MANAGER_TRUE='#'
12440   USE_NETWORK_MANAGER_FALSE=
12441 fi
12442
12443 if test "x$with_context_manager" = "xnetwork-manager"; then :
12444
12445 pkg_failed=no
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12447 $as_echo_n "checking for GIO... " >&6; }
12448
12449 if test -n "$GIO_CFLAGS"; then
12450     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12451  elif test -n "$PKG_CONFIG"; then
12452     if test -n "$PKG_CONFIG" && \
12453     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12454   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12455   ac_status=$?
12456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12457   test $ac_status = 0; }; then
12458   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12459                       test "x$?" != "x0" && pkg_failed=yes
12460 else
12461   pkg_failed=yes
12462 fi
12463  else
12464     pkg_failed=untried
12465 fi
12466 if test -n "$GIO_LIBS"; then
12467     pkg_cv_GIO_LIBS="$GIO_LIBS"
12468  elif test -n "$PKG_CONFIG"; then
12469     if test -n "$PKG_CONFIG" && \
12470     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12471   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12472   ac_status=$?
12473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474   test $ac_status = 0; }; then
12475   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12476                       test "x$?" != "x0" && pkg_failed=yes
12477 else
12478   pkg_failed=yes
12479 fi
12480  else
12481     pkg_failed=untried
12482 fi
12483
12484
12485
12486 if test $pkg_failed = yes; then
12487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489
12490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12491         _pkg_short_errors_supported=yes
12492 else
12493         _pkg_short_errors_supported=no
12494 fi
12495         if test $_pkg_short_errors_supported = yes; then
12496                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12497         else
12498                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12499         fi
12500         # Put the nasty error message in config.log where it belongs
12501         echo "$GIO_PKG_ERRORS" >&5
12502
12503         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
12504
12505 $GIO_PKG_ERRORS
12506
12507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12508 installed software in a non-standard prefix.
12509
12510 Alternatively, you may set the environment variables GIO_CFLAGS
12511 and GIO_LIBS to avoid the need to call pkg-config.
12512 See the pkg-config man page for more details." "$LINENO" 5
12513 elif test $pkg_failed = untried; then
12514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12518 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12519 is in your PATH or set the PKG_CONFIG environment variable to the full
12520 path to pkg-config.
12521
12522 Alternatively, you may set the environment variables GIO_CFLAGS
12523 and GIO_LIBS to avoid the need to call pkg-config.
12524 See the pkg-config man page for more details.
12525
12526 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12527 See \`config.log' for more details" "$LINENO" 5; }
12528 else
12529         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12530         GIO_LIBS=$pkg_cv_GIO_LIBS
12531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533
12534 fi
12535 fi
12536
12537  if test "x$with_context_manager" = "xconnman"; then
12538   USE_CONNMAN_TRUE=
12539   USE_CONNMAN_FALSE='#'
12540 else
12541   USE_CONNMAN_TRUE='#'
12542   USE_CONNMAN_FALSE=
12543 fi
12544
12545
12546 if test "x$with_context_manager" = "xconnman"; then
12547
12548 pkg_failed=no
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONNMAN" >&5
12550 $as_echo_n "checking for CONNMAN... " >&6; }
12551
12552 if test -n "$CONNMAN_CFLAGS"; then
12553     pkg_cv_CONNMAN_CFLAGS="$CONNMAN_CFLAGS"
12554  elif test -n "$PKG_CONFIG"; then
12555     if test -n "$PKG_CONFIG" && \
12556     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12557   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12558   ac_status=$?
12559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12560   test $ac_status = 0; }; then
12561   pkg_cv_CONNMAN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12562                       test "x$?" != "x0" && pkg_failed=yes
12563 else
12564   pkg_failed=yes
12565 fi
12566  else
12567     pkg_failed=untried
12568 fi
12569 if test -n "$CONNMAN_LIBS"; then
12570     pkg_cv_CONNMAN_LIBS="$CONNMAN_LIBS"
12571  elif test -n "$PKG_CONFIG"; then
12572     if test -n "$PKG_CONFIG" && \
12573     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12574   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12575   ac_status=$?
12576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577   test $ac_status = 0; }; then
12578   pkg_cv_CONNMAN_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12579                       test "x$?" != "x0" && pkg_failed=yes
12580 else
12581   pkg_failed=yes
12582 fi
12583  else
12584     pkg_failed=untried
12585 fi
12586
12587
12588
12589 if test $pkg_failed = yes; then
12590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12592
12593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12594         _pkg_short_errors_supported=yes
12595 else
12596         _pkg_short_errors_supported=no
12597 fi
12598         if test $_pkg_short_errors_supported = yes; then
12599                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12600         else
12601                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12602         fi
12603         # Put the nasty error message in config.log where it belongs
12604         echo "$CONNMAN_PKG_ERRORS" >&5
12605
12606         as_fn_error $? "Package requirements (glib-2.0 >= 2.28 connman >= 0.80) were not met:
12607
12608 $CONNMAN_PKG_ERRORS
12609
12610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12611 installed software in a non-standard prefix.
12612
12613 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12614 and CONNMAN_LIBS to avoid the need to call pkg-config.
12615 See the pkg-config man page for more details." "$LINENO" 5
12616 elif test $pkg_failed = untried; then
12617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12621 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12622 is in your PATH or set the PKG_CONFIG environment variable to the full
12623 path to pkg-config.
12624
12625 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12626 and CONNMAN_LIBS to avoid the need to call pkg-config.
12627 See the pkg-config man page for more details.
12628
12629 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12630 See \`config.log' for more details" "$LINENO" 5; }
12631 else
12632         CONNMAN_CFLAGS=$pkg_cv_CONNMAN_CFLAGS
12633         CONNMAN_LIBS=$pkg_cv_CONNMAN_LIBS
12634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12636
12637 fi
12638 fi
12639
12640 USE_NETLINK=no
12641 if test "x$with_context_manager" = "xlinux"; then :
12642   if test "x$HAVE_NETLINK" = "xno"; then :
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: No rtnetlink found, falling back to static context manager" >&5
12644 $as_echo "$as_me: No rtnetlink found, falling back to static context manager" >&6;}
12645 else
12646   USE_NETLINK=yes
12647 fi
12648
12649 fi
12650
12651  if test "x$USE_NETLINK" = "xyes"; then
12652   USE_NETLINK_TRUE=
12653   USE_NETLINK_FALSE='#'
12654 else
12655   USE_NETLINK_TRUE='#'
12656   USE_NETLINK_FALSE=
12657 fi
12658
12659
12660
12661 # glib-genmarshal
12662 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12663
12664
12665 # Debugging
12666 # Check whether --enable-debug was given.
12667 if test "${enable_debug+set}" = set; then :
12668   enableval=$enable_debug;
12669 else
12670   enable_debug=no
12671 fi
12672
12673 if test "x$enable_debug" = "xyes"; then
12674         CFLAGS="$CFLAGS -g -Wall -Werror"
12675 fi
12676
12677
12678
12679
12680                 # Check whether --enable-introspection was given.
12681 if test "${enable_introspection+set}" = set; then :
12682   enableval=$enable_introspection;
12683 else
12684   enable_introspection=auto
12685 fi
12686
12687
12688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12689 $as_echo_n "checking for gobject-introspection... " >&6; }
12690
12691         case $enable_introspection in #(
12692   no) :
12693             found_introspection="no (disabled, use --enable-introspection to enable)"
12694      ;; #(
12695       yes) :
12696             if test -n "$PKG_CONFIG" && \
12697     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12698   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12699   ac_status=$?
12700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12701   test $ac_status = 0; }; then
12702   :
12703 else
12704   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12705 fi
12706         if test -n "$PKG_CONFIG" && \
12707     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12708   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12709   ac_status=$?
12710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711   test $ac_status = 0; }; then
12712   found_introspection=yes
12713 else
12714   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12715 fi
12716      ;; #(
12717       auto) :
12718             if test -n "$PKG_CONFIG" && \
12719     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12720   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12721   ac_status=$?
12722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12723   test $ac_status = 0; }; then
12724   found_introspection=yes
12725 else
12726   found_introspection=no
12727 fi
12728      ;; #(
12729   *) :
12730                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12731      ;;
12732 esac
12733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12734 $as_echo "$found_introspection" >&6; }
12735
12736     INTROSPECTION_SCANNER=
12737     INTROSPECTION_COMPILER=
12738     INTROSPECTION_GENERATE=
12739     INTROSPECTION_GIRDIR=
12740     INTROSPECTION_TYPELIBDIR=
12741     if test "x$found_introspection" = "xyes"; then
12742        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12743        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12744        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12745        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12746        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12747        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12748        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12749        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12750     fi
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760      if test "x$found_introspection" = "xyes"; then
12761   HAVE_INTROSPECTION_TRUE=
12762   HAVE_INTROSPECTION_FALSE='#'
12763 else
12764   HAVE_INTROSPECTION_TRUE='#'
12765   HAVE_INTROSPECTION_FALSE=
12766 fi
12767
12768
12769
12770
12771 # vapigen
12772 have_vapigen=no
12773 if test "x$found_introspection" = "xyes"; then :
12774
12775               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether G-I is 1.36 or newer" >&5
12776 $as_echo_n "checking whether G-I is 1.36 or newer... " >&6; }
12777        VAPIGEN_MIN_VERSION=0.14
12778        if pkg-config --atleast-version=1.36.0 gobject-introspection-1.0; then :
12779
12780               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12781 $as_echo "yes" >&6; }
12782               VAPIGEN_MIN_VERSION=0.20
12783
12784 else
12785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787
12788 fi
12789        # Extract the first word of "vapigen", so it can be a program name with args.
12790 set dummy vapigen; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_path_VAPIGEN+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   case $VAPIGEN in
12797   [\\/]* | ?:[\\/]*)
12798   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12799   ;;
12800   *)
12801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806     for ac_exec_ext in '' $ac_executable_extensions; do
12807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813   done
12814 IFS=$as_save_IFS
12815
12816   ;;
12817 esac
12818 fi
12819 VAPIGEN=$ac_cv_path_VAPIGEN
12820 if test -n "$VAPIGEN"; then
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12822 $as_echo "$VAPIGEN" >&6; }
12823 else
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827
12828
12829   if test -z "$VAPIGEN"; then :
12830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12831 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12832 else
12833   if test -n "$VAPIGEN_MIN_VERSION"; then :
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION" >&5
12835 $as_echo_n "checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION... " >&6; }
12836          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
12837          as_arg_v1=$VAPIGEN_MIN_VERSION
12838 as_arg_v2="$am__vapigen_version"
12839 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12840 case $? in #(
12841   1) :
12842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; } ;; #(
12844   0) :
12845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12846 $as_echo "yes" >&6; } ;; #(
12847   2) :
12848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&5
12851 $as_echo "$as_me: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&2;}
12852             VAPIGEN=""
12853             ;; #(
12854   *) :
12855      ;;
12856 esac
12857 fi
12858 fi
12859
12860
12861
12862 fi
12863 if test "x$VAPIGEN" != "x"; then :
12864   have_vapigen=yes
12865 fi
12866  if test "x$VAPIGEN" != "x"; then
12867   HAVE_VAPIGEN_TRUE=
12868   HAVE_VAPIGEN_FALSE='#'
12869 else
12870   HAVE_VAPIGEN_TRUE='#'
12871   HAVE_VAPIGEN_FALSE=
12872 fi
12873
12874
12875 # Gtk-doc
12876
12877
12878
12879     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12880 set dummy gtkdoc-check; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12884   $as_echo_n "(cached) " >&6
12885 else
12886   case $GTKDOC_CHECK in
12887   [\\/]* | ?:[\\/]*)
12888   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12889   ;;
12890   *)
12891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894   IFS=$as_save_IFS
12895   test -z "$as_dir" && as_dir=.
12896     for ac_exec_ext in '' $ac_executable_extensions; do
12897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12898     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900     break 2
12901   fi
12902 done
12903   done
12904 IFS=$as_save_IFS
12905
12906   ;;
12907 esac
12908 fi
12909 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12910 if test -n "$GTKDOC_CHECK"; then
12911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12912 $as_echo "$GTKDOC_CHECK" >&6; }
12913 else
12914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916 fi
12917
12918
12919   for ac_prog in gtkdoc-rebase
12920 do
12921   # Extract the first word of "$ac_prog", so it can be a program name with args.
12922 set dummy $ac_prog; ac_word=$2
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924 $as_echo_n "checking for $ac_word... " >&6; }
12925 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   case $GTKDOC_REBASE in
12929   [\\/]* | ?:[\\/]*)
12930   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12931   ;;
12932   *)
12933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936   IFS=$as_save_IFS
12937   test -z "$as_dir" && as_dir=.
12938     for ac_exec_ext in '' $ac_executable_extensions; do
12939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12940     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942     break 2
12943   fi
12944 done
12945   done
12946 IFS=$as_save_IFS
12947
12948   ;;
12949 esac
12950 fi
12951 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12952 if test -n "$GTKDOC_REBASE"; then
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12954 $as_echo "$GTKDOC_REBASE" >&6; }
12955 else
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12958 fi
12959
12960
12961   test -n "$GTKDOC_REBASE" && break
12962 done
12963 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12964
12965   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12966 set dummy gtkdoc-mkpdf; ac_word=$2
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968 $as_echo_n "checking for $ac_word... " >&6; }
12969 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   case $GTKDOC_MKPDF in
12973   [\\/]* | ?:[\\/]*)
12974   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12975   ;;
12976   *)
12977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12979 do
12980   IFS=$as_save_IFS
12981   test -z "$as_dir" && as_dir=.
12982     for ac_exec_ext in '' $ac_executable_extensions; do
12983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12984     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986     break 2
12987   fi
12988 done
12989   done
12990 IFS=$as_save_IFS
12991
12992   ;;
12993 esac
12994 fi
12995 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12996 if test -n "$GTKDOC_MKPDF"; then
12997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12998 $as_echo "$GTKDOC_MKPDF" >&6; }
12999 else
13000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 fi
13003
13004
13005
13006
13007 # Check whether --with-html-dir was given.
13008 if test "${with_html_dir+set}" = set; then :
13009   withval=$with_html_dir;
13010 else
13011   with_html_dir='${datadir}/gtk-doc/html'
13012 fi
13013
13014   HTML_DIR="$with_html_dir"
13015
13016
13017     # Check whether --enable-gtk-doc was given.
13018 if test "${enable_gtk_doc+set}" = set; then :
13019   enableval=$enable_gtk_doc;
13020 else
13021   enable_gtk_doc=no
13022 fi
13023
13024
13025   if test x$enable_gtk_doc = xyes; then
13026     if test -n "$PKG_CONFIG" && \
13027     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.14\""; } >&5
13028   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.14") 2>&5
13029   ac_status=$?
13030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13031   test $ac_status = 0; }; then
13032   :
13033 else
13034   as_fn_error $? "You need to have gtk-doc >= 1.14 installed to build $PACKAGE_NAME" "$LINENO" 5
13035 fi
13036         if test "x$PACKAGE_NAME" != "xglib"; then
13037
13038 pkg_failed=no
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13040 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13041
13042 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13043     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13044  elif test -n "$PKG_CONFIG"; then
13045     if test -n "$PKG_CONFIG" && \
13046     { { $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
13047   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13048   ac_status=$?
13049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050   test $ac_status = 0; }; then
13051   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13052                       test "x$?" != "x0" && pkg_failed=yes
13053 else
13054   pkg_failed=yes
13055 fi
13056  else
13057     pkg_failed=untried
13058 fi
13059 if test -n "$GTKDOC_DEPS_LIBS"; then
13060     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13061  elif test -n "$PKG_CONFIG"; then
13062     if test -n "$PKG_CONFIG" && \
13063     { { $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
13064   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13065   ac_status=$?
13066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13067   test $ac_status = 0; }; then
13068   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13069                       test "x$?" != "x0" && pkg_failed=yes
13070 else
13071   pkg_failed=yes
13072 fi
13073  else
13074     pkg_failed=untried
13075 fi
13076
13077
13078
13079 if test $pkg_failed = yes; then
13080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082
13083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13084         _pkg_short_errors_supported=yes
13085 else
13086         _pkg_short_errors_supported=no
13087 fi
13088         if test $_pkg_short_errors_supported = yes; then
13089                 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`
13090         else
13091                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13092         fi
13093         # Put the nasty error message in config.log where it belongs
13094         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13095
13096         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13097
13098 $GTKDOC_DEPS_PKG_ERRORS
13099
13100 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13101 installed software in a non-standard prefix.
13102
13103 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13104 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13105 See the pkg-config man page for more details." "$LINENO" 5
13106 elif test $pkg_failed = untried; then
13107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13109         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13111 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13112 is in your PATH or set the PKG_CONFIG environment variable to the full
13113 path to pkg-config.
13114
13115 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13116 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13117 See the pkg-config man page for more details.
13118
13119 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13120 See \`config.log' for more details" "$LINENO" 5; }
13121 else
13122         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13123         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13125 $as_echo "yes" >&6; }
13126
13127 fi
13128     fi
13129   fi
13130
13131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13132 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13134 $as_echo "$enable_gtk_doc" >&6; }
13135
13136     # Check whether --enable-gtk-doc-html was given.
13137 if test "${enable_gtk_doc_html+set}" = set; then :
13138   enableval=$enable_gtk_doc_html;
13139 else
13140   enable_gtk_doc_html=yes
13141 fi
13142
13143     # Check whether --enable-gtk-doc-pdf was given.
13144 if test "${enable_gtk_doc_pdf+set}" = set; then :
13145   enableval=$enable_gtk_doc_pdf;
13146 else
13147   enable_gtk_doc_pdf=no
13148 fi
13149
13150
13151   if test -z "$GTKDOC_MKPDF"; then
13152     enable_gtk_doc_pdf=no
13153   fi
13154
13155
13156    if test x$enable_gtk_doc = xyes; then
13157   ENABLE_GTK_DOC_TRUE=
13158   ENABLE_GTK_DOC_FALSE='#'
13159 else
13160   ENABLE_GTK_DOC_TRUE='#'
13161   ENABLE_GTK_DOC_FALSE=
13162 fi
13163
13164    if test x$enable_gtk_doc_html = xyes; then
13165   GTK_DOC_BUILD_HTML_TRUE=
13166   GTK_DOC_BUILD_HTML_FALSE='#'
13167 else
13168   GTK_DOC_BUILD_HTML_TRUE='#'
13169   GTK_DOC_BUILD_HTML_FALSE=
13170 fi
13171
13172    if test x$enable_gtk_doc_pdf = xyes; then
13173   GTK_DOC_BUILD_PDF_TRUE=
13174   GTK_DOC_BUILD_PDF_FALSE='#'
13175 else
13176   GTK_DOC_BUILD_PDF_TRUE='#'
13177   GTK_DOC_BUILD_PDF_FALSE=
13178 fi
13179
13180    if test -n "$LIBTOOL"; then
13181   GTK_DOC_USE_LIBTOOL_TRUE=
13182   GTK_DOC_USE_LIBTOOL_FALSE='#'
13183 else
13184   GTK_DOC_USE_LIBTOOL_TRUE='#'
13185   GTK_DOC_USE_LIBTOOL_FALSE=
13186 fi
13187
13188    if test -n "$GTKDOC_REBASE"; then
13189   GTK_DOC_USE_REBASE_TRUE=
13190   GTK_DOC_USE_REBASE_FALSE='#'
13191 else
13192   GTK_DOC_USE_REBASE_TRUE='#'
13193   GTK_DOC_USE_REBASE_FALSE=
13194 fi
13195
13196
13197
13198 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"
13199
13200 cat >confcache <<\_ACEOF
13201 # This file is a shell script that caches the results of configure
13202 # tests run on this system so they can be shared between configure
13203 # scripts and configure runs, see configure's option --config-cache.
13204 # It is not useful on other systems.  If it contains results you don't
13205 # want to keep, you may remove or edit it.
13206 #
13207 # config.status only pays attention to the cache file if you give it
13208 # the --recheck option to rerun configure.
13209 #
13210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13212 # following values.
13213
13214 _ACEOF
13215
13216 # The following way of writing the cache mishandles newlines in values,
13217 # but we know of no workaround that is simple, portable, and efficient.
13218 # So, we kill variables containing newlines.
13219 # Ultrix sh set writes to stderr and can't be redirected directly,
13220 # and sets the high bit in the cache file unless we assign to the vars.
13221 (
13222   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13223     eval ac_val=\$$ac_var
13224     case $ac_val in #(
13225     *${as_nl}*)
13226       case $ac_var in #(
13227       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13229       esac
13230       case $ac_var in #(
13231       _ | IFS | as_nl) ;; #(
13232       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13233       *) { eval $ac_var=; unset $ac_var;} ;;
13234       esac ;;
13235     esac
13236   done
13237
13238   (set) 2>&1 |
13239     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13240     *${as_nl}ac_space=\ *)
13241       # `set' does not quote correctly, so add quotes: double-quote
13242       # substitution turns \\\\ into \\, and sed turns \\ into \.
13243       sed -n \
13244         "s/'/'\\\\''/g;
13245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13246       ;; #(
13247     *)
13248       # `set' quotes correctly as required by POSIX, so do not add quotes.
13249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13250       ;;
13251     esac |
13252     sort
13253 ) |
13254   sed '
13255      /^ac_cv_env_/b end
13256      t clear
13257      :clear
13258      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13259      t end
13260      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13261      :end' >>confcache
13262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13263   if test -w "$cache_file"; then
13264     if test "x$cache_file" != "x/dev/null"; then
13265       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13266 $as_echo "$as_me: updating cache $cache_file" >&6;}
13267       if test ! -f "$cache_file" || test -h "$cache_file"; then
13268         cat confcache >"$cache_file"
13269       else
13270         case $cache_file in #(
13271         */* | ?:*)
13272           mv -f confcache "$cache_file"$$ &&
13273           mv -f "$cache_file"$$ "$cache_file" ;; #(
13274         *)
13275           mv -f confcache "$cache_file" ;;
13276         esac
13277       fi
13278     fi
13279   else
13280     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13282   fi
13283 fi
13284 rm -f confcache
13285
13286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13287 # Let make expand exec_prefix.
13288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13289
13290 DEFS=-DHAVE_CONFIG_H
13291
13292 ac_libobjs=
13293 ac_ltlibobjs=
13294 U=
13295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13296   # 1. Remove the extension, and $U if already installed.
13297   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13298   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13299   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13300   #    will be set to the directory where LIBOBJS objects are built.
13301   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13302   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13303 done
13304 LIBOBJS=$ac_libobjs
13305
13306 LTLIBOBJS=$ac_ltlibobjs
13307
13308
13309  if test -n "$EXEEXT"; then
13310   am__EXEEXT_TRUE=
13311   am__EXEEXT_FALSE='#'
13312 else
13313   am__EXEEXT_TRUE='#'
13314   am__EXEEXT_FALSE=
13315 fi
13316
13317 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13318   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13320 fi
13321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13322   as_fn_error $? "conditional \"AMDEP\" was never defined.
13323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13324 fi
13325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13326   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13328 fi
13329 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
13330   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
13331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13332 fi
13333 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
13334   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
13335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13336 fi
13337 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
13338   as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
13339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13340 fi
13341 if test -z "${USE_CONNMAN_TRUE}" && test -z "${USE_CONNMAN_FALSE}"; then
13342   as_fn_error $? "conditional \"USE_CONNMAN\" was never defined.
13343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13344 fi
13345 if test -z "${USE_NETLINK_TRUE}" && test -z "${USE_NETLINK_FALSE}"; then
13346   as_fn_error $? "conditional \"USE_NETLINK\" was never defined.
13347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13348 fi
13349 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13350   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13352 fi
13353 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13354   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13356 fi
13357 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13358   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13360 fi
13361 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13362   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13364 fi
13365 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13366   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13368 fi
13369 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13370   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13372 fi
13373 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13374   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13376 fi
13377
13378 : "${CONFIG_STATUS=./config.status}"
13379 ac_write_fail=0
13380 ac_clean_files_save=$ac_clean_files
13381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13383 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13384 as_write_fail=0
13385 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13386 #! $SHELL
13387 # Generated by $as_me.
13388 # Run this file to recreate the current configuration.
13389 # Compiler output produced by configure, useful for debugging
13390 # configure, is in config.log if it exists.
13391
13392 debug=false
13393 ac_cs_recheck=false
13394 ac_cs_silent=false
13395
13396 SHELL=\${CONFIG_SHELL-$SHELL}
13397 export SHELL
13398 _ASEOF
13399 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13400 ## -------------------- ##
13401 ## M4sh Initialization. ##
13402 ## -------------------- ##
13403
13404 # Be more Bourne compatible
13405 DUALCASE=1; export DUALCASE # for MKS sh
13406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13407   emulate sh
13408   NULLCMD=:
13409   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13410   # is contrary to our usage.  Disable this feature.
13411   alias -g '${1+"$@"}'='"$@"'
13412   setopt NO_GLOB_SUBST
13413 else
13414   case `(set -o) 2>/dev/null` in #(
13415   *posix*) :
13416     set -o posix ;; #(
13417   *) :
13418      ;;
13419 esac
13420 fi
13421
13422
13423 as_nl='
13424 '
13425 export as_nl
13426 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13427 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13430 # Prefer a ksh shell builtin over an external printf program on Solaris,
13431 # but without wasting forks for bash or zsh.
13432 if test -z "$BASH_VERSION$ZSH_VERSION" \
13433     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13434   as_echo='print -r --'
13435   as_echo_n='print -rn --'
13436 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13437   as_echo='printf %s\n'
13438   as_echo_n='printf %s'
13439 else
13440   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13441     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13442     as_echo_n='/usr/ucb/echo -n'
13443   else
13444     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13445     as_echo_n_body='eval
13446       arg=$1;
13447       case $arg in #(
13448       *"$as_nl"*)
13449         expr "X$arg" : "X\\(.*\\)$as_nl";
13450         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13451       esac;
13452       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13453     '
13454     export as_echo_n_body
13455     as_echo_n='sh -c $as_echo_n_body as_echo'
13456   fi
13457   export as_echo_body
13458   as_echo='sh -c $as_echo_body as_echo'
13459 fi
13460
13461 # The user is always right.
13462 if test "${PATH_SEPARATOR+set}" != set; then
13463   PATH_SEPARATOR=:
13464   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13465     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13466       PATH_SEPARATOR=';'
13467   }
13468 fi
13469
13470
13471 # IFS
13472 # We need space, tab and new line, in precisely that order.  Quoting is
13473 # there to prevent editors from complaining about space-tab.
13474 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13475 # splitting by setting IFS to empty value.)
13476 IFS=" ""        $as_nl"
13477
13478 # Find who we are.  Look in the path if we contain no directory separator.
13479 as_myself=
13480 case $0 in #((
13481   *[\\/]* ) as_myself=$0 ;;
13482   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485   IFS=$as_save_IFS
13486   test -z "$as_dir" && as_dir=.
13487     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13488   done
13489 IFS=$as_save_IFS
13490
13491      ;;
13492 esac
13493 # We did not find ourselves, most probably we were run as `sh COMMAND'
13494 # in which case we are not to be found in the path.
13495 if test "x$as_myself" = x; then
13496   as_myself=$0
13497 fi
13498 if test ! -f "$as_myself"; then
13499   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13500   exit 1
13501 fi
13502
13503 # Unset variables that we do not need and which cause bugs (e.g. in
13504 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13505 # suppresses any "Segmentation fault" message there.  '((' could
13506 # trigger a bug in pdksh 5.2.14.
13507 for as_var in BASH_ENV ENV MAIL MAILPATH
13508 do eval test x\${$as_var+set} = xset \
13509   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13510 done
13511 PS1='$ '
13512 PS2='> '
13513 PS4='+ '
13514
13515 # NLS nuisances.
13516 LC_ALL=C
13517 export LC_ALL
13518 LANGUAGE=C
13519 export LANGUAGE
13520
13521 # CDPATH.
13522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13523
13524
13525 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13526 # ----------------------------------------
13527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13529 # script with STATUS, using 1 if that was 0.
13530 as_fn_error ()
13531 {
13532   as_status=$1; test $as_status -eq 0 && as_status=1
13533   if test "$4"; then
13534     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13535     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13536   fi
13537   $as_echo "$as_me: error: $2" >&2
13538   as_fn_exit $as_status
13539 } # as_fn_error
13540
13541
13542 # as_fn_set_status STATUS
13543 # -----------------------
13544 # Set $? to STATUS, without forking.
13545 as_fn_set_status ()
13546 {
13547   return $1
13548 } # as_fn_set_status
13549
13550 # as_fn_exit STATUS
13551 # -----------------
13552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13553 as_fn_exit ()
13554 {
13555   set +e
13556   as_fn_set_status $1
13557   exit $1
13558 } # as_fn_exit
13559
13560 # as_fn_unset VAR
13561 # ---------------
13562 # Portably unset VAR.
13563 as_fn_unset ()
13564 {
13565   { eval $1=; unset $1;}
13566 }
13567 as_unset=as_fn_unset
13568 # as_fn_append VAR VALUE
13569 # ----------------------
13570 # Append the text in VALUE to the end of the definition contained in VAR. Take
13571 # advantage of any shell optimizations that allow amortized linear growth over
13572 # repeated appends, instead of the typical quadratic growth present in naive
13573 # implementations.
13574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13575   eval 'as_fn_append ()
13576   {
13577     eval $1+=\$2
13578   }'
13579 else
13580   as_fn_append ()
13581   {
13582     eval $1=\$$1\$2
13583   }
13584 fi # as_fn_append
13585
13586 # as_fn_arith ARG...
13587 # ------------------
13588 # Perform arithmetic evaluation on the ARGs, and store the result in the
13589 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13590 # must be portable across $(()) and expr.
13591 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13592   eval 'as_fn_arith ()
13593   {
13594     as_val=$(( $* ))
13595   }'
13596 else
13597   as_fn_arith ()
13598   {
13599     as_val=`expr "$@" || test $? -eq 1`
13600   }
13601 fi # as_fn_arith
13602
13603
13604 if expr a : '\(a\)' >/dev/null 2>&1 &&
13605    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13606   as_expr=expr
13607 else
13608   as_expr=false
13609 fi
13610
13611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13612   as_basename=basename
13613 else
13614   as_basename=false
13615 fi
13616
13617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13618   as_dirname=dirname
13619 else
13620   as_dirname=false
13621 fi
13622
13623 as_me=`$as_basename -- "$0" ||
13624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13625          X"$0" : 'X\(//\)$' \| \
13626          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13627 $as_echo X/"$0" |
13628     sed '/^.*\/\([^/][^/]*\)\/*$/{
13629             s//\1/
13630             q
13631           }
13632           /^X\/\(\/\/\)$/{
13633             s//\1/
13634             q
13635           }
13636           /^X\/\(\/\).*/{
13637             s//\1/
13638             q
13639           }
13640           s/.*/./; q'`
13641
13642 # Avoid depending upon Character Ranges.
13643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13646 as_cr_digits='0123456789'
13647 as_cr_alnum=$as_cr_Letters$as_cr_digits
13648
13649 ECHO_C= ECHO_N= ECHO_T=
13650 case `echo -n x` in #(((((
13651 -n*)
13652   case `echo 'xy\c'` in
13653   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13654   xy)  ECHO_C='\c';;
13655   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13656        ECHO_T=' ';;
13657   esac;;
13658 *)
13659   ECHO_N='-n';;
13660 esac
13661
13662 rm -f conf$$ conf$$.exe conf$$.file
13663 if test -d conf$$.dir; then
13664   rm -f conf$$.dir/conf$$.file
13665 else
13666   rm -f conf$$.dir
13667   mkdir conf$$.dir 2>/dev/null
13668 fi
13669 if (echo >conf$$.file) 2>/dev/null; then
13670   if ln -s conf$$.file conf$$ 2>/dev/null; then
13671     as_ln_s='ln -s'
13672     # ... but there are two gotchas:
13673     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13674     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13675     # In both cases, we have to default to `cp -pR'.
13676     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13677       as_ln_s='cp -pR'
13678   elif ln conf$$.file conf$$ 2>/dev/null; then
13679     as_ln_s=ln
13680   else
13681     as_ln_s='cp -pR'
13682   fi
13683 else
13684   as_ln_s='cp -pR'
13685 fi
13686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13687 rmdir conf$$.dir 2>/dev/null
13688
13689
13690 # as_fn_mkdir_p
13691 # -------------
13692 # Create "$as_dir" as a directory, including parents if necessary.
13693 as_fn_mkdir_p ()
13694 {
13695
13696   case $as_dir in #(
13697   -*) as_dir=./$as_dir;;
13698   esac
13699   test -d "$as_dir" || eval $as_mkdir_p || {
13700     as_dirs=
13701     while :; do
13702       case $as_dir in #(
13703       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13704       *) as_qdir=$as_dir;;
13705       esac
13706       as_dirs="'$as_qdir' $as_dirs"
13707       as_dir=`$as_dirname -- "$as_dir" ||
13708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13709          X"$as_dir" : 'X\(//\)[^/]' \| \
13710          X"$as_dir" : 'X\(//\)$' \| \
13711          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13712 $as_echo X"$as_dir" |
13713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13714             s//\1/
13715             q
13716           }
13717           /^X\(\/\/\)[^/].*/{
13718             s//\1/
13719             q
13720           }
13721           /^X\(\/\/\)$/{
13722             s//\1/
13723             q
13724           }
13725           /^X\(\/\).*/{
13726             s//\1/
13727             q
13728           }
13729           s/.*/./; q'`
13730       test -d "$as_dir" && break
13731     done
13732     test -z "$as_dirs" || eval "mkdir $as_dirs"
13733   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13734
13735
13736 } # as_fn_mkdir_p
13737 if mkdir -p . 2>/dev/null; then
13738   as_mkdir_p='mkdir -p "$as_dir"'
13739 else
13740   test -d ./-p && rmdir ./-p
13741   as_mkdir_p=false
13742 fi
13743
13744
13745 # as_fn_executable_p FILE
13746 # -----------------------
13747 # Test if FILE is an executable regular file.
13748 as_fn_executable_p ()
13749 {
13750   test -f "$1" && test -x "$1"
13751 } # as_fn_executable_p
13752 as_test_x='test -x'
13753 as_executable_p=as_fn_executable_p
13754
13755 # Sed expression to map a string onto a valid CPP name.
13756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13757
13758 # Sed expression to map a string onto a valid variable name.
13759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13760
13761
13762 exec 6>&1
13763 ## ----------------------------------- ##
13764 ## Main body of $CONFIG_STATUS script. ##
13765 ## ----------------------------------- ##
13766 _ASEOF
13767 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13768
13769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13770 # Save the log message, to keep $0 and so on meaningful, and to
13771 # report actual input values of CONFIG_FILES etc. instead of their
13772 # values after options handling.
13773 ac_log="
13774 This file was extended by gupnp $as_me 0.20.5, which was
13775 generated by GNU Autoconf 2.69.  Invocation command line was
13776
13777   CONFIG_FILES    = $CONFIG_FILES
13778   CONFIG_HEADERS  = $CONFIG_HEADERS
13779   CONFIG_LINKS    = $CONFIG_LINKS
13780   CONFIG_COMMANDS = $CONFIG_COMMANDS
13781   $ $0 $@
13782
13783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13784 "
13785
13786 _ACEOF
13787
13788 case $ac_config_files in *"
13789 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13790 esac
13791
13792 case $ac_config_headers in *"
13793 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13794 esac
13795
13796
13797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13798 # Files that config.status was made for.
13799 config_files="$ac_config_files"
13800 config_headers="$ac_config_headers"
13801 config_commands="$ac_config_commands"
13802
13803 _ACEOF
13804
13805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13806 ac_cs_usage="\
13807 \`$as_me' instantiates files and other configuration actions
13808 from templates according to the current configuration.  Unless the files
13809 and actions are specified as TAGs, all are instantiated by default.
13810
13811 Usage: $0 [OPTION]... [TAG]...
13812
13813   -h, --help       print this help, then exit
13814   -V, --version    print version number and configuration settings, then exit
13815       --config     print configuration, then exit
13816   -q, --quiet, --silent
13817                    do not print progress messages
13818   -d, --debug      don't remove temporary files
13819       --recheck    update $as_me by reconfiguring in the same conditions
13820       --file=FILE[:TEMPLATE]
13821                    instantiate the configuration file FILE
13822       --header=FILE[:TEMPLATE]
13823                    instantiate the configuration header FILE
13824
13825 Configuration files:
13826 $config_files
13827
13828 Configuration headers:
13829 $config_headers
13830
13831 Configuration commands:
13832 $config_commands
13833
13834 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
13835 gupnp home page: <http://www.gupnp.org/>."
13836
13837 _ACEOF
13838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13840 ac_cs_version="\\
13841 gupnp config.status 0.20.5
13842 configured by $0, generated by GNU Autoconf 2.69,
13843   with options \\"\$ac_cs_config\\"
13844
13845 Copyright (C) 2012 Free Software Foundation, Inc.
13846 This config.status script is free software; the Free Software Foundation
13847 gives unlimited permission to copy, distribute and modify it."
13848
13849 ac_pwd='$ac_pwd'
13850 srcdir='$srcdir'
13851 INSTALL='$INSTALL'
13852 MKDIR_P='$MKDIR_P'
13853 AWK='$AWK'
13854 test -n "\$AWK" || AWK=awk
13855 _ACEOF
13856
13857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13858 # The default lists apply if the user does not specify any file.
13859 ac_need_defaults=:
13860 while test $# != 0
13861 do
13862   case $1 in
13863   --*=?*)
13864     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13865     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13866     ac_shift=:
13867     ;;
13868   --*=)
13869     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13870     ac_optarg=
13871     ac_shift=:
13872     ;;
13873   *)
13874     ac_option=$1
13875     ac_optarg=$2
13876     ac_shift=shift
13877     ;;
13878   esac
13879
13880   case $ac_option in
13881   # Handling of the options.
13882   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13883     ac_cs_recheck=: ;;
13884   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13885     $as_echo "$ac_cs_version"; exit ;;
13886   --config | --confi | --conf | --con | --co | --c )
13887     $as_echo "$ac_cs_config"; exit ;;
13888   --debug | --debu | --deb | --de | --d | -d )
13889     debug=: ;;
13890   --file | --fil | --fi | --f )
13891     $ac_shift
13892     case $ac_optarg in
13893     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13894     '') as_fn_error $? "missing file argument" ;;
13895     esac
13896     as_fn_append CONFIG_FILES " '$ac_optarg'"
13897     ac_need_defaults=false;;
13898   --header | --heade | --head | --hea )
13899     $ac_shift
13900     case $ac_optarg in
13901     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13902     esac
13903     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13904     ac_need_defaults=false;;
13905   --he | --h)
13906     # Conflict between --help and --header
13907     as_fn_error $? "ambiguous option: \`$1'
13908 Try \`$0 --help' for more information.";;
13909   --help | --hel | -h )
13910     $as_echo "$ac_cs_usage"; exit ;;
13911   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13912   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13913     ac_cs_silent=: ;;
13914
13915   # This is an error.
13916   -*) as_fn_error $? "unrecognized option: \`$1'
13917 Try \`$0 --help' for more information." ;;
13918
13919   *) as_fn_append ac_config_targets " $1"
13920      ac_need_defaults=false ;;
13921
13922   esac
13923   shift
13924 done
13925
13926 ac_configure_extra_args=
13927
13928 if $ac_cs_silent; then
13929   exec 6>/dev/null
13930   ac_configure_extra_args="$ac_configure_extra_args --silent"
13931 fi
13932
13933 _ACEOF
13934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13935 if \$ac_cs_recheck; then
13936   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13937   shift
13938   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13939   CONFIG_SHELL='$SHELL'
13940   export CONFIG_SHELL
13941   exec "\$@"
13942 fi
13943
13944 _ACEOF
13945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13946 exec 5>>config.log
13947 {
13948   echo
13949   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13950 ## Running $as_me. ##
13951 _ASBOX
13952   $as_echo "$ac_log"
13953 } >&5
13954
13955 _ACEOF
13956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13957 #
13958 # INIT-COMMANDS
13959 #
13960 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13961
13962
13963 # The HP-UX ksh and POSIX shell print the target directory to stdout
13964 # if CDPATH is set.
13965 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13966
13967 sed_quote_subst='$sed_quote_subst'
13968 double_quote_subst='$double_quote_subst'
13969 delay_variable_subst='$delay_variable_subst'
13970 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13971 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13972 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13973 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13974 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13975 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13976 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13977 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13978 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13979 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13980 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13981 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13982 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13983 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13984 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13985 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13986 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13987 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13988 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13989 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13990 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13991 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13992 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13993 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13994 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13995 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13996 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13997 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13998 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13999 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14000 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14001 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14002 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14003 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14004 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14005 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14006 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14007 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14008 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14009 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14010 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14011 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14012 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14013 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14014 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14015 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14016 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14017 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14018 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14019 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14020 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14021 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14022 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14023 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14024 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14025 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14026 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"`'
14027 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14028 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14029 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14030 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14031 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14032 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14033 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14034 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14035 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14036 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14037 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14038 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14039 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14040 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14041 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14042 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14043 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14044 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14045 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14046 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14047 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14048 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14049 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14050 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14051 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14052 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14053 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14054 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14055 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14056 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14057 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14058 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14059 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14060 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14061 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14062 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14063 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14064 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14065 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14066 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14067 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14068 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14069 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14070 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14071 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14072 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14073 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14074 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14075 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14076 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14077 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14078 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14079 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14080 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14081 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14082 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14083 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14084 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14085 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14086 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14087 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14088 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14089 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14090 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14091 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14092 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14093 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14094 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14095 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14096 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14097 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14098 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14099 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14100
14101 LTCC='$LTCC'
14102 LTCFLAGS='$LTCFLAGS'
14103 compiler='$compiler_DEFAULT'
14104
14105 # A function that is used when there is no print builtin or printf.
14106 func_fallback_echo ()
14107 {
14108   eval 'cat <<_LTECHO_EOF
14109 \$1
14110 _LTECHO_EOF'
14111 }
14112
14113 # Quote evaled strings.
14114 for var in SHELL \
14115 ECHO \
14116 PATH_SEPARATOR \
14117 SED \
14118 GREP \
14119 EGREP \
14120 FGREP \
14121 LD \
14122 NM \
14123 LN_S \
14124 lt_SP2NL \
14125 lt_NL2SP \
14126 reload_flag \
14127 OBJDUMP \
14128 deplibs_check_method \
14129 file_magic_cmd \
14130 file_magic_glob \
14131 want_nocaseglob \
14132 DLLTOOL \
14133 sharedlib_from_linklib_cmd \
14134 AR \
14135 AR_FLAGS \
14136 archiver_list_spec \
14137 STRIP \
14138 RANLIB \
14139 CC \
14140 CFLAGS \
14141 compiler \
14142 lt_cv_sys_global_symbol_pipe \
14143 lt_cv_sys_global_symbol_to_cdecl \
14144 lt_cv_sys_global_symbol_to_c_name_address \
14145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14146 nm_file_list_spec \
14147 lt_prog_compiler_no_builtin_flag \
14148 lt_prog_compiler_pic \
14149 lt_prog_compiler_wl \
14150 lt_prog_compiler_static \
14151 lt_cv_prog_compiler_c_o \
14152 need_locks \
14153 MANIFEST_TOOL \
14154 DSYMUTIL \
14155 NMEDIT \
14156 LIPO \
14157 OTOOL \
14158 OTOOL64 \
14159 shrext_cmds \
14160 export_dynamic_flag_spec \
14161 whole_archive_flag_spec \
14162 compiler_needs_object \
14163 with_gnu_ld \
14164 allow_undefined_flag \
14165 no_undefined_flag \
14166 hardcode_libdir_flag_spec \
14167 hardcode_libdir_separator \
14168 exclude_expsyms \
14169 include_expsyms \
14170 file_list_spec \
14171 variables_saved_for_relink \
14172 libname_spec \
14173 library_names_spec \
14174 soname_spec \
14175 install_override_mode \
14176 finish_eval \
14177 old_striplib \
14178 striplib; do
14179     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14180     *[\\\\\\\`\\"\\\$]*)
14181       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14182       ;;
14183     *)
14184       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14185       ;;
14186     esac
14187 done
14188
14189 # Double-quote double-evaled strings.
14190 for var in reload_cmds \
14191 old_postinstall_cmds \
14192 old_postuninstall_cmds \
14193 old_archive_cmds \
14194 extract_expsyms_cmds \
14195 old_archive_from_new_cmds \
14196 old_archive_from_expsyms_cmds \
14197 archive_cmds \
14198 archive_expsym_cmds \
14199 module_cmds \
14200 module_expsym_cmds \
14201 export_symbols_cmds \
14202 prelink_cmds \
14203 postlink_cmds \
14204 postinstall_cmds \
14205 postuninstall_cmds \
14206 finish_cmds \
14207 sys_lib_search_path_spec \
14208 sys_lib_dlsearch_path_spec; do
14209     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14210     *[\\\\\\\`\\"\\\$]*)
14211       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14212       ;;
14213     *)
14214       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14215       ;;
14216     esac
14217 done
14218
14219 ac_aux_dir='$ac_aux_dir'
14220 xsi_shell='$xsi_shell'
14221 lt_shell_append='$lt_shell_append'
14222
14223 # See if we are running on zsh, and set the options which allow our
14224 # commands through without removal of \ escapes INIT.
14225 if test -n "\${ZSH_VERSION+set}" ; then
14226    setopt NO_GLOB_SUBST
14227 fi
14228
14229
14230     PACKAGE='$PACKAGE'
14231     VERSION='$VERSION'
14232     TIMESTAMP='$TIMESTAMP'
14233     RM='$RM'
14234     ofile='$ofile'
14235
14236
14237
14238
14239 _ACEOF
14240
14241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242
14243 # Handling of arguments.
14244 for ac_config_target in $ac_config_targets
14245 do
14246   case $ac_config_target in
14247     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14248     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14249     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14250     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14251     "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
14252     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14253     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14254     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14255     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14256     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14257     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14258     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14259     "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
14260     "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
14261
14262   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14263   esac
14264 done
14265
14266
14267 # If the user did not use the arguments to specify the items to instantiate,
14268 # then the envvar interface is used.  Set only those that are not.
14269 # We use the long form for the default assignment because of an extremely
14270 # bizarre bug on SunOS 4.1.3.
14271 if $ac_need_defaults; then
14272   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14273   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14274   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14275 fi
14276
14277 # Have a temporary directory for convenience.  Make it in the build tree
14278 # simply because there is no reason against having it here, and in addition,
14279 # creating and moving files from /tmp can sometimes cause problems.
14280 # Hook for its removal unless debugging.
14281 # Note that there is a small window in which the directory will not be cleaned:
14282 # after its creation but before its name has been assigned to `$tmp'.
14283 $debug ||
14284 {
14285   tmp= ac_tmp=
14286   trap 'exit_status=$?
14287   : "${ac_tmp:=$tmp}"
14288   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14289 ' 0
14290   trap 'as_fn_exit 1' 1 2 13 15
14291 }
14292 # Create a (secure) tmp directory for tmp files.
14293
14294 {
14295   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14296   test -d "$tmp"
14297 }  ||
14298 {
14299   tmp=./conf$$-$RANDOM
14300   (umask 077 && mkdir "$tmp")
14301 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14302 ac_tmp=$tmp
14303
14304 # Set up the scripts for CONFIG_FILES section.
14305 # No need to generate them if there are no CONFIG_FILES.
14306 # This happens for instance with `./config.status config.h'.
14307 if test -n "$CONFIG_FILES"; then
14308
14309
14310 ac_cr=`echo X | tr X '\015'`
14311 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14312 # But we know of no other shell where ac_cr would be empty at this
14313 # point, so we can use a bashism as a fallback.
14314 if test "x$ac_cr" = x; then
14315   eval ac_cr=\$\'\\r\'
14316 fi
14317 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14318 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14319   ac_cs_awk_cr='\\r'
14320 else
14321   ac_cs_awk_cr=$ac_cr
14322 fi
14323
14324 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14325 _ACEOF
14326
14327
14328 {
14329   echo "cat >conf$$subs.awk <<_ACEOF" &&
14330   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14331   echo "_ACEOF"
14332 } >conf$$subs.sh ||
14333   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14334 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14335 ac_delim='%!_!# '
14336 for ac_last_try in false false false false false :; do
14337   . ./conf$$subs.sh ||
14338     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14339
14340   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14341   if test $ac_delim_n = $ac_delim_num; then
14342     break
14343   elif $ac_last_try; then
14344     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14345   else
14346     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14347   fi
14348 done
14349 rm -f conf$$subs.sh
14350
14351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14352 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14353 _ACEOF
14354 sed -n '
14355 h
14356 s/^/S["/; s/!.*/"]=/
14357 p
14358 g
14359 s/^[^!]*!//
14360 :repl
14361 t repl
14362 s/'"$ac_delim"'$//
14363 t delim
14364 :nl
14365 h
14366 s/\(.\{148\}\)..*/\1/
14367 t more1
14368 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14369 p
14370 n
14371 b repl
14372 :more1
14373 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14374 p
14375 g
14376 s/.\{148\}//
14377 t nl
14378 :delim
14379 h
14380 s/\(.\{148\}\)..*/\1/
14381 t more2
14382 s/["\\]/\\&/g; s/^/"/; s/$/"/
14383 p
14384 b
14385 :more2
14386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14387 p
14388 g
14389 s/.\{148\}//
14390 t delim
14391 ' <conf$$subs.awk | sed '
14392 /^[^""]/{
14393   N
14394   s/\n//
14395 }
14396 ' >>$CONFIG_STATUS || ac_write_fail=1
14397 rm -f conf$$subs.awk
14398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14399 _ACAWK
14400 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14401   for (key in S) S_is_set[key] = 1
14402   FS = "\a"
14403
14404 }
14405 {
14406   line = $ 0
14407   nfields = split(line, field, "@")
14408   substed = 0
14409   len = length(field[1])
14410   for (i = 2; i < nfields; i++) {
14411     key = field[i]
14412     keylen = length(key)
14413     if (S_is_set[key]) {
14414       value = S[key]
14415       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14416       len += length(value) + length(field[++i])
14417       substed = 1
14418     } else
14419       len += 1 + keylen
14420   }
14421
14422   print line
14423 }
14424
14425 _ACAWK
14426 _ACEOF
14427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14428 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14429   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14430 else
14431   cat
14432 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14433   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14434 _ACEOF
14435
14436 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14437 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14438 # trailing colons and then remove the whole line if VPATH becomes empty
14439 # (actually we leave an empty line to preserve line numbers).
14440 if test "x$srcdir" = x.; then
14441   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14442 h
14443 s///
14444 s/^/:/
14445 s/[      ]*$/:/
14446 s/:\$(srcdir):/:/g
14447 s/:\${srcdir}:/:/g
14448 s/:@srcdir@:/:/g
14449 s/^:*//
14450 s/:*$//
14451 x
14452 s/\(=[   ]*\).*/\1/
14453 G
14454 s/\n//
14455 s/^[^=]*=[       ]*$//
14456 }'
14457 fi
14458
14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 fi # test -n "$CONFIG_FILES"
14461
14462 # Set up the scripts for CONFIG_HEADERS section.
14463 # No need to generate them if there are no CONFIG_HEADERS.
14464 # This happens for instance with `./config.status Makefile'.
14465 if test -n "$CONFIG_HEADERS"; then
14466 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14467 BEGIN {
14468 _ACEOF
14469
14470 # Transform confdefs.h into an awk script `defines.awk', embedded as
14471 # here-document in config.status, that substitutes the proper values into
14472 # config.h.in to produce config.h.
14473
14474 # Create a delimiter string that does not exist in confdefs.h, to ease
14475 # handling of long lines.
14476 ac_delim='%!_!# '
14477 for ac_last_try in false false :; do
14478   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14479   if test -z "$ac_tt"; then
14480     break
14481   elif $ac_last_try; then
14482     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14483   else
14484     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14485   fi
14486 done
14487
14488 # For the awk script, D is an array of macro values keyed by name,
14489 # likewise P contains macro parameters if any.  Preserve backslash
14490 # newline sequences.
14491
14492 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14493 sed -n '
14494 s/.\{148\}/&'"$ac_delim"'/g
14495 t rset
14496 :rset
14497 s/^[     ]*#[    ]*define[       ][      ]*/ /
14498 t def
14499 d
14500 :def
14501 s/\\$//
14502 t bsnl
14503 s/["\\]/\\&/g
14504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14505 D["\1"]=" \3"/p
14506 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14507 d
14508 :bsnl
14509 s/["\\]/\\&/g
14510 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14511 D["\1"]=" \3\\\\\\n"\\/p
14512 t cont
14513 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14514 t cont
14515 d
14516 :cont
14517 n
14518 s/.\{148\}/&'"$ac_delim"'/g
14519 t clear
14520 :clear
14521 s/\\$//
14522 t bsnlc
14523 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14524 d
14525 :bsnlc
14526 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14527 b cont
14528 ' <confdefs.h | sed '
14529 s/'"$ac_delim"'/"\\\
14530 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14531
14532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14533   for (key in D) D_is_set[key] = 1
14534   FS = "\a"
14535 }
14536 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14537   line = \$ 0
14538   split(line, arg, " ")
14539   if (arg[1] == "#") {
14540     defundef = arg[2]
14541     mac1 = arg[3]
14542   } else {
14543     defundef = substr(arg[1], 2)
14544     mac1 = arg[2]
14545   }
14546   split(mac1, mac2, "(") #)
14547   macro = mac2[1]
14548   prefix = substr(line, 1, index(line, defundef) - 1)
14549   if (D_is_set[macro]) {
14550     # Preserve the white space surrounding the "#".
14551     print prefix "define", macro P[macro] D[macro]
14552     next
14553   } else {
14554     # Replace #undef with comments.  This is necessary, for example,
14555     # in the case of _POSIX_SOURCE, which is predefined and required
14556     # on some systems where configure will not decide to define it.
14557     if (defundef == "undef") {
14558       print "/*", prefix defundef, macro, "*/"
14559       next
14560     }
14561   }
14562 }
14563 { print }
14564 _ACAWK
14565 _ACEOF
14566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14567   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14568 fi # test -n "$CONFIG_HEADERS"
14569
14570
14571 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14572 shift
14573 for ac_tag
14574 do
14575   case $ac_tag in
14576   :[FHLC]) ac_mode=$ac_tag; continue;;
14577   esac
14578   case $ac_mode$ac_tag in
14579   :[FHL]*:*);;
14580   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14581   :[FH]-) ac_tag=-:-;;
14582   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14583   esac
14584   ac_save_IFS=$IFS
14585   IFS=:
14586   set x $ac_tag
14587   IFS=$ac_save_IFS
14588   shift
14589   ac_file=$1
14590   shift
14591
14592   case $ac_mode in
14593   :L) ac_source=$1;;
14594   :[FH])
14595     ac_file_inputs=
14596     for ac_f
14597     do
14598       case $ac_f in
14599       -) ac_f="$ac_tmp/stdin";;
14600       *) # Look for the file first in the build tree, then in the source tree
14601          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14602          # because $ac_f cannot contain `:'.
14603          test -f "$ac_f" ||
14604            case $ac_f in
14605            [\\/$]*) false;;
14606            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14607            esac ||
14608            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14609       esac
14610       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14611       as_fn_append ac_file_inputs " '$ac_f'"
14612     done
14613
14614     # Let's still pretend it is `configure' which instantiates (i.e., don't
14615     # use $as_me), people would be surprised to read:
14616     #    /* config.h.  Generated by config.status.  */
14617     configure_input='Generated from '`
14618           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14619         `' by configure.'
14620     if test x"$ac_file" != x-; then
14621       configure_input="$ac_file.  $configure_input"
14622       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14623 $as_echo "$as_me: creating $ac_file" >&6;}
14624     fi
14625     # Neutralize special characters interpreted by sed in replacement strings.
14626     case $configure_input in #(
14627     *\&* | *\|* | *\\* )
14628        ac_sed_conf_input=`$as_echo "$configure_input" |
14629        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14630     *) ac_sed_conf_input=$configure_input;;
14631     esac
14632
14633     case $ac_tag in
14634     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14635       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14636     esac
14637     ;;
14638   esac
14639
14640   ac_dir=`$as_dirname -- "$ac_file" ||
14641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14642          X"$ac_file" : 'X\(//\)[^/]' \| \
14643          X"$ac_file" : 'X\(//\)$' \| \
14644          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14645 $as_echo X"$ac_file" |
14646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14647             s//\1/
14648             q
14649           }
14650           /^X\(\/\/\)[^/].*/{
14651             s//\1/
14652             q
14653           }
14654           /^X\(\/\/\)$/{
14655             s//\1/
14656             q
14657           }
14658           /^X\(\/\).*/{
14659             s//\1/
14660             q
14661           }
14662           s/.*/./; q'`
14663   as_dir="$ac_dir"; as_fn_mkdir_p
14664   ac_builddir=.
14665
14666 case "$ac_dir" in
14667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14668 *)
14669   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14670   # A ".." for each directory in $ac_dir_suffix.
14671   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14672   case $ac_top_builddir_sub in
14673   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14674   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14675   esac ;;
14676 esac
14677 ac_abs_top_builddir=$ac_pwd
14678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14679 # for backward compatibility:
14680 ac_top_builddir=$ac_top_build_prefix
14681
14682 case $srcdir in
14683   .)  # We are building in place.
14684     ac_srcdir=.
14685     ac_top_srcdir=$ac_top_builddir_sub
14686     ac_abs_top_srcdir=$ac_pwd ;;
14687   [\\/]* | ?:[\\/]* )  # Absolute name.
14688     ac_srcdir=$srcdir$ac_dir_suffix;
14689     ac_top_srcdir=$srcdir
14690     ac_abs_top_srcdir=$srcdir ;;
14691   *) # Relative name.
14692     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14693     ac_top_srcdir=$ac_top_build_prefix$srcdir
14694     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14695 esac
14696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14697
14698
14699   case $ac_mode in
14700   :F)
14701   #
14702   # CONFIG_FILE
14703   #
14704
14705   case $INSTALL in
14706   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14707   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14708   esac
14709   ac_MKDIR_P=$MKDIR_P
14710   case $MKDIR_P in
14711   [\\/$]* | ?:[\\/]* ) ;;
14712   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14713   esac
14714 _ACEOF
14715
14716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14717 # If the template does not know about datarootdir, expand it.
14718 # FIXME: This hack should be removed a few years after 2.60.
14719 ac_datarootdir_hack=; ac_datarootdir_seen=
14720 ac_sed_dataroot='
14721 /datarootdir/ {
14722   p
14723   q
14724 }
14725 /@datadir@/p
14726 /@docdir@/p
14727 /@infodir@/p
14728 /@localedir@/p
14729 /@mandir@/p'
14730 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14731 *datarootdir*) ac_datarootdir_seen=yes;;
14732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14733   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14734 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14735 _ACEOF
14736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14737   ac_datarootdir_hack='
14738   s&@datadir@&$datadir&g
14739   s&@docdir@&$docdir&g
14740   s&@infodir@&$infodir&g
14741   s&@localedir@&$localedir&g
14742   s&@mandir@&$mandir&g
14743   s&\\\${datarootdir}&$datarootdir&g' ;;
14744 esac
14745 _ACEOF
14746
14747 # Neutralize VPATH when `$srcdir' = `.'.
14748 # Shell code in configure.ac might set extrasub.
14749 # FIXME: do we really want to maintain this feature?
14750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14751 ac_sed_extra="$ac_vpsub
14752 $extrasub
14753 _ACEOF
14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755 :t
14756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14757 s|@configure_input@|$ac_sed_conf_input|;t t
14758 s&@top_builddir@&$ac_top_builddir_sub&;t t
14759 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14760 s&@srcdir@&$ac_srcdir&;t t
14761 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14762 s&@top_srcdir@&$ac_top_srcdir&;t t
14763 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14764 s&@builddir@&$ac_builddir&;t t
14765 s&@abs_builddir@&$ac_abs_builddir&;t t
14766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14767 s&@INSTALL@&$ac_INSTALL&;t t
14768 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14769 $ac_datarootdir_hack
14770 "
14771 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14772   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14773
14774 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14775   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14776   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14777       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14778   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14779 which seems to be undefined.  Please make sure it is defined" >&5
14780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14781 which seems to be undefined.  Please make sure it is defined" >&2;}
14782
14783   rm -f "$ac_tmp/stdin"
14784   case $ac_file in
14785   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14786   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14787   esac \
14788   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14789  ;;
14790   :H)
14791   #
14792   # CONFIG_HEADER
14793   #
14794   if test x"$ac_file" != x-; then
14795     {
14796       $as_echo "/* $configure_input  */" \
14797       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14798     } >"$ac_tmp/config.h" \
14799       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14800     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14801       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14803     else
14804       rm -f "$ac_file"
14805       mv "$ac_tmp/config.h" "$ac_file" \
14806         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14807     fi
14808   else
14809     $as_echo "/* $configure_input  */" \
14810       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14811       || as_fn_error $? "could not create -" "$LINENO" 5
14812   fi
14813 # Compute "$ac_file"'s index in $config_headers.
14814 _am_arg="$ac_file"
14815 _am_stamp_count=1
14816 for _am_header in $config_headers :; do
14817   case $_am_header in
14818     $_am_arg | $_am_arg:* )
14819       break ;;
14820     * )
14821       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14822   esac
14823 done
14824 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14825 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826          X"$_am_arg" : 'X\(//\)[^/]' \| \
14827          X"$_am_arg" : 'X\(//\)$' \| \
14828          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14829 $as_echo X"$_am_arg" |
14830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831             s//\1/
14832             q
14833           }
14834           /^X\(\/\/\)[^/].*/{
14835             s//\1/
14836             q
14837           }
14838           /^X\(\/\/\)$/{
14839             s//\1/
14840             q
14841           }
14842           /^X\(\/\).*/{
14843             s//\1/
14844             q
14845           }
14846           s/.*/./; q'`/stamp-h$_am_stamp_count
14847  ;;
14848
14849   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14850 $as_echo "$as_me: executing $ac_file commands" >&6;}
14851  ;;
14852   esac
14853
14854
14855   case $ac_file$ac_mode in
14856     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14857   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14858   # are listed without --file.  Let's play safe and only enable the eval
14859   # if we detect the quoting.
14860   case $CONFIG_FILES in
14861   *\'*) eval set x "$CONFIG_FILES" ;;
14862   *)   set x $CONFIG_FILES ;;
14863   esac
14864   shift
14865   for mf
14866   do
14867     # Strip MF so we end up with the name of the file.
14868     mf=`echo "$mf" | sed -e 's/:.*$//'`
14869     # Check whether this is an Automake generated Makefile or not.
14870     # We used to match only the files named `Makefile.in', but
14871     # some people rename them; so instead we look at the file content.
14872     # Grep'ing the first line is not enough: some people post-process
14873     # each Makefile.in and add a new line on top of each file to say so.
14874     # Grep'ing the whole file is not good either: AIX grep has a line
14875     # limit of 2048, but all sed's we know have understand at least 4000.
14876     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14877       dirpart=`$as_dirname -- "$mf" ||
14878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14879          X"$mf" : 'X\(//\)[^/]' \| \
14880          X"$mf" : 'X\(//\)$' \| \
14881          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14882 $as_echo X"$mf" |
14883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14884             s//\1/
14885             q
14886           }
14887           /^X\(\/\/\)[^/].*/{
14888             s//\1/
14889             q
14890           }
14891           /^X\(\/\/\)$/{
14892             s//\1/
14893             q
14894           }
14895           /^X\(\/\).*/{
14896             s//\1/
14897             q
14898           }
14899           s/.*/./; q'`
14900     else
14901       continue
14902     fi
14903     # Extract the definition of DEPDIR, am__include, and am__quote
14904     # from the Makefile without running `make'.
14905     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14906     test -z "$DEPDIR" && continue
14907     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14908     test -z "am__include" && continue
14909     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14910     # When using ansi2knr, U may be empty or an underscore; expand it
14911     U=`sed -n 's/^U = //p' < "$mf"`
14912     # Find all dependency output files, they are included files with
14913     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14914     # simplest approach to changing $(DEPDIR) to its actual value in the
14915     # expansion.
14916     for file in `sed -n "
14917       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14918          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14919       # Make sure the directory exists.
14920       test -f "$dirpart/$file" && continue
14921       fdir=`$as_dirname -- "$file" ||
14922 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14923          X"$file" : 'X\(//\)[^/]' \| \
14924          X"$file" : 'X\(//\)$' \| \
14925          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14926 $as_echo X"$file" |
14927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14928             s//\1/
14929             q
14930           }
14931           /^X\(\/\/\)[^/].*/{
14932             s//\1/
14933             q
14934           }
14935           /^X\(\/\/\)$/{
14936             s//\1/
14937             q
14938           }
14939           /^X\(\/\).*/{
14940             s//\1/
14941             q
14942           }
14943           s/.*/./; q'`
14944       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14945       # echo "creating $dirpart/$file"
14946       echo '# dummy' > "$dirpart/$file"
14947     done
14948   done
14949 }
14950  ;;
14951     "libtool":C)
14952
14953     # See if we are running on zsh, and set the options which allow our
14954     # commands through without removal of \ escapes.
14955     if test -n "${ZSH_VERSION+set}" ; then
14956       setopt NO_GLOB_SUBST
14957     fi
14958
14959     cfgfile="${ofile}T"
14960     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14961     $RM "$cfgfile"
14962
14963     cat <<_LT_EOF >> "$cfgfile"
14964 #! $SHELL
14965
14966 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14967 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14969 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14970 #
14971 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14972 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14973 #                 Foundation, Inc.
14974 #   Written by Gordon Matzigkeit, 1996
14975 #
14976 #   This file is part of GNU Libtool.
14977 #
14978 # GNU Libtool is free software; you can redistribute it and/or
14979 # modify it under the terms of the GNU General Public License as
14980 # published by the Free Software Foundation; either version 2 of
14981 # the License, or (at your option) any later version.
14982 #
14983 # As a special exception to the GNU General Public License,
14984 # if you distribute this file as part of a program or library that
14985 # is built using GNU Libtool, you may include this file under the
14986 # same distribution terms that you use for the rest of that program.
14987 #
14988 # GNU Libtool is distributed in the hope that it will be useful,
14989 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14990 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14991 # GNU General Public License for more details.
14992 #
14993 # You should have received a copy of the GNU General Public License
14994 # along with GNU Libtool; see the file COPYING.  If not, a copy
14995 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14996 # obtained by writing to the Free Software Foundation, Inc.,
14997 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14998
14999
15000 # The names of the tagged configurations supported by this script.
15001 available_tags=""
15002
15003 # ### BEGIN LIBTOOL CONFIG
15004
15005 # Which release of libtool.m4 was used?
15006 macro_version=$macro_version
15007 macro_revision=$macro_revision
15008
15009 # Whether or not to build shared libraries.
15010 build_libtool_libs=$enable_shared
15011
15012 # Whether or not to build static libraries.
15013 build_old_libs=$enable_static
15014
15015 # What type of objects to build.
15016 pic_mode=$pic_mode
15017
15018 # Whether or not to optimize for fast installation.
15019 fast_install=$enable_fast_install
15020
15021 # Shell to use when invoking shell scripts.
15022 SHELL=$lt_SHELL
15023
15024 # An echo program that protects backslashes.
15025 ECHO=$lt_ECHO
15026
15027 # The PATH separator for the build system.
15028 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15029
15030 # The host system.
15031 host_alias=$host_alias
15032 host=$host
15033 host_os=$host_os
15034
15035 # The build system.
15036 build_alias=$build_alias
15037 build=$build
15038 build_os=$build_os
15039
15040 # A sed program that does not truncate output.
15041 SED=$lt_SED
15042
15043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15044 Xsed="\$SED -e 1s/^X//"
15045
15046 # A grep program that handles long lines.
15047 GREP=$lt_GREP
15048
15049 # An ERE matcher.
15050 EGREP=$lt_EGREP
15051
15052 # A literal string matcher.
15053 FGREP=$lt_FGREP
15054
15055 # A BSD- or MS-compatible name lister.
15056 NM=$lt_NM
15057
15058 # Whether we need soft or hard links.
15059 LN_S=$lt_LN_S
15060
15061 # What is the maximum length of a command?
15062 max_cmd_len=$max_cmd_len
15063
15064 # Object file suffix (normally "o").
15065 objext=$ac_objext
15066
15067 # Executable file suffix (normally "").
15068 exeext=$exeext
15069
15070 # whether the shell understands "unset".
15071 lt_unset=$lt_unset
15072
15073 # turn spaces into newlines.
15074 SP2NL=$lt_lt_SP2NL
15075
15076 # turn newlines into spaces.
15077 NL2SP=$lt_lt_NL2SP
15078
15079 # convert \$build file names to \$host format.
15080 to_host_file_cmd=$lt_cv_to_host_file_cmd
15081
15082 # convert \$build files to toolchain format.
15083 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15084
15085 # An object symbol dumper.
15086 OBJDUMP=$lt_OBJDUMP
15087
15088 # Method to check whether dependent libraries are shared objects.
15089 deplibs_check_method=$lt_deplibs_check_method
15090
15091 # Command to use when deplibs_check_method = "file_magic".
15092 file_magic_cmd=$lt_file_magic_cmd
15093
15094 # How to find potential files when deplibs_check_method = "file_magic".
15095 file_magic_glob=$lt_file_magic_glob
15096
15097 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15098 want_nocaseglob=$lt_want_nocaseglob
15099
15100 # DLL creation program.
15101 DLLTOOL=$lt_DLLTOOL
15102
15103 # Command to associate shared and link libraries.
15104 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15105
15106 # The archiver.
15107 AR=$lt_AR
15108
15109 # Flags to create an archive.
15110 AR_FLAGS=$lt_AR_FLAGS
15111
15112 # How to feed a file listing to the archiver.
15113 archiver_list_spec=$lt_archiver_list_spec
15114
15115 # A symbol stripping program.
15116 STRIP=$lt_STRIP
15117
15118 # Commands used to install an old-style archive.
15119 RANLIB=$lt_RANLIB
15120 old_postinstall_cmds=$lt_old_postinstall_cmds
15121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15122
15123 # Whether to use a lock for old archive extraction.
15124 lock_old_archive_extraction=$lock_old_archive_extraction
15125
15126 # A C compiler.
15127 LTCC=$lt_CC
15128
15129 # LTCC compiler flags.
15130 LTCFLAGS=$lt_CFLAGS
15131
15132 # Take the output of nm and produce a listing of raw symbols and C names.
15133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15134
15135 # Transform the output of nm in a proper C declaration.
15136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15137
15138 # Transform the output of nm in a C name address pair.
15139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15140
15141 # Transform the output of nm in a C name address pair when lib prefix is needed.
15142 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15143
15144 # Specify filename containing input files for \$NM.
15145 nm_file_list_spec=$lt_nm_file_list_spec
15146
15147 # The root where to search for dependent libraries,and in which our libraries should be installed.
15148 lt_sysroot=$lt_sysroot
15149
15150 # The name of the directory that contains temporary libtool files.
15151 objdir=$objdir
15152
15153 # Used to examine libraries when file_magic_cmd begins with "file".
15154 MAGIC_CMD=$MAGIC_CMD
15155
15156 # Must we lock files when doing compilation?
15157 need_locks=$lt_need_locks
15158
15159 # Manifest tool.
15160 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15161
15162 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15163 DSYMUTIL=$lt_DSYMUTIL
15164
15165 # Tool to change global to local symbols on Mac OS X.
15166 NMEDIT=$lt_NMEDIT
15167
15168 # Tool to manipulate fat objects and archives on Mac OS X.
15169 LIPO=$lt_LIPO
15170
15171 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15172 OTOOL=$lt_OTOOL
15173
15174 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15175 OTOOL64=$lt_OTOOL64
15176
15177 # Old archive suffix (normally "a").
15178 libext=$libext
15179
15180 # Shared library suffix (normally ".so").
15181 shrext_cmds=$lt_shrext_cmds
15182
15183 # The commands to extract the exported symbol list from a shared archive.
15184 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15185
15186 # Variables whose values should be saved in libtool wrapper scripts and
15187 # restored at link time.
15188 variables_saved_for_relink=$lt_variables_saved_for_relink
15189
15190 # Do we need the "lib" prefix for modules?
15191 need_lib_prefix=$need_lib_prefix
15192
15193 # Do we need a version for libraries?
15194 need_version=$need_version
15195
15196 # Library versioning type.
15197 version_type=$version_type
15198
15199 # Shared library runtime path variable.
15200 runpath_var=$runpath_var
15201
15202 # Shared library path variable.
15203 shlibpath_var=$shlibpath_var
15204
15205 # Is shlibpath searched before the hard-coded library search path?
15206 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15207
15208 # Format of library name prefix.
15209 libname_spec=$lt_libname_spec
15210
15211 # List of archive names.  First name is the real one, the rest are links.
15212 # The last name is the one that the linker finds with -lNAME
15213 library_names_spec=$lt_library_names_spec
15214
15215 # The coded name of the library, if different from the real name.
15216 soname_spec=$lt_soname_spec
15217
15218 # Permission mode override for installation of shared libraries.
15219 install_override_mode=$lt_install_override_mode
15220
15221 # Command to use after installation of a shared archive.
15222 postinstall_cmds=$lt_postinstall_cmds
15223
15224 # Command to use after uninstallation of a shared archive.
15225 postuninstall_cmds=$lt_postuninstall_cmds
15226
15227 # Commands used to finish a libtool library installation in a directory.
15228 finish_cmds=$lt_finish_cmds
15229
15230 # As "finish_cmds", except a single script fragment to be evaled but
15231 # not shown.
15232 finish_eval=$lt_finish_eval
15233
15234 # Whether we should hardcode library paths into libraries.
15235 hardcode_into_libs=$hardcode_into_libs
15236
15237 # Compile-time system search path for libraries.
15238 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15239
15240 # Run-time system search path for libraries.
15241 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15242
15243 # Whether dlopen is supported.
15244 dlopen_support=$enable_dlopen
15245
15246 # Whether dlopen of programs is supported.
15247 dlopen_self=$enable_dlopen_self
15248
15249 # Whether dlopen of statically linked programs is supported.
15250 dlopen_self_static=$enable_dlopen_self_static
15251
15252 # Commands to strip libraries.
15253 old_striplib=$lt_old_striplib
15254 striplib=$lt_striplib
15255
15256
15257 # The linker used to build libraries.
15258 LD=$lt_LD
15259
15260 # How to create reloadable object files.
15261 reload_flag=$lt_reload_flag
15262 reload_cmds=$lt_reload_cmds
15263
15264 # Commands used to build an old-style archive.
15265 old_archive_cmds=$lt_old_archive_cmds
15266
15267 # A language specific compiler.
15268 CC=$lt_compiler
15269
15270 # Is the compiler the GNU compiler?
15271 with_gcc=$GCC
15272
15273 # Compiler flag to turn off builtin functions.
15274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15275
15276 # Additional compiler flags for building library objects.
15277 pic_flag=$lt_lt_prog_compiler_pic
15278
15279 # How to pass a linker flag through the compiler.
15280 wl=$lt_lt_prog_compiler_wl
15281
15282 # Compiler flag to prevent dynamic linking.
15283 link_static_flag=$lt_lt_prog_compiler_static
15284
15285 # Does compiler simultaneously support -c and -o options?
15286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15287
15288 # Whether or not to add -lc for building shared libraries.
15289 build_libtool_need_lc=$archive_cmds_need_lc
15290
15291 # Whether or not to disallow shared libs when runtime libs are static.
15292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15293
15294 # Compiler flag to allow reflexive dlopens.
15295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15296
15297 # Compiler flag to generate shared objects directly from archives.
15298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15299
15300 # Whether the compiler copes with passing no objects directly.
15301 compiler_needs_object=$lt_compiler_needs_object
15302
15303 # Create an old-style archive from a shared archive.
15304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15305
15306 # Create a temporary old-style archive to link instead of a shared archive.
15307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15308
15309 # Commands used to build a shared archive.
15310 archive_cmds=$lt_archive_cmds
15311 archive_expsym_cmds=$lt_archive_expsym_cmds
15312
15313 # Commands used to build a loadable module if different from building
15314 # a shared archive.
15315 module_cmds=$lt_module_cmds
15316 module_expsym_cmds=$lt_module_expsym_cmds
15317
15318 # Whether we are building with GNU ld or not.
15319 with_gnu_ld=$lt_with_gnu_ld
15320
15321 # Flag that allows shared libraries with undefined symbols to be built.
15322 allow_undefined_flag=$lt_allow_undefined_flag
15323
15324 # Flag that enforces no undefined symbols.
15325 no_undefined_flag=$lt_no_undefined_flag
15326
15327 # Flag to hardcode \$libdir into a binary during linking.
15328 # This must work even if \$libdir does not exist
15329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15330
15331 # Whether we need a single "-rpath" flag with a separated argument.
15332 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15333
15334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15335 # DIR into the resulting binary.
15336 hardcode_direct=$hardcode_direct
15337
15338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15339 # DIR into the resulting binary and the resulting library dependency is
15340 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15341 # library is relocated.
15342 hardcode_direct_absolute=$hardcode_direct_absolute
15343
15344 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15345 # into the resulting binary.
15346 hardcode_minus_L=$hardcode_minus_L
15347
15348 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15349 # into the resulting binary.
15350 hardcode_shlibpath_var=$hardcode_shlibpath_var
15351
15352 # Set to "yes" if building a shared library automatically hardcodes DIR
15353 # into the library and all subsequent libraries and executables linked
15354 # against it.
15355 hardcode_automatic=$hardcode_automatic
15356
15357 # Set to yes if linker adds runtime paths of dependent libraries
15358 # to runtime path list.
15359 inherit_rpath=$inherit_rpath
15360
15361 # Whether libtool must link a program against all its dependency libraries.
15362 link_all_deplibs=$link_all_deplibs
15363
15364 # Set to "yes" if exported symbols are required.
15365 always_export_symbols=$always_export_symbols
15366
15367 # The commands to list exported symbols.
15368 export_symbols_cmds=$lt_export_symbols_cmds
15369
15370 # Symbols that should not be listed in the preloaded symbols.
15371 exclude_expsyms=$lt_exclude_expsyms
15372
15373 # Symbols that must always be exported.
15374 include_expsyms=$lt_include_expsyms
15375
15376 # Commands necessary for linking programs (against libraries) with templates.
15377 prelink_cmds=$lt_prelink_cmds
15378
15379 # Commands necessary for finishing linking programs.
15380 postlink_cmds=$lt_postlink_cmds
15381
15382 # Specify filename containing input files.
15383 file_list_spec=$lt_file_list_spec
15384
15385 # How to hardcode a shared library path into an executable.
15386 hardcode_action=$hardcode_action
15387
15388 # ### END LIBTOOL CONFIG
15389
15390 _LT_EOF
15391
15392   case $host_os in
15393   aix3*)
15394     cat <<\_LT_EOF >> "$cfgfile"
15395 # AIX sometimes has problems with the GCC collect2 program.  For some
15396 # reason, if we set the COLLECT_NAMES environment variable, the problems
15397 # vanish in a puff of smoke.
15398 if test "X${COLLECT_NAMES+set}" != Xset; then
15399   COLLECT_NAMES=
15400   export COLLECT_NAMES
15401 fi
15402 _LT_EOF
15403     ;;
15404   esac
15405
15406
15407 ltmain="$ac_aux_dir/ltmain.sh"
15408
15409
15410   # We use sed instead of cat because bash on DJGPP gets confused if
15411   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15412   # text mode, it properly converts lines to CR/LF.  This bash problem
15413   # is reportedly fixed, but why not run on old versions too?
15414   sed '$q' "$ltmain" >> "$cfgfile" \
15415      || (rm -f "$cfgfile"; exit 1)
15416
15417   if test x"$xsi_shell" = xyes; then
15418   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15419 func_dirname ()\
15420 {\
15421 \    case ${1} in\
15422 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15423 \      *  ) func_dirname_result="${3}" ;;\
15424 \    esac\
15425 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15426   && mv -f "$cfgfile.tmp" "$cfgfile" \
15427     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15428 test 0 -eq $? || _lt_function_replace_fail=:
15429
15430
15431   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15432 func_basename ()\
15433 {\
15434 \    func_basename_result="${1##*/}"\
15435 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15436   && mv -f "$cfgfile.tmp" "$cfgfile" \
15437     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15438 test 0 -eq $? || _lt_function_replace_fail=:
15439
15440
15441   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15442 func_dirname_and_basename ()\
15443 {\
15444 \    case ${1} in\
15445 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15446 \      *  ) func_dirname_result="${3}" ;;\
15447 \    esac\
15448 \    func_basename_result="${1##*/}"\
15449 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15450   && mv -f "$cfgfile.tmp" "$cfgfile" \
15451     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15452 test 0 -eq $? || _lt_function_replace_fail=:
15453
15454
15455   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15456 func_stripname ()\
15457 {\
15458 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15459 \    # positional parameters, so assign one to ordinary parameter first.\
15460 \    func_stripname_result=${3}\
15461 \    func_stripname_result=${func_stripname_result#"${1}"}\
15462 \    func_stripname_result=${func_stripname_result%"${2}"}\
15463 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15464   && mv -f "$cfgfile.tmp" "$cfgfile" \
15465     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15466 test 0 -eq $? || _lt_function_replace_fail=:
15467
15468
15469   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15470 func_split_long_opt ()\
15471 {\
15472 \    func_split_long_opt_name=${1%%=*}\
15473 \    func_split_long_opt_arg=${1#*=}\
15474 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15475   && mv -f "$cfgfile.tmp" "$cfgfile" \
15476     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15477 test 0 -eq $? || _lt_function_replace_fail=:
15478
15479
15480   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15481 func_split_short_opt ()\
15482 {\
15483 \    func_split_short_opt_arg=${1#??}\
15484 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15485 } # Extended-shell func_split_short_opt 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_lo2o ()$/,/^} # func_lo2o /c\
15492 func_lo2o ()\
15493 {\
15494 \    case ${1} in\
15495 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15496 \      *)    func_lo2o_result=${1} ;;\
15497 \    esac\
15498 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15499   && mv -f "$cfgfile.tmp" "$cfgfile" \
15500     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15501 test 0 -eq $? || _lt_function_replace_fail=:
15502
15503
15504   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15505 func_xform ()\
15506 {\
15507     func_xform_result=${1%.*}.lo\
15508 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15509   && mv -f "$cfgfile.tmp" "$cfgfile" \
15510     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15511 test 0 -eq $? || _lt_function_replace_fail=:
15512
15513
15514   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15515 func_arith ()\
15516 {\
15517     func_arith_result=$(( $* ))\
15518 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15519   && mv -f "$cfgfile.tmp" "$cfgfile" \
15520     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15521 test 0 -eq $? || _lt_function_replace_fail=:
15522
15523
15524   sed -e '/^func_len ()$/,/^} # func_len /c\
15525 func_len ()\
15526 {\
15527     func_len_result=${#1}\
15528 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15529   && mv -f "$cfgfile.tmp" "$cfgfile" \
15530     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15531 test 0 -eq $? || _lt_function_replace_fail=:
15532
15533 fi
15534
15535 if test x"$lt_shell_append" = xyes; then
15536   sed -e '/^func_append ()$/,/^} # func_append /c\
15537 func_append ()\
15538 {\
15539     eval "${1}+=\\${2}"\
15540 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15541   && mv -f "$cfgfile.tmp" "$cfgfile" \
15542     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15543 test 0 -eq $? || _lt_function_replace_fail=:
15544
15545
15546   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15547 func_append_quoted ()\
15548 {\
15549 \    func_quote_for_eval "${2}"\
15550 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15551 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15552   && mv -f "$cfgfile.tmp" "$cfgfile" \
15553     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15554 test 0 -eq $? || _lt_function_replace_fail=:
15555
15556
15557   # Save a `func_append' function call where possible by direct use of '+='
15558   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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 else
15563   # Save a `func_append' function call even when '+=' is not available
15564   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15565     && mv -f "$cfgfile.tmp" "$cfgfile" \
15566       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15567   test 0 -eq $? || _lt_function_replace_fail=:
15568 fi
15569
15570 if test x"$_lt_function_replace_fail" = x":"; then
15571   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15572 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15573 fi
15574
15575
15576    mv -f "$cfgfile" "$ofile" ||
15577     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15578   chmod +x "$ofile"
15579
15580  ;;
15581
15582   esac
15583 done # for ac_tag
15584
15585
15586 as_fn_exit 0
15587 _ACEOF
15588 ac_clean_files=$ac_clean_files_save
15589
15590 test $ac_write_fail = 0 ||
15591   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15592
15593
15594 # configure is writing to config.log, and then calls config.status.
15595 # config.status does its own redirection, appending to config.log.
15596 # Unfortunately, on DOS this fails, as config.log is still kept open
15597 # by configure, so config.status won't be able to write to it; its
15598 # output is simply discarded.  So we exec the FD to /dev/null,
15599 # effectively closing config.log, so it can be properly (re)opened and
15600 # appended to by config.status.  When coming back to configure, we
15601 # need to make the FD available again.
15602 if test "$no_create" != yes; then
15603   ac_cs_success=:
15604   ac_config_status_args=
15605   test "$silent" = yes &&
15606     ac_config_status_args="$ac_config_status_args --quiet"
15607   exec 5>/dev/null
15608   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15609   exec 5>>config.log
15610   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15611   # would make configure fail if this is the last instruction.
15612   $ac_cs_success || as_fn_exit 1
15613 fi
15614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15617 fi
15618
15619
15620 echo "
15621     ${PACKAGE} ${VERSION}
15622     ---------------------
15623
15624     Prefix:                ${prefix}
15625     GObject-Introspection: ${found_introspection}
15626     VALA bindings:         ${have_vapigen}
15627     Context manager:       ${with_context_manager}
15628 "