Merge branch 'tizen' into mw
[sdk/emulator/libs/spice-server.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for spice 0.12.4.
4 #
5 # Report bugs to <spice-devel@lists.freedesktop.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: spice-devel@lists.freedesktop.org about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='spice'
592 PACKAGE_TARNAME='spice'
593 PACKAGE_VERSION='0.12.4'
594 PACKAGE_STRING='spice 0.12.4'
595 PACKAGE_BUGREPORT='spice-devel@lists.freedesktop.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 enable_option_checking=no
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 AM_BACKSLASH
640 AM_DEFAULT_VERBOSITY
641 AM_DEFAULT_V
642 AM_V
643 SPICEC_STATIC_LINKAGE_BSTATIC
644 SPICE_NONPKGCONFIG_LIBS
645 SPICE_NONPKGCONFIG_CFLAGS
646 SPICE_REQUIRES
647 HAVE_LD_VERSION_SCRIPT_FALSE
648 HAVE_LD_VERSION_SCRIPT_TRUE
649 VISIBILITY_HIDDEN_CFLAGS
650 CFLAGS_CFLAGS
651 WINDRES
652 CXIMAGE_CFLAGS
653 WARN_LDFLAGS
654 WARN_CFLAGS
655 WARN_CXXFLAGS
656 SASL_LIBS
657 SASL_CFLAGS
658 HAVE_SASL_FALSE
659 HAVE_SASL_TRUE
660 Z_LIBS
661 JPEG_LIBS
662 HAVE_XINERAMA_FALSE
663 HAVE_XINERAMA_TRUE
664 XINERAMA_LIBS
665 XINERAMA_CFLAGS
666 HAVE_XRANDR12_FALSE
667 HAVE_XRANDR12_TRUE
668 XRANDR12_LIBS
669 XRANDR12_CFLAGS
670 MISC_X_LIBS
671 MISC_X_CFLAGS
672 XFIXES_LIBS
673 XFIXES_CFLAGS
674 XRANDR_LIBS
675 XRANDR_CFLAGS
676 GL_LIBS
677 GL_CFLAGS
678 SSL_LIBS
679 SSL_CFLAGS
680 ALSA_LIBS
681 ALSA_CFLAGS
682 CELT051_LIBDIR
683 CELT051_LIBS
684 CELT051_CFLAGS
685 PIXMAN_LIBS
686 PIXMAN_CFLAGS
687 GLIB2_LIBS
688 GLIB2_CFLAGS
689 SMARTCARD_CFLAGS
690 SMARTCARD_LIBS
691 CAC_CARD_LIBS
692 CAC_CARD_CFLAGS
693 SLIRP_LIBS
694 SLIRP_CFLAGS
695 CEGUI_LIBS
696 CEGUI_CFLAGS
697 CEGUI06_LIBS
698 CEGUI06_CFLAGS
699 LIBRT
700 LIBM
701 COMMON_CFLAGS
702 subdirs
703 SUPPORT_AUTOMATED_TESTS_FALSE
704 SUPPORT_AUTOMATED_TESTS_TRUE
705 SUPPORT_CLIENT_FALSE
706 SUPPORT_CLIENT_TRUE
707 SUPPORT_SMARTCARD_FALSE
708 SUPPORT_SMARTCARD_TRUE
709 SUPPORT_GL_FALSE
710 SUPPORT_GL_TRUE
711 SUPPORT_GUI_FALSE
712 SUPPORT_GUI_TRUE
713 SUPPORT_TUNNEL_FALSE
714 SUPPORT_TUNNEL_TRUE
715 OS_LINUX_FALSE
716 OS_LINUX_TRUE
717 OS_UNIX_FALSE
718 OS_UNIX_TRUE
719 OS_WIN32_FALSE
720 OS_WIN32_TRUE
721 X86_64_FALSE
722 X86_64_TRUE
723 SPICE_LT_VERSION
724 ALLOCA
725 PKG_CONFIG_LIBDIR
726 PKG_CONFIG_PATH
727 PKG_CONFIG
728 PYTHON
729 CXXCPP
730 CPP
731 OTOOL64
732 OTOOL
733 LIPO
734 NMEDIT
735 DSYMUTIL
736 MANIFEST_TOOL
737 RANLIB
738 DLLTOOL
739 OBJDUMP
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 EGREP
747 GREP
748 SED
749 LIBTOOL
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 am__fastdepCXX_FALSE
759 am__fastdepCXX_TRUE
760 CXXDEPMODE
761 ac_ct_CXX
762 CXXFLAGS
763 CXX
764 MAINT
765 MAINTAINER_MODE_FALSE
766 MAINTAINER_MODE_TRUE
767 am__fastdepCC_FALSE
768 am__fastdepCC_TRUE
769 CCDEPMODE
770 am__nodep
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__quote
775 am__include
776 DEPDIR
777 am__untar
778 am__tar
779 AMTAR
780 am__leading_dot
781 SET_MAKE
782 AWK
783 mkdir_p
784 MKDIR_P
785 INSTALL_STRIP_PROGRAM
786 STRIP
787 install_sh
788 MAKEINFO
789 AUTOHEADER
790 AUTOMAKE
791 AUTOCONF
792 ACLOCAL
793 VERSION
794 PACKAGE
795 CYGPATH_W
796 am__isrc
797 INSTALL_DATA
798 INSTALL_SCRIPT
799 INSTALL_PROGRAM
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
806 CC
807 ac_ct_AR
808 AR
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 localstatedir
829 sharedstatedir
830 sysconfdir
831 datadir
832 datarootdir
833 libexecdir
834 sbindir
835 bindir
836 program_transform_name
837 prefix
838 exec_prefix
839 PACKAGE_URL
840 PACKAGE_BUGREPORT
841 PACKAGE_STRING
842 PACKAGE_VERSION
843 PACKAGE_TARNAME
844 PACKAGE_NAME
845 PATH_SEPARATOR
846 SHELL'
847 ac_subst_files=''
848 ac_user_opts='
849 enable_option_checking
850 enable_dependency_tracking
851 enable_maintainer_mode
852 enable_shared
853 enable_static
854 with_pic
855 enable_fast_install
856 with_gnu_ld
857 with_sysroot
858 enable_libtool_lock
859 enable_tunnel
860 enable_gui
861 enable_opengl
862 enable_smartcard
863 enable_client
864 enable_automated_tests
865 enable_xinerama
866 enable_static_linkage
867 with_sasl
868 enable_werror
869 enable_silent_rules
870 '
871       ac_precious_vars='build_alias
872 host_alias
873 target_alias
874 CC
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 CXX
880 CXXFLAGS
881 CCC
882 CPP
883 CXXCPP
884 PKG_CONFIG
885 PKG_CONFIG_PATH
886 PKG_CONFIG_LIBDIR
887 CEGUI06_CFLAGS
888 CEGUI06_LIBS
889 CEGUI_CFLAGS
890 CEGUI_LIBS
891 SLIRP_CFLAGS
892 SLIRP_LIBS
893 CAC_CARD_CFLAGS
894 CAC_CARD_LIBS
895 GLIB2_CFLAGS
896 GLIB2_LIBS
897 PIXMAN_CFLAGS
898 PIXMAN_LIBS
899 CELT051_CFLAGS
900 CELT051_LIBS
901 ALSA_CFLAGS
902 ALSA_LIBS
903 SSL_CFLAGS
904 SSL_LIBS
905 XRANDR_CFLAGS
906 XRANDR_LIBS
907 XFIXES_CFLAGS
908 XFIXES_LIBS
909 MISC_X_CFLAGS
910 MISC_X_LIBS
911 XRANDR12_CFLAGS
912 XRANDR12_LIBS
913 XINERAMA_CFLAGS
914 XINERAMA_LIBS'
915 ac_subdirs_all='spice-common'
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 ac_unrecognized_opts=
921 ac_unrecognized_sep=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
938
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969   # If the previous option needs an argument, assign it.
970   if test -n "$ac_prev"; then
971     eval $ac_prev=\$ac_option
972     ac_prev=
973     continue
974   fi
975
976   case $ac_option in
977   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978   *=)   ac_optarg= ;;
979   *)    ac_optarg=yes ;;
980   esac
981
982   # Accept the important Cygnus configure options, so we can diagnose typos.
983
984   case $ac_dashdash$ac_option in
985   --)
986     ac_dashdash=yes ;;
987
988   -bindir | --bindir | --bindi | --bind | --bin | --bi)
989     ac_prev=bindir ;;
990   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991     bindir=$ac_optarg ;;
992
993   -build | --build | --buil | --bui | --bu)
994     ac_prev=build_alias ;;
995   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996     build_alias=$ac_optarg ;;
997
998   -cache-file | --cache-file | --cache-fil | --cache-fi \
999   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000     ac_prev=cache_file ;;
1001   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003     cache_file=$ac_optarg ;;
1004
1005   --config-cache | -C)
1006     cache_file=config.cache ;;
1007
1008   -datadir | --datadir | --datadi | --datad)
1009     ac_prev=datadir ;;
1010   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011     datadir=$ac_optarg ;;
1012
1013   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014   | --dataroo | --dataro | --datar)
1015     ac_prev=datarootdir ;;
1016   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018     datarootdir=$ac_optarg ;;
1019
1020   -disable-* | --disable-*)
1021     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024       as_fn_error $? "invalid feature name: $ac_useropt"
1025     ac_useropt_orig=$ac_useropt
1026     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027     case $ac_user_opts in
1028       *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval enable_$ac_useropt=no ;;
1035
1036   -docdir | --docdir | --docdi | --doc | --do)
1037     ac_prev=docdir ;;
1038   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039     docdir=$ac_optarg ;;
1040
1041   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042     ac_prev=dvidir ;;
1043   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044     dvidir=$ac_optarg ;;
1045
1046   -enable-* | --enable-*)
1047     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050       as_fn_error $? "invalid feature name: $ac_useropt"
1051     ac_useropt_orig=$ac_useropt
1052     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053     case $ac_user_opts in
1054       *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058          ac_unrecognized_sep=', ';;
1059     esac
1060     eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064   | --exec | --exe | --ex)
1065     ac_prev=exec_prefix ;;
1066   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068   | --exec=* | --exe=* | --ex=*)
1069     exec_prefix=$ac_optarg ;;
1070
1071   -gas | --gas | --ga | --g)
1072     # Obsolete; use --with-gas.
1073     with_gas=yes ;;
1074
1075   -help | --help | --hel | --he | -h)
1076     ac_init_help=long ;;
1077   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078     ac_init_help=recursive ;;
1079   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080     ac_init_help=short ;;
1081
1082   -host | --host | --hos | --ho)
1083     ac_prev=host_alias ;;
1084   -host=* | --host=* | --hos=* | --ho=*)
1085     host_alias=$ac_optarg ;;
1086
1087   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088     ac_prev=htmldir ;;
1089   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090   | --ht=*)
1091     htmldir=$ac_optarg ;;
1092
1093   -includedir | --includedir | --includedi | --included | --include \
1094   | --includ | --inclu | --incl | --inc)
1095     ac_prev=includedir ;;
1096   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097   | --includ=* | --inclu=* | --incl=* | --inc=*)
1098     includedir=$ac_optarg ;;
1099
1100   -infodir | --infodir | --infodi | --infod | --info | --inf)
1101     ac_prev=infodir ;;
1102   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103     infodir=$ac_optarg ;;
1104
1105   -libdir | --libdir | --libdi | --libd)
1106     ac_prev=libdir ;;
1107   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108     libdir=$ac_optarg ;;
1109
1110   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111   | --libexe | --libex | --libe)
1112     ac_prev=libexecdir ;;
1113   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114   | --libexe=* | --libex=* | --libe=*)
1115     libexecdir=$ac_optarg ;;
1116
1117   -localedir | --localedir | --localedi | --localed | --locale)
1118     ac_prev=localedir ;;
1119   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120     localedir=$ac_optarg ;;
1121
1122   -localstatedir | --localstatedir | --localstatedi | --localstated \
1123   | --localstate | --localstat | --localsta | --localst | --locals)
1124     ac_prev=localstatedir ;;
1125   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127     localstatedir=$ac_optarg ;;
1128
1129   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130     ac_prev=mandir ;;
1131   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132     mandir=$ac_optarg ;;
1133
1134   -nfp | --nfp | --nf)
1135     # Obsolete; use --without-fp.
1136     with_fp=no ;;
1137
1138   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139   | --no-cr | --no-c | -n)
1140     no_create=yes ;;
1141
1142   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144     no_recursion=yes ;;
1145
1146   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148   | --oldin | --oldi | --old | --ol | --o)
1149     ac_prev=oldincludedir ;;
1150   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153     oldincludedir=$ac_optarg ;;
1154
1155   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156     ac_prev=prefix ;;
1157   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158     prefix=$ac_optarg ;;
1159
1160   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161   | --program-pre | --program-pr | --program-p)
1162     ac_prev=program_prefix ;;
1163   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165     program_prefix=$ac_optarg ;;
1166
1167   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168   | --program-suf | --program-su | --program-s)
1169     ac_prev=program_suffix ;;
1170   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172     program_suffix=$ac_optarg ;;
1173
1174   -program-transform-name | --program-transform-name \
1175   | --program-transform-nam | --program-transform-na \
1176   | --program-transform-n | --program-transform- \
1177   | --program-transform | --program-transfor \
1178   | --program-transfo | --program-transf \
1179   | --program-trans | --program-tran \
1180   | --progr-tra | --program-tr | --program-t)
1181     ac_prev=program_transform_name ;;
1182   -program-transform-name=* | --program-transform-name=* \
1183   | --program-transform-nam=* | --program-transform-na=* \
1184   | --program-transform-n=* | --program-transform-=* \
1185   | --program-transform=* | --program-transfor=* \
1186   | --program-transfo=* | --program-transf=* \
1187   | --program-trans=* | --program-tran=* \
1188   | --progr-tra=* | --program-tr=* | --program-t=*)
1189     program_transform_name=$ac_optarg ;;
1190
1191   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192     ac_prev=pdfdir ;;
1193   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194     pdfdir=$ac_optarg ;;
1195
1196   -psdir | --psdir | --psdi | --psd | --ps)
1197     ac_prev=psdir ;;
1198   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199     psdir=$ac_optarg ;;
1200
1201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202   | -silent | --silent | --silen | --sile | --sil)
1203     silent=yes ;;
1204
1205   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206     ac_prev=sbindir ;;
1207   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208   | --sbi=* | --sb=*)
1209     sbindir=$ac_optarg ;;
1210
1211   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213   | --sharedst | --shareds | --shared | --share | --shar \
1214   | --sha | --sh)
1215     ac_prev=sharedstatedir ;;
1216   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219   | --sha=* | --sh=*)
1220     sharedstatedir=$ac_optarg ;;
1221
1222   -site | --site | --sit)
1223     ac_prev=site ;;
1224   -site=* | --site=* | --sit=*)
1225     site=$ac_optarg ;;
1226
1227   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228     ac_prev=srcdir ;;
1229   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230     srcdir=$ac_optarg ;;
1231
1232   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233   | --syscon | --sysco | --sysc | --sys | --sy)
1234     ac_prev=sysconfdir ;;
1235   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237     sysconfdir=$ac_optarg ;;
1238
1239   -target | --target | --targe | --targ | --tar | --ta | --t)
1240     ac_prev=target_alias ;;
1241   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242     target_alias=$ac_optarg ;;
1243
1244   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245     verbose=yes ;;
1246
1247   -version | --version | --versio | --versi | --vers | -V)
1248     ac_init_version=: ;;
1249
1250   -with-* | --with-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=\$ac_optarg ;;
1265
1266   -without-* | --without-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1302     ;;
1303
1304   *=*)
1305     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306     # Reject names that are not valid shell variable names.
1307     case $ac_envvar in #(
1308       '' | [0-9]* | *[!_$as_cr_alnum]* )
1309       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310     esac
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   as_fn_error $? "missing argument to $ac_option"
1328 fi
1329
1330 if test -n "$ac_unrecognized_opts"; then
1331   case $enable_option_checking in
1332     no) ;;
1333     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335   esac
1336 fi
1337
1338 # Check all directory arguments for consistency.
1339 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340                 datadir sysconfdir sharedstatedir localstatedir includedir \
1341                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342                 libdir localedir mandir
1343 do
1344   eval ac_val=\$$ac_var
1345   # Remove trailing slashes.
1346   case $ac_val in
1347     */ )
1348       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349       eval $ac_var=\$ac_val;;
1350   esac
1351   # Be sure to have absolute directory names.
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370   elif test "x$build_alias" != "x$host_alias"; then
1371     cross_compiling=yes
1372   fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384   as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386   as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391   ac_srcdir_defaulted=yes
1392   # Try the directory containing this script, then the parent directory.
1393   ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395          X"$as_myself" : 'X\(//\)[^/]' \| \
1396          X"$as_myself" : 'X\(//\)$' \| \
1397          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)[^/].*/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\).*/{
1412             s//\1/
1413             q
1414           }
1415           s/.*/./; q'`
1416   srcdir=$ac_confdir
1417   if test ! -r "$srcdir/$ac_unique_file"; then
1418     srcdir=..
1419   fi
1420 else
1421   ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430         pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433   srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_env_${ac_var}_value=\$${ac_var}
1444   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452   # Omit some internal or obsolete options to make the list less imposing.
1453   # This message is too long to be a string in the A/UX 3.1 sh.
1454   cat <<_ACEOF
1455 \`configure' configures spice 0.12.4 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465   -h, --help              display this help and exit
1466       --help=short        display options specific to this package
1467       --help=recursive    display the short help of all the included packages
1468   -V, --version           display version information and exit
1469   -q, --quiet, --silent   do not print \`checking ...' messages
1470       --cache-file=FILE   cache test results in FILE [disabled]
1471   -C, --config-cache      alias for \`--cache-file=config.cache'
1472   -n, --no-create         do not create output files
1473       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475 Installation directories:
1476   --prefix=PREFIX         install architecture-independent files in PREFIX
1477                           [$ac_default_prefix]
1478   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                           [PREFIX]
1480
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489   --bindir=DIR            user executables [EPREFIX/bin]
1490   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491   --libexecdir=DIR        program executables [EPREFIX/libexec]
1492   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495   --libdir=DIR            object code libraries [EPREFIX/lib]
1496   --includedir=DIR        C header files [PREFIX/include]
1497   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500   --infodir=DIR           info documentation [DATAROOTDIR/info]
1501   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502   --mandir=DIR            man documentation [DATAROOTDIR/man]
1503   --docdir=DIR            documentation root [DATAROOTDIR/doc/spice]
1504   --htmldir=DIR           html documentation [DOCDIR]
1505   --dvidir=DIR            dvi documentation [DOCDIR]
1506   --pdfdir=DIR            pdf documentation [DOCDIR]
1507   --psdir=DIR             ps documentation [DOCDIR]
1508 _ACEOF
1509
1510   cat <<\_ACEOF
1511
1512 Program names:
1513   --program-prefix=PREFIX            prepend PREFIX to installed program names
1514   --program-suffix=SUFFIX            append SUFFIX to installed program names
1515   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of spice 0.12.4:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-option-checking  ignore unrecognized --enable/--with options
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-dependency-tracking
1534                           do not reject slow dependency extractors
1535   --disable-dependency-tracking
1536                           speeds up one-time build
1537   --enable-maintainer-mode
1538                           enable make rules and dependencies not useful (and
1539                           sometimes confusing) to the casual installer
1540   --enable-shared[=PKGS]  build shared libraries [default=yes]
1541   --enable-static[=PKGS]  build static libraries [default=yes]
1542   --enable-fast-install[=PKGS]
1543                           optimize for fast installation [default=yes]
1544   --disable-libtool-lock  avoid locking (might break parallel builds)
1545   --enable-tunnel         Enable network redirection
1546   --enable-gui         Enable start dialog with CEGUI
1547   --enable-opengl         Enable opengl requirement / support (not recommended)
1548   --enable-smartcard         Enable network redirection
1549   --enable-client         Enable spice client
1550   --enable-automated-tests     Enable automated tests using snappy (part of spice--gtk)
1551   --disable-xinerama      disable Xinerama library [default=no]
1552   --enable-static-linkage will generate spice client binary with static linkage to external libraries
1553   --enable-werror         Use -Werror (if supported)
1554   --enable-silent-rules   less verbose build output (undo: "make V=1")
1555   --disable-silent-rules  verbose build output (undo: "make V=0")
1556
1557 Optional Packages:
1558   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1559   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1560   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1561                           both]
1562   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563   --with-sysroot=DIR Search for dependent libraries within DIR
1564                         (or the compiler's sysroot if not specified).
1565   --with-sasl             use cyrus SASL for authentication [default=check]
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   CXX         C++ compiler command
1576   CXXFLAGS    C++ compiler flags
1577   CPP         C preprocessor
1578   CXXCPP      C++ preprocessor
1579   PKG_CONFIG  path to pkg-config utility
1580   PKG_CONFIG_PATH
1581               directories to add to pkg-config's search path
1582   PKG_CONFIG_LIBDIR
1583               path overriding pkg-config's built-in search path
1584   CEGUI06_CFLAGS
1585               C compiler flags for CEGUI06, overriding pkg-config
1586   CEGUI06_LIBS
1587               linker flags for CEGUI06, overriding pkg-config
1588   CEGUI_CFLAGS
1589               C compiler flags for CEGUI, overriding pkg-config
1590   CEGUI_LIBS  linker flags for CEGUI, overriding pkg-config
1591   SLIRP_CFLAGS
1592               C compiler flags for SLIRP, overriding pkg-config
1593   SLIRP_LIBS  linker flags for SLIRP, overriding pkg-config
1594   CAC_CARD_CFLAGS
1595               C compiler flags for CAC_CARD, overriding pkg-config
1596   CAC_CARD_LIBS
1597               linker flags for CAC_CARD, overriding pkg-config
1598   GLIB2_CFLAGS
1599               C compiler flags for GLIB2, overriding pkg-config
1600   GLIB2_LIBS  linker flags for GLIB2, overriding pkg-config
1601   PIXMAN_CFLAGS
1602               C compiler flags for PIXMAN, overriding pkg-config
1603   PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
1604   CELT051_CFLAGS
1605               C compiler flags for CELT051, overriding pkg-config
1606   CELT051_LIBS
1607               linker flags for CELT051, overriding pkg-config
1608   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1609   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1610   SSL_CFLAGS  C compiler flags for SSL, overriding pkg-config
1611   SSL_LIBS    linker flags for SSL, overriding pkg-config
1612   XRANDR_CFLAGS
1613               C compiler flags for XRANDR, overriding pkg-config
1614   XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1615   XFIXES_CFLAGS
1616               C compiler flags for XFIXES, overriding pkg-config
1617   XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1618   MISC_X_CFLAGS
1619               C compiler flags for MISC_X, overriding pkg-config
1620   MISC_X_LIBS linker flags for MISC_X, overriding pkg-config
1621   XRANDR12_CFLAGS
1622               C compiler flags for XRANDR12, overriding pkg-config
1623   XRANDR12_LIBS
1624               linker flags for XRANDR12, overriding pkg-config
1625   XINERAMA_CFLAGS
1626               C compiler flags for XINERAMA, overriding pkg-config
1627   XINERAMA_LIBS
1628               linker flags for XINERAMA, overriding pkg-config
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to <spice-devel@lists.freedesktop.org>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639   # If there are subdirs, report their specific --help.
1640   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641     test -d "$ac_dir" ||
1642       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643       continue
1644     ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650   # A ".." for each directory in $ac_dir_suffix.
1651   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652   case $ac_top_builddir_sub in
1653   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655   esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663   .)  # We are building in place.
1664     ac_srcdir=.
1665     ac_top_srcdir=$ac_top_builddir_sub
1666     ac_abs_top_srcdir=$ac_pwd ;;
1667   [\\/]* | ?:[\\/]* )  # Absolute name.
1668     ac_srcdir=$srcdir$ac_dir_suffix;
1669     ac_top_srcdir=$srcdir
1670     ac_abs_top_srcdir=$srcdir ;;
1671   *) # Relative name.
1672     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673     ac_top_srcdir=$ac_top_build_prefix$srcdir
1674     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678     cd "$ac_dir" || { ac_status=$?; continue; }
1679     # Check for guested configure.
1680     if test -f "$ac_srcdir/configure.gnu"; then
1681       echo &&
1682       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683     elif test -f "$ac_srcdir/configure"; then
1684       echo &&
1685       $SHELL "$ac_srcdir/configure" --help=recursive
1686     else
1687       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688     fi || ac_status=$?
1689     cd "$ac_pwd" || { ac_status=$?; break; }
1690   done
1691 fi
1692
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695   cat <<\_ACEOF
1696 spice configure 0.12.4
1697 generated by GNU Autoconf 2.69
1698
1699 Copyright (C) 2012 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703   exit
1704 fi
1705
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1709
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   rm -f conftest.$ac_objext
1717   if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_compile") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && {
1733          test -z "$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        } && test -s conftest.$ac_objext; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741         ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_compile
1747
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   rm -f conftest.$ac_objext
1755   if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_compile") 2>conftest.err
1763   ac_status=$?
1764   if test -s conftest.err; then
1765     grep -v '^ *+' conftest.err >conftest.er1
1766     cat conftest.er1 >&5
1767     mv -f conftest.er1 conftest.err
1768   fi
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && {
1771          test -z "$ac_cxx_werror_flag" ||
1772          test ! -s conftest.err
1773        } && test -s conftest.$ac_objext; then :
1774   ac_retval=0
1775 else
1776   $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779         ac_retval=1
1780 fi
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782   as_fn_set_status $ac_retval
1783
1784 } # ac_fn_cxx_try_compile
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   rm -f conftest.$ac_objext conftest$ac_exeext
1793   if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_link") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } && {
1809          test -z "$ac_c_werror_flag" ||
1810          test ! -s conftest.err
1811        } && test -s conftest$ac_exeext && {
1812          test "$cross_compiling" = yes ||
1813          test -x conftest$ac_exeext
1814        }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820         ac_retval=1
1821 fi
1822   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824   # interfere with the next link command; also delete a directory that is
1825   # left behind by Apple's compiler.  We do this before executing the actions.
1826   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828   as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1846 $4
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_header_compile
1862
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_cpp ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872   *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877   ac_status=$?
1878   if test -s conftest.err; then
1879     grep -v '^ *+' conftest.err >conftest.er1
1880     cat conftest.er1 >&5
1881     mv -f conftest.er1 conftest.err
1882   fi
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; } > conftest.i && {
1885          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886          test ! -s conftest.err
1887        }; then :
1888   ac_retval=0
1889 else
1890   $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893     ac_retval=1
1894 fi
1895   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896   as_fn_set_status $ac_retval
1897
1898 } # ac_fn_c_try_cpp
1899
1900 # ac_fn_c_try_run LINENO
1901 # ----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1903 # that executables *can* be run.
1904 ac_fn_c_try_run ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   if { { ac_try="$ac_link"
1908 case "(($ac_try" in
1909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910   *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914   (eval "$ac_link") 2>&5
1915   ac_status=$?
1916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1918   { { case "(($ac_try" in
1919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920   *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924   (eval "$ac_try") 2>&5
1925   ac_status=$?
1926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927   test $ac_status = 0; }; }; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: program exited with status $ac_status" >&5
1931        $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1933
1934        ac_retval=$ac_status
1935 fi
1936   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938   as_fn_set_status $ac_retval
1939
1940 } # ac_fn_c_try_run
1941
1942 # ac_fn_c_check_func LINENO FUNC VAR
1943 # ----------------------------------
1944 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1945 ac_fn_c_check_func ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951   $as_echo_n "(cached) " >&6
1952 else
1953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h.  */
1955 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1957 #define $2 innocuous_$2
1958
1959 /* System header to define __stub macros and hopefully few prototypes,
1960     which can conflict with char $2 (); below.
1961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1962     <limits.h> exists even on freestanding compilers.  */
1963
1964 #ifdef __STDC__
1965 # include <limits.h>
1966 #else
1967 # include <assert.h>
1968 #endif
1969
1970 #undef $2
1971
1972 /* Override any GCC internal prototype to avoid an error.
1973    Use char because int might match the return type of a GCC
1974    builtin and then its argument prototype would still apply.  */
1975 #ifdef __cplusplus
1976 extern "C"
1977 #endif
1978 char $2 ();
1979 /* The GNU C library defines this for functions which it implements
1980     to always fail with ENOSYS.  Some functions are actually named
1981     something starting with __ and the normal name is an alias.  */
1982 #if defined __stub_$2 || defined __stub___$2
1983 choke me
1984 #endif
1985
1986 int
1987 main ()
1988 {
1989 return $2 ();
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_link "$LINENO"; then :
1995   eval "$3=yes"
1996 else
1997   eval "$3=no"
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext \
2000     conftest$ac_exeext conftest.$ac_ext
2001 fi
2002 eval ac_res=\$$3
2003                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007 } # ac_fn_c_check_func
2008
2009 # ac_fn_cxx_try_cpp LINENO
2010 # ------------------------
2011 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_cxx_try_cpp ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   if { { ac_try="$ac_cpp conftest.$ac_ext"
2016 case "(($ac_try" in
2017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018   *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2023   ac_status=$?
2024   if test -s conftest.err; then
2025     grep -v '^ *+' conftest.err >conftest.er1
2026     cat conftest.er1 >&5
2027     mv -f conftest.er1 conftest.err
2028   fi
2029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030   test $ac_status = 0; } > conftest.i && {
2031          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2032          test ! -s conftest.err
2033        }; then :
2034   ac_retval=0
2035 else
2036   $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2038
2039     ac_retval=1
2040 fi
2041   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042   as_fn_set_status $ac_retval
2043
2044 } # ac_fn_cxx_try_cpp
2045
2046 # ac_fn_cxx_try_link LINENO
2047 # -------------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_link ()
2050 {
2051   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052   rm -f conftest.$ac_objext conftest$ac_exeext
2053   if { { ac_try="$ac_link"
2054 case "(($ac_try" in
2055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056   *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060   (eval "$ac_link") 2>conftest.err
2061   ac_status=$?
2062   if test -s conftest.err; then
2063     grep -v '^ *+' conftest.err >conftest.er1
2064     cat conftest.er1 >&5
2065     mv -f conftest.er1 conftest.err
2066   fi
2067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068   test $ac_status = 0; } && {
2069          test -z "$ac_cxx_werror_flag" ||
2070          test ! -s conftest.err
2071        } && test -s conftest$ac_exeext && {
2072          test "$cross_compiling" = yes ||
2073          test -x conftest$ac_exeext
2074        }; then :
2075   ac_retval=0
2076 else
2077   $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080         ac_retval=1
2081 fi
2082   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084   # interfere with the next link command; also delete a directory that is
2085   # left behind by Apple's compiler.  We do this before executing the actions.
2086   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088   as_fn_set_status $ac_retval
2089
2090 } # ac_fn_cxx_try_link
2091
2092 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095 # the include files in INCLUDES and setting the cache variable VAR
2096 # accordingly.
2097 ac_fn_c_check_header_mongrel ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   if eval \${$3+:} false; then :
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104   $as_echo_n "(cached) " >&6
2105 fi
2106 eval ac_res=\$$3
2107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 else
2110   # Is the header compilable?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112 $as_echo_n "checking $2 usability... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   ac_header_compiler=yes
2120 else
2121   ac_header_compiler=no
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125 $as_echo "$ac_header_compiler" >&6; }
2126
2127 # Is the header present?
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129 $as_echo_n "checking $2 presence... " >&6; }
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 #include <$2>
2133 _ACEOF
2134 if ac_fn_c_try_cpp "$LINENO"; then :
2135   ac_header_preproc=yes
2136 else
2137   ac_header_preproc=no
2138 fi
2139 rm -f conftest.err conftest.i conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141 $as_echo "$ac_header_preproc" >&6; }
2142
2143 # So?  What about this header?
2144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145   yes:no: )
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150     ;;
2151   no:yes:* )
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2155 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2159 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 ( $as_echo "## ------------------------------------------------ ##
2163 ## Report this to spice-devel@lists.freedesktop.org ##
2164 ## ------------------------------------------------ ##"
2165      ) | sed "s/^/$as_me: WARNING:     /" >&2
2166     ;;
2167 esac
2168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171   $as_echo_n "(cached) " >&6
2172 else
2173   eval "$3=\$ac_header_compiler"
2174 fi
2175 eval ac_res=\$$3
2176                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180
2181 } # ac_fn_c_check_header_mongrel
2182
2183 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2184 # -------------------------------------------
2185 # Tests whether TYPE exists after having included INCLUDES, setting cache
2186 # variable VAR accordingly.
2187 ac_fn_c_check_type ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193   $as_echo_n "(cached) " >&6
2194 else
2195   eval "$3=no"
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main ()
2201 {
2202 if (sizeof ($2))
2203          return 0;
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h.  */
2211 $4
2212 int
2213 main ()
2214 {
2215 if (sizeof (($2)))
2216             return 0;
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222
2223 else
2224   eval "$3=yes"
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 fi
2230 eval ac_res=\$$3
2231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234
2235 } # ac_fn_c_check_type
2236 cat >config.log <<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2239
2240 It was created by spice $as_me 0.12.4, which was
2241 generated by GNU Autoconf 2.69.  Invocation command line was
2242
2243   $ $0 $@
2244
2245 _ACEOF
2246 exec 5>>config.log
2247 {
2248 cat <<_ASUNAME
2249 ## --------- ##
2250 ## Platform. ##
2251 ## --------- ##
2252
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2261
2262 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2263 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2266 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2267 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2268 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2269
2270 _ASUNAME
2271
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277     $as_echo "PATH: $as_dir"
2278   done
2279 IFS=$as_save_IFS
2280
2281 } >&5
2282
2283 cat >&5 <<_ACEOF
2284
2285
2286 ## ----------- ##
2287 ## Core tests. ##
2288 ## ----------- ##
2289
2290 _ACEOF
2291
2292
2293 # Keep a trace of the command line.
2294 # Strip out --no-create and --no-recursion so they do not pile up.
2295 # Strip out --silent because we don't want to record it for future runs.
2296 # Also quote any args containing shell meta-characters.
2297 # Make two passes to allow for proper duplicate-argument suppression.
2298 ac_configure_args=
2299 ac_configure_args0=
2300 ac_configure_args1=
2301 ac_must_keep_next=false
2302 for ac_pass in 1 2
2303 do
2304   for ac_arg
2305   do
2306     case $ac_arg in
2307     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309     | -silent | --silent | --silen | --sile | --sil)
2310       continue ;;
2311     *\'*)
2312       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313     esac
2314     case $ac_pass in
2315     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316     2)
2317       as_fn_append ac_configure_args1 " '$ac_arg'"
2318       if test $ac_must_keep_next = true; then
2319         ac_must_keep_next=false # Got value, back to normal.
2320       else
2321         case $ac_arg in
2322           *=* | --config-cache | -C | -disable-* | --disable-* \
2323           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325           | -with-* | --with-* | -without-* | --without-* | --x)
2326             case "$ac_configure_args0 " in
2327               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328             esac
2329             ;;
2330           -* ) ac_must_keep_next=true ;;
2331         esac
2332       fi
2333       as_fn_append ac_configure_args " '$ac_arg'"
2334       ;;
2335     esac
2336   done
2337 done
2338 { ac_configure_args0=; unset ac_configure_args0;}
2339 { ac_configure_args1=; unset ac_configure_args1;}
2340
2341 # When interrupted or exit'd, cleanup temporary files, and complete
2342 # config.log.  We remove comments because anyway the quotes in there
2343 # would cause problems or look ugly.
2344 # WARNING: Use '\'' to represent an apostrophe within the trap.
2345 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346 trap 'exit_status=$?
2347   # Save into config.log some information that might help in debugging.
2348   {
2349     echo
2350
2351     $as_echo "## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##"
2354     echo
2355     # The following way of writing the cache mishandles newlines in values,
2356 (
2357   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2358     eval ac_val=\$$ac_var
2359     case $ac_val in #(
2360     *${as_nl}*)
2361       case $ac_var in #(
2362       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2364       esac
2365       case $ac_var in #(
2366       _ | IFS | as_nl) ;; #(
2367       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2368       *) { eval $ac_var=; unset $ac_var;} ;;
2369       esac ;;
2370     esac
2371   done
2372   (set) 2>&1 |
2373     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2374     *${as_nl}ac_space=\ *)
2375       sed -n \
2376         "s/'\''/'\''\\\\'\'''\''/g;
2377           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2378       ;; #(
2379     *)
2380       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2381       ;;
2382     esac |
2383     sort
2384 )
2385     echo
2386
2387     $as_echo "## ----------------- ##
2388 ## Output variables. ##
2389 ## ----------------- ##"
2390     echo
2391     for ac_var in $ac_subst_vars
2392     do
2393       eval ac_val=\$$ac_var
2394       case $ac_val in
2395       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396       esac
2397       $as_echo "$ac_var='\''$ac_val'\''"
2398     done | sort
2399     echo
2400
2401     if test -n "$ac_subst_files"; then
2402       $as_echo "## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##"
2405       echo
2406       for ac_var in $ac_subst_files
2407       do
2408         eval ac_val=\$$ac_var
2409         case $ac_val in
2410         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411         esac
2412         $as_echo "$ac_var='\''$ac_val'\''"
2413       done | sort
2414       echo
2415     fi
2416
2417     if test -s confdefs.h; then
2418       $as_echo "## ----------- ##
2419 ## confdefs.h. ##
2420 ## ----------- ##"
2421       echo
2422       cat confdefs.h
2423       echo
2424     fi
2425     test "$ac_signal" != 0 &&
2426       $as_echo "$as_me: caught signal $ac_signal"
2427     $as_echo "$as_me: exit $exit_status"
2428   } >&5
2429   rm -f core *.core core.conftest.* &&
2430     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431     exit $exit_status
2432 ' 0
2433 for ac_signal in 1 2 13 15; do
2434   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2435 done
2436 ac_signal=0
2437
2438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2439 rm -f -r conftest* confdefs.h
2440
2441 $as_echo "/* confdefs.h */" > confdefs.h
2442
2443 # Predefined preprocessor variables.
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_NAME "$PACKAGE_NAME"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_STRING "$PACKAGE_STRING"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_URL "$PACKAGE_URL"
2467 _ACEOF
2468
2469
2470 # Let the site file select an alternate cache file if it wants to.
2471 # Prefer an explicitly selected file to automatically selected ones.
2472 ac_site_file1=NONE
2473 ac_site_file2=NONE
2474 if test -n "$CONFIG_SITE"; then
2475   # We do not want a PATH search for config.site.
2476   case $CONFIG_SITE in #((
2477     -*)  ac_site_file1=./$CONFIG_SITE;;
2478     */*) ac_site_file1=$CONFIG_SITE;;
2479     *)   ac_site_file1=./$CONFIG_SITE;;
2480   esac
2481 elif test "x$prefix" != xNONE; then
2482   ac_site_file1=$prefix/share/config.site
2483   ac_site_file2=$prefix/etc/config.site
2484 else
2485   ac_site_file1=$ac_default_prefix/share/config.site
2486   ac_site_file2=$ac_default_prefix/etc/config.site
2487 fi
2488 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2489 do
2490   test "x$ac_site_file" = xNONE && continue
2491   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2493 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2494     sed 's/^/| /' "$ac_site_file" >&5
2495     . "$ac_site_file" \
2496       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 as_fn_error $? "failed to load site script $ac_site_file
2499 See \`config.log' for more details" "$LINENO" 5; }
2500   fi
2501 done
2502
2503 if test -r "$cache_file"; then
2504   # Some versions of bash will fail to source /dev/null (special files
2505   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2506   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2507     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2509     case $cache_file in
2510       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2511       *)                      . "./$cache_file";;
2512     esac
2513   fi
2514 else
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2517   >$cache_file
2518 fi
2519
2520 # Check that the precious variables saved in the cache have kept the same
2521 # value.
2522 ac_cache_corrupted=false
2523 for ac_var in $ac_precious_vars; do
2524   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525   eval ac_new_set=\$ac_env_${ac_var}_set
2526   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527   eval ac_new_val=\$ac_env_${ac_var}_value
2528   case $ac_old_set,$ac_new_set in
2529     set,)
2530       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532       ac_cache_corrupted=: ;;
2533     ,set)
2534       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536       ac_cache_corrupted=: ;;
2537     ,);;
2538     *)
2539       if test "x$ac_old_val" != "x$ac_new_val"; then
2540         # differences in whitespace do not lead to failure.
2541         ac_old_val_w=`echo x $ac_old_val`
2542         ac_new_val_w=`echo x $ac_new_val`
2543         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546           ac_cache_corrupted=:
2547         else
2548           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550           eval $ac_var=\$ac_old_val
2551         fi
2552         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2553 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2554         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2555 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2556       fi;;
2557   esac
2558   # Pass precious variables to config.status.
2559   if test "$ac_new_set" = set; then
2560     case $ac_new_val in
2561     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562     *) ac_arg=$ac_var=$ac_new_val ;;
2563     esac
2564     case " $ac_configure_args " in
2565       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2566       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2567     esac
2568   fi
2569 done
2570 if $ac_cache_corrupted; then
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2576 fi
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2580
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587
2588
2589
2590 ac_config_headers="$ac_config_headers config.h"
2591
2592 ac_aux_dir=
2593 for ac_dir in . "$srcdir"/.; do
2594   if test -f "$ac_dir/install-sh"; then
2595     ac_aux_dir=$ac_dir
2596     ac_install_sh="$ac_aux_dir/install-sh -c"
2597     break
2598   elif test -f "$ac_dir/install.sh"; then
2599     ac_aux_dir=$ac_dir
2600     ac_install_sh="$ac_aux_dir/install.sh -c"
2601     break
2602   elif test -f "$ac_dir/shtool"; then
2603     ac_aux_dir=$ac_dir
2604     ac_install_sh="$ac_aux_dir/shtool install -c"
2605     break
2606   fi
2607 done
2608 if test -z "$ac_aux_dir"; then
2609   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2610 fi
2611
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2619
2620
2621
2622 # For automake >= 1.12
2623 # expand $ac_aux_dir to an absolute path
2624 am_aux_dir=`cd $ac_aux_dir && pwd`
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$ac_cv_prog_CC"; then
2671   ac_ct_CC=$CC
2672   # Extract the first word of "gcc", so it can be a program name with args.
2673 set dummy gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$ac_ct_CC"; then
2680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687     for ac_exec_ext in '' $ac_executable_extensions; do
2688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689     ac_cv_prog_ac_ct_CC="gcc"
2690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694   done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2702 $as_echo "$ac_ct_CC" >&6; }
2703 else
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708   if test "x$ac_ct_CC" = x; then
2709     CC=""
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717     CC=$ac_ct_CC
2718   fi
2719 else
2720   CC="$ac_cv_prog_CC"
2721 fi
2722
2723 if test -z "$CC"; then
2724           if test -n "$ac_tool_prefix"; then
2725     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}cc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   if test -n "$CC"; then
2733   ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740     for ac_exec_ext in '' $ac_executable_extensions; do
2741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742     ac_cv_prog_CC="${ac_tool_prefix}cc"
2743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747   done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761
2762   fi
2763 fi
2764 if test -z "$CC"; then
2765   # Extract the first word of "cc", so it can be a program name with args.
2766 set dummy cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770   $as_echo_n "(cached) " >&6
2771 else
2772   if test -n "$CC"; then
2773   ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775   ac_prog_rejected=no
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2784        ac_prog_rejected=yes
2785        continue
2786      fi
2787     ac_cv_prog_CC="cc"
2788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792   done
2793 IFS=$as_save_IFS
2794
2795 if test $ac_prog_rejected = yes; then
2796   # We found a bogon in the path, so make sure we never use it.
2797   set dummy $ac_cv_prog_CC
2798   shift
2799   if test $# != 0; then
2800     # We chose a different compiler from the bogus one.
2801     # However, it has the same basename, so the bogon will be chosen
2802     # first if we set CC to just the basename; use the full file name.
2803     shift
2804     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2805   fi
2806 fi
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$CC"; then
2821   if test -n "$ac_tool_prefix"; then
2822   for ac_prog in cl.exe
2823   do
2824     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$CC"; then
2832   ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     for ac_exec_ext in '' $ac_executable_extensions; do
2840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846   done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861     test -n "$CC" && break
2862   done
2863 fi
2864 if test -z "$CC"; then
2865   ac_ct_CC=$CC
2866   for ac_prog in cl.exe
2867 do
2868   # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$ac_ct_CC"; then
2876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_ac_ct_CC="$ac_prog"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2898 $as_echo "$ac_ct_CC" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905   test -n "$ac_ct_CC" && break
2906 done
2907
2908   if test "x$ac_ct_CC" = x; then
2909     CC=""
2910   else
2911     case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2916 esac
2917     CC=$ac_ct_CC
2918   fi
2919 fi
2920
2921 fi
2922
2923
2924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926 as_fn_error $? "no acceptable C compiler found in \$PATH
2927 See \`config.log' for more details" "$LINENO" 5; }
2928
2929 # Provide some information about the compiler.
2930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2931 set X $ac_compile
2932 ac_compiler=$2
2933 for ac_option in --version -v -V -qversion; do
2934   { { ac_try="$ac_compiler $ac_option >&5"
2935 case "(($ac_try" in
2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937   *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2942   ac_status=$?
2943   if test -s conftest.err; then
2944     sed '10a\
2945 ... rest of stderr output deleted ...
2946          10q' conftest.err >conftest.er1
2947     cat conftest.er1 >&5
2948   fi
2949   rm -f conftest.er1 conftest.err
2950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951   test $ac_status = 0; }
2952 done
2953
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h.  */
2956
2957 int
2958 main ()
2959 {
2960
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 ac_clean_files_save=$ac_clean_files
2966 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2967 # Try to create an executable without -o first, disregard a.out.
2968 # It will help us diagnose broken compilers, and finding out an intuition
2969 # of exeext.
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2973
2974 # The possible output files:
2975 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2976
2977 ac_rmfiles=
2978 for ac_file in $ac_files
2979 do
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2983   esac
2984 done
2985 rm -f $ac_rmfiles
2986
2987 if { { ac_try="$ac_link_default"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994   (eval "$ac_link_default") 2>&5
2995   ac_status=$?
2996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997   test $ac_status = 0; }; then :
2998   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3000 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3001 # so that the user can short-circuit this test for compilers unknown to
3002 # Autoconf.
3003 for ac_file in $ac_files ''
3004 do
3005   test -f "$ac_file" || continue
3006   case $ac_file in
3007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3008         ;;
3009     [ab].out )
3010         # We found the default executable, but exeext='' is most
3011         # certainly right.
3012         break;;
3013     *.* )
3014         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3015         then :; else
3016            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017         fi
3018         # We set ac_cv_exeext here because the later test for it is not
3019         # safe: cross compilers may not add the suffix if given an `-o'
3020         # argument, so we may need to know it at that point already.
3021         # Even if this section looks crufty: it has the advantage of
3022         # actually working.
3023         break;;
3024     * )
3025         break;;
3026   esac
3027 done
3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
3029
3030 else
3031   ac_file=''
3032 fi
3033 if test -z "$ac_file"; then :
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error 77 "C compiler cannot create executables
3042 See \`config.log' for more details" "$LINENO" 5; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045 $as_echo "yes" >&6; }
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3048 $as_echo_n "checking for C compiler default output file name... " >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 ac_exeext=$ac_cv_exeext
3052
3053 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3054 ac_clean_files=$ac_clean_files_save
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { { ac_try="$ac_link"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064   (eval "$ac_link") 2>&5
3065   ac_status=$?
3066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067   test $ac_status = 0; }; then :
3068   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3069 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe'), while it won't with
3071 # `rm'.
3072 for ac_file in conftest.exe conftest conftest.*; do
3073   test -f "$ac_file" || continue
3074   case $ac_file in
3075     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077           break;;
3078     * ) break;;
3079   esac
3080 done
3081 else
3082   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details" "$LINENO" 5; }
3086 fi
3087 rm -f conftest conftest$ac_cv_exeext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3089 $as_echo "$ac_cv_exeext" >&6; }
3090
3091 rm -f conftest.$ac_ext
3092 EXEEXT=$ac_cv_exeext
3093 ac_exeext=$EXEEXT
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h.  */
3096 #include <stdio.h>
3097 int
3098 main ()
3099 {
3100 FILE *f = fopen ("conftest.out", "w");
3101  return ferror (f) || fclose (f) != 0;
3102
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 ac_clean_files="$ac_clean_files conftest.out"
3108 # Check that the compiler produces executables we can run.  If not, either
3109 # the compiler is broken, or we cross compile.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3111 $as_echo_n "checking whether we are cross compiling... " >&6; }
3112 if test "$cross_compiling" != yes; then
3113   { { ac_try="$ac_link"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120   (eval "$ac_link") 2>&5
3121   ac_status=$?
3122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123   test $ac_status = 0; }
3124   if { ac_try='./conftest$ac_cv_exeext'
3125   { { case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134   test $ac_status = 0; }; }; then
3135     cross_compiling=no
3136   else
3137     if test "$cross_compiling" = maybe; then
3138         cross_compiling=yes
3139     else
3140         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details" "$LINENO" 5; }
3145     fi
3146   fi
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3149 $as_echo "$cross_compiling" >&6; }
3150
3151 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3152 ac_clean_files=$ac_clean_files_save
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3154 $as_echo_n "checking for suffix of object files... " >&6; }
3155 if ${ac_cv_objext+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.o conftest.obj
3170 if { { ac_try="$ac_compile"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177   (eval "$ac_compile") 2>&5
3178   ac_status=$?
3179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180   test $ac_status = 0; }; then :
3181   for ac_file in conftest.o conftest.obj conftest.*; do
3182   test -f "$ac_file" || continue;
3183   case $ac_file in
3184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3186        break;;
3187   esac
3188 done
3189 else
3190   $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot compute suffix of object files: cannot compile
3196 See \`config.log' for more details" "$LINENO" 5; }
3197 fi
3198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199 fi
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3201 $as_echo "$ac_cv_objext" >&6; }
3202 OBJEXT=$ac_cv_objext
3203 ac_objext=$OBJEXT
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3205 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3206 if ${ac_cv_c_compiler_gnu+:} false; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h.  */
3211
3212 int
3213 main ()
3214 {
3215 #ifndef __GNUC__
3216        choke me
3217 #endif
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224   ac_compiler_gnu=yes
3225 else
3226   ac_compiler_gnu=no
3227 fi
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3235   GCC=yes
3236 else
3237   GCC=
3238 fi
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if ${ac_cv_prog_cc_g+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   ac_save_c_werror_flag=$ac_c_werror_flag
3247    ac_c_werror_flag=yes
3248    ac_cv_prog_cc_g=no
3249    CFLAGS="-g"
3250    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h.  */
3252
3253 int
3254 main ()
3255 {
3256
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 if ac_fn_c_try_compile "$LINENO"; then :
3262   ac_cv_prog_cc_g=yes
3263 else
3264   CFLAGS=""
3265       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h.  */
3267
3268 int
3269 main ()
3270 {
3271
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277
3278 else
3279   ac_c_werror_flag=$ac_save_c_werror_flag
3280          CFLAGS="-g"
3281          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293   ac_cv_prog_cc_g=yes
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 fi
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300    ac_c_werror_flag=$ac_save_c_werror_flag
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3303 $as_echo "$ac_cv_prog_cc_g" >&6; }
3304 if test "$ac_test_CFLAGS" = set; then
3305   CFLAGS=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307   if test "$GCC" = yes; then
3308     CFLAGS="-g -O2"
3309   else
3310     CFLAGS="-g"
3311   fi
3312 else
3313   if test "$GCC" = yes; then
3314     CFLAGS="-O2"
3315   else
3316     CFLAGS=
3317   fi
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3320 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3321 if ${ac_cv_prog_cc_c89+:} false; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   ac_cv_prog_cc_c89=no
3325 ac_save_CC=$CC
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h.  */
3328 #include <stdarg.h>
3329 #include <stdio.h>
3330 struct stat;
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3335      char **p;
3336      int i;
3337 {
3338   return p[i];
3339 }
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3341 {
3342   char *s;
3343   va_list v;
3344   va_start (v,p);
3345   s = g (p, va_arg (v,int));
3346   va_end (v);
3347   return s;
3348 }
3349
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3351    function prototypes and stuff, but not '\xHH' hex character constants.
3352    These don't provoke an error unfortunately, instead are silently treated
3353    as 'x'.  The following induces an error, until -std is added to get
3354    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3355    array size at least.  It's necessary to write '\x00'==0 to get something
3356    that's true only with -std.  */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3358
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360    inside strings and character constants.  */
3361 #define FOO(x) 'x'
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3363
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370 int
3371 main ()
3372 {
3373 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380 do
3381   CC="$ac_save_CC $ac_arg"
3382   if ac_fn_c_try_compile "$LINENO"; then :
3383   ac_cv_prog_cc_c89=$ac_arg
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext
3386   test "x$ac_cv_prog_cc_c89" != "xno" && break
3387 done
3388 rm -f conftest.$ac_ext
3389 CC=$ac_save_CC
3390
3391 fi
3392 # AC_CACHE_VAL
3393 case "x$ac_cv_prog_cc_c89" in
3394   x)
3395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396 $as_echo "none needed" >&6; } ;;
3397   xno)
3398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 $as_echo "unsupported" >&6; } ;;
3400   *)
3401     CC="$CC $ac_cv_prog_cc_c89"
3402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3404 esac
3405 if test "x$ac_cv_prog_cc_c89" != xno; then :
3406
3407 fi
3408
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414
3415
3416 if test -n "$ac_tool_prefix"; then
3417   for ac_prog in ar lib "link -lib"
3418   do
3419     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_AR+:} false; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$AR"; then
3427   ac_cv_prog_AR="$AR" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 AR=$ac_cv_prog_AR
3447 if test -n "$AR"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3449 $as_echo "$AR" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456     test -n "$AR" && break
3457   done
3458 fi
3459 if test -z "$AR"; then
3460   ac_ct_AR=$AR
3461   for ac_prog in ar lib "link -lib"
3462 do
3463   # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$ac_ct_AR"; then
3471   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480     ac_cv_prog_ac_ct_AR="$ac_prog"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3491 if test -n "$ac_ct_AR"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3493 $as_echo "$ac_ct_AR" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500   test -n "$ac_ct_AR" && break
3501 done
3502
3503   if test "x$ac_ct_AR" = x; then
3504     AR="false"
3505   else
3506     case $cross_compiling:$ac_tool_warned in
3507 yes:)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3511 esac
3512     AR=$ac_ct_AR
3513   fi
3514 fi
3515
3516 : ${AR=ar}
3517
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3519 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3520 if ${am_cv_ar_interface+:} false; then :
3521   $as_echo_n "(cached) " >&6
3522 else
3523   am_cv_ar_interface=ar
3524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526 int some_variable = 0;
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3530       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3531   (eval $am_ar_try) 2>&5
3532   ac_status=$?
3533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534   test $ac_status = 0; }
3535       if test "$ac_status" -eq 0; then
3536         am_cv_ar_interface=ar
3537       else
3538         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3539         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3540   (eval $am_ar_try) 2>&5
3541   ac_status=$?
3542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543   test $ac_status = 0; }
3544         if test "$ac_status" -eq 0; then
3545           am_cv_ar_interface=lib
3546         else
3547           am_cv_ar_interface=unknown
3548         fi
3549       fi
3550       rm -f conftest.lib libconftest.a
3551
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3557 $as_echo "$am_cv_ar_interface" >&6; }
3558
3559 case $am_cv_ar_interface in
3560 ar)
3561   ;;
3562 lib)
3563   # Microsoft lib, so override with the ar-lib wrapper script.
3564   # FIXME: It is wrong to rewrite AR.
3565   # But if we don't then we get into trouble of one sort or another.
3566   # A longer-term fix would be to have automake use am__AR in this case,
3567   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3568   # similar.
3569   AR="$am_aux_dir/ar-lib $AR"
3570   ;;
3571 unknown)
3572   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3573   ;;
3574 esac
3575
3576
3577 am__api_version='1.12'
3578
3579 # Find a good install program.  We prefer a C program (faster),
3580 # so one script is as good as another.  But avoid the broken or
3581 # incompatible versions:
3582 # SysV /etc/install, /usr/sbin/install
3583 # SunOS /usr/etc/install
3584 # IRIX /sbin/install
3585 # AIX /bin/install
3586 # AmigaOS /C/install, which installs bootblocks on floppy discs
3587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3590 # OS/2's system install, which has a completely different semantic
3591 # ./install, which can be erroneously created by make from ./install.sh.
3592 # Reject install programs that cannot install multiple files.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3594 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3595 if test -z "$INSTALL"; then
3596 if ${ac_cv_path_install+:} false; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604     # Account for people who put trailing slashes in PATH elements.
3605 case $as_dir/ in #((
3606   ./ | .// | /[cC]/* | \
3607   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3608   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3609   /usr/ucb/* ) ;;
3610   *)
3611     # OSF1 and SCO ODT 3.0 have their own names for install.
3612     # Don't use installbsd from OSF since it installs stuff as root
3613     # by default.
3614     for ac_prog in ginstall scoinst install; do
3615       for ac_exec_ext in '' $ac_executable_extensions; do
3616         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3617           if test $ac_prog = install &&
3618             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3619             # AIX install.  It has an incompatible calling convention.
3620             :
3621           elif test $ac_prog = install &&
3622             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3623             # program-specific install script used by HP pwplus--don't use.
3624             :
3625           else
3626             rm -rf conftest.one conftest.two conftest.dir
3627             echo one > conftest.one
3628             echo two > conftest.two
3629             mkdir conftest.dir
3630             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3631               test -s conftest.one && test -s conftest.two &&
3632               test -s conftest.dir/conftest.one &&
3633               test -s conftest.dir/conftest.two
3634             then
3635               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3636               break 3
3637             fi
3638           fi
3639         fi
3640       done
3641     done
3642     ;;
3643 esac
3644
3645   done
3646 IFS=$as_save_IFS
3647
3648 rm -rf conftest.one conftest.two conftest.dir
3649
3650 fi
3651   if test "${ac_cv_path_install+set}" = set; then
3652     INSTALL=$ac_cv_path_install
3653   else
3654     # As a last resort, use the slow shell script.  Don't cache a
3655     # value for INSTALL within a source directory, because that will
3656     # break other packages using the cache if that directory is
3657     # removed, or if the value is a relative name.
3658     INSTALL=$ac_install_sh
3659   fi
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3662 $as_echo "$INSTALL" >&6; }
3663
3664 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3665 # It thinks the first close brace ends the variable substitution.
3666 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3667
3668 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3669
3670 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3673 $as_echo_n "checking whether build environment is sane... " >&6; }
3674 # Reject unsafe characters in $srcdir or the absolute working directory
3675 # name.  Accept space and tab only in the latter.
3676 am_lf='
3677 '
3678 case `pwd` in
3679   *[\\\"\#\$\&\'\`$am_lf]*)
3680     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3681 esac
3682 case $srcdir in
3683   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3684     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3685 esac
3686
3687 # Do 'set' in a subshell so we don't clobber the current shell's
3688 # arguments.  Must try -L first in case configure is actually a
3689 # symlink; some systems play weird games with the mod time of symlinks
3690 # (eg FreeBSD returns the mod time of the symlink's containing
3691 # directory).
3692 if (
3693    am_has_slept=no
3694    for am_try in 1 2; do
3695      echo "timestamp, slept: $am_has_slept" > conftest.file
3696      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3697      if test "$*" = "X"; then
3698         # -L didn't work.
3699         set X `ls -t "$srcdir/configure" conftest.file`
3700      fi
3701      if test "$*" != "X $srcdir/configure conftest.file" \
3702         && test "$*" != "X conftest.file $srcdir/configure"; then
3703
3704         # If neither matched, then we have a broken ls.  This can happen
3705         # if, for instance, CONFIG_SHELL is bash and it inherits a
3706         # broken ls alias from the environment.  This has actually
3707         # happened.  Such a system could not be considered "sane".
3708         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3709   alias in your environment" "$LINENO" 5
3710      fi
3711      if test "$2" = conftest.file || test $am_try -eq 2; then
3712        break
3713      fi
3714      # Just in case.
3715      sleep 1
3716      am_has_slept=yes
3717    done
3718    test "$2" = conftest.file
3719    )
3720 then
3721    # Ok.
3722    :
3723 else
3724    as_fn_error $? "newly created file is older than distributed files!
3725 Check your system clock" "$LINENO" 5
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3728 $as_echo "yes" >&6; }
3729 # If we didn't sleep, we still need to ensure time stamps of config.status and
3730 # generated files are strictly newer.
3731 am_sleep_pid=
3732 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3733   ( sleep 1 ) &
3734   am_sleep_pid=$!
3735 fi
3736
3737 rm -f conftest.file
3738
3739 test "$program_prefix" != NONE &&
3740   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3741 # Use a double $ so make ignores it.
3742 test "$program_suffix" != NONE &&
3743   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3744 # Double any \ or $.
3745 # By default was `s,x,x', remove it if useless.
3746 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3747 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3748
3749 if test x"${MISSING+set}" != xset; then
3750   case $am_aux_dir in
3751   *\ * | *\     *)
3752     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3753   *)
3754     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3755   esac
3756 fi
3757 # Use eval to expand $SHELL
3758 if eval "$MISSING --run true"; then
3759   am_missing_run="$MISSING --run "
3760 else
3761   am_missing_run=
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3763 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3764 fi
3765
3766 if test x"${install_sh}" != xset; then
3767   case $am_aux_dir in
3768   *\ * | *\     *)
3769     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3770   *)
3771     install_sh="\${SHELL} $am_aux_dir/install-sh"
3772   esac
3773 fi
3774
3775 # Installed binaries are usually stripped using 'strip' when the user
3776 # run "make install-strip".  However 'strip' might not be the right
3777 # tool to use in cross-compilation environments, therefore Automake
3778 # will honor the 'STRIP' environment variable to overrule this program.
3779 if test "$cross_compiling" != no; then
3780   if test -n "$ac_tool_prefix"; then
3781   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3782 set dummy ${ac_tool_prefix}strip; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_STRIP+:} false; then :
3786   $as_echo_n "(cached) " >&6
3787 else
3788   if test -n "$STRIP"; then
3789   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796     for ac_exec_ext in '' $ac_executable_extensions; do
3797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800     break 2
3801   fi
3802 done
3803   done
3804 IFS=$as_save_IFS
3805
3806 fi
3807 fi
3808 STRIP=$ac_cv_prog_STRIP
3809 if test -n "$STRIP"; then
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3811 $as_echo "$STRIP" >&6; }
3812 else
3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817
3818 fi
3819 if test -z "$ac_cv_prog_STRIP"; then
3820   ac_ct_STRIP=$STRIP
3821   # Extract the first word of "strip", so it can be a program name with args.
3822 set dummy strip; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   if test -n "$ac_ct_STRIP"; then
3829   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836     for ac_exec_ext in '' $ac_executable_extensions; do
3837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_prog_ac_ct_STRIP="strip"
3839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843   done
3844 IFS=$as_save_IFS
3845
3846 fi
3847 fi
3848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3849 if test -n "$ac_ct_STRIP"; then
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3851 $as_echo "$ac_ct_STRIP" >&6; }
3852 else
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3855 fi
3856
3857   if test "x$ac_ct_STRIP" = x; then
3858     STRIP=":"
3859   else
3860     case $cross_compiling:$ac_tool_warned in
3861 yes:)
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3865 esac
3866     STRIP=$ac_ct_STRIP
3867   fi
3868 else
3869   STRIP="$ac_cv_prog_STRIP"
3870 fi
3871
3872 fi
3873 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3876 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3877 if test -z "$MKDIR_P"; then
3878   if ${ac_cv_path_mkdir+:} false; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886     for ac_prog in mkdir gmkdir; do
3887          for ac_exec_ext in '' $ac_executable_extensions; do
3888            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3889            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3890              'mkdir (GNU coreutils) '* | \
3891              'mkdir (coreutils) '* | \
3892              'mkdir (fileutils) '4.1*)
3893                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3894                break 3;;
3895            esac
3896          done
3897        done
3898   done
3899 IFS=$as_save_IFS
3900
3901 fi
3902
3903   test -d ./--version && rmdir ./--version
3904   if test "${ac_cv_path_mkdir+set}" = set; then
3905     MKDIR_P="$ac_cv_path_mkdir -p"
3906   else
3907     # As a last resort, use the slow shell script.  Don't cache a
3908     # value for MKDIR_P within a source directory, because that will
3909     # break other packages using the cache if that directory is
3910     # removed, or if the value is a relative name.
3911     MKDIR_P="$ac_install_sh -d"
3912   fi
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3915 $as_echo "$MKDIR_P" >&6; }
3916
3917 for ac_prog in gawk mawk nawk awk
3918 do
3919   # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_AWK+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   if test -n "$AWK"; then
3927   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934     for ac_exec_ext in '' $ac_executable_extensions; do
3935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_prog_AWK="$ac_prog"
3937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941   done
3942 IFS=$as_save_IFS
3943
3944 fi
3945 fi
3946 AWK=$ac_cv_prog_AWK
3947 if test -n "$AWK"; then
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3949 $as_echo "$AWK" >&6; }
3950 else
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955
3956   test -n "$AWK" && break
3957 done
3958
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3960 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3961 set x ${MAKE-make}
3962 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3963 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   cat >conftest.make <<\_ACEOF
3967 SHELL = /bin/sh
3968 all:
3969         @echo '@@@%%%=$(MAKE)=@@@%%%'
3970 _ACEOF
3971 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3972 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3973   *@@@%%%=?*=@@@%%%*)
3974     eval ac_cv_prog_make_${ac_make}_set=yes;;
3975   *)
3976     eval ac_cv_prog_make_${ac_make}_set=no;;
3977 esac
3978 rm -f conftest.make
3979 fi
3980 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 $as_echo "yes" >&6; }
3983   SET_MAKE=
3984 else
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987   SET_MAKE="MAKE=${MAKE-make}"
3988 fi
3989
3990 rm -rf .tst 2>/dev/null
3991 mkdir .tst 2>/dev/null
3992 if test -d .tst; then
3993   am__leading_dot=.
3994 else
3995   am__leading_dot=_
3996 fi
3997 rmdir .tst 2>/dev/null
3998
3999 DEPDIR="${am__leading_dot}deps"
4000
4001 ac_config_commands="$ac_config_commands depfiles"
4002
4003
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4006 am__doit:
4007         @echo this is the am__doit target
4008 .PHONY: am__doit
4009 END
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4013 am__include="#"
4014 am__quote=
4015 _am_result=none
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # Ignore all kinds of additional output from 'make'.
4019 case `$am_make -s -f confmf 2> /dev/null` in #(
4020 *the\ am__doit\ target*)
4021   am__include=include
4022   am__quote=
4023   _am_result=GNU
4024   ;;
4025 esac
4026 # Now try BSD make style include.
4027 if test "$am__include" = "#"; then
4028    echo '.include "confinc"' > confmf
4029    case `$am_make -s -f confmf 2> /dev/null` in #(
4030    *the\ am__doit\ target*)
4031      am__include=.include
4032      am__quote="\""
4033      _am_result=BSD
4034      ;;
4035    esac
4036 fi
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4042
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045   enableval=$enable_dependency_tracking;
4046 fi
4047
4048 if test "x$enable_dependency_tracking" != xno; then
4049   am_depcomp="$ac_aux_dir/depcomp"
4050   AMDEPBACKSLASH='\'
4051   am__nodep='_no'
4052 fi
4053  if test "x$enable_dependency_tracking" != xno; then
4054   AMDEP_TRUE=
4055   AMDEP_FALSE='#'
4056 else
4057   AMDEP_TRUE='#'
4058   AMDEP_FALSE=
4059 fi
4060
4061
4062 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4063   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4064   # is not polluted with repeated "-I."
4065   am__isrc=' -I$(srcdir)'
4066   # test to see if srcdir already configured
4067   if test -f $srcdir/config.status; then
4068     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4069   fi
4070 fi
4071
4072 # test whether we have cygpath
4073 if test -z "$CYGPATH_W"; then
4074   if (cygpath --version) >/dev/null 2>/dev/null; then
4075     CYGPATH_W='cygpath -w'
4076   else
4077     CYGPATH_W=echo
4078   fi
4079 fi
4080
4081
4082 # Define the identity of the package.
4083  PACKAGE='spice'
4084  VERSION='0.12.4'
4085
4086
4087 cat >>confdefs.h <<_ACEOF
4088 #define PACKAGE "$PACKAGE"
4089 _ACEOF
4090
4091
4092 cat >>confdefs.h <<_ACEOF
4093 #define VERSION "$VERSION"
4094 _ACEOF
4095
4096 # Some tools Automake needs.
4097
4098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4099
4100
4101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4102
4103
4104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4105
4106
4107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4108
4109
4110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4111
4112 # For better backward compatibility.  To be removed once Automake 1.9.x
4113 # dies out for good.  For more background, see:
4114 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4115 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4116 mkdir_p='$(MKDIR_P)'
4117
4118 # We need awk for the "check" target.  The system "awk" is bad on
4119 # some platforms.
4120 # Always define AMTAR for backward compatibility.  Yes, it's still used
4121 # in the wild :-(  We should find a proper way to deprecate it ...
4122 AMTAR='$${TAR-tar}'
4123
4124 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4125
4126
4127
4128
4129 depcc="$CC"   am_compiler_list=
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4132 $as_echo_n "checking dependency style of $depcc... " >&6; }
4133 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4137   # We make a subdir and do the tests there.  Otherwise we can end up
4138   # making bogus files that we don't know about and never remove.  For
4139   # instance it was reported that on HP-UX the gcc test will end up
4140   # making a dummy file named 'D' -- because '-MD' means "put the output
4141   # in D".
4142   rm -rf conftest.dir
4143   mkdir conftest.dir
4144   # Copy depcomp to subdir because otherwise we won't find it if we're
4145   # using a relative directory.
4146   cp "$am_depcomp" conftest.dir
4147   cd conftest.dir
4148   # We will build objects and dependencies in a subdirectory because
4149   # it helps to detect inapplicable dependency modes.  For instance
4150   # both Tru64's cc and ICC support -MD to output dependencies as a
4151   # side effect of compilation, but ICC will put the dependencies in
4152   # the current directory while Tru64 will put them in the object
4153   # directory.
4154   mkdir sub
4155
4156   am_cv_CC_dependencies_compiler_type=none
4157   if test "$am_compiler_list" = ""; then
4158      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4159   fi
4160   am__universal=false
4161   case " $depcc " in #(
4162      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4163      esac
4164
4165   for depmode in $am_compiler_list; do
4166     # Setup a source with many dependencies, because some compilers
4167     # like to wrap large dependency lists on column 80 (with \), and
4168     # we should not choose a depcomp mode which is confused by this.
4169     #
4170     # We need to recreate these files for each test, as the compiler may
4171     # overwrite some of them when testing with obscure command lines.
4172     # This happens at least with the AIX C compiler.
4173     : > sub/conftest.c
4174     for i in 1 2 3 4 5 6; do
4175       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4176       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4177       # Solaris 10 /bin/sh.
4178       echo '/* dummy */' > sub/conftst$i.h
4179     done
4180     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4181
4182     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4183     # mode.  It turns out that the SunPro C++ compiler does not properly
4184     # handle '-M -o', and we need to detect this.  Also, some Intel
4185     # versions had trouble with output in subdirs.
4186     am__obj=sub/conftest.${OBJEXT-o}
4187     am__minus_obj="-o $am__obj"
4188     case $depmode in
4189     gcc)
4190       # This depmode causes a compiler race in universal mode.
4191       test "$am__universal" = false || continue
4192       ;;
4193     nosideeffect)
4194       # After this tag, mechanisms are not by side-effect, so they'll
4195       # only be used when explicitly requested.
4196       if test "x$enable_dependency_tracking" = xyes; then
4197         continue
4198       else
4199         break
4200       fi
4201       ;;
4202     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4203       # This compiler won't grok '-c -o', but also, the minuso test has
4204       # not run yet.  These depmodes are late enough in the game, and
4205       # so weak that their functioning should not be impacted.
4206       am__obj=conftest.${OBJEXT-o}
4207       am__minus_obj=
4208       ;;
4209     none) break ;;
4210     esac
4211     if depmode=$depmode \
4212        source=sub/conftest.c object=$am__obj \
4213        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4214        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4215          >/dev/null 2>conftest.err &&
4216        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4217        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4218        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4219        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4220       # icc doesn't choke on unknown options, it will just issue warnings
4221       # or remarks (even with -Werror).  So we grep stderr for any message
4222       # that says an option was ignored or not supported.
4223       # When given -MP, icc 7.0 and 7.1 complain thusly:
4224       #   icc: Command line warning: ignoring option '-M'; no argument required
4225       # The diagnosis changed in icc 8.0:
4226       #   icc: Command line remark: option '-MP' not supported
4227       if (grep 'ignoring option' conftest.err ||
4228           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4229         am_cv_CC_dependencies_compiler_type=$depmode
4230         break
4231       fi
4232     fi
4233   done
4234
4235   cd ..
4236   rm -rf conftest.dir
4237 else
4238   am_cv_CC_dependencies_compiler_type=none
4239 fi
4240
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4243 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4244 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4245
4246  if
4247   test "x$enable_dependency_tracking" != xno \
4248   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4249   am__fastdepCC_TRUE=
4250   am__fastdepCC_FALSE='#'
4251 else
4252   am__fastdepCC_TRUE='#'
4253   am__fastdepCC_FALSE=
4254 fi
4255
4256
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4260 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4261     # Check whether --enable-maintainer-mode was given.
4262 if test "${enable_maintainer_mode+set}" = set; then :
4263   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4264 else
4265   USE_MAINTAINER_MODE=no
4266 fi
4267
4268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4269 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4270    if test $USE_MAINTAINER_MODE = yes; then
4271   MAINTAINER_MODE_TRUE=
4272   MAINTAINER_MODE_FALSE='#'
4273 else
4274   MAINTAINER_MODE_TRUE='#'
4275   MAINTAINER_MODE_FALSE=
4276 fi
4277
4278   MAINT=$MAINTAINER_MODE_TRUE
4279
4280
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 if test -n "$ac_tool_prefix"; then
4288   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if test -n "$CC"; then
4296   ac_cv_prog_CC="$CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303     for ac_exec_ext in '' $ac_executable_extensions; do
4304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310   done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 fi
4326 if test -z "$ac_cv_prog_CC"; then
4327   ac_ct_CC=$CC
4328   # Extract the first word of "gcc", so it can be a program name with args.
4329 set dummy gcc; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$ac_ct_CC"; then
4336   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_prog_ac_ct_CC="gcc"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 fi
4354 fi
4355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4356 if test -n "$ac_ct_CC"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4358 $as_echo "$ac_ct_CC" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364   if test "x$ac_ct_CC" = x; then
4365     CC=""
4366   else
4367     case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373     CC=$ac_ct_CC
4374   fi
4375 else
4376   CC="$ac_cv_prog_CC"
4377 fi
4378
4379 if test -z "$CC"; then
4380           if test -n "$ac_tool_prefix"; then
4381     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}cc; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_prog_CC+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   if test -n "$CC"; then
4389   ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396     for ac_exec_ext in '' $ac_executable_extensions; do
4397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398     ac_cv_prog_CC="${ac_tool_prefix}cc"
4399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400     break 2
4401   fi
4402 done
4403   done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 CC=$ac_cv_prog_CC
4409 if test -n "$CC"; then
4410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4411 $as_echo "$CC" >&6; }
4412 else
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417
4418   fi
4419 fi
4420 if test -z "$CC"; then
4421   # Extract the first word of "cc", so it can be a program name with args.
4422 set dummy cc; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_CC+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -n "$CC"; then
4429   ac_cv_prog_CC="$CC" # Let the user override the test.
4430 else
4431   ac_prog_rejected=no
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4440        ac_prog_rejected=yes
4441        continue
4442      fi
4443     ac_cv_prog_CC="cc"
4444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448   done
4449 IFS=$as_save_IFS
4450
4451 if test $ac_prog_rejected = yes; then
4452   # We found a bogon in the path, so make sure we never use it.
4453   set dummy $ac_cv_prog_CC
4454   shift
4455   if test $# != 0; then
4456     # We chose a different compiler from the bogus one.
4457     # However, it has the same basename, so the bogon will be chosen
4458     # first if we set CC to just the basename; use the full file name.
4459     shift
4460     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4461   fi
4462 fi
4463 fi
4464 fi
4465 CC=$ac_cv_prog_CC
4466 if test -n "$CC"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4468 $as_echo "$CC" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475 fi
4476 if test -z "$CC"; then
4477   if test -n "$ac_tool_prefix"; then
4478   for ac_prog in cl.exe
4479   do
4480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_prog_CC+:} false; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   if test -n "$CC"; then
4488   ac_cv_prog_CC="$CC" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493   IFS=$as_save_IFS
4494   test -z "$as_dir" && as_dir=.
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499     break 2
4500   fi
4501 done
4502   done
4503 IFS=$as_save_IFS
4504
4505 fi
4506 fi
4507 CC=$ac_cv_prog_CC
4508 if test -n "$CC"; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510 $as_echo "$CC" >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515
4516
4517     test -n "$CC" && break
4518   done
4519 fi
4520 if test -z "$CC"; then
4521   ac_ct_CC=$CC
4522   for ac_prog in cl.exe
4523 do
4524   # Extract the first word of "$ac_prog", so it can be a program name with args.
4525 set dummy $ac_prog; ac_word=$2
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 $as_echo_n "checking for $ac_word... " >&6; }
4528 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   if test -n "$ac_ct_CC"; then
4532   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539     for ac_exec_ext in '' $ac_executable_extensions; do
4540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541     ac_cv_prog_ac_ct_CC="$ac_prog"
4542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546   done
4547 IFS=$as_save_IFS
4548
4549 fi
4550 fi
4551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4552 if test -n "$ac_ct_CC"; then
4553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4554 $as_echo "$ac_ct_CC" >&6; }
4555 else
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4558 fi
4559
4560
4561   test -n "$ac_ct_CC" && break
4562 done
4563
4564   if test "x$ac_ct_CC" = x; then
4565     CC=""
4566   else
4567     case $cross_compiling:$ac_tool_warned in
4568 yes:)
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4571 ac_tool_warned=yes ;;
4572 esac
4573     CC=$ac_ct_CC
4574   fi
4575 fi
4576
4577 fi
4578
4579
4580 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error $? "no acceptable C compiler found in \$PATH
4583 See \`config.log' for more details" "$LINENO" 5; }
4584
4585 # Provide some information about the compiler.
4586 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4587 set X $ac_compile
4588 ac_compiler=$2
4589 for ac_option in --version -v -V -qversion; do
4590   { { ac_try="$ac_compiler $ac_option >&5"
4591 case "(($ac_try" in
4592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593   *) ac_try_echo=$ac_try;;
4594 esac
4595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4596 $as_echo "$ac_try_echo"; } >&5
4597   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4598   ac_status=$?
4599   if test -s conftest.err; then
4600     sed '10a\
4601 ... rest of stderr output deleted ...
4602          10q' conftest.err >conftest.er1
4603     cat conftest.er1 >&5
4604   fi
4605   rm -f conftest.er1 conftest.err
4606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607   test $ac_status = 0; }
4608 done
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4612 if ${ac_cv_c_compiler_gnu+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617
4618 int
4619 main ()
4620 {
4621 #ifndef __GNUC__
4622        choke me
4623 #endif
4624
4625   ;
4626   return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630   ac_compiler_gnu=yes
4631 else
4632   ac_compiler_gnu=no
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4640 if test $ac_compiler_gnu = yes; then
4641   GCC=yes
4642 else
4643   GCC=
4644 fi
4645 ac_test_CFLAGS=${CFLAGS+set}
4646 ac_save_CFLAGS=$CFLAGS
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4649 if ${ac_cv_prog_cc_g+:} false; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   ac_save_c_werror_flag=$ac_c_werror_flag
4653    ac_c_werror_flag=yes
4654    ac_cv_prog_cc_g=no
4655    CFLAGS="-g"
4656    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658
4659 int
4660 main ()
4661 {
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668   ac_cv_prog_cc_g=yes
4669 else
4670   CFLAGS=""
4671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683
4684 else
4685   ac_c_werror_flag=$ac_save_c_werror_flag
4686          CFLAGS="-g"
4687          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h.  */
4689
4690 int
4691 main ()
4692 {
4693
4694   ;
4695   return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699   ac_cv_prog_cc_g=yes
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706    ac_c_werror_flag=$ac_save_c_werror_flag
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4709 $as_echo "$ac_cv_prog_cc_g" >&6; }
4710 if test "$ac_test_CFLAGS" = set; then
4711   CFLAGS=$ac_save_CFLAGS
4712 elif test $ac_cv_prog_cc_g = yes; then
4713   if test "$GCC" = yes; then
4714     CFLAGS="-g -O2"
4715   else
4716     CFLAGS="-g"
4717   fi
4718 else
4719   if test "$GCC" = yes; then
4720     CFLAGS="-O2"
4721   else
4722     CFLAGS=
4723   fi
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4727 if ${ac_cv_prog_cc_c89+:} false; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   ac_cv_prog_cc_c89=no
4731 ac_save_CC=$CC
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734 #include <stdarg.h>
4735 #include <stdio.h>
4736 struct stat;
4737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4738 struct buf { int x; };
4739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4740 static char *e (p, i)
4741      char **p;
4742      int i;
4743 {
4744   return p[i];
4745 }
4746 static char *f (char * (*g) (char **, int), char **p, ...)
4747 {
4748   char *s;
4749   va_list v;
4750   va_start (v,p);
4751   s = g (p, va_arg (v,int));
4752   va_end (v);
4753   return s;
4754 }
4755
4756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4757    function prototypes and stuff, but not '\xHH' hex character constants.
4758    These don't provoke an error unfortunately, instead are silently treated
4759    as 'x'.  The following induces an error, until -std is added to get
4760    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4761    array size at least.  It's necessary to write '\x00'==0 to get something
4762    that's true only with -std.  */
4763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4764
4765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4766    inside strings and character constants.  */
4767 #define FOO(x) 'x'
4768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4769
4770 int test (int i, double x);
4771 struct s1 {int (*f) (int a);};
4772 struct s2 {int (*f) (double a);};
4773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4774 int argc;
4775 char **argv;
4776 int
4777 main ()
4778 {
4779 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4785         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4786 do
4787   CC="$ac_save_CC $ac_arg"
4788   if ac_fn_c_try_compile "$LINENO"; then :
4789   ac_cv_prog_cc_c89=$ac_arg
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext
4792   test "x$ac_cv_prog_cc_c89" != "xno" && break
4793 done
4794 rm -f conftest.$ac_ext
4795 CC=$ac_save_CC
4796
4797 fi
4798 # AC_CACHE_VAL
4799 case "x$ac_cv_prog_cc_c89" in
4800   x)
4801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4802 $as_echo "none needed" >&6; } ;;
4803   xno)
4804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4805 $as_echo "unsupported" >&6; } ;;
4806   *)
4807     CC="$CC $ac_cv_prog_cc_c89"
4808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4810 esac
4811 if test "x$ac_cv_prog_cc_c89" != xno; then :
4812
4813 fi
4814
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820
4821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4822 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4823 if ${ac_cv_prog_cc_c99+:} false; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   ac_cv_prog_cc_c99=no
4827 ac_save_CC=$CC
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h.  */
4830 #include <stdarg.h>
4831 #include <stdbool.h>
4832 #include <stdlib.h>
4833 #include <wchar.h>
4834 #include <stdio.h>
4835
4836 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4837 #define debug(...) fprintf (stderr, __VA_ARGS__)
4838 #define showlist(...) puts (#__VA_ARGS__)
4839 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4840 static void
4841 test_varargs_macros (void)
4842 {
4843   int x = 1234;
4844   int y = 5678;
4845   debug ("Flag");
4846   debug ("X = %d\n", x);
4847   showlist (The first, second, and third items.);
4848   report (x>y, "x is %d but y is %d", x, y);
4849 }
4850
4851 // Check long long types.
4852 #define BIG64 18446744073709551615ull
4853 #define BIG32 4294967295ul
4854 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4855 #if !BIG_OK
4856   your preprocessor is broken;
4857 #endif
4858 #if BIG_OK
4859 #else
4860   your preprocessor is broken;
4861 #endif
4862 static long long int bignum = -9223372036854775807LL;
4863 static unsigned long long int ubignum = BIG64;
4864
4865 struct incomplete_array
4866 {
4867   int datasize;
4868   double data[];
4869 };
4870
4871 struct named_init {
4872   int number;
4873   const wchar_t *name;
4874   double average;
4875 };
4876
4877 typedef const char *ccp;
4878
4879 static inline int
4880 test_restrict (ccp restrict text)
4881 {
4882   // See if C++-style comments work.
4883   // Iterate through items via the restricted pointer.
4884   // Also check for declarations in for loops.
4885   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4886     continue;
4887   return 0;
4888 }
4889
4890 // Check varargs and va_copy.
4891 static void
4892 test_varargs (const char *format, ...)
4893 {
4894   va_list args;
4895   va_start (args, format);
4896   va_list args_copy;
4897   va_copy (args_copy, args);
4898
4899   const char *str;
4900   int number;
4901   float fnumber;
4902
4903   while (*format)
4904     {
4905       switch (*format++)
4906         {
4907         case 's': // string
4908           str = va_arg (args_copy, const char *);
4909           break;
4910         case 'd': // int
4911           number = va_arg (args_copy, int);
4912           break;
4913         case 'f': // float
4914           fnumber = va_arg (args_copy, double);
4915           break;
4916         default:
4917           break;
4918         }
4919     }
4920   va_end (args_copy);
4921   va_end (args);
4922 }
4923
4924 int
4925 main ()
4926 {
4927
4928   // Check bool.
4929   _Bool success = false;
4930
4931   // Check restrict.
4932   if (test_restrict ("String literal") == 0)
4933     success = true;
4934   char *restrict newvar = "Another string";
4935
4936   // Check varargs.
4937   test_varargs ("s, d' f .", "string", 65, 34.234);
4938   test_varargs_macros ();
4939
4940   // Check flexible array members.
4941   struct incomplete_array *ia =
4942     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4943   ia->datasize = 10;
4944   for (int i = 0; i < ia->datasize; ++i)
4945     ia->data[i] = i * 1.234;
4946
4947   // Check named initializers.
4948   struct named_init ni = {
4949     .number = 34,
4950     .name = L"Test wide string",
4951     .average = 543.34343,
4952   };
4953
4954   ni.number = 58;
4955
4956   int dynamic_array[ni.number];
4957   dynamic_array[ni.number - 1] = 543;
4958
4959   // work around unused variable warnings
4960   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4961           || dynamic_array[ni.number - 1] != 543);
4962
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4968 do
4969   CC="$ac_save_CC $ac_arg"
4970   if ac_fn_c_try_compile "$LINENO"; then :
4971   ac_cv_prog_cc_c99=$ac_arg
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext
4974   test "x$ac_cv_prog_cc_c99" != "xno" && break
4975 done
4976 rm -f conftest.$ac_ext
4977 CC=$ac_save_CC
4978
4979 fi
4980 # AC_CACHE_VAL
4981 case "x$ac_cv_prog_cc_c99" in
4982   x)
4983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4984 $as_echo "none needed" >&6; } ;;
4985   xno)
4986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4987 $as_echo "unsupported" >&6; } ;;
4988   *)
4989     CC="$CC $ac_cv_prog_cc_c99"
4990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4991 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4992 esac
4993 if test "x$ac_cv_prog_cc_c99" != xno; then :
4994
4995 fi
4996
4997
4998 if test x"$ac_cv_prog_cc_c99" = xno; then
4999     as_fn_error $? "C99 compiler is required." "$LINENO" 5
5000 fi
5001 ac_ext=cpp
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 if test -z "$CXX"; then
5007   if test -n "$CCC"; then
5008     CXX=$CCC
5009   else
5010     if test -n "$ac_tool_prefix"; then
5011   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5012   do
5013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_CXX+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   if test -n "$CXX"; then
5021   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035   done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 CXX=$ac_cv_prog_CXX
5041 if test -n "$CXX"; then
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5043 $as_echo "$CXX" >&6; }
5044 else
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049
5050     test -n "$CXX" && break
5051   done
5052 fi
5053 if test -z "$CXX"; then
5054   ac_ct_CXX=$CXX
5055   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056 do
5057   # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   if test -n "$ac_ct_CXX"; then
5065   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072     for ac_exec_ext in '' $ac_executable_extensions; do
5073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074     ac_cv_prog_ac_ct_CXX="$ac_prog"
5075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079   done
5080 IFS=$as_save_IFS
5081
5082 fi
5083 fi
5084 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5085 if test -n "$ac_ct_CXX"; then
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5087 $as_echo "$ac_ct_CXX" >&6; }
5088 else
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092
5093
5094   test -n "$ac_ct_CXX" && break
5095 done
5096
5097   if test "x$ac_ct_CXX" = x; then
5098     CXX="g++"
5099   else
5100     case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106     CXX=$ac_ct_CXX
5107   fi
5108 fi
5109
5110   fi
5111 fi
5112 # Provide some information about the compiler.
5113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5114 set X $ac_compile
5115 ac_compiler=$2
5116 for ac_option in --version -v -V -qversion; do
5117   { { ac_try="$ac_compiler $ac_option >&5"
5118 case "(($ac_try" in
5119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120   *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5125   ac_status=$?
5126   if test -s conftest.err; then
5127     sed '10a\
5128 ... rest of stderr output deleted ...
5129          10q' conftest.err >conftest.er1
5130     cat conftest.er1 >&5
5131   fi
5132   rm -f conftest.er1 conftest.err
5133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5134   test $ac_status = 0; }
5135 done
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5138 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5139 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144
5145 int
5146 main ()
5147 {
5148 #ifndef __GNUC__
5149        choke me
5150 #endif
5151
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 if ac_fn_cxx_try_compile "$LINENO"; then :
5157   ac_compiler_gnu=yes
5158 else
5159   ac_compiler_gnu=no
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5166 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5167 if test $ac_compiler_gnu = yes; then
5168   GXX=yes
5169 else
5170   GXX=
5171 fi
5172 ac_test_CXXFLAGS=${CXXFLAGS+set}
5173 ac_save_CXXFLAGS=$CXXFLAGS
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5175 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5176 if ${ac_cv_prog_cxx_g+:} false; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5180    ac_cxx_werror_flag=yes
5181    ac_cv_prog_cxx_g=no
5182    CXXFLAGS="-g"
5183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h.  */
5185
5186 int
5187 main ()
5188 {
5189
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_cxx_try_compile "$LINENO"; then :
5195   ac_cv_prog_cxx_g=yes
5196 else
5197   CXXFLAGS=""
5198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200
5201 int
5202 main ()
5203 {
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_cxx_try_compile "$LINENO"; then :
5210
5211 else
5212   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5213          CXXFLAGS="-g"
5214          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216
5217 int
5218 main ()
5219 {
5220
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225 if ac_fn_cxx_try_compile "$LINENO"; then :
5226   ac_cv_prog_cxx_g=yes
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5236 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5237 if test "$ac_test_CXXFLAGS" = set; then
5238   CXXFLAGS=$ac_save_CXXFLAGS
5239 elif test $ac_cv_prog_cxx_g = yes; then
5240   if test "$GXX" = yes; then
5241     CXXFLAGS="-g -O2"
5242   else
5243     CXXFLAGS="-g"
5244   fi
5245 else
5246   if test "$GXX" = yes; then
5247     CXXFLAGS="-O2"
5248   else
5249     CXXFLAGS=
5250   fi
5251 fi
5252 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258 depcc="$CXX"  am_compiler_list=
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5261 $as_echo_n "checking dependency style of $depcc... " >&6; }
5262 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5266   # We make a subdir and do the tests there.  Otherwise we can end up
5267   # making bogus files that we don't know about and never remove.  For
5268   # instance it was reported that on HP-UX the gcc test will end up
5269   # making a dummy file named 'D' -- because '-MD' means "put the output
5270   # in D".
5271   rm -rf conftest.dir
5272   mkdir conftest.dir
5273   # Copy depcomp to subdir because otherwise we won't find it if we're
5274   # using a relative directory.
5275   cp "$am_depcomp" conftest.dir
5276   cd conftest.dir
5277   # We will build objects and dependencies in a subdirectory because
5278   # it helps to detect inapplicable dependency modes.  For instance
5279   # both Tru64's cc and ICC support -MD to output dependencies as a
5280   # side effect of compilation, but ICC will put the dependencies in
5281   # the current directory while Tru64 will put them in the object
5282   # directory.
5283   mkdir sub
5284
5285   am_cv_CXX_dependencies_compiler_type=none
5286   if test "$am_compiler_list" = ""; then
5287      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5288   fi
5289   am__universal=false
5290   case " $depcc " in #(
5291      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5292      esac
5293
5294   for depmode in $am_compiler_list; do
5295     # Setup a source with many dependencies, because some compilers
5296     # like to wrap large dependency lists on column 80 (with \), and
5297     # we should not choose a depcomp mode which is confused by this.
5298     #
5299     # We need to recreate these files for each test, as the compiler may
5300     # overwrite some of them when testing with obscure command lines.
5301     # This happens at least with the AIX C compiler.
5302     : > sub/conftest.c
5303     for i in 1 2 3 4 5 6; do
5304       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5305       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5306       # Solaris 10 /bin/sh.
5307       echo '/* dummy */' > sub/conftst$i.h
5308     done
5309     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5310
5311     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5312     # mode.  It turns out that the SunPro C++ compiler does not properly
5313     # handle '-M -o', and we need to detect this.  Also, some Intel
5314     # versions had trouble with output in subdirs.
5315     am__obj=sub/conftest.${OBJEXT-o}
5316     am__minus_obj="-o $am__obj"
5317     case $depmode in
5318     gcc)
5319       # This depmode causes a compiler race in universal mode.
5320       test "$am__universal" = false || continue
5321       ;;
5322     nosideeffect)
5323       # After this tag, mechanisms are not by side-effect, so they'll
5324       # only be used when explicitly requested.
5325       if test "x$enable_dependency_tracking" = xyes; then
5326         continue
5327       else
5328         break
5329       fi
5330       ;;
5331     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5332       # This compiler won't grok '-c -o', but also, the minuso test has
5333       # not run yet.  These depmodes are late enough in the game, and
5334       # so weak that their functioning should not be impacted.
5335       am__obj=conftest.${OBJEXT-o}
5336       am__minus_obj=
5337       ;;
5338     none) break ;;
5339     esac
5340     if depmode=$depmode \
5341        source=sub/conftest.c object=$am__obj \
5342        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5343        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5344          >/dev/null 2>conftest.err &&
5345        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5346        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5347        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5348        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5349       # icc doesn't choke on unknown options, it will just issue warnings
5350       # or remarks (even with -Werror).  So we grep stderr for any message
5351       # that says an option was ignored or not supported.
5352       # When given -MP, icc 7.0 and 7.1 complain thusly:
5353       #   icc: Command line warning: ignoring option '-M'; no argument required
5354       # The diagnosis changed in icc 8.0:
5355       #   icc: Command line remark: option '-MP' not supported
5356       if (grep 'ignoring option' conftest.err ||
5357           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5358         am_cv_CXX_dependencies_compiler_type=$depmode
5359         break
5360       fi
5361     fi
5362   done
5363
5364   cd ..
5365   rm -rf conftest.dir
5366 else
5367   am_cv_CXX_dependencies_compiler_type=none
5368 fi
5369
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5372 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5373 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5374
5375  if
5376   test "x$enable_dependency_tracking" != xno \
5377   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5378   am__fastdepCXX_TRUE=
5379   am__fastdepCXX_FALSE='#'
5380 else
5381   am__fastdepCXX_TRUE='#'
5382   am__fastdepCXX_FALSE=
5383 fi
5384
5385
5386
5387 # Make sure we can run config.sub.
5388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5389   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5392 $as_echo_n "checking build system type... " >&6; }
5393 if ${ac_cv_build+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   ac_build_alias=$build_alias
5397 test "x$ac_build_alias" = x &&
5398   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5399 test "x$ac_build_alias" = x &&
5400   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5402   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5406 $as_echo "$ac_cv_build" >&6; }
5407 case $ac_cv_build in
5408 *-*-*) ;;
5409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5410 esac
5411 build=$ac_cv_build
5412 ac_save_IFS=$IFS; IFS='-'
5413 set x $ac_cv_build
5414 shift
5415 build_cpu=$1
5416 build_vendor=$2
5417 shift; shift
5418 # Remember, the first character of IFS is used to create $*,
5419 # except with old shells:
5420 build_os=$*
5421 IFS=$ac_save_IFS
5422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5426 $as_echo_n "checking host system type... " >&6; }
5427 if ${ac_cv_host+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   if test "x$host_alias" = x; then
5431   ac_cv_host=$ac_cv_build
5432 else
5433   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5434     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5435 fi
5436
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5439 $as_echo "$ac_cv_host" >&6; }
5440 case $ac_cv_host in
5441 *-*-*) ;;
5442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5443 esac
5444 host=$ac_cv_host
5445 ac_save_IFS=$IFS; IFS='-'
5446 set x $ac_cv_host
5447 shift
5448 host_cpu=$1
5449 host_vendor=$2
5450 shift; shift
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5453 host_os=$*
5454 IFS=$ac_save_IFS
5455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5456
5457
5458 case `pwd` in
5459   *\ * | *\     *)
5460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5461 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5462 esac
5463
5464
5465
5466 macro_version='2.4.2'
5467 macro_revision='1.3337'
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481 ltmain="$ac_aux_dir/ltmain.sh"
5482
5483 # Backslashify metacharacters that are still active within
5484 # double-quoted strings.
5485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5486
5487 # Same as above, but do not quote variable references.
5488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5489
5490 # Sed substitution to delay expansion of an escaped shell variable in a
5491 # double_quote_subst'ed string.
5492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5493
5494 # Sed substitution to delay expansion of an escaped single quote.
5495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5496
5497 # Sed substitution to avoid accidental globbing in evaled expressions
5498 no_glob_subst='s/\*/\\\*/g'
5499
5500 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5505 $as_echo_n "checking how to print strings... " >&6; }
5506 # Test print first, because it will be a builtin if present.
5507 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5508    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5509   ECHO='print -r --'
5510 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5511   ECHO='printf %s\n'
5512 else
5513   # Use this function as a fallback that always works.
5514   func_fallback_echo ()
5515   {
5516     eval 'cat <<_LTECHO_EOF
5517 $1
5518 _LTECHO_EOF'
5519   }
5520   ECHO='func_fallback_echo'
5521 fi
5522
5523 # func_echo_all arg...
5524 # Invoke $ECHO with all args, space-separated.
5525 func_echo_all ()
5526 {
5527     $ECHO ""
5528 }
5529
5530 case "$ECHO" in
5531   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5532 $as_echo "printf" >&6; } ;;
5533   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5534 $as_echo "print -r" >&6; } ;;
5535   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5536 $as_echo "cat" >&6; } ;;
5537 esac
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5553 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5554 if ${ac_cv_path_SED+:} false; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5558      for ac_i in 1 2 3 4 5 6 7; do
5559        ac_script="$ac_script$as_nl$ac_script"
5560      done
5561      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5562      { ac_script=; unset ac_script;}
5563      if test -z "$SED"; then
5564   ac_path_SED_found=false
5565   # Loop through the user's path and test for each of PROGNAME-LIST
5566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_prog in sed gsed; do
5572     for ac_exec_ext in '' $ac_executable_extensions; do
5573       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5574       as_fn_executable_p "$ac_path_SED" || continue
5575 # Check for GNU ac_path_SED and select it if it is found.
5576   # Check for GNU $ac_path_SED
5577 case `"$ac_path_SED" --version 2>&1` in
5578 *GNU*)
5579   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5580 *)
5581   ac_count=0
5582   $as_echo_n 0123456789 >"conftest.in"
5583   while :
5584   do
5585     cat "conftest.in" "conftest.in" >"conftest.tmp"
5586     mv "conftest.tmp" "conftest.in"
5587     cp "conftest.in" "conftest.nl"
5588     $as_echo '' >> "conftest.nl"
5589     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5591     as_fn_arith $ac_count + 1 && ac_count=$as_val
5592     if test $ac_count -gt ${ac_path_SED_max-0}; then
5593       # Best one so far, save it but keep looking for a better one
5594       ac_cv_path_SED="$ac_path_SED"
5595       ac_path_SED_max=$ac_count
5596     fi
5597     # 10*(2^10) chars as input seems more than enough
5598     test $ac_count -gt 10 && break
5599   done
5600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5601 esac
5602
5603       $ac_path_SED_found && break 3
5604     done
5605   done
5606   done
5607 IFS=$as_save_IFS
5608   if test -z "$ac_cv_path_SED"; then
5609     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5610   fi
5611 else
5612   ac_cv_path_SED=$SED
5613 fi
5614
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5617 $as_echo "$ac_cv_path_SED" >&6; }
5618  SED="$ac_cv_path_SED"
5619   rm -f conftest.sed
5620
5621 test -z "$SED" && SED=sed
5622 Xsed="$SED -e 1s/^X//"
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5635 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5636 if ${ac_cv_path_GREP+:} false; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   if test -z "$GREP"; then
5640   ac_path_GREP_found=false
5641   # Loop through the user's path and test for each of PROGNAME-LIST
5642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_prog in grep ggrep; do
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5650       as_fn_executable_p "$ac_path_GREP" || continue
5651 # Check for GNU ac_path_GREP and select it if it is found.
5652   # Check for GNU $ac_path_GREP
5653 case `"$ac_path_GREP" --version 2>&1` in
5654 *GNU*)
5655   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5656 *)
5657   ac_count=0
5658   $as_echo_n 0123456789 >"conftest.in"
5659   while :
5660   do
5661     cat "conftest.in" "conftest.in" >"conftest.tmp"
5662     mv "conftest.tmp" "conftest.in"
5663     cp "conftest.in" "conftest.nl"
5664     $as_echo 'GREP' >> "conftest.nl"
5665     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667     as_fn_arith $ac_count + 1 && ac_count=$as_val
5668     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5669       # Best one so far, save it but keep looking for a better one
5670       ac_cv_path_GREP="$ac_path_GREP"
5671       ac_path_GREP_max=$ac_count
5672     fi
5673     # 10*(2^10) chars as input seems more than enough
5674     test $ac_count -gt 10 && break
5675   done
5676   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5677 esac
5678
5679       $ac_path_GREP_found && break 3
5680     done
5681   done
5682   done
5683 IFS=$as_save_IFS
5684   if test -z "$ac_cv_path_GREP"; then
5685     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5686   fi
5687 else
5688   ac_cv_path_GREP=$GREP
5689 fi
5690
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5693 $as_echo "$ac_cv_path_GREP" >&6; }
5694  GREP="$ac_cv_path_GREP"
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5698 $as_echo_n "checking for egrep... " >&6; }
5699 if ${ac_cv_path_EGREP+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5703    then ac_cv_path_EGREP="$GREP -E"
5704    else
5705      if test -z "$EGREP"; then
5706   ac_path_EGREP_found=false
5707   # Loop through the user's path and test for each of PROGNAME-LIST
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_prog in egrep; do
5714     for ac_exec_ext in '' $ac_executable_extensions; do
5715       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5716       as_fn_executable_p "$ac_path_EGREP" || continue
5717 # Check for GNU ac_path_EGREP and select it if it is found.
5718   # Check for GNU $ac_path_EGREP
5719 case `"$ac_path_EGREP" --version 2>&1` in
5720 *GNU*)
5721   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5722 *)
5723   ac_count=0
5724   $as_echo_n 0123456789 >"conftest.in"
5725   while :
5726   do
5727     cat "conftest.in" "conftest.in" >"conftest.tmp"
5728     mv "conftest.tmp" "conftest.in"
5729     cp "conftest.in" "conftest.nl"
5730     $as_echo 'EGREP' >> "conftest.nl"
5731     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5733     as_fn_arith $ac_count + 1 && ac_count=$as_val
5734     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5735       # Best one so far, save it but keep looking for a better one
5736       ac_cv_path_EGREP="$ac_path_EGREP"
5737       ac_path_EGREP_max=$ac_count
5738     fi
5739     # 10*(2^10) chars as input seems more than enough
5740     test $ac_count -gt 10 && break
5741   done
5742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5743 esac
5744
5745       $ac_path_EGREP_found && break 3
5746     done
5747   done
5748   done
5749 IFS=$as_save_IFS
5750   if test -z "$ac_cv_path_EGREP"; then
5751     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5752   fi
5753 else
5754   ac_cv_path_EGREP=$EGREP
5755 fi
5756
5757    fi
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5760 $as_echo "$ac_cv_path_EGREP" >&6; }
5761  EGREP="$ac_cv_path_EGREP"
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5765 $as_echo_n "checking for fgrep... " >&6; }
5766 if ${ac_cv_path_FGREP+:} false; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5770    then ac_cv_path_FGREP="$GREP -F"
5771    else
5772      if test -z "$FGREP"; then
5773   ac_path_FGREP_found=false
5774   # Loop through the user's path and test for each of PROGNAME-LIST
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_prog in fgrep; do
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5783       as_fn_executable_p "$ac_path_FGREP" || continue
5784 # Check for GNU ac_path_FGREP and select it if it is found.
5785   # Check for GNU $ac_path_FGREP
5786 case `"$ac_path_FGREP" --version 2>&1` in
5787 *GNU*)
5788   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5789 *)
5790   ac_count=0
5791   $as_echo_n 0123456789 >"conftest.in"
5792   while :
5793   do
5794     cat "conftest.in" "conftest.in" >"conftest.tmp"
5795     mv "conftest.tmp" "conftest.in"
5796     cp "conftest.in" "conftest.nl"
5797     $as_echo 'FGREP' >> "conftest.nl"
5798     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5799     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5800     as_fn_arith $ac_count + 1 && ac_count=$as_val
5801     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5802       # Best one so far, save it but keep looking for a better one
5803       ac_cv_path_FGREP="$ac_path_FGREP"
5804       ac_path_FGREP_max=$ac_count
5805     fi
5806     # 10*(2^10) chars as input seems more than enough
5807     test $ac_count -gt 10 && break
5808   done
5809   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 esac
5811
5812       $ac_path_FGREP_found && break 3
5813     done
5814   done
5815   done
5816 IFS=$as_save_IFS
5817   if test -z "$ac_cv_path_FGREP"; then
5818     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5819   fi
5820 else
5821   ac_cv_path_FGREP=$FGREP
5822 fi
5823
5824    fi
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5827 $as_echo "$ac_cv_path_FGREP" >&6; }
5828  FGREP="$ac_cv_path_FGREP"
5829
5830
5831 test -z "$GREP" && GREP=grep
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851 # Check whether --with-gnu-ld was given.
5852 if test "${with_gnu_ld+set}" = set; then :
5853   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5854 else
5855   with_gnu_ld=no
5856 fi
5857
5858 ac_prog=ld
5859 if test "$GCC" = yes; then
5860   # Check if gcc -print-prog-name=ld gives a path.
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5862 $as_echo_n "checking for ld used by $CC... " >&6; }
5863   case $host in
5864   *-*-mingw*)
5865     # gcc leaves a trailing carriage return which upsets mingw
5866     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5867   *)
5868     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5869   esac
5870   case $ac_prog in
5871     # Accept absolute paths.
5872     [\\/]* | ?:[\\/]*)
5873       re_direlt='/[^/][^/]*/\.\./'
5874       # Canonicalize the pathname of ld
5875       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5876       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5877         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5878       done
5879       test -z "$LD" && LD="$ac_prog"
5880       ;;
5881   "")
5882     # If it fails, then pretend we aren't using GCC.
5883     ac_prog=ld
5884     ;;
5885   *)
5886     # If it is relative, then search for the first ld in PATH.
5887     with_gnu_ld=unknown
5888     ;;
5889   esac
5890 elif test "$with_gnu_ld" = yes; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5892 $as_echo_n "checking for GNU ld... " >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5895 $as_echo_n "checking for non-GNU ld... " >&6; }
5896 fi
5897 if ${lt_cv_path_LD+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -z "$LD"; then
5901   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5902   for ac_dir in $PATH; do
5903     IFS="$lt_save_ifs"
5904     test -z "$ac_dir" && ac_dir=.
5905     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5906       lt_cv_path_LD="$ac_dir/$ac_prog"
5907       # Check to see if the program is GNU ld.  I'd rather use --version,
5908       # but apparently some variants of GNU ld only accept -v.
5909       # Break only if it was the GNU/non-GNU ld that we prefer.
5910       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5911       *GNU* | *'with BFD'*)
5912         test "$with_gnu_ld" != no && break
5913         ;;
5914       *)
5915         test "$with_gnu_ld" != yes && break
5916         ;;
5917       esac
5918     fi
5919   done
5920   IFS="$lt_save_ifs"
5921 else
5922   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5923 fi
5924 fi
5925
5926 LD="$lt_cv_path_LD"
5927 if test -n "$LD"; then
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5929 $as_echo "$LD" >&6; }
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5936 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5937 if ${lt_cv_prog_gnu_ld+:} false; then :
5938   $as_echo_n "(cached) " >&6
5939 else
5940   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5941 case `$LD -v 2>&1 </dev/null` in
5942 *GNU* | *'with BFD'*)
5943   lt_cv_prog_gnu_ld=yes
5944   ;;
5945 *)
5946   lt_cv_prog_gnu_ld=no
5947   ;;
5948 esac
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5951 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5952 with_gnu_ld=$lt_cv_prog_gnu_ld
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5963 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5964 if ${lt_cv_path_NM+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$NM"; then
5968   # Let the user override the test.
5969   lt_cv_path_NM="$NM"
5970 else
5971   lt_nm_to_check="${ac_tool_prefix}nm"
5972   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973     lt_nm_to_check="$lt_nm_to_check nm"
5974   fi
5975   for lt_tmp_nm in $lt_nm_to_check; do
5976     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5978       IFS="$lt_save_ifs"
5979       test -z "$ac_dir" && ac_dir=.
5980       tmp_nm="$ac_dir/$lt_tmp_nm"
5981       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982         # Check to see if the nm accepts a BSD-compat flag.
5983         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984         #   nm: unknown option "B" ignored
5985         # Tru64's nm complains that /dev/null is an invalid object file
5986         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987         */dev/null* | *'Invalid file or object type'*)
5988           lt_cv_path_NM="$tmp_nm -B"
5989           break
5990           ;;
5991         *)
5992           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5993           */dev/null*)
5994             lt_cv_path_NM="$tmp_nm -p"
5995             break
5996             ;;
5997           *)
5998             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999             continue # so that we can try to find one that supports BSD flags
6000             ;;
6001           esac
6002           ;;
6003         esac
6004       fi
6005     done
6006     IFS="$lt_save_ifs"
6007   done
6008   : ${lt_cv_path_NM=no}
6009 fi
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6012 $as_echo "$lt_cv_path_NM" >&6; }
6013 if test "$lt_cv_path_NM" != "no"; then
6014   NM="$lt_cv_path_NM"
6015 else
6016   # Didn't find any BSD compatible name lister, look for dumpbin.
6017   if test -n "$DUMPBIN"; then :
6018     # Let the user override the test.
6019   else
6020     if test -n "$ac_tool_prefix"; then
6021   for ac_prog in dumpbin "link -dump"
6022   do
6023     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_DUMPBIN+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$DUMPBIN"; then
6031   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 DUMPBIN=$ac_cv_prog_DUMPBIN
6051 if test -n "$DUMPBIN"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6053 $as_echo "$DUMPBIN" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060     test -n "$DUMPBIN" && break
6061   done
6062 fi
6063 if test -z "$DUMPBIN"; then
6064   ac_ct_DUMPBIN=$DUMPBIN
6065   for ac_prog in dumpbin "link -dump"
6066 do
6067   # Extract the first word of "$ac_prog", so it can be a program name with args.
6068 set dummy $ac_prog; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   if test -n "$ac_ct_DUMPBIN"; then
6075   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082     for ac_exec_ext in '' $ac_executable_extensions; do
6083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086     break 2
6087   fi
6088 done
6089   done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6095 if test -n "$ac_ct_DUMPBIN"; then
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6097 $as_echo "$ac_ct_DUMPBIN" >&6; }
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103
6104   test -n "$ac_ct_DUMPBIN" && break
6105 done
6106
6107   if test "x$ac_ct_DUMPBIN" = x; then
6108     DUMPBIN=":"
6109   else
6110     case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116     DUMPBIN=$ac_ct_DUMPBIN
6117   fi
6118 fi
6119
6120     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6121     *COFF*)
6122       DUMPBIN="$DUMPBIN -symbols"
6123       ;;
6124     *)
6125       DUMPBIN=:
6126       ;;
6127     esac
6128   fi
6129
6130   if test "$DUMPBIN" != ":"; then
6131     NM="$DUMPBIN"
6132   fi
6133 fi
6134 test -z "$NM" && NM=nm
6135
6136
6137
6138
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6142 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6143 if ${lt_cv_nm_interface+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   lt_cv_nm_interface="BSD nm"
6147   echo "int some_variable = 0;" > conftest.$ac_ext
6148   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6149   (eval "$ac_compile" 2>conftest.err)
6150   cat conftest.err >&5
6151   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6152   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6153   cat conftest.err >&5
6154   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6155   cat conftest.out >&5
6156   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6157     lt_cv_nm_interface="MS dumpbin"
6158   fi
6159   rm -f conftest*
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6162 $as_echo "$lt_cv_nm_interface" >&6; }
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6165 $as_echo_n "checking whether ln -s works... " >&6; }
6166 LN_S=$as_ln_s
6167 if test "$LN_S" = "ln -s"; then
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6169 $as_echo "yes" >&6; }
6170 else
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6172 $as_echo "no, using $LN_S" >&6; }
6173 fi
6174
6175 # find the maximum length of command line arguments
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6177 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6178 if ${lt_cv_sys_max_cmd_len+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181     i=0
6182   teststring="ABCD"
6183
6184   case $build_os in
6185   msdosdjgpp*)
6186     # On DJGPP, this test can blow up pretty badly due to problems in libc
6187     # (any single argument exceeding 2000 bytes causes a buffer overrun
6188     # during glob expansion).  Even if it were fixed, the result of this
6189     # check would be larger than it should be.
6190     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6191     ;;
6192
6193   gnu*)
6194     # Under GNU Hurd, this test is not required because there is
6195     # no limit to the length of command line arguments.
6196     # Libtool will interpret -1 as no limit whatsoever
6197     lt_cv_sys_max_cmd_len=-1;
6198     ;;
6199
6200   cygwin* | mingw* | cegcc*)
6201     # On Win9x/ME, this test blows up -- it succeeds, but takes
6202     # about 5 minutes as the teststring grows exponentially.
6203     # Worse, since 9x/ME are not pre-emptively multitasking,
6204     # you end up with a "frozen" computer, even though with patience
6205     # the test eventually succeeds (with a max line length of 256k).
6206     # Instead, let's just punt: use the minimum linelength reported by
6207     # all of the supported platforms: 8192 (on NT/2K/XP).
6208     lt_cv_sys_max_cmd_len=8192;
6209     ;;
6210
6211   mint*)
6212     # On MiNT this can take a long time and run out of memory.
6213     lt_cv_sys_max_cmd_len=8192;
6214     ;;
6215
6216   amigaos*)
6217     # On AmigaOS with pdksh, this test takes hours, literally.
6218     # So we just punt and use a minimum line length of 8192.
6219     lt_cv_sys_max_cmd_len=8192;
6220     ;;
6221
6222   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6223     # This has been around since 386BSD, at least.  Likely further.
6224     if test -x /sbin/sysctl; then
6225       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6226     elif test -x /usr/sbin/sysctl; then
6227       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6228     else
6229       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6230     fi
6231     # And add a safety zone
6232     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6233     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6234     ;;
6235
6236   interix*)
6237     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6238     lt_cv_sys_max_cmd_len=196608
6239     ;;
6240
6241   os2*)
6242     # The test takes a long time on OS/2.
6243     lt_cv_sys_max_cmd_len=8192
6244     ;;
6245
6246   osf*)
6247     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6248     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6249     # nice to cause kernel panics so lets avoid the loop below.
6250     # First set a reasonable default.
6251     lt_cv_sys_max_cmd_len=16384
6252     #
6253     if test -x /sbin/sysconfig; then
6254       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6255         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6256       esac
6257     fi
6258     ;;
6259   sco3.2v5*)
6260     lt_cv_sys_max_cmd_len=102400
6261     ;;
6262   sysv5* | sco5v6* | sysv4.2uw2*)
6263     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6264     if test -n "$kargmax"; then
6265       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6266     else
6267       lt_cv_sys_max_cmd_len=32768
6268     fi
6269     ;;
6270   *)
6271     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6272     if test -n "$lt_cv_sys_max_cmd_len"; then
6273       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6275     else
6276       # Make teststring a little bigger before we do anything with it.
6277       # a 1K string should be a reasonable start.
6278       for i in 1 2 3 4 5 6 7 8 ; do
6279         teststring=$teststring$teststring
6280       done
6281       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6282       # If test is not a shell built-in, we'll probably end up computing a
6283       # maximum length that is only half of the actual maximum length, but
6284       # we can't tell.
6285       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6286                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6287               test $i != 17 # 1/2 MB should be enough
6288       do
6289         i=`expr $i + 1`
6290         teststring=$teststring$teststring
6291       done
6292       # Only check the string length outside the loop.
6293       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6294       teststring=
6295       # Add a significant safety factor because C++ compilers can tack on
6296       # massive amounts of additional arguments before passing them to the
6297       # linker.  It appears as though 1/2 is a usable value.
6298       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6299     fi
6300     ;;
6301   esac
6302
6303 fi
6304
6305 if test -n $lt_cv_sys_max_cmd_len ; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6307 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6310 $as_echo "none" >&6; }
6311 fi
6312 max_cmd_len=$lt_cv_sys_max_cmd_len
6313
6314
6315
6316
6317
6318
6319 : ${CP="cp -f"}
6320 : ${MV="mv -f"}
6321 : ${RM="rm -f"}
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6324 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6325 # Try some XSI features
6326 xsi_shell=no
6327 ( _lt_dummy="a/b/c"
6328   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6329       = c,a/b,b/c, \
6330     && eval 'test $(( 1 + 1 )) -eq 2 \
6331     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6332   && xsi_shell=yes
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6334 $as_echo "$xsi_shell" >&6; }
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6338 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6339 lt_shell_append=no
6340 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6341     >/dev/null 2>&1 \
6342   && lt_shell_append=yes
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6344 $as_echo "$lt_shell_append" >&6; }
6345
6346
6347 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6348   lt_unset=unset
6349 else
6350   lt_unset=false
6351 fi
6352
6353
6354
6355
6356
6357 # test EBCDIC or ASCII
6358 case `echo X|tr X '\101'` in
6359  A) # ASCII based system
6360     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6361   lt_SP2NL='tr \040 \012'
6362   lt_NL2SP='tr \015\012 \040\040'
6363   ;;
6364  *) # EBCDIC based system
6365   lt_SP2NL='tr \100 \n'
6366   lt_NL2SP='tr \r\n \100\100'
6367   ;;
6368 esac
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6379 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6380 if ${lt_cv_to_host_file_cmd+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   case $host in
6384   *-*-mingw* )
6385     case $build in
6386       *-*-mingw* ) # actually msys
6387         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6388         ;;
6389       *-*-cygwin* )
6390         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6391         ;;
6392       * ) # otherwise, assume *nix
6393         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6394         ;;
6395     esac
6396     ;;
6397   *-*-cygwin* )
6398     case $build in
6399       *-*-mingw* ) # actually msys
6400         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6401         ;;
6402       *-*-cygwin* )
6403         lt_cv_to_host_file_cmd=func_convert_file_noop
6404         ;;
6405       * ) # otherwise, assume *nix
6406         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6407         ;;
6408     esac
6409     ;;
6410   * ) # unhandled hosts (and "normal" native builds)
6411     lt_cv_to_host_file_cmd=func_convert_file_noop
6412     ;;
6413 esac
6414
6415 fi
6416
6417 to_host_file_cmd=$lt_cv_to_host_file_cmd
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6419 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6420
6421
6422
6423
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6426 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6427 if ${lt_cv_to_tool_file_cmd+:} false; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   #assume ordinary cross tools, or native build.
6431 lt_cv_to_tool_file_cmd=func_convert_file_noop
6432 case $host in
6433   *-*-mingw* )
6434     case $build in
6435       *-*-mingw* ) # actually msys
6436         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6437         ;;
6438     esac
6439     ;;
6440 esac
6441
6442 fi
6443
6444 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6446 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6447
6448
6449
6450
6451
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6453 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6454 if ${lt_cv_ld_reload_flag+:} false; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457   lt_cv_ld_reload_flag='-r'
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6460 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6461 reload_flag=$lt_cv_ld_reload_flag
6462 case $reload_flag in
6463 "" | " "*) ;;
6464 *) reload_flag=" $reload_flag" ;;
6465 esac
6466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6467 case $host_os in
6468   cygwin* | mingw* | pw32* | cegcc*)
6469     if test "$GCC" != yes; then
6470       reload_cmds=false
6471     fi
6472     ;;
6473   darwin*)
6474     if test "$GCC" = yes; then
6475       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6476     else
6477       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6478     fi
6479     ;;
6480 esac
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 if test -n "$ac_tool_prefix"; then
6491   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_OBJDUMP+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if test -n "$OBJDUMP"; then
6499   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 OBJDUMP=$ac_cv_prog_OBJDUMP
6519 if test -n "$OBJDUMP"; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6521 $as_echo "$OBJDUMP" >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527
6528 fi
6529 if test -z "$ac_cv_prog_OBJDUMP"; then
6530   ac_ct_OBJDUMP=$OBJDUMP
6531   # Extract the first word of "objdump", so it can be a program name with args.
6532 set dummy objdump; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   if test -n "$ac_ct_OBJDUMP"; then
6539   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6559 if test -n "$ac_ct_OBJDUMP"; then
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6561 $as_echo "$ac_ct_OBJDUMP" >&6; }
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567   if test "x$ac_ct_OBJDUMP" = x; then
6568     OBJDUMP="false"
6569   else
6570     case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576     OBJDUMP=$ac_ct_OBJDUMP
6577   fi
6578 else
6579   OBJDUMP="$ac_cv_prog_OBJDUMP"
6580 fi
6581
6582 test -z "$OBJDUMP" && OBJDUMP=objdump
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6593 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6594 if ${lt_cv_deplibs_check_method+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   lt_cv_file_magic_cmd='$MAGIC_CMD'
6598 lt_cv_file_magic_test_file=
6599 lt_cv_deplibs_check_method='unknown'
6600 # Need to set the preceding variable on all platforms that support
6601 # interlibrary dependencies.
6602 # 'none' -- dependencies not supported.
6603 # `unknown' -- same as none, but documents that we really don't know.
6604 # 'pass_all' -- all dependencies passed with no checks.
6605 # 'test_compile' -- check by making test program.
6606 # 'file_magic [[regex]]' -- check by looking for files in library path
6607 # which responds to the $file_magic_cmd with a given extended regex.
6608 # If you have `file' or equivalent on your system and you're not sure
6609 # whether `pass_all' will *always* work, you probably want this one.
6610
6611 case $host_os in
6612 aix[4-9]*)
6613   lt_cv_deplibs_check_method=pass_all
6614   ;;
6615
6616 beos*)
6617   lt_cv_deplibs_check_method=pass_all
6618   ;;
6619
6620 bsdi[45]*)
6621   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6622   lt_cv_file_magic_cmd='/usr/bin/file -L'
6623   lt_cv_file_magic_test_file=/shlib/libc.so
6624   ;;
6625
6626 cygwin*)
6627   # func_win32_libid is a shell function defined in ltmain.sh
6628   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6629   lt_cv_file_magic_cmd='func_win32_libid'
6630   ;;
6631
6632 mingw* | pw32*)
6633   # Base MSYS/MinGW do not provide the 'file' command needed by
6634   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6635   # unless we find 'file', for example because we are cross-compiling.
6636   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6637   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6638     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639     lt_cv_file_magic_cmd='func_win32_libid'
6640   else
6641     # Keep this pattern in sync with the one in func_win32_libid.
6642     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6643     lt_cv_file_magic_cmd='$OBJDUMP -f'
6644   fi
6645   ;;
6646
6647 cegcc*)
6648   # use the weaker test based on 'objdump'. See mingw*.
6649   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6650   lt_cv_file_magic_cmd='$OBJDUMP -f'
6651   ;;
6652
6653 darwin* | rhapsody*)
6654   lt_cv_deplibs_check_method=pass_all
6655   ;;
6656
6657 freebsd* | dragonfly*)
6658   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6659     case $host_cpu in
6660     i*86 )
6661       # Not sure whether the presence of OpenBSD here was a mistake.
6662       # Let's accept both of them until this is cleared up.
6663       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6664       lt_cv_file_magic_cmd=/usr/bin/file
6665       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6666       ;;
6667     esac
6668   else
6669     lt_cv_deplibs_check_method=pass_all
6670   fi
6671   ;;
6672
6673 gnu*)
6674   lt_cv_deplibs_check_method=pass_all
6675   ;;
6676
6677 haiku*)
6678   lt_cv_deplibs_check_method=pass_all
6679   ;;
6680
6681 hpux10.20* | hpux11*)
6682   lt_cv_file_magic_cmd=/usr/bin/file
6683   case $host_cpu in
6684   ia64*)
6685     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6686     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6687     ;;
6688   hppa*64*)
6689     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]'
6690     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6691     ;;
6692   *)
6693     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6694     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6695     ;;
6696   esac
6697   ;;
6698
6699 interix[3-9]*)
6700   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6701   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6702   ;;
6703
6704 irix5* | irix6* | nonstopux*)
6705   case $LD in
6706   *-32|*"-32 ") libmagic=32-bit;;
6707   *-n32|*"-n32 ") libmagic=N32;;
6708   *-64|*"-64 ") libmagic=64-bit;;
6709   *) libmagic=never-match;;
6710   esac
6711   lt_cv_deplibs_check_method=pass_all
6712   ;;
6713
6714 # This must be glibc/ELF.
6715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6716   lt_cv_deplibs_check_method=pass_all
6717   ;;
6718
6719 netbsd*)
6720   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6721     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6722   else
6723     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6724   fi
6725   ;;
6726
6727 newos6*)
6728   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6729   lt_cv_file_magic_cmd=/usr/bin/file
6730   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6731   ;;
6732
6733 *nto* | *qnx*)
6734   lt_cv_deplibs_check_method=pass_all
6735   ;;
6736
6737 openbsd*)
6738   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6739     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6740   else
6741     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6742   fi
6743   ;;
6744
6745 osf3* | osf4* | osf5*)
6746   lt_cv_deplibs_check_method=pass_all
6747   ;;
6748
6749 rdos*)
6750   lt_cv_deplibs_check_method=pass_all
6751   ;;
6752
6753 solaris*)
6754   lt_cv_deplibs_check_method=pass_all
6755   ;;
6756
6757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6758   lt_cv_deplibs_check_method=pass_all
6759   ;;
6760
6761 sysv4 | sysv4.3*)
6762   case $host_vendor in
6763   motorola)
6764     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]'
6765     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6766     ;;
6767   ncr)
6768     lt_cv_deplibs_check_method=pass_all
6769     ;;
6770   sequent)
6771     lt_cv_file_magic_cmd='/bin/file'
6772     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6773     ;;
6774   sni)
6775     lt_cv_file_magic_cmd='/bin/file'
6776     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6777     lt_cv_file_magic_test_file=/lib/libc.so
6778     ;;
6779   siemens)
6780     lt_cv_deplibs_check_method=pass_all
6781     ;;
6782   pc)
6783     lt_cv_deplibs_check_method=pass_all
6784     ;;
6785   esac
6786   ;;
6787
6788 tpf*)
6789   lt_cv_deplibs_check_method=pass_all
6790   ;;
6791 esac
6792
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6795 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6796
6797 file_magic_glob=
6798 want_nocaseglob=no
6799 if test "$build" = "$host"; then
6800   case $host_os in
6801   mingw* | pw32*)
6802     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6803       want_nocaseglob=yes
6804     else
6805       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6806     fi
6807     ;;
6808   esac
6809 fi
6810
6811 file_magic_cmd=$lt_cv_file_magic_cmd
6812 deplibs_check_method=$lt_cv_deplibs_check_method
6813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 if test -n "$ac_tool_prefix"; then
6837   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_DLLTOOL+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   if test -n "$DLLTOOL"; then
6845   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852     for ac_exec_ext in '' $ac_executable_extensions; do
6853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859   done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 DLLTOOL=$ac_cv_prog_DLLTOOL
6865 if test -n "$DLLTOOL"; then
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6867 $as_echo "$DLLTOOL" >&6; }
6868 else
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873
6874 fi
6875 if test -z "$ac_cv_prog_DLLTOOL"; then
6876   ac_ct_DLLTOOL=$DLLTOOL
6877   # Extract the first word of "dlltool", so it can be a program name with args.
6878 set dummy dlltool; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$ac_ct_DLLTOOL"; then
6885   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6905 if test -n "$ac_ct_DLLTOOL"; then
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6907 $as_echo "$ac_ct_DLLTOOL" >&6; }
6908 else
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913   if test "x$ac_ct_DLLTOOL" = x; then
6914     DLLTOOL="false"
6915   else
6916     case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922     DLLTOOL=$ac_ct_DLLTOOL
6923   fi
6924 else
6925   DLLTOOL="$ac_cv_prog_DLLTOOL"
6926 fi
6927
6928 test -z "$DLLTOOL" && DLLTOOL=dlltool
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6940 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6941 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   lt_cv_sharedlib_from_linklib_cmd='unknown'
6945
6946 case $host_os in
6947 cygwin* | mingw* | pw32* | cegcc*)
6948   # two different shell functions defined in ltmain.sh
6949   # decide which to use based on capabilities of $DLLTOOL
6950   case `$DLLTOOL --help 2>&1` in
6951   *--identify-strict*)
6952     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6953     ;;
6954   *)
6955     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6956     ;;
6957   esac
6958   ;;
6959 *)
6960   # fallback: assume linklib IS sharedlib
6961   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6962   ;;
6963 esac
6964
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6967 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6968 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6969 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6970
6971
6972
6973
6974
6975
6976
6977 if test -n "$ac_tool_prefix"; then
6978   for ac_prog in ar
6979   do
6980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_AR+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   if test -n "$AR"; then
6988   ac_cv_prog_AR="$AR" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995     for ac_exec_ext in '' $ac_executable_extensions; do
6996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002   done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 AR=$ac_cv_prog_AR
7008 if test -n "$AR"; then
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7010 $as_echo "$AR" >&6; }
7011 else
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017     test -n "$AR" && break
7018   done
7019 fi
7020 if test -z "$AR"; then
7021   ac_ct_AR=$AR
7022   for ac_prog in ar
7023 do
7024   # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   if test -n "$ac_ct_AR"; then
7032   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_prog_ac_ct_AR="$ac_prog"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7052 if test -n "$ac_ct_AR"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7054 $as_echo "$ac_ct_AR" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060
7061   test -n "$ac_ct_AR" && break
7062 done
7063
7064   if test "x$ac_ct_AR" = x; then
7065     AR="false"
7066   else
7067     case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073     AR=$ac_ct_AR
7074   fi
7075 fi
7076
7077 : ${AR=ar}
7078 : ${AR_FLAGS=cru}
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7091 $as_echo_n "checking for archiver @FILE support... " >&6; }
7092 if ${lt_cv_ar_at_file+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   lt_cv_ar_at_file=no
7096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h.  */
7098
7099 int
7100 main ()
7101 {
7102
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108   echo conftest.$ac_objext > conftest.lst
7109       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7110       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7111   (eval $lt_ar_try) 2>&5
7112   ac_status=$?
7113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114   test $ac_status = 0; }
7115       if test "$ac_status" -eq 0; then
7116         # Ensure the archiver fails upon bogus file names.
7117         rm -f conftest.$ac_objext libconftest.a
7118         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7119   (eval $lt_ar_try) 2>&5
7120   ac_status=$?
7121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122   test $ac_status = 0; }
7123         if test "$ac_status" -ne 0; then
7124           lt_cv_ar_at_file=@
7125         fi
7126       fi
7127       rm -f conftest.* libconftest.a
7128
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7134 $as_echo "$lt_cv_ar_at_file" >&6; }
7135
7136 if test "x$lt_cv_ar_at_file" = xno; then
7137   archiver_list_spec=
7138 else
7139   archiver_list_spec=$lt_cv_ar_at_file
7140 fi
7141
7142
7143
7144
7145
7146
7147
7148 if test -n "$ac_tool_prefix"; then
7149   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}strip; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_STRIP+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   if test -n "$STRIP"; then
7157   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162   IFS=$as_save_IFS
7163   test -z "$as_dir" && as_dir=.
7164     for ac_exec_ext in '' $ac_executable_extensions; do
7165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168     break 2
7169   fi
7170 done
7171   done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 STRIP=$ac_cv_prog_STRIP
7177 if test -n "$STRIP"; then
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7179 $as_echo "$STRIP" >&6; }
7180 else
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185
7186 fi
7187 if test -z "$ac_cv_prog_STRIP"; then
7188   ac_ct_STRIP=$STRIP
7189   # Extract the first word of "strip", so it can be a program name with args.
7190 set dummy strip; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7194   $as_echo_n "(cached) " >&6
7195 else
7196   if test -n "$ac_ct_STRIP"; then
7197   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204     for ac_exec_ext in '' $ac_executable_extensions; do
7205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206     ac_cv_prog_ac_ct_STRIP="strip"
7207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211   done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7217 if test -n "$ac_ct_STRIP"; then
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7219 $as_echo "$ac_ct_STRIP" >&6; }
7220 else
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225   if test "x$ac_ct_STRIP" = x; then
7226     STRIP=":"
7227   else
7228     case $cross_compiling:$ac_tool_warned in
7229 yes:)
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232 ac_tool_warned=yes ;;
7233 esac
7234     STRIP=$ac_ct_STRIP
7235   fi
7236 else
7237   STRIP="$ac_cv_prog_STRIP"
7238 fi
7239
7240 test -z "$STRIP" && STRIP=:
7241
7242
7243
7244
7245
7246
7247 if test -n "$ac_tool_prefix"; then
7248   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_RANLIB+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$RANLIB"; then
7256   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 RANLIB=$ac_cv_prog_RANLIB
7276 if test -n "$RANLIB"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7278 $as_echo "$RANLIB" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284
7285 fi
7286 if test -z "$ac_cv_prog_RANLIB"; then
7287   ac_ct_RANLIB=$RANLIB
7288   # Extract the first word of "ranlib", so it can be a program name with args.
7289 set dummy ranlib; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$ac_ct_RANLIB"; then
7296   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_ac_ct_RANLIB="ranlib"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7316 if test -n "$ac_ct_RANLIB"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7318 $as_echo "$ac_ct_RANLIB" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324   if test "x$ac_ct_RANLIB" = x; then
7325     RANLIB=":"
7326   else
7327     case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333     RANLIB=$ac_ct_RANLIB
7334   fi
7335 else
7336   RANLIB="$ac_cv_prog_RANLIB"
7337 fi
7338
7339 test -z "$RANLIB" && RANLIB=:
7340
7341
7342
7343
7344
7345
7346 # Determine commands to create old-style static archives.
7347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7348 old_postinstall_cmds='chmod 644 $oldlib'
7349 old_postuninstall_cmds=
7350
7351 if test -n "$RANLIB"; then
7352   case $host_os in
7353   openbsd*)
7354     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7355     ;;
7356   *)
7357     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7358     ;;
7359   esac
7360   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7361 fi
7362
7363 case $host_os in
7364   darwin*)
7365     lock_old_archive_extraction=yes ;;
7366   *)
7367     lock_old_archive_extraction=no ;;
7368 esac
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 # If no C compiler was specified, use CC.
7409 LTCC=${LTCC-"$CC"}
7410
7411 # If no C compiler flags were specified, use CFLAGS.
7412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7413
7414 # Allow CC to be a program name with arguments.
7415 compiler=$CC
7416
7417
7418 # Check for command to grab the raw symbol name followed by C symbol from nm.
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7420 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7421 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424
7425 # These are sane defaults that work on at least a few old systems.
7426 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7427
7428 # Character class describing NM global symbol codes.
7429 symcode='[BCDEGRST]'
7430
7431 # Regexp to match symbols that can be accessed directly from C.
7432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7433
7434 # Define system-specific variables.
7435 case $host_os in
7436 aix*)
7437   symcode='[BCDT]'
7438   ;;
7439 cygwin* | mingw* | pw32* | cegcc*)
7440   symcode='[ABCDGISTW]'
7441   ;;
7442 hpux*)
7443   if test "$host_cpu" = ia64; then
7444     symcode='[ABCDEGRST]'
7445   fi
7446   ;;
7447 irix* | nonstopux*)
7448   symcode='[BCDEGRST]'
7449   ;;
7450 osf*)
7451   symcode='[BCDEGQRST]'
7452   ;;
7453 solaris*)
7454   symcode='[BDRT]'
7455   ;;
7456 sco3.2v5*)
7457   symcode='[DT]'
7458   ;;
7459 sysv4.2uw2*)
7460   symcode='[DT]'
7461   ;;
7462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7463   symcode='[ABDT]'
7464   ;;
7465 sysv4)
7466   symcode='[DFNSTU]'
7467   ;;
7468 esac
7469
7470 # If we're using GNU nm, then use its standard symbol codes.
7471 case `$NM -V 2>&1` in
7472 *GNU* | *'with BFD'*)
7473   symcode='[ABCDGIRSTW]' ;;
7474 esac
7475
7476 # Transform an extracted symbol line into a proper C declaration.
7477 # Some systems (esp. on ia64) link data and code symbols differently,
7478 # so use this general approach.
7479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7480
7481 # Transform an extracted symbol line into symbol name and symbol address
7482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7483 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'"
7484
7485 # Handle CRLF in mingw tool chain
7486 opt_cr=
7487 case $build_os in
7488 mingw*)
7489   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7490   ;;
7491 esac
7492
7493 # Try without a prefix underscore, then with it.
7494 for ac_symprfx in "" "_"; do
7495
7496   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7497   symxfrm="\\1 $ac_symprfx\\2 \\2"
7498
7499   # Write the raw and C identifiers.
7500   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7501     # Fake it for dumpbin and say T for any non-static function
7502     # and D for any global variable.
7503     # Also find C++ and __fastcall symbols from MSVC++,
7504     # which start with @ or ?.
7505     lt_cv_sys_global_symbol_pipe="$AWK '"\
7506 "     {last_section=section; section=\$ 3};"\
7507 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7508 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7509 "     \$ 0!~/External *\|/{next};"\
7510 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7511 "     {if(hide[section]) next};"\
7512 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7513 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7514 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7515 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7516 "     ' prfx=^$ac_symprfx"
7517   else
7518     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7519   fi
7520   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7521
7522   # Check to see that the pipe works correctly.
7523   pipe_works=no
7524
7525   rm -f conftest*
7526   cat > conftest.$ac_ext <<_LT_EOF
7527 #ifdef __cplusplus
7528 extern "C" {
7529 #endif
7530 char nm_test_var;
7531 void nm_test_func(void);
7532 void nm_test_func(void){}
7533 #ifdef __cplusplus
7534 }
7535 #endif
7536 int main(){nm_test_var='a';nm_test_func();return(0);}
7537 _LT_EOF
7538
7539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540   (eval $ac_compile) 2>&5
7541   ac_status=$?
7542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543   test $ac_status = 0; }; then
7544     # Now try to grab the symbols.
7545     nlist=conftest.nm
7546     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7547   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7548   ac_status=$?
7549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550   test $ac_status = 0; } && test -s "$nlist"; then
7551       # Try sorting and uniquifying the output.
7552       if sort "$nlist" | uniq > "$nlist"T; then
7553         mv -f "$nlist"T "$nlist"
7554       else
7555         rm -f "$nlist"T
7556       fi
7557
7558       # Make sure that we snagged all the symbols we need.
7559       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7560         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7561           cat <<_LT_EOF > conftest.$ac_ext
7562 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7563 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7564 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7565    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7566 # define LT_DLSYM_CONST
7567 #elif defined(__osf__)
7568 /* This system does not cope well with relocations in const data.  */
7569 # define LT_DLSYM_CONST
7570 #else
7571 # define LT_DLSYM_CONST const
7572 #endif
7573
7574 #ifdef __cplusplus
7575 extern "C" {
7576 #endif
7577
7578 _LT_EOF
7579           # Now generate the symbol file.
7580           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7581
7582           cat <<_LT_EOF >> conftest.$ac_ext
7583
7584 /* The mapping between symbol names and symbols.  */
7585 LT_DLSYM_CONST struct {
7586   const char *name;
7587   void       *address;
7588 }
7589 lt__PROGRAM__LTX_preloaded_symbols[] =
7590 {
7591   { "@PROGRAM@", (void *) 0 },
7592 _LT_EOF
7593           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7594           cat <<\_LT_EOF >> conftest.$ac_ext
7595   {0, (void *) 0}
7596 };
7597
7598 /* This works around a problem in FreeBSD linker */
7599 #ifdef FREEBSD_WORKAROUND
7600 static const void *lt_preloaded_setup() {
7601   return lt__PROGRAM__LTX_preloaded_symbols;
7602 }
7603 #endif
7604
7605 #ifdef __cplusplus
7606 }
7607 #endif
7608 _LT_EOF
7609           # Now try linking the two files.
7610           mv conftest.$ac_objext conftstm.$ac_objext
7611           lt_globsym_save_LIBS=$LIBS
7612           lt_globsym_save_CFLAGS=$CFLAGS
7613           LIBS="conftstm.$ac_objext"
7614           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7615           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7616   (eval $ac_link) 2>&5
7617   ac_status=$?
7618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7620             pipe_works=yes
7621           fi
7622           LIBS=$lt_globsym_save_LIBS
7623           CFLAGS=$lt_globsym_save_CFLAGS
7624         else
7625           echo "cannot find nm_test_func in $nlist" >&5
7626         fi
7627       else
7628         echo "cannot find nm_test_var in $nlist" >&5
7629       fi
7630     else
7631       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7632     fi
7633   else
7634     echo "$progname: failed program was:" >&5
7635     cat conftest.$ac_ext >&5
7636   fi
7637   rm -rf conftest* conftst*
7638
7639   # Do not use the global_symbol_pipe unless it works.
7640   if test "$pipe_works" = yes; then
7641     break
7642   else
7643     lt_cv_sys_global_symbol_pipe=
7644   fi
7645 done
7646
7647 fi
7648
7649 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7650   lt_cv_sys_global_symbol_to_cdecl=
7651 fi
7652 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7654 $as_echo "failed" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7657 $as_echo "ok" >&6; }
7658 fi
7659
7660 # Response file support.
7661 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7662   nm_file_list_spec='@'
7663 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7664   nm_file_list_spec='@'
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7694 $as_echo_n "checking for sysroot... " >&6; }
7695
7696 # Check whether --with-sysroot was given.
7697 if test "${with_sysroot+set}" = set; then :
7698   withval=$with_sysroot;
7699 else
7700   with_sysroot=no
7701 fi
7702
7703
7704 lt_sysroot=
7705 case ${with_sysroot} in #(
7706  yes)
7707    if test "$GCC" = yes; then
7708      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7709    fi
7710    ;; #(
7711  /*)
7712    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7713    ;; #(
7714  no|'')
7715    ;; #(
7716  *)
7717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7718 $as_echo "${with_sysroot}" >&6; }
7719    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7720    ;;
7721 esac
7722
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7724 $as_echo "${lt_sysroot:-no}" >&6; }
7725
7726
7727
7728
7729
7730 # Check whether --enable-libtool-lock was given.
7731 if test "${enable_libtool_lock+set}" = set; then :
7732   enableval=$enable_libtool_lock;
7733 fi
7734
7735 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7736
7737 # Some flags need to be propagated to the compiler or linker for good
7738 # libtool support.
7739 case $host in
7740 ia64-*-hpux*)
7741   # Find out which ABI we are using.
7742   echo 'int i;' > conftest.$ac_ext
7743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744   (eval $ac_compile) 2>&5
7745   ac_status=$?
7746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747   test $ac_status = 0; }; then
7748     case `/usr/bin/file conftest.$ac_objext` in
7749       *ELF-32*)
7750         HPUX_IA64_MODE="32"
7751         ;;
7752       *ELF-64*)
7753         HPUX_IA64_MODE="64"
7754         ;;
7755     esac
7756   fi
7757   rm -rf conftest*
7758   ;;
7759 *-*-irix6*)
7760   # Find out which ABI we are using.
7761   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7762   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7763   (eval $ac_compile) 2>&5
7764   ac_status=$?
7765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766   test $ac_status = 0; }; then
7767     if test "$lt_cv_prog_gnu_ld" = yes; then
7768       case `/usr/bin/file conftest.$ac_objext` in
7769         *32-bit*)
7770           LD="${LD-ld} -melf32bsmip"
7771           ;;
7772         *N32*)
7773           LD="${LD-ld} -melf32bmipn32"
7774           ;;
7775         *64-bit*)
7776           LD="${LD-ld} -melf64bmip"
7777         ;;
7778       esac
7779     else
7780       case `/usr/bin/file conftest.$ac_objext` in
7781         *32-bit*)
7782           LD="${LD-ld} -32"
7783           ;;
7784         *N32*)
7785           LD="${LD-ld} -n32"
7786           ;;
7787         *64-bit*)
7788           LD="${LD-ld} -64"
7789           ;;
7790       esac
7791     fi
7792   fi
7793   rm -rf conftest*
7794   ;;
7795
7796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7798   # Find out which ABI we are using.
7799   echo 'int i;' > conftest.$ac_ext
7800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7801   (eval $ac_compile) 2>&5
7802   ac_status=$?
7803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804   test $ac_status = 0; }; then
7805     case `/usr/bin/file conftest.o` in
7806       *32-bit*)
7807         case $host in
7808           x86_64-*kfreebsd*-gnu)
7809             LD="${LD-ld} -m elf_i386_fbsd"
7810             ;;
7811           x86_64-*linux*)
7812             LD="${LD-ld} -m elf_i386"
7813             ;;
7814           ppc64-*linux*|powerpc64-*linux*)
7815             LD="${LD-ld} -m elf32ppclinux"
7816             ;;
7817           s390x-*linux*)
7818             LD="${LD-ld} -m elf_s390"
7819             ;;
7820           sparc64-*linux*)
7821             LD="${LD-ld} -m elf32_sparc"
7822             ;;
7823         esac
7824         ;;
7825       *64-bit*)
7826         case $host in
7827           x86_64-*kfreebsd*-gnu)
7828             LD="${LD-ld} -m elf_x86_64_fbsd"
7829             ;;
7830           x86_64-*linux*)
7831             LD="${LD-ld} -m elf_x86_64"
7832             ;;
7833           ppc*-*linux*|powerpc*-*linux*)
7834             LD="${LD-ld} -m elf64ppc"
7835             ;;
7836           s390*-*linux*|s390*-*tpf*)
7837             LD="${LD-ld} -m elf64_s390"
7838             ;;
7839           sparc*-*linux*)
7840             LD="${LD-ld} -m elf64_sparc"
7841             ;;
7842         esac
7843         ;;
7844     esac
7845   fi
7846   rm -rf conftest*
7847   ;;
7848
7849 *-*-sco3.2v5*)
7850   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7851   SAVE_CFLAGS="$CFLAGS"
7852   CFLAGS="$CFLAGS -belf"
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7855 if ${lt_cv_cc_needs_belf+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   ac_ext=c
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h.  */
7866
7867 int
7868 main ()
7869 {
7870
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876   lt_cv_cc_needs_belf=yes
7877 else
7878   lt_cv_cc_needs_belf=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext \
7881     conftest$ac_exeext conftest.$ac_ext
7882      ac_ext=c
7883 ac_cpp='$CPP $CPPFLAGS'
7884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7887
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7891   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7892     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7893     CFLAGS="$SAVE_CFLAGS"
7894   fi
7895   ;;
7896 *-*solaris*)
7897   # Find out which ABI we are using.
7898   echo 'int i;' > conftest.$ac_ext
7899   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900   (eval $ac_compile) 2>&5
7901   ac_status=$?
7902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903   test $ac_status = 0; }; then
7904     case `/usr/bin/file conftest.o` in
7905     *64-bit*)
7906       case $lt_cv_prog_gnu_ld in
7907       yes*)
7908         case $host in
7909         i?86-*-solaris*)
7910           LD="${LD-ld} -m elf_x86_64"
7911           ;;
7912         sparc*-*-solaris*)
7913           LD="${LD-ld} -m elf64_sparc"
7914           ;;
7915         esac
7916         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7917         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7918           LD="${LD-ld}_sol2"
7919         fi
7920         ;;
7921       *)
7922         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7923           LD="${LD-ld} -64"
7924         fi
7925         ;;
7926       esac
7927       ;;
7928     esac
7929   fi
7930   rm -rf conftest*
7931   ;;
7932 esac
7933
7934 need_locks="$enable_libtool_lock"
7935
7936 if test -n "$ac_tool_prefix"; then
7937   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7938 set dummy ${ac_tool_prefix}mt; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$MANIFEST_TOOL"; then
7945   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7965 if test -n "$MANIFEST_TOOL"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7967 $as_echo "$MANIFEST_TOOL" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 fi
7975 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7976   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7977   # Extract the first word of "mt", so it can be a program name with args.
7978 set dummy mt; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   if test -n "$ac_ct_MANIFEST_TOOL"; then
7985   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992     for ac_exec_ext in '' $ac_executable_extensions; do
7993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999   done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8005 if test -n "$ac_ct_MANIFEST_TOOL"; then
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8007 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8008 else
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8014     MANIFEST_TOOL=":"
8015   else
8016     case $cross_compiling:$ac_tool_warned in
8017 yes:)
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8021 esac
8022     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8023   fi
8024 else
8025   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8026 fi
8027
8028 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8030 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8031 if ${lt_cv_path_mainfest_tool+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   lt_cv_path_mainfest_tool=no
8035   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8036   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8037   cat conftest.err >&5
8038   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8039     lt_cv_path_mainfest_tool=yes
8040   fi
8041   rm -f conftest*
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8044 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8045 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8046   MANIFEST_TOOL=:
8047 fi
8048
8049
8050
8051
8052
8053
8054   case $host_os in
8055     rhapsody* | darwin*)
8056     if test -n "$ac_tool_prefix"; then
8057   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8062   $as_echo_n "(cached) " >&6
8063 else
8064   if test -n "$DSYMUTIL"; then
8065   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070   IFS=$as_save_IFS
8071   test -z "$as_dir" && as_dir=.
8072     for ac_exec_ext in '' $ac_executable_extensions; do
8073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076     break 2
8077   fi
8078 done
8079   done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8085 if test -n "$DSYMUTIL"; then
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8087 $as_echo "$DSYMUTIL" >&6; }
8088 else
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093
8094 fi
8095 if test -z "$ac_cv_prog_DSYMUTIL"; then
8096   ac_ct_DSYMUTIL=$DSYMUTIL
8097   # Extract the first word of "dsymutil", so it can be a program name with args.
8098 set dummy dsymutil; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   if test -n "$ac_ct_DSYMUTIL"; then
8105   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110   IFS=$as_save_IFS
8111   test -z "$as_dir" && as_dir=.
8112     for ac_exec_ext in '' $ac_executable_extensions; do
8113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116     break 2
8117   fi
8118 done
8119   done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8125 if test -n "$ac_ct_DSYMUTIL"; then
8126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8127 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8128 else
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8131 fi
8132
8133   if test "x$ac_ct_DSYMUTIL" = x; then
8134     DSYMUTIL=":"
8135   else
8136     case $cross_compiling:$ac_tool_warned in
8137 yes:)
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8141 esac
8142     DSYMUTIL=$ac_ct_DSYMUTIL
8143   fi
8144 else
8145   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8146 fi
8147
8148     if test -n "$ac_tool_prefix"; then
8149   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_NMEDIT+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -n "$NMEDIT"; then
8157   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 NMEDIT=$ac_cv_prog_NMEDIT
8177 if test -n "$NMEDIT"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8179 $as_echo "$NMEDIT" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186 fi
8187 if test -z "$ac_cv_prog_NMEDIT"; then
8188   ac_ct_NMEDIT=$NMEDIT
8189   # Extract the first word of "nmedit", so it can be a program name with args.
8190 set dummy nmedit; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   if test -n "$ac_ct_NMEDIT"; then
8197   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202   IFS=$as_save_IFS
8203   test -z "$as_dir" && as_dir=.
8204     for ac_exec_ext in '' $ac_executable_extensions; do
8205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208     break 2
8209   fi
8210 done
8211   done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8217 if test -n "$ac_ct_NMEDIT"; then
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8219 $as_echo "$ac_ct_NMEDIT" >&6; }
8220 else
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225   if test "x$ac_ct_NMEDIT" = x; then
8226     NMEDIT=":"
8227   else
8228     case $cross_compiling:$ac_tool_warned in
8229 yes:)
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8233 esac
8234     NMEDIT=$ac_ct_NMEDIT
8235   fi
8236 else
8237   NMEDIT="$ac_cv_prog_NMEDIT"
8238 fi
8239
8240     if test -n "$ac_tool_prefix"; then
8241   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_LIPO+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   if test -n "$LIPO"; then
8249   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 LIPO=$ac_cv_prog_LIPO
8269 if test -n "$LIPO"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8271 $as_echo "$LIPO" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_LIPO"; then
8280   ac_ct_LIPO=$LIPO
8281   # Extract the first word of "lipo", so it can be a program name with args.
8282 set dummy lipo; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   if test -n "$ac_ct_LIPO"; then
8289   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296     for ac_exec_ext in '' $ac_executable_extensions; do
8297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298     ac_cv_prog_ac_ct_LIPO="lipo"
8299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303   done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8309 if test -n "$ac_ct_LIPO"; then
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8311 $as_echo "$ac_ct_LIPO" >&6; }
8312 else
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317   if test "x$ac_ct_LIPO" = x; then
8318     LIPO=":"
8319   else
8320     case $cross_compiling:$ac_tool_warned in
8321 yes:)
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8325 esac
8326     LIPO=$ac_ct_LIPO
8327   fi
8328 else
8329   LIPO="$ac_cv_prog_LIPO"
8330 fi
8331
8332     if test -n "$ac_tool_prefix"; then
8333   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}otool; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_OTOOL+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$OTOOL"; then
8341   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 OTOOL=$ac_cv_prog_OTOOL
8361 if test -n "$OTOOL"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8363 $as_echo "$OTOOL" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370 fi
8371 if test -z "$ac_cv_prog_OTOOL"; then
8372   ac_ct_OTOOL=$OTOOL
8373   # Extract the first word of "otool", so it can be a program name with args.
8374 set dummy otool; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   if test -n "$ac_ct_OTOOL"; then
8381   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386   IFS=$as_save_IFS
8387   test -z "$as_dir" && as_dir=.
8388     for ac_exec_ext in '' $ac_executable_extensions; do
8389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390     ac_cv_prog_ac_ct_OTOOL="otool"
8391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392     break 2
8393   fi
8394 done
8395   done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8401 if test -n "$ac_ct_OTOOL"; then
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8403 $as_echo "$ac_ct_OTOOL" >&6; }
8404 else
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409   if test "x$ac_ct_OTOOL" = x; then
8410     OTOOL=":"
8411   else
8412     case $cross_compiling:$ac_tool_warned in
8413 yes:)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8417 esac
8418     OTOOL=$ac_ct_OTOOL
8419   fi
8420 else
8421   OTOOL="$ac_cv_prog_OTOOL"
8422 fi
8423
8424     if test -n "$ac_tool_prefix"; then
8425   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_OTOOL64+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   if test -n "$OTOOL64"; then
8433   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 OTOOL64=$ac_cv_prog_OTOOL64
8453 if test -n "$OTOOL64"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8455 $as_echo "$OTOOL64" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462 fi
8463 if test -z "$ac_cv_prog_OTOOL64"; then
8464   ac_ct_OTOOL64=$OTOOL64
8465   # Extract the first word of "otool64", so it can be a program name with args.
8466 set dummy otool64; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8470   $as_echo_n "(cached) " >&6
8471 else
8472   if test -n "$ac_ct_OTOOL64"; then
8473   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478   IFS=$as_save_IFS
8479   test -z "$as_dir" && as_dir=.
8480     for ac_exec_ext in '' $ac_executable_extensions; do
8481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482     ac_cv_prog_ac_ct_OTOOL64="otool64"
8483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487   done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8493 if test -n "$ac_ct_OTOOL64"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8495 $as_echo "$ac_ct_OTOOL64" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501   if test "x$ac_ct_OTOOL64" = x; then
8502     OTOOL64=":"
8503   else
8504     case $cross_compiling:$ac_tool_warned in
8505 yes:)
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8508 ac_tool_warned=yes ;;
8509 esac
8510     OTOOL64=$ac_ct_OTOOL64
8511   fi
8512 else
8513   OTOOL64="$ac_cv_prog_OTOOL64"
8514 fi
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8543 $as_echo_n "checking for -single_module linker flag... " >&6; }
8544 if ${lt_cv_apple_cc_single_mod+:} false; then :
8545   $as_echo_n "(cached) " >&6
8546 else
8547   lt_cv_apple_cc_single_mod=no
8548       if test -z "${LT_MULTI_MODULE}"; then
8549         # By default we will add the -single_module flag. You can override
8550         # by either setting the environment variable LT_MULTI_MODULE
8551         # non-empty at configure time, or by adding -multi_module to the
8552         # link flags.
8553         rm -rf libconftest.dylib*
8554         echo "int foo(void){return 1;}" > conftest.c
8555         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8556 -dynamiclib -Wl,-single_module conftest.c" >&5
8557         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8558           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8559         _lt_result=$?
8560         # If there is a non-empty error log, and "single_module"
8561         # appears in it, assume the flag caused a linker warning
8562         if test -s conftest.err && $GREP single_module conftest.err; then
8563           cat conftest.err >&5
8564         # Otherwise, if the output was created with a 0 exit code from
8565         # the compiler, it worked.
8566         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8567           lt_cv_apple_cc_single_mod=yes
8568         else
8569           cat conftest.err >&5
8570         fi
8571         rm -rf libconftest.dylib*
8572         rm -f conftest.*
8573       fi
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8576 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8577
8578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8579 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8580 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8581   $as_echo_n "(cached) " >&6
8582 else
8583   lt_cv_ld_exported_symbols_list=no
8584       save_LDFLAGS=$LDFLAGS
8585       echo "_main" > conftest.sym
8586       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8587       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h.  */
8589
8590 int
8591 main ()
8592 {
8593
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 if ac_fn_c_try_link "$LINENO"; then :
8599   lt_cv_ld_exported_symbols_list=yes
8600 else
8601   lt_cv_ld_exported_symbols_list=no
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext \
8604     conftest$ac_exeext conftest.$ac_ext
8605         LDFLAGS="$save_LDFLAGS"
8606
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8609 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8610
8611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8612 $as_echo_n "checking for -force_load linker flag... " >&6; }
8613 if ${lt_cv_ld_force_load+:} false; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   lt_cv_ld_force_load=no
8617       cat > conftest.c << _LT_EOF
8618 int forced_loaded() { return 2;}
8619 _LT_EOF
8620       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8621       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8622       echo "$AR cru libconftest.a conftest.o" >&5
8623       $AR cru libconftest.a conftest.o 2>&5
8624       echo "$RANLIB libconftest.a" >&5
8625       $RANLIB libconftest.a 2>&5
8626       cat > conftest.c << _LT_EOF
8627 int main() { return 0;}
8628 _LT_EOF
8629       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8630       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8631       _lt_result=$?
8632       if test -s conftest.err && $GREP force_load conftest.err; then
8633         cat conftest.err >&5
8634       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8635         lt_cv_ld_force_load=yes
8636       else
8637         cat conftest.err >&5
8638       fi
8639         rm -f conftest.err libconftest.a conftest conftest.c
8640         rm -rf conftest.dSYM
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8644 $as_echo "$lt_cv_ld_force_load" >&6; }
8645     case $host_os in
8646     rhapsody* | darwin1.[012])
8647       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8648     darwin1.*)
8649       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8650     darwin*) # darwin 5.x on
8651       # if running on 10.5 or later, the deployment target defaults
8652       # to the OS version, if on x86, and 10.4, the deployment
8653       # target defaults to 10.4. Don't you love it?
8654       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8655         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8656           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8657         10.[012]*)
8658           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8659         10.*)
8660           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8661       esac
8662     ;;
8663   esac
8664     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8665       _lt_dar_single_mod='$single_module'
8666     fi
8667     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8668       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8669     else
8670       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8671     fi
8672     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8673       _lt_dsymutil='~$DSYMUTIL $lib || :'
8674     else
8675       _lt_dsymutil=
8676     fi
8677     ;;
8678   esac
8679
8680 ac_ext=c
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8686 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8687 # On Suns, sometimes $CPP names a directory.
8688 if test -n "$CPP" && test -d "$CPP"; then
8689   CPP=
8690 fi
8691 if test -z "$CPP"; then
8692   if ${ac_cv_prog_CPP+:} false; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695       # Double quotes because CPP needs to be expanded
8696     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8697     do
8698       ac_preproc_ok=false
8699 for ac_c_preproc_warn_flag in '' yes
8700 do
8701   # Use a header file that comes with gcc, so configuring glibc
8702   # with a fresh cross-compiler works.
8703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704   # <limits.h> exists even on freestanding compilers.
8705   # On the NeXT, cc -E runs the code through the compiler's parser,
8706   # not just through cpp. "Syntax error" is here to catch this case.
8707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h.  */
8709 #ifdef __STDC__
8710 # include <limits.h>
8711 #else
8712 # include <assert.h>
8713 #endif
8714                      Syntax error
8715 _ACEOF
8716 if ac_fn_c_try_cpp "$LINENO"; then :
8717
8718 else
8719   # Broken: fails on valid input.
8720 continue
8721 fi
8722 rm -f conftest.err conftest.i conftest.$ac_ext
8723
8724   # OK, works on sane cases.  Now check whether nonexistent headers
8725   # can be detected and how.
8726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h.  */
8728 #include <ac_nonexistent.h>
8729 _ACEOF
8730 if ac_fn_c_try_cpp "$LINENO"; then :
8731   # Broken: success on invalid input.
8732 continue
8733 else
8734   # Passes both tests.
8735 ac_preproc_ok=:
8736 break
8737 fi
8738 rm -f conftest.err conftest.i conftest.$ac_ext
8739
8740 done
8741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8742 rm -f conftest.i conftest.err conftest.$ac_ext
8743 if $ac_preproc_ok; then :
8744   break
8745 fi
8746
8747     done
8748     ac_cv_prog_CPP=$CPP
8749
8750 fi
8751   CPP=$ac_cv_prog_CPP
8752 else
8753   ac_cv_prog_CPP=$CPP
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8756 $as_echo "$CPP" >&6; }
8757 ac_preproc_ok=false
8758 for ac_c_preproc_warn_flag in '' yes
8759 do
8760   # Use a header file that comes with gcc, so configuring glibc
8761   # with a fresh cross-compiler works.
8762   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8763   # <limits.h> exists even on freestanding compilers.
8764   # On the NeXT, cc -E runs the code through the compiler's parser,
8765   # not just through cpp. "Syntax error" is here to catch this case.
8766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h.  */
8768 #ifdef __STDC__
8769 # include <limits.h>
8770 #else
8771 # include <assert.h>
8772 #endif
8773                      Syntax error
8774 _ACEOF
8775 if ac_fn_c_try_cpp "$LINENO"; then :
8776
8777 else
8778   # Broken: fails on valid input.
8779 continue
8780 fi
8781 rm -f conftest.err conftest.i conftest.$ac_ext
8782
8783   # OK, works on sane cases.  Now check whether nonexistent headers
8784   # can be detected and how.
8785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h.  */
8787 #include <ac_nonexistent.h>
8788 _ACEOF
8789 if ac_fn_c_try_cpp "$LINENO"; then :
8790   # Broken: success on invalid input.
8791 continue
8792 else
8793   # Passes both tests.
8794 ac_preproc_ok=:
8795 break
8796 fi
8797 rm -f conftest.err conftest.i conftest.$ac_ext
8798
8799 done
8800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8801 rm -f conftest.i conftest.err conftest.$ac_ext
8802 if $ac_preproc_ok; then :
8803
8804 else
8805   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8807 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8808 See \`config.log' for more details" "$LINENO" 5; }
8809 fi
8810
8811 ac_ext=c
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8816
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8819 $as_echo_n "checking for ANSI C header files... " >&6; }
8820 if ${ac_cv_header_stdc+:} false; then :
8821   $as_echo_n "(cached) " >&6
8822 else
8823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825 #include <stdlib.h>
8826 #include <stdarg.h>
8827 #include <string.h>
8828 #include <float.h>
8829
8830 int
8831 main ()
8832 {
8833
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839   ac_cv_header_stdc=yes
8840 else
8841   ac_cv_header_stdc=no
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844
8845 if test $ac_cv_header_stdc = yes; then
8846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h.  */
8849 #include <string.h>
8850
8851 _ACEOF
8852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8853   $EGREP "memchr" >/dev/null 2>&1; then :
8854
8855 else
8856   ac_cv_header_stdc=no
8857 fi
8858 rm -f conftest*
8859
8860 fi
8861
8862 if test $ac_cv_header_stdc = yes; then
8863   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h.  */
8866 #include <stdlib.h>
8867
8868 _ACEOF
8869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870   $EGREP "free" >/dev/null 2>&1; then :
8871
8872 else
8873   ac_cv_header_stdc=no
8874 fi
8875 rm -f conftest*
8876
8877 fi
8878
8879 if test $ac_cv_header_stdc = yes; then
8880   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8881   if test "$cross_compiling" = yes; then :
8882   :
8883 else
8884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h.  */
8886 #include <ctype.h>
8887 #include <stdlib.h>
8888 #if ((' ' & 0x0FF) == 0x020)
8889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8891 #else
8892 # define ISLOWER(c) \
8893                    (('a' <= (c) && (c) <= 'i') \
8894                      || ('j' <= (c) && (c) <= 'r') \
8895                      || ('s' <= (c) && (c) <= 'z'))
8896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8897 #endif
8898
8899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8900 int
8901 main ()
8902 {
8903   int i;
8904   for (i = 0; i < 256; i++)
8905     if (XOR (islower (i), ISLOWER (i))
8906         || toupper (i) != TOUPPER (i))
8907       return 2;
8908   return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_run "$LINENO"; then :
8912
8913 else
8914   ac_cv_header_stdc=no
8915 fi
8916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8917   conftest.$ac_objext conftest.beam conftest.$ac_ext
8918 fi
8919
8920 fi
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8923 $as_echo "$ac_cv_header_stdc" >&6; }
8924 if test $ac_cv_header_stdc = yes; then
8925
8926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8927
8928 fi
8929
8930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8932                   inttypes.h stdint.h unistd.h
8933 do :
8934   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8935 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8936 "
8937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8938   cat >>confdefs.h <<_ACEOF
8939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8940 _ACEOF
8941
8942 fi
8943
8944 done
8945
8946
8947 for ac_header in dlfcn.h
8948 do :
8949   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8950 "
8951 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8952   cat >>confdefs.h <<_ACEOF
8953 #define HAVE_DLFCN_H 1
8954 _ACEOF
8955
8956 fi
8957
8958 done
8959
8960
8961
8962
8963 func_stripname_cnf ()
8964 {
8965   case ${2} in
8966   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8967   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8968   esac
8969 } # func_stripname_cnf
8970
8971
8972
8973
8974
8975 # Set options
8976
8977
8978
8979         enable_dlopen=no
8980
8981
8982   enable_win32_dll=no
8983
8984
8985             # Check whether --enable-shared was given.
8986 if test "${enable_shared+set}" = set; then :
8987   enableval=$enable_shared; p=${PACKAGE-default}
8988     case $enableval in
8989     yes) enable_shared=yes ;;
8990     no) enable_shared=no ;;
8991     *)
8992       enable_shared=no
8993       # Look at the argument we got.  We use all the common list separators.
8994       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8995       for pkg in $enableval; do
8996         IFS="$lt_save_ifs"
8997         if test "X$pkg" = "X$p"; then
8998           enable_shared=yes
8999         fi
9000       done
9001       IFS="$lt_save_ifs"
9002       ;;
9003     esac
9004 else
9005   enable_shared=yes
9006 fi
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016   # Check whether --enable-static was given.
9017 if test "${enable_static+set}" = set; then :
9018   enableval=$enable_static; p=${PACKAGE-default}
9019     case $enableval in
9020     yes) enable_static=yes ;;
9021     no) enable_static=no ;;
9022     *)
9023      enable_static=no
9024       # Look at the argument we got.  We use all the common list separators.
9025       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9026       for pkg in $enableval; do
9027         IFS="$lt_save_ifs"
9028         if test "X$pkg" = "X$p"; then
9029           enable_static=yes
9030         fi
9031       done
9032       IFS="$lt_save_ifs"
9033       ;;
9034     esac
9035 else
9036   enable_static=yes
9037 fi
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 # Check whether --with-pic was given.
9049 if test "${with_pic+set}" = set; then :
9050   withval=$with_pic; lt_p=${PACKAGE-default}
9051     case $withval in
9052     yes|no) pic_mode=$withval ;;
9053     *)
9054       pic_mode=default
9055       # Look at the argument we got.  We use all the common list separators.
9056       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9057       for lt_pkg in $withval; do
9058         IFS="$lt_save_ifs"
9059         if test "X$lt_pkg" = "X$lt_p"; then
9060           pic_mode=yes
9061         fi
9062       done
9063       IFS="$lt_save_ifs"
9064       ;;
9065     esac
9066 else
9067   pic_mode=default
9068 fi
9069
9070
9071 test -z "$pic_mode" && pic_mode=default
9072
9073
9074
9075
9076
9077
9078
9079   # Check whether --enable-fast-install was given.
9080 if test "${enable_fast_install+set}" = set; then :
9081   enableval=$enable_fast_install; p=${PACKAGE-default}
9082     case $enableval in
9083     yes) enable_fast_install=yes ;;
9084     no) enable_fast_install=no ;;
9085     *)
9086       enable_fast_install=no
9087       # Look at the argument we got.  We use all the common list separators.
9088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9089       for pkg in $enableval; do
9090         IFS="$lt_save_ifs"
9091         if test "X$pkg" = "X$p"; then
9092           enable_fast_install=yes
9093         fi
9094       done
9095       IFS="$lt_save_ifs"
9096       ;;
9097     esac
9098 else
9099   enable_fast_install=yes
9100 fi
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112 # This can be used to rebuild libtool when needed
9113 LIBTOOL_DEPS="$ltmain"
9114
9115 # Always use our own libtool.
9116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 test -z "$LN_S" && LN_S="ln -s"
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162 if test -n "${ZSH_VERSION+set}" ; then
9163    setopt NO_GLOB_SUBST
9164 fi
9165
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9167 $as_echo_n "checking for objdir... " >&6; }
9168 if ${lt_cv_objdir+:} false; then :
9169   $as_echo_n "(cached) " >&6
9170 else
9171   rm -f .libs 2>/dev/null
9172 mkdir .libs 2>/dev/null
9173 if test -d .libs; then
9174   lt_cv_objdir=.libs
9175 else
9176   # MS-DOS does not allow filenames that begin with a dot.
9177   lt_cv_objdir=_libs
9178 fi
9179 rmdir .libs 2>/dev/null
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9182 $as_echo "$lt_cv_objdir" >&6; }
9183 objdir=$lt_cv_objdir
9184
9185
9186
9187
9188
9189 cat >>confdefs.h <<_ACEOF
9190 #define LT_OBJDIR "$lt_cv_objdir/"
9191 _ACEOF
9192
9193
9194
9195
9196 case $host_os in
9197 aix3*)
9198   # AIX sometimes has problems with the GCC collect2 program.  For some
9199   # reason, if we set the COLLECT_NAMES environment variable, the problems
9200   # vanish in a puff of smoke.
9201   if test "X${COLLECT_NAMES+set}" != Xset; then
9202     COLLECT_NAMES=
9203     export COLLECT_NAMES
9204   fi
9205   ;;
9206 esac
9207
9208 # Global variables:
9209 ofile=libtool
9210 can_build_shared=yes
9211
9212 # All known linkers require a `.a' archive for static linking (except MSVC,
9213 # which needs '.lib').
9214 libext=a
9215
9216 with_gnu_ld="$lt_cv_prog_gnu_ld"
9217
9218 old_CC="$CC"
9219 old_CFLAGS="$CFLAGS"
9220
9221 # Set sane defaults for various variables
9222 test -z "$CC" && CC=cc
9223 test -z "$LTCC" && LTCC=$CC
9224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9225 test -z "$LD" && LD=ld
9226 test -z "$ac_objext" && ac_objext=o
9227
9228 for cc_temp in $compiler""; do
9229   case $cc_temp in
9230     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9231     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9232     \-*) ;;
9233     *) break;;
9234   esac
9235 done
9236 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9237
9238
9239 # Only perform the check for file, if the check method requires it
9240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9241 case $deplibs_check_method in
9242 file_magic*)
9243   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9245 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9246 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9247   $as_echo_n "(cached) " >&6
9248 else
9249   case $MAGIC_CMD in
9250 [\\/*] |  ?:[\\/]*)
9251   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9252   ;;
9253 *)
9254   lt_save_MAGIC_CMD="$MAGIC_CMD"
9255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9256   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9257   for ac_dir in $ac_dummy; do
9258     IFS="$lt_save_ifs"
9259     test -z "$ac_dir" && ac_dir=.
9260     if test -f $ac_dir/${ac_tool_prefix}file; then
9261       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9262       if test -n "$file_magic_test_file"; then
9263         case $deplibs_check_method in
9264         "file_magic "*)
9265           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9266           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9267           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9268             $EGREP "$file_magic_regex" > /dev/null; then
9269             :
9270           else
9271             cat <<_LT_EOF 1>&2
9272
9273 *** Warning: the command libtool uses to detect shared libraries,
9274 *** $file_magic_cmd, produces output that libtool cannot recognize.
9275 *** The result is that libtool may fail to recognize shared libraries
9276 *** as such.  This will affect the creation of libtool libraries that
9277 *** depend on shared libraries, but programs linked with such libtool
9278 *** libraries will work regardless of this problem.  Nevertheless, you
9279 *** may want to report the problem to your system manager and/or to
9280 *** bug-libtool@gnu.org
9281
9282 _LT_EOF
9283           fi ;;
9284         esac
9285       fi
9286       break
9287     fi
9288   done
9289   IFS="$lt_save_ifs"
9290   MAGIC_CMD="$lt_save_MAGIC_CMD"
9291   ;;
9292 esac
9293 fi
9294
9295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9296 if test -n "$MAGIC_CMD"; then
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9298 $as_echo "$MAGIC_CMD" >&6; }
9299 else
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9302 fi
9303
9304
9305
9306
9307
9308 if test -z "$lt_cv_path_MAGIC_CMD"; then
9309   if test -n "$ac_tool_prefix"; then
9310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9311 $as_echo_n "checking for file... " >&6; }
9312 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9313   $as_echo_n "(cached) " >&6
9314 else
9315   case $MAGIC_CMD in
9316 [\\/*] |  ?:[\\/]*)
9317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9318   ;;
9319 *)
9320   lt_save_MAGIC_CMD="$MAGIC_CMD"
9321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9323   for ac_dir in $ac_dummy; do
9324     IFS="$lt_save_ifs"
9325     test -z "$ac_dir" && ac_dir=.
9326     if test -f $ac_dir/file; then
9327       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9328       if test -n "$file_magic_test_file"; then
9329         case $deplibs_check_method in
9330         "file_magic "*)
9331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9334             $EGREP "$file_magic_regex" > /dev/null; then
9335             :
9336           else
9337             cat <<_LT_EOF 1>&2
9338
9339 *** Warning: the command libtool uses to detect shared libraries,
9340 *** $file_magic_cmd, produces output that libtool cannot recognize.
9341 *** The result is that libtool may fail to recognize shared libraries
9342 *** as such.  This will affect the creation of libtool libraries that
9343 *** depend on shared libraries, but programs linked with such libtool
9344 *** libraries will work regardless of this problem.  Nevertheless, you
9345 *** may want to report the problem to your system manager and/or to
9346 *** bug-libtool@gnu.org
9347
9348 _LT_EOF
9349           fi ;;
9350         esac
9351       fi
9352       break
9353     fi
9354   done
9355   IFS="$lt_save_ifs"
9356   MAGIC_CMD="$lt_save_MAGIC_CMD"
9357   ;;
9358 esac
9359 fi
9360
9361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9362 if test -n "$MAGIC_CMD"; then
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9364 $as_echo "$MAGIC_CMD" >&6; }
9365 else
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9368 fi
9369
9370
9371   else
9372     MAGIC_CMD=:
9373   fi
9374 fi
9375
9376   fi
9377   ;;
9378 esac
9379
9380 # Use C for the default configuration in the libtool script
9381
9382 lt_save_CC="$CC"
9383 ac_ext=c
9384 ac_cpp='$CPP $CPPFLAGS'
9385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9388
9389
9390 # Source file extension for C test sources.
9391 ac_ext=c
9392
9393 # Object file extension for compiled C test sources.
9394 objext=o
9395 objext=$objext
9396
9397 # Code to be used in simple compile tests
9398 lt_simple_compile_test_code="int some_variable = 0;"
9399
9400 # Code to be used in simple link tests
9401 lt_simple_link_test_code='int main(){return(0);}'
9402
9403
9404
9405
9406
9407
9408
9409 # If no C compiler was specified, use CC.
9410 LTCC=${LTCC-"$CC"}
9411
9412 # If no C compiler flags were specified, use CFLAGS.
9413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9414
9415 # Allow CC to be a program name with arguments.
9416 compiler=$CC
9417
9418 # Save the default compiler, since it gets overwritten when the other
9419 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9420 compiler_DEFAULT=$CC
9421
9422 # save warnings/boilerplate of simple test code
9423 ac_outfile=conftest.$ac_objext
9424 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9426 _lt_compiler_boilerplate=`cat conftest.err`
9427 $RM conftest*
9428
9429 ac_outfile=conftest.$ac_objext
9430 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9432 _lt_linker_boilerplate=`cat conftest.err`
9433 $RM -r conftest*
9434
9435
9436 ## CAVEAT EMPTOR:
9437 ## There is no encapsulation within the following macros, do not change
9438 ## the running order or otherwise move them around unless you know exactly
9439 ## what you are doing...
9440 if test -n "$compiler"; then
9441
9442 lt_prog_compiler_no_builtin_flag=
9443
9444 if test "$GCC" = yes; then
9445   case $cc_basename in
9446   nvcc*)
9447     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9448   *)
9449     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9450   esac
9451
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9453 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9454 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   lt_cv_prog_compiler_rtti_exceptions=no
9458    ac_outfile=conftest.$ac_objext
9459    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9460    lt_compiler_flag="-fno-rtti -fno-exceptions"
9461    # Insert the option either (1) after the last *FLAGS variable, or
9462    # (2) before a word containing "conftest.", or (3) at the end.
9463    # Note that $ac_compile itself does not contain backslashes and begins
9464    # with a dollar sign (not a hyphen), so the echo should work correctly.
9465    # The option is referenced via a variable to avoid confusing sed.
9466    lt_compile=`echo "$ac_compile" | $SED \
9467    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9469    -e 's:$: $lt_compiler_flag:'`
9470    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9471    (eval "$lt_compile" 2>conftest.err)
9472    ac_status=$?
9473    cat conftest.err >&5
9474    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475    if (exit $ac_status) && test -s "$ac_outfile"; then
9476      # The compiler can only warn and ignore the option if not recognized
9477      # So say no if there are warnings other than the usual output.
9478      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9479      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9480      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9481        lt_cv_prog_compiler_rtti_exceptions=yes
9482      fi
9483    fi
9484    $RM conftest*
9485
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9488 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9489
9490 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9491     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9492 else
9493     :
9494 fi
9495
9496 fi
9497
9498
9499
9500
9501
9502
9503   lt_prog_compiler_wl=
9504 lt_prog_compiler_pic=
9505 lt_prog_compiler_static=
9506
9507
9508   if test "$GCC" = yes; then
9509     lt_prog_compiler_wl='-Wl,'
9510     lt_prog_compiler_static='-static'
9511
9512     case $host_os in
9513       aix*)
9514       # All AIX code is PIC.
9515       if test "$host_cpu" = ia64; then
9516         # AIX 5 now supports IA64 processor
9517         lt_prog_compiler_static='-Bstatic'
9518       fi
9519       ;;
9520
9521     amigaos*)
9522       case $host_cpu in
9523       powerpc)
9524             # see comment about AmigaOS4 .so support
9525             lt_prog_compiler_pic='-fPIC'
9526         ;;
9527       m68k)
9528             # FIXME: we need at least 68020 code to build shared libraries, but
9529             # adding the `-m68020' flag to GCC prevents building anything better,
9530             # like `-m68040'.
9531             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9532         ;;
9533       esac
9534       ;;
9535
9536     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9537       # PIC is the default for these OSes.
9538       ;;
9539
9540     mingw* | cygwin* | pw32* | os2* | cegcc*)
9541       # This hack is so that the source file can tell whether it is being
9542       # built for inclusion in a dll (and should export symbols for example).
9543       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9544       # (--disable-auto-import) libraries
9545       lt_prog_compiler_pic='-DDLL_EXPORT'
9546       ;;
9547
9548     darwin* | rhapsody*)
9549       # PIC is the default on this platform
9550       # Common symbols not allowed in MH_DYLIB files
9551       lt_prog_compiler_pic='-fno-common'
9552       ;;
9553
9554     haiku*)
9555       # PIC is the default for Haiku.
9556       # The "-static" flag exists, but is broken.
9557       lt_prog_compiler_static=
9558       ;;
9559
9560     hpux*)
9561       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9562       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9563       # sets the default TLS model and affects inlining.
9564       case $host_cpu in
9565       hppa*64*)
9566         # +Z the default
9567         ;;
9568       *)
9569         lt_prog_compiler_pic='-fPIC'
9570         ;;
9571       esac
9572       ;;
9573
9574     interix[3-9]*)
9575       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9576       # Instead, we relocate shared libraries at runtime.
9577       ;;
9578
9579     msdosdjgpp*)
9580       # Just because we use GCC doesn't mean we suddenly get shared libraries
9581       # on systems that don't support them.
9582       lt_prog_compiler_can_build_shared=no
9583       enable_shared=no
9584       ;;
9585
9586     *nto* | *qnx*)
9587       # QNX uses GNU C++, but need to define -shared option too, otherwise
9588       # it will coredump.
9589       lt_prog_compiler_pic='-fPIC -shared'
9590       ;;
9591
9592     sysv4*MP*)
9593       if test -d /usr/nec; then
9594         lt_prog_compiler_pic=-Kconform_pic
9595       fi
9596       ;;
9597
9598     *)
9599       lt_prog_compiler_pic='-fPIC'
9600       ;;
9601     esac
9602
9603     case $cc_basename in
9604     nvcc*) # Cuda Compiler Driver 2.2
9605       lt_prog_compiler_wl='-Xlinker '
9606       if test -n "$lt_prog_compiler_pic"; then
9607         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9608       fi
9609       ;;
9610     esac
9611   else
9612     # PORTME Check for flag to pass linker flags through the system compiler.
9613     case $host_os in
9614     aix*)
9615       lt_prog_compiler_wl='-Wl,'
9616       if test "$host_cpu" = ia64; then
9617         # AIX 5 now supports IA64 processor
9618         lt_prog_compiler_static='-Bstatic'
9619       else
9620         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9621       fi
9622       ;;
9623
9624     mingw* | cygwin* | pw32* | os2* | cegcc*)
9625       # This hack is so that the source file can tell whether it is being
9626       # built for inclusion in a dll (and should export symbols for example).
9627       lt_prog_compiler_pic='-DDLL_EXPORT'
9628       ;;
9629
9630     hpux9* | hpux10* | hpux11*)
9631       lt_prog_compiler_wl='-Wl,'
9632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9633       # not for PA HP-UX.
9634       case $host_cpu in
9635       hppa*64*|ia64*)
9636         # +Z the default
9637         ;;
9638       *)
9639         lt_prog_compiler_pic='+Z'
9640         ;;
9641       esac
9642       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9643       lt_prog_compiler_static='${wl}-a ${wl}archive'
9644       ;;
9645
9646     irix5* | irix6* | nonstopux*)
9647       lt_prog_compiler_wl='-Wl,'
9648       # PIC (with -KPIC) is the default.
9649       lt_prog_compiler_static='-non_shared'
9650       ;;
9651
9652     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9653       case $cc_basename in
9654       # old Intel for x86_64 which still supported -KPIC.
9655       ecc*)
9656         lt_prog_compiler_wl='-Wl,'
9657         lt_prog_compiler_pic='-KPIC'
9658         lt_prog_compiler_static='-static'
9659         ;;
9660       # icc used to be incompatible with GCC.
9661       # ICC 10 doesn't accept -KPIC any more.
9662       icc* | ifort*)
9663         lt_prog_compiler_wl='-Wl,'
9664         lt_prog_compiler_pic='-fPIC'
9665         lt_prog_compiler_static='-static'
9666         ;;
9667       # Lahey Fortran 8.1.
9668       lf95*)
9669         lt_prog_compiler_wl='-Wl,'
9670         lt_prog_compiler_pic='--shared'
9671         lt_prog_compiler_static='--static'
9672         ;;
9673       nagfor*)
9674         # NAG Fortran compiler
9675         lt_prog_compiler_wl='-Wl,-Wl,,'
9676         lt_prog_compiler_pic='-PIC'
9677         lt_prog_compiler_static='-Bstatic'
9678         ;;
9679       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9680         # Portland Group compilers (*not* the Pentium gcc compiler,
9681         # which looks to be a dead project)
9682         lt_prog_compiler_wl='-Wl,'
9683         lt_prog_compiler_pic='-fpic'
9684         lt_prog_compiler_static='-Bstatic'
9685         ;;
9686       ccc*)
9687         lt_prog_compiler_wl='-Wl,'
9688         # All Alpha code is PIC.
9689         lt_prog_compiler_static='-non_shared'
9690         ;;
9691       xl* | bgxl* | bgf* | mpixl*)
9692         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9693         lt_prog_compiler_wl='-Wl,'
9694         lt_prog_compiler_pic='-qpic'
9695         lt_prog_compiler_static='-qstaticlink'
9696         ;;
9697       *)
9698         case `$CC -V 2>&1 | sed 5q` in
9699         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9700           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9701           lt_prog_compiler_pic='-KPIC'
9702           lt_prog_compiler_static='-Bstatic'
9703           lt_prog_compiler_wl=''
9704           ;;
9705         *Sun\ F* | *Sun*Fortran*)
9706           lt_prog_compiler_pic='-KPIC'
9707           lt_prog_compiler_static='-Bstatic'
9708           lt_prog_compiler_wl='-Qoption ld '
9709           ;;
9710         *Sun\ C*)
9711           # Sun C 5.9
9712           lt_prog_compiler_pic='-KPIC'
9713           lt_prog_compiler_static='-Bstatic'
9714           lt_prog_compiler_wl='-Wl,'
9715           ;;
9716         *Intel*\ [CF]*Compiler*)
9717           lt_prog_compiler_wl='-Wl,'
9718           lt_prog_compiler_pic='-fPIC'
9719           lt_prog_compiler_static='-static'
9720           ;;
9721         *Portland\ Group*)
9722           lt_prog_compiler_wl='-Wl,'
9723           lt_prog_compiler_pic='-fpic'
9724           lt_prog_compiler_static='-Bstatic'
9725           ;;
9726         esac
9727         ;;
9728       esac
9729       ;;
9730
9731     newsos6)
9732       lt_prog_compiler_pic='-KPIC'
9733       lt_prog_compiler_static='-Bstatic'
9734       ;;
9735
9736     *nto* | *qnx*)
9737       # QNX uses GNU C++, but need to define -shared option too, otherwise
9738       # it will coredump.
9739       lt_prog_compiler_pic='-fPIC -shared'
9740       ;;
9741
9742     osf3* | osf4* | osf5*)
9743       lt_prog_compiler_wl='-Wl,'
9744       # All OSF/1 code is PIC.
9745       lt_prog_compiler_static='-non_shared'
9746       ;;
9747
9748     rdos*)
9749       lt_prog_compiler_static='-non_shared'
9750       ;;
9751
9752     solaris*)
9753       lt_prog_compiler_pic='-KPIC'
9754       lt_prog_compiler_static='-Bstatic'
9755       case $cc_basename in
9756       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9757         lt_prog_compiler_wl='-Qoption ld ';;
9758       *)
9759         lt_prog_compiler_wl='-Wl,';;
9760       esac
9761       ;;
9762
9763     sunos4*)
9764       lt_prog_compiler_wl='-Qoption ld '
9765       lt_prog_compiler_pic='-PIC'
9766       lt_prog_compiler_static='-Bstatic'
9767       ;;
9768
9769     sysv4 | sysv4.2uw2* | sysv4.3*)
9770       lt_prog_compiler_wl='-Wl,'
9771       lt_prog_compiler_pic='-KPIC'
9772       lt_prog_compiler_static='-Bstatic'
9773       ;;
9774
9775     sysv4*MP*)
9776       if test -d /usr/nec ;then
9777         lt_prog_compiler_pic='-Kconform_pic'
9778         lt_prog_compiler_static='-Bstatic'
9779       fi
9780       ;;
9781
9782     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9783       lt_prog_compiler_wl='-Wl,'
9784       lt_prog_compiler_pic='-KPIC'
9785       lt_prog_compiler_static='-Bstatic'
9786       ;;
9787
9788     unicos*)
9789       lt_prog_compiler_wl='-Wl,'
9790       lt_prog_compiler_can_build_shared=no
9791       ;;
9792
9793     uts4*)
9794       lt_prog_compiler_pic='-pic'
9795       lt_prog_compiler_static='-Bstatic'
9796       ;;
9797
9798     *)
9799       lt_prog_compiler_can_build_shared=no
9800       ;;
9801     esac
9802   fi
9803
9804 case $host_os in
9805   # For platforms which do not support PIC, -DPIC is meaningless:
9806   *djgpp*)
9807     lt_prog_compiler_pic=
9808     ;;
9809   *)
9810     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9811     ;;
9812 esac
9813
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9815 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9816 if ${lt_cv_prog_compiler_pic+:} false; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9822 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9823 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9824
9825 #
9826 # Check to make sure the PIC flag actually works.
9827 #
9828 if test -n "$lt_prog_compiler_pic"; then
9829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9831 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   lt_cv_prog_compiler_pic_works=no
9835    ac_outfile=conftest.$ac_objext
9836    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9838    # Insert the option either (1) after the last *FLAGS variable, or
9839    # (2) before a word containing "conftest.", or (3) at the end.
9840    # Note that $ac_compile itself does not contain backslashes and begins
9841    # with a dollar sign (not a hyphen), so the echo should work correctly.
9842    # The option is referenced via a variable to avoid confusing sed.
9843    lt_compile=`echo "$ac_compile" | $SED \
9844    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846    -e 's:$: $lt_compiler_flag:'`
9847    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848    (eval "$lt_compile" 2>conftest.err)
9849    ac_status=$?
9850    cat conftest.err >&5
9851    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852    if (exit $ac_status) && test -s "$ac_outfile"; then
9853      # The compiler can only warn and ignore the option if not recognized
9854      # So say no if there are warnings other than the usual output.
9855      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9856      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9858        lt_cv_prog_compiler_pic_works=yes
9859      fi
9860    fi
9861    $RM conftest*
9862
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9865 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9866
9867 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9868     case $lt_prog_compiler_pic in
9869      "" | " "*) ;;
9870      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9871      esac
9872 else
9873     lt_prog_compiler_pic=
9874      lt_prog_compiler_can_build_shared=no
9875 fi
9876
9877 fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 #
9890 # Check to make sure the static flag actually works.
9891 #
9892 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9894 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9895 if ${lt_cv_prog_compiler_static_works+:} false; then :
9896   $as_echo_n "(cached) " >&6
9897 else
9898   lt_cv_prog_compiler_static_works=no
9899    save_LDFLAGS="$LDFLAGS"
9900    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9901    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9902    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9903      # The linker can only warn and ignore the option if not recognized
9904      # So say no if there are warnings
9905      if test -s conftest.err; then
9906        # Append any errors to the config.log.
9907        cat conftest.err 1>&5
9908        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9909        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9910        if diff conftest.exp conftest.er2 >/dev/null; then
9911          lt_cv_prog_compiler_static_works=yes
9912        fi
9913      else
9914        lt_cv_prog_compiler_static_works=yes
9915      fi
9916    fi
9917    $RM -r conftest*
9918    LDFLAGS="$save_LDFLAGS"
9919
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9922 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9923
9924 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9925     :
9926 else
9927     lt_prog_compiler_static=
9928 fi
9929
9930
9931
9932
9933
9934
9935
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9937 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9938 if ${lt_cv_prog_compiler_c_o+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   lt_cv_prog_compiler_c_o=no
9942    $RM -r conftest 2>/dev/null
9943    mkdir conftest
9944    cd conftest
9945    mkdir out
9946    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9947
9948    lt_compiler_flag="-o out/conftest2.$ac_objext"
9949    # Insert the option either (1) after the last *FLAGS variable, or
9950    # (2) before a word containing "conftest.", or (3) at the end.
9951    # Note that $ac_compile itself does not contain backslashes and begins
9952    # with a dollar sign (not a hyphen), so the echo should work correctly.
9953    lt_compile=`echo "$ac_compile" | $SED \
9954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9956    -e 's:$: $lt_compiler_flag:'`
9957    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9958    (eval "$lt_compile" 2>out/conftest.err)
9959    ac_status=$?
9960    cat out/conftest.err >&5
9961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9963    then
9964      # The compiler can only warn and ignore the option if not recognized
9965      # So say no if there are warnings
9966      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9967      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9968      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9969        lt_cv_prog_compiler_c_o=yes
9970      fi
9971    fi
9972    chmod u+w . 2>&5
9973    $RM conftest*
9974    # SGI C++ compiler will create directory out/ii_files/ for
9975    # template instantiation
9976    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9977    $RM out/* && rmdir out
9978    cd ..
9979    $RM -r conftest
9980    $RM conftest*
9981
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9984 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9985
9986
9987
9988
9989
9990
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9993 if ${lt_cv_prog_compiler_c_o+:} false; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   lt_cv_prog_compiler_c_o=no
9997    $RM -r conftest 2>/dev/null
9998    mkdir conftest
9999    cd conftest
10000    mkdir out
10001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10002
10003    lt_compiler_flag="-o out/conftest2.$ac_objext"
10004    # Insert the option either (1) after the last *FLAGS variable, or
10005    # (2) before a word containing "conftest.", or (3) at the end.
10006    # Note that $ac_compile itself does not contain backslashes and begins
10007    # with a dollar sign (not a hyphen), so the echo should work correctly.
10008    lt_compile=`echo "$ac_compile" | $SED \
10009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10011    -e 's:$: $lt_compiler_flag:'`
10012    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10013    (eval "$lt_compile" 2>out/conftest.err)
10014    ac_status=$?
10015    cat out/conftest.err >&5
10016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10018    then
10019      # The compiler can only warn and ignore the option if not recognized
10020      # So say no if there are warnings
10021      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10022      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10023      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10024        lt_cv_prog_compiler_c_o=yes
10025      fi
10026    fi
10027    chmod u+w . 2>&5
10028    $RM conftest*
10029    # SGI C++ compiler will create directory out/ii_files/ for
10030    # template instantiation
10031    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10032    $RM out/* && rmdir out
10033    cd ..
10034    $RM -r conftest
10035    $RM conftest*
10036
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10040
10041
10042
10043
10044 hard_links="nottested"
10045 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10046   # do not overwrite the value of need_locks provided by the user
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10048 $as_echo_n "checking if we can lock with hard links... " >&6; }
10049   hard_links=yes
10050   $RM conftest*
10051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10052   touch conftest.a
10053   ln conftest.a conftest.b 2>&5 || hard_links=no
10054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10056 $as_echo "$hard_links" >&6; }
10057   if test "$hard_links" = no; then
10058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10059 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10060     need_locks=warn
10061   fi
10062 else
10063   need_locks=no
10064 fi
10065
10066
10067
10068
10069
10070
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10072 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10073
10074   runpath_var=
10075   allow_undefined_flag=
10076   always_export_symbols=no
10077   archive_cmds=
10078   archive_expsym_cmds=
10079   compiler_needs_object=no
10080   enable_shared_with_static_runtimes=no
10081   export_dynamic_flag_spec=
10082   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10083   hardcode_automatic=no
10084   hardcode_direct=no
10085   hardcode_direct_absolute=no
10086   hardcode_libdir_flag_spec=
10087   hardcode_libdir_separator=
10088   hardcode_minus_L=no
10089   hardcode_shlibpath_var=unsupported
10090   inherit_rpath=no
10091   link_all_deplibs=unknown
10092   module_cmds=
10093   module_expsym_cmds=
10094   old_archive_from_new_cmds=
10095   old_archive_from_expsyms_cmds=
10096   thread_safe_flag_spec=
10097   whole_archive_flag_spec=
10098   # include_expsyms should be a list of space-separated symbols to be *always*
10099   # included in the symbol list
10100   include_expsyms=
10101   # exclude_expsyms can be an extended regexp of symbols to exclude
10102   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10103   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10104   # as well as any symbol that contains `d'.
10105   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10106   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10107   # platforms (ab)use it in PIC code, but their linkers get confused if
10108   # the symbol is explicitly referenced.  Since portable code cannot
10109   # rely on this symbol name, it's probably fine to never include it in
10110   # preloaded symbol tables.
10111   # Exclude shared library initialization/finalization symbols.
10112   extract_expsyms_cmds=
10113
10114   case $host_os in
10115   cygwin* | mingw* | pw32* | cegcc*)
10116     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10117     # When not using gcc, we currently assume that we are using
10118     # Microsoft Visual C++.
10119     if test "$GCC" != yes; then
10120       with_gnu_ld=no
10121     fi
10122     ;;
10123   interix*)
10124     # we just hope/assume this is gcc and not c89 (= MSVC++)
10125     with_gnu_ld=yes
10126     ;;
10127   openbsd*)
10128     with_gnu_ld=no
10129     ;;
10130   esac
10131
10132   ld_shlibs=yes
10133
10134   # On some targets, GNU ld is compatible enough with the native linker
10135   # that we're better off using the native interface for both.
10136   lt_use_gnu_ld_interface=no
10137   if test "$with_gnu_ld" = yes; then
10138     case $host_os in
10139       aix*)
10140         # The AIX port of GNU ld has always aspired to compatibility
10141         # with the native linker.  However, as the warning in the GNU ld
10142         # block says, versions before 2.19.5* couldn't really create working
10143         # shared libraries, regardless of the interface used.
10144         case `$LD -v 2>&1` in
10145           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10146           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10147           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10148           *)
10149             lt_use_gnu_ld_interface=yes
10150             ;;
10151         esac
10152         ;;
10153       *)
10154         lt_use_gnu_ld_interface=yes
10155         ;;
10156     esac
10157   fi
10158
10159   if test "$lt_use_gnu_ld_interface" = yes; then
10160     # If archive_cmds runs LD, not CC, wlarc should be empty
10161     wlarc='${wl}'
10162
10163     # Set some defaults for GNU ld with shared library support. These
10164     # are reset later if shared libraries are not supported. Putting them
10165     # here allows them to be overridden if necessary.
10166     runpath_var=LD_RUN_PATH
10167     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168     export_dynamic_flag_spec='${wl}--export-dynamic'
10169     # ancient GNU ld didn't support --whole-archive et. al.
10170     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10171       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10172     else
10173       whole_archive_flag_spec=
10174     fi
10175     supports_anon_versioning=no
10176     case `$LD -v 2>&1` in
10177       *GNU\ gold*) supports_anon_versioning=yes ;;
10178       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10179       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10180       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10181       *\ 2.11.*) ;; # other 2.11 versions
10182       *) supports_anon_versioning=yes ;;
10183     esac
10184
10185     # See if GNU ld supports shared libraries.
10186     case $host_os in
10187     aix[3-9]*)
10188       # On AIX/PPC, the GNU linker is very broken
10189       if test "$host_cpu" != ia64; then
10190         ld_shlibs=no
10191         cat <<_LT_EOF 1>&2
10192
10193 *** Warning: the GNU linker, at least up to release 2.19, is reported
10194 *** to be unable to reliably create shared libraries on AIX.
10195 *** Therefore, libtool is disabling shared libraries support.  If you
10196 *** really care for shared libraries, you may want to install binutils
10197 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10198 *** You will then need to restart the configuration process.
10199
10200 _LT_EOF
10201       fi
10202       ;;
10203
10204     amigaos*)
10205       case $host_cpu in
10206       powerpc)
10207             # see comment about AmigaOS4 .so support
10208             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209             archive_expsym_cmds=''
10210         ;;
10211       m68k)
10212             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)'
10213             hardcode_libdir_flag_spec='-L$libdir'
10214             hardcode_minus_L=yes
10215         ;;
10216       esac
10217       ;;
10218
10219     beos*)
10220       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10221         allow_undefined_flag=unsupported
10222         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10223         # support --undefined.  This deserves some investigation.  FIXME
10224         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225       else
10226         ld_shlibs=no
10227       fi
10228       ;;
10229
10230     cygwin* | mingw* | pw32* | cegcc*)
10231       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10232       # as there is no search path for DLLs.
10233       hardcode_libdir_flag_spec='-L$libdir'
10234       export_dynamic_flag_spec='${wl}--export-all-symbols'
10235       allow_undefined_flag=unsupported
10236       always_export_symbols=no
10237       enable_shared_with_static_runtimes=yes
10238       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'
10239       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10240
10241       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10243         # If the export-symbols file already is a .def file (1st line
10244         # is EXPORTS), use it as is; otherwise, prepend...
10245         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10246           cp $export_symbols $output_objdir/$soname.def;
10247         else
10248           echo EXPORTS > $output_objdir/$soname.def;
10249           cat $export_symbols >> $output_objdir/$soname.def;
10250         fi~
10251         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10252       else
10253         ld_shlibs=no
10254       fi
10255       ;;
10256
10257     haiku*)
10258       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259       link_all_deplibs=yes
10260       ;;
10261
10262     interix[3-9]*)
10263       hardcode_direct=no
10264       hardcode_shlibpath_var=no
10265       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10266       export_dynamic_flag_spec='${wl}-E'
10267       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10268       # Instead, shared libraries are loaded at an image base (0x10000000 by
10269       # default) and relocated if they conflict, which is a slow very memory
10270       # consuming and fragmenting process.  To avoid this, we pick a random,
10271       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10272       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10273       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10274       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'
10275       ;;
10276
10277     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10278       tmp_diet=no
10279       if test "$host_os" = linux-dietlibc; then
10280         case $cc_basename in
10281           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10282         esac
10283       fi
10284       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10285          && test "$tmp_diet" = no
10286       then
10287         tmp_addflag=' $pic_flag'
10288         tmp_sharedflag='-shared'
10289         case $cc_basename,$host_cpu in
10290         pgcc*)                          # Portland Group C compiler
10291           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'
10292           tmp_addflag=' $pic_flag'
10293           ;;
10294         pgf77* | pgf90* | pgf95* | pgfortran*)
10295                                         # Portland Group f77 and f90 compilers
10296           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'
10297           tmp_addflag=' $pic_flag -Mnomain' ;;
10298         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10299           tmp_addflag=' -i_dynamic' ;;
10300         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10301           tmp_addflag=' -i_dynamic -nofor_main' ;;
10302         ifc* | ifort*)                  # Intel Fortran compiler
10303           tmp_addflag=' -nofor_main' ;;
10304         lf95*)                          # Lahey Fortran 8.1
10305           whole_archive_flag_spec=
10306           tmp_sharedflag='--shared' ;;
10307         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10308           tmp_sharedflag='-qmkshrobj'
10309           tmp_addflag= ;;
10310         nvcc*)  # Cuda Compiler Driver 2.2
10311           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'
10312           compiler_needs_object=yes
10313           ;;
10314         esac
10315         case `$CC -V 2>&1 | sed 5q` in
10316         *Sun\ C*)                       # Sun C 5.9
10317           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'
10318           compiler_needs_object=yes
10319           tmp_sharedflag='-G' ;;
10320         *Sun\ F*)                       # Sun Fortran 8.3
10321           tmp_sharedflag='-G' ;;
10322         esac
10323         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324
10325         if test "x$supports_anon_versioning" = xyes; then
10326           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10327             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10328             echo "local: *; };" >> $output_objdir/$libname.ver~
10329             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10330         fi
10331
10332         case $cc_basename in
10333         xlf* | bgf* | bgxlf* | mpixlf*)
10334           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10335           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10336           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10338           if test "x$supports_anon_versioning" = xyes; then
10339             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10340               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10341               echo "local: *; };" >> $output_objdir/$libname.ver~
10342               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10343           fi
10344           ;;
10345         esac
10346       else
10347         ld_shlibs=no
10348       fi
10349       ;;
10350
10351     netbsd*)
10352       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10354         wlarc=
10355       else
10356         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10357         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10358       fi
10359       ;;
10360
10361     solaris*)
10362       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10363         ld_shlibs=no
10364         cat <<_LT_EOF 1>&2
10365
10366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10367 *** create shared libraries on Solaris systems.  Therefore, libtool
10368 *** is disabling shared libraries support.  We urge you to upgrade GNU
10369 *** binutils to release 2.9.1 or newer.  Another option is to modify
10370 *** your PATH or compiler configuration so that the native linker is
10371 *** used, and then restart.
10372
10373 _LT_EOF
10374       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10377       else
10378         ld_shlibs=no
10379       fi
10380       ;;
10381
10382     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10383       case `$LD -v 2>&1` in
10384         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10385         ld_shlibs=no
10386         cat <<_LT_EOF 1>&2
10387
10388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10389 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10390 *** is disabling shared libraries support.  We urge you to upgrade GNU
10391 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10392 *** your PATH or compiler configuration so that the native linker is
10393 *** used, and then restart.
10394
10395 _LT_EOF
10396         ;;
10397         *)
10398           # For security reasons, it is highly recommended that you always
10399           # use absolute paths for naming shared libraries, and exclude the
10400           # DT_RUNPATH tag from executables and libraries.  But doing so
10401           # requires that you compile everything twice, which is a pain.
10402           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10403             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10406           else
10407             ld_shlibs=no
10408           fi
10409         ;;
10410       esac
10411       ;;
10412
10413     sunos4*)
10414       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10415       wlarc=
10416       hardcode_direct=yes
10417       hardcode_shlibpath_var=no
10418       ;;
10419
10420     *)
10421       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10424       else
10425         ld_shlibs=no
10426       fi
10427       ;;
10428     esac
10429
10430     if test "$ld_shlibs" = no; then
10431       runpath_var=
10432       hardcode_libdir_flag_spec=
10433       export_dynamic_flag_spec=
10434       whole_archive_flag_spec=
10435     fi
10436   else
10437     # PORTME fill in a description of your system's linker (not GNU ld)
10438     case $host_os in
10439     aix3*)
10440       allow_undefined_flag=unsupported
10441       always_export_symbols=yes
10442       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'
10443       # Note: this linker hardcodes the directories in LIBPATH if there
10444       # are no directories specified by -L.
10445       hardcode_minus_L=yes
10446       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10447         # Neither direct hardcoding nor static linking is supported with a
10448         # broken collect2.
10449         hardcode_direct=unsupported
10450       fi
10451       ;;
10452
10453     aix[4-9]*)
10454       if test "$host_cpu" = ia64; then
10455         # On IA64, the linker does run time linking by default, so we don't
10456         # have to do anything special.
10457         aix_use_runtimelinking=no
10458         exp_sym_flag='-Bexport'
10459         no_entry_flag=""
10460       else
10461         # If we're using GNU nm, then we don't want the "-C" option.
10462         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10463         # Also, AIX nm treats weak defined symbols like other global
10464         # defined symbols, whereas GNU nm marks them as "W".
10465         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10466           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'
10467         else
10468           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'
10469         fi
10470         aix_use_runtimelinking=no
10471
10472         # Test if we are trying to use run time linking or normal
10473         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10474         # need to do runtime linking.
10475         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10476           for ld_flag in $LDFLAGS; do
10477           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10478             aix_use_runtimelinking=yes
10479             break
10480           fi
10481           done
10482           ;;
10483         esac
10484
10485         exp_sym_flag='-bexport'
10486         no_entry_flag='-bnoentry'
10487       fi
10488
10489       # When large executables or shared objects are built, AIX ld can
10490       # have problems creating the table of contents.  If linking a library
10491       # or program results in "error TOC overflow" add -mminimal-toc to
10492       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10493       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10494
10495       archive_cmds=''
10496       hardcode_direct=yes
10497       hardcode_direct_absolute=yes
10498       hardcode_libdir_separator=':'
10499       link_all_deplibs=yes
10500       file_list_spec='${wl}-f,'
10501
10502       if test "$GCC" = yes; then
10503         case $host_os in aix4.[012]|aix4.[012].*)
10504         # We only want to do this on AIX 4.2 and lower, the check
10505         # below for broken collect2 doesn't work under 4.3+
10506           collect2name=`${CC} -print-prog-name=collect2`
10507           if test -f "$collect2name" &&
10508            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10509           then
10510           # We have reworked collect2
10511           :
10512           else
10513           # We have old collect2
10514           hardcode_direct=unsupported
10515           # It fails to find uninstalled libraries when the uninstalled
10516           # path is not listed in the libpath.  Setting hardcode_minus_L
10517           # to unsupported forces relinking
10518           hardcode_minus_L=yes
10519           hardcode_libdir_flag_spec='-L$libdir'
10520           hardcode_libdir_separator=
10521           fi
10522           ;;
10523         esac
10524         shared_flag='-shared'
10525         if test "$aix_use_runtimelinking" = yes; then
10526           shared_flag="$shared_flag "'${wl}-G'
10527         fi
10528       else
10529         # not using gcc
10530         if test "$host_cpu" = ia64; then
10531         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10532         # chokes on -Wl,-G. The following line is correct:
10533           shared_flag='-G'
10534         else
10535           if test "$aix_use_runtimelinking" = yes; then
10536             shared_flag='${wl}-G'
10537           else
10538             shared_flag='${wl}-bM:SRE'
10539           fi
10540         fi
10541       fi
10542
10543       export_dynamic_flag_spec='${wl}-bexpall'
10544       # It seems that -bexpall does not export symbols beginning with
10545       # underscore (_), so it is better to generate a list of symbols to export.
10546       always_export_symbols=yes
10547       if test "$aix_use_runtimelinking" = yes; then
10548         # Warning - without using the other runtime loading flags (-brtl),
10549         # -berok will link without error, but may produce a broken library.
10550         allow_undefined_flag='-berok'
10551         # Determine the default libpath from the value encoded in an
10552         # empty executable.
10553         if test "${lt_cv_aix_libpath+set}" = set; then
10554   aix_libpath=$lt_cv_aix_libpath
10555 else
10556   if ${lt_cv_aix_libpath_+:} false; then :
10557   $as_echo_n "(cached) " >&6
10558 else
10559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h.  */
10561
10562 int
10563 main ()
10564 {
10565
10566   ;
10567   return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10571
10572   lt_aix_libpath_sed='
10573       /Import File Strings/,/^$/ {
10574           /^0/ {
10575               s/^0  *\([^ ]*\) *$/\1/
10576               p
10577           }
10578       }'
10579   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10580   # Check for a 64-bit object if we didn't find anything.
10581   if test -z "$lt_cv_aix_libpath_"; then
10582     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10583   fi
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586     conftest$ac_exeext conftest.$ac_ext
10587   if test -z "$lt_cv_aix_libpath_"; then
10588     lt_cv_aix_libpath_="/usr/lib:/lib"
10589   fi
10590
10591 fi
10592
10593   aix_libpath=$lt_cv_aix_libpath_
10594 fi
10595
10596         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10597         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"
10598       else
10599         if test "$host_cpu" = ia64; then
10600           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10601           allow_undefined_flag="-z nodefs"
10602           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"
10603         else
10604          # Determine the default libpath from the value encoded in an
10605          # empty executable.
10606          if test "${lt_cv_aix_libpath+set}" = set; then
10607   aix_libpath=$lt_cv_aix_libpath
10608 else
10609   if ${lt_cv_aix_libpath_+:} false; then :
10610   $as_echo_n "(cached) " >&6
10611 else
10612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h.  */
10614
10615 int
10616 main ()
10617 {
10618
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"; then :
10624
10625   lt_aix_libpath_sed='
10626       /Import File Strings/,/^$/ {
10627           /^0/ {
10628               s/^0  *\([^ ]*\) *$/\1/
10629               p
10630           }
10631       }'
10632   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10633   # Check for a 64-bit object if we didn't find anything.
10634   if test -z "$lt_cv_aix_libpath_"; then
10635     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10636   fi
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext \
10639     conftest$ac_exeext conftest.$ac_ext
10640   if test -z "$lt_cv_aix_libpath_"; then
10641     lt_cv_aix_libpath_="/usr/lib:/lib"
10642   fi
10643
10644 fi
10645
10646   aix_libpath=$lt_cv_aix_libpath_
10647 fi
10648
10649          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10650           # Warning - without using the other run time loading flags,
10651           # -berok will link without error, but may produce a broken library.
10652           no_undefined_flag=' ${wl}-bernotok'
10653           allow_undefined_flag=' ${wl}-berok'
10654           if test "$with_gnu_ld" = yes; then
10655             # We only use this code for GNU lds that support --whole-archive.
10656             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10657           else
10658             # Exported symbols can be pulled into shared objects from archives
10659             whole_archive_flag_spec='$convenience'
10660           fi
10661           archive_cmds_need_lc=yes
10662           # This is similar to how AIX traditionally builds its shared libraries.
10663           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'
10664         fi
10665       fi
10666       ;;
10667
10668     amigaos*)
10669       case $host_cpu in
10670       powerpc)
10671             # see comment about AmigaOS4 .so support
10672             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673             archive_expsym_cmds=''
10674         ;;
10675       m68k)
10676             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)'
10677             hardcode_libdir_flag_spec='-L$libdir'
10678             hardcode_minus_L=yes
10679         ;;
10680       esac
10681       ;;
10682
10683     bsdi[45]*)
10684       export_dynamic_flag_spec=-rdynamic
10685       ;;
10686
10687     cygwin* | mingw* | pw32* | cegcc*)
10688       # When not using gcc, we currently assume that we are using
10689       # Microsoft Visual C++.
10690       # hardcode_libdir_flag_spec is actually meaningless, as there is
10691       # no search path for DLLs.
10692       case $cc_basename in
10693       cl*)
10694         # Native MSVC
10695         hardcode_libdir_flag_spec=' '
10696         allow_undefined_flag=unsupported
10697         always_export_symbols=yes
10698         file_list_spec='@'
10699         # Tell ltmain to make .lib files, not .a files.
10700         libext=lib
10701         # Tell ltmain to make .dll files, not .so files.
10702         shrext_cmds=".dll"
10703         # FIXME: Setting linknames here is a bad hack.
10704         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10705         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10706             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10707           else
10708             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10709           fi~
10710           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10711           linknames='
10712         # The linker will not automatically build a static lib if we build a DLL.
10713         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10714         enable_shared_with_static_runtimes=yes
10715         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10716         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10717         # Don't use ranlib
10718         old_postinstall_cmds='chmod 644 $oldlib'
10719         postlink_cmds='lt_outputfile="@OUTPUT@"~
10720           lt_tool_outputfile="@TOOL_OUTPUT@"~
10721           case $lt_outputfile in
10722             *.exe|*.EXE) ;;
10723             *)
10724               lt_outputfile="$lt_outputfile.exe"
10725               lt_tool_outputfile="$lt_tool_outputfile.exe"
10726               ;;
10727           esac~
10728           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10729             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10730             $RM "$lt_outputfile.manifest";
10731           fi'
10732         ;;
10733       *)
10734         # Assume MSVC wrapper
10735         hardcode_libdir_flag_spec=' '
10736         allow_undefined_flag=unsupported
10737         # Tell ltmain to make .lib files, not .a files.
10738         libext=lib
10739         # Tell ltmain to make .dll files, not .so files.
10740         shrext_cmds=".dll"
10741         # FIXME: Setting linknames here is a bad hack.
10742         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10743         # The linker will automatically build a .lib file if we build a DLL.
10744         old_archive_from_new_cmds='true'
10745         # FIXME: Should let the user specify the lib program.
10746         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10747         enable_shared_with_static_runtimes=yes
10748         ;;
10749       esac
10750       ;;
10751
10752     darwin* | rhapsody*)
10753
10754
10755   archive_cmds_need_lc=no
10756   hardcode_direct=no
10757   hardcode_automatic=yes
10758   hardcode_shlibpath_var=unsupported
10759   if test "$lt_cv_ld_force_load" = "yes"; then
10760     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\"`'
10761
10762   else
10763     whole_archive_flag_spec=''
10764   fi
10765   link_all_deplibs=yes
10766   allow_undefined_flag="$_lt_dar_allow_undefined"
10767   case $cc_basename in
10768      ifort*) _lt_dar_can_shared=yes ;;
10769      *) _lt_dar_can_shared=$GCC ;;
10770   esac
10771   if test "$_lt_dar_can_shared" = "yes"; then
10772     output_verbose_link_cmd=func_echo_all
10773     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10774     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10775     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}"
10776     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}"
10777
10778   else
10779   ld_shlibs=no
10780   fi
10781
10782       ;;
10783
10784     dgux*)
10785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786       hardcode_libdir_flag_spec='-L$libdir'
10787       hardcode_shlibpath_var=no
10788       ;;
10789
10790     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10791     # support.  Future versions do this automatically, but an explicit c++rt0.o
10792     # does not break anything, and helps significantly (at the cost of a little
10793     # extra space).
10794     freebsd2.2*)
10795       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10796       hardcode_libdir_flag_spec='-R$libdir'
10797       hardcode_direct=yes
10798       hardcode_shlibpath_var=no
10799       ;;
10800
10801     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10802     freebsd2.*)
10803       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10804       hardcode_direct=yes
10805       hardcode_minus_L=yes
10806       hardcode_shlibpath_var=no
10807       ;;
10808
10809     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10810     freebsd* | dragonfly*)
10811       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10812       hardcode_libdir_flag_spec='-R$libdir'
10813       hardcode_direct=yes
10814       hardcode_shlibpath_var=no
10815       ;;
10816
10817     hpux9*)
10818       if test "$GCC" = yes; then
10819         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'
10820       else
10821         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'
10822       fi
10823       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10824       hardcode_libdir_separator=:
10825       hardcode_direct=yes
10826
10827       # hardcode_minus_L: Not really in the search PATH,
10828       # but as the default location of the library.
10829       hardcode_minus_L=yes
10830       export_dynamic_flag_spec='${wl}-E'
10831       ;;
10832
10833     hpux10*)
10834       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10835         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836       else
10837         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10838       fi
10839       if test "$with_gnu_ld" = no; then
10840         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10841         hardcode_libdir_separator=:
10842         hardcode_direct=yes
10843         hardcode_direct_absolute=yes
10844         export_dynamic_flag_spec='${wl}-E'
10845         # hardcode_minus_L: Not really in the search PATH,
10846         # but as the default location of the library.
10847         hardcode_minus_L=yes
10848       fi
10849       ;;
10850
10851     hpux11*)
10852       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10853         case $host_cpu in
10854         hppa*64*)
10855           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10856           ;;
10857         ia64*)
10858           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10859           ;;
10860         *)
10861           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10862           ;;
10863         esac
10864       else
10865         case $host_cpu in
10866         hppa*64*)
10867           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10868           ;;
10869         ia64*)
10870           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10871           ;;
10872         *)
10873
10874           # Older versions of the 11.00 compiler do not understand -b yet
10875           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10876           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10877 $as_echo_n "checking if $CC understands -b... " >&6; }
10878 if ${lt_cv_prog_compiler__b+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   lt_cv_prog_compiler__b=no
10882    save_LDFLAGS="$LDFLAGS"
10883    LDFLAGS="$LDFLAGS -b"
10884    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10885    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10886      # The linker can only warn and ignore the option if not recognized
10887      # So say no if there are warnings
10888      if test -s conftest.err; then
10889        # Append any errors to the config.log.
10890        cat conftest.err 1>&5
10891        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10892        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10893        if diff conftest.exp conftest.er2 >/dev/null; then
10894          lt_cv_prog_compiler__b=yes
10895        fi
10896      else
10897        lt_cv_prog_compiler__b=yes
10898      fi
10899    fi
10900    $RM -r conftest*
10901    LDFLAGS="$save_LDFLAGS"
10902
10903 fi
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10905 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10906
10907 if test x"$lt_cv_prog_compiler__b" = xyes; then
10908     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10911 fi
10912
10913           ;;
10914         esac
10915       fi
10916       if test "$with_gnu_ld" = no; then
10917         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10918         hardcode_libdir_separator=:
10919
10920         case $host_cpu in
10921         hppa*64*|ia64*)
10922           hardcode_direct=no
10923           hardcode_shlibpath_var=no
10924           ;;
10925         *)
10926           hardcode_direct=yes
10927           hardcode_direct_absolute=yes
10928           export_dynamic_flag_spec='${wl}-E'
10929
10930           # hardcode_minus_L: Not really in the search PATH,
10931           # but as the default location of the library.
10932           hardcode_minus_L=yes
10933           ;;
10934         esac
10935       fi
10936       ;;
10937
10938     irix5* | irix6* | nonstopux*)
10939       if test "$GCC" = yes; then
10940         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'
10941         # Try to use the -exported_symbol ld option, if it does not
10942         # work, assume that -exports_file does not work either and
10943         # implicitly export all symbols.
10944         # This should be the same for all languages, so no per-tag cache variable.
10945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10946 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10947 if ${lt_cv_irix_exported_symbol+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950   save_LDFLAGS="$LDFLAGS"
10951            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10952            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h.  */
10954 int foo (void) { return 0; }
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957   lt_cv_irix_exported_symbol=yes
10958 else
10959   lt_cv_irix_exported_symbol=no
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963            LDFLAGS="$save_LDFLAGS"
10964 fi
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10966 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10967         if test "$lt_cv_irix_exported_symbol" = yes; then
10968           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'
10969         fi
10970       else
10971         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'
10972         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'
10973       fi
10974       archive_cmds_need_lc='no'
10975       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10976       hardcode_libdir_separator=:
10977       inherit_rpath=yes
10978       link_all_deplibs=yes
10979       ;;
10980
10981     netbsd*)
10982       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10983         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10984       else
10985         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10986       fi
10987       hardcode_libdir_flag_spec='-R$libdir'
10988       hardcode_direct=yes
10989       hardcode_shlibpath_var=no
10990       ;;
10991
10992     newsos6)
10993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994       hardcode_direct=yes
10995       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10996       hardcode_libdir_separator=:
10997       hardcode_shlibpath_var=no
10998       ;;
10999
11000     *nto* | *qnx*)
11001       ;;
11002
11003     openbsd*)
11004       if test -f /usr/libexec/ld.so; then
11005         hardcode_direct=yes
11006         hardcode_shlibpath_var=no
11007         hardcode_direct_absolute=yes
11008         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11009           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11011           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11012           export_dynamic_flag_spec='${wl}-E'
11013         else
11014           case $host_os in
11015            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11016              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11017              hardcode_libdir_flag_spec='-R$libdir'
11018              ;;
11019            *)
11020              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11021              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11022              ;;
11023           esac
11024         fi
11025       else
11026         ld_shlibs=no
11027       fi
11028       ;;
11029
11030     os2*)
11031       hardcode_libdir_flag_spec='-L$libdir'
11032       hardcode_minus_L=yes
11033       allow_undefined_flag=unsupported
11034       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'
11035       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11036       ;;
11037
11038     osf3*)
11039       if test "$GCC" = yes; then
11040         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11041         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'
11042       else
11043         allow_undefined_flag=' -expect_unresolved \*'
11044         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'
11045       fi
11046       archive_cmds_need_lc='no'
11047       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11048       hardcode_libdir_separator=:
11049       ;;
11050
11051     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11052       if test "$GCC" = yes; then
11053         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11054         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'
11055         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11056       else
11057         allow_undefined_flag=' -expect_unresolved \*'
11058         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'
11059         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~
11060         $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'
11061
11062         # Both c and cxx compiler support -rpath directly
11063         hardcode_libdir_flag_spec='-rpath $libdir'
11064       fi
11065       archive_cmds_need_lc='no'
11066       hardcode_libdir_separator=:
11067       ;;
11068
11069     solaris*)
11070       no_undefined_flag=' -z defs'
11071       if test "$GCC" = yes; then
11072         wlarc='${wl}'
11073         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11074         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11075           $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'
11076       else
11077         case `$CC -V 2>&1` in
11078         *"Compilers 5.0"*)
11079           wlarc=''
11080           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11082           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11083           ;;
11084         *)
11085           wlarc='${wl}'
11086           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11087           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11088           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11089           ;;
11090         esac
11091       fi
11092       hardcode_libdir_flag_spec='-R$libdir'
11093       hardcode_shlibpath_var=no
11094       case $host_os in
11095       solaris2.[0-5] | solaris2.[0-5].*) ;;
11096       *)
11097         # The compiler driver will combine and reorder linker options,
11098         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11099         # but is careful enough not to reorder.
11100         # Supported since Solaris 2.6 (maybe 2.5.1?)
11101         if test "$GCC" = yes; then
11102           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11103         else
11104           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11105         fi
11106         ;;
11107       esac
11108       link_all_deplibs=yes
11109       ;;
11110
11111     sunos4*)
11112       if test "x$host_vendor" = xsequent; then
11113         # Use $CC to link under sequent, because it throws in some extra .o
11114         # files that make .init and .fini sections work.
11115         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11116       else
11117         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11118       fi
11119       hardcode_libdir_flag_spec='-L$libdir'
11120       hardcode_direct=yes
11121       hardcode_minus_L=yes
11122       hardcode_shlibpath_var=no
11123       ;;
11124
11125     sysv4)
11126       case $host_vendor in
11127         sni)
11128           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11129           hardcode_direct=yes # is this really true???
11130         ;;
11131         siemens)
11132           ## LD is ld it makes a PLAMLIB
11133           ## CC just makes a GrossModule.
11134           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11135           reload_cmds='$CC -r -o $output$reload_objs'
11136           hardcode_direct=no
11137         ;;
11138         motorola)
11139           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11141         ;;
11142       esac
11143       runpath_var='LD_RUN_PATH'
11144       hardcode_shlibpath_var=no
11145       ;;
11146
11147     sysv4.3*)
11148       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11149       hardcode_shlibpath_var=no
11150       export_dynamic_flag_spec='-Bexport'
11151       ;;
11152
11153     sysv4*MP*)
11154       if test -d /usr/nec; then
11155         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11156         hardcode_shlibpath_var=no
11157         runpath_var=LD_RUN_PATH
11158         hardcode_runpath_var=yes
11159         ld_shlibs=yes
11160       fi
11161       ;;
11162
11163     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11164       no_undefined_flag='${wl}-z,text'
11165       archive_cmds_need_lc=no
11166       hardcode_shlibpath_var=no
11167       runpath_var='LD_RUN_PATH'
11168
11169       if test "$GCC" = yes; then
11170         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11172       else
11173         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11175       fi
11176       ;;
11177
11178     sysv5* | sco3.2v5* | sco5v6*)
11179       # Note: We can NOT use -z defs as we might desire, because we do not
11180       # link with -lc, and that would cause any symbols used from libc to
11181       # always be unresolved, which means just about no library would
11182       # ever link correctly.  If we're not using GNU ld we use -z text
11183       # though, which does catch some bad symbols but isn't as heavy-handed
11184       # as -z defs.
11185       no_undefined_flag='${wl}-z,text'
11186       allow_undefined_flag='${wl}-z,nodefs'
11187       archive_cmds_need_lc=no
11188       hardcode_shlibpath_var=no
11189       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11190       hardcode_libdir_separator=':'
11191       link_all_deplibs=yes
11192       export_dynamic_flag_spec='${wl}-Bexport'
11193       runpath_var='LD_RUN_PATH'
11194
11195       if test "$GCC" = yes; then
11196         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11198       else
11199         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11200         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11201       fi
11202       ;;
11203
11204     uts4*)
11205       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11206       hardcode_libdir_flag_spec='-L$libdir'
11207       hardcode_shlibpath_var=no
11208       ;;
11209
11210     *)
11211       ld_shlibs=no
11212       ;;
11213     esac
11214
11215     if test x$host_vendor = xsni; then
11216       case $host in
11217       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11218         export_dynamic_flag_spec='${wl}-Blargedynsym'
11219         ;;
11220       esac
11221     fi
11222   fi
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11225 $as_echo "$ld_shlibs" >&6; }
11226 test "$ld_shlibs" = no && can_build_shared=no
11227
11228 with_gnu_ld=$with_gnu_ld
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244 #
11245 # Do we need to explicitly link libc?
11246 #
11247 case "x$archive_cmds_need_lc" in
11248 x|xyes)
11249   # Assume -lc should be added
11250   archive_cmds_need_lc=yes
11251
11252   if test "$enable_shared" = yes && test "$GCC" = yes; then
11253     case $archive_cmds in
11254     *'~'*)
11255       # FIXME: we may have to deal with multi-command sequences.
11256       ;;
11257     '$CC '*)
11258       # Test whether the compiler implicitly links with -lc since on some
11259       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11260       # to ld, don't add -lc before -lgcc.
11261       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11262 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11263 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   $RM conftest*
11267         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11268
11269         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11270   (eval $ac_compile) 2>&5
11271   ac_status=$?
11272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11273   test $ac_status = 0; } 2>conftest.err; then
11274           soname=conftest
11275           lib=conftest
11276           libobjs=conftest.$ac_objext
11277           deplibs=
11278           wl=$lt_prog_compiler_wl
11279           pic_flag=$lt_prog_compiler_pic
11280           compiler_flags=-v
11281           linker_flags=-v
11282           verstring=
11283           output_objdir=.
11284           libname=conftest
11285           lt_save_allow_undefined_flag=$allow_undefined_flag
11286           allow_undefined_flag=
11287           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11288   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11289   ac_status=$?
11290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291   test $ac_status = 0; }
11292           then
11293             lt_cv_archive_cmds_need_lc=no
11294           else
11295             lt_cv_archive_cmds_need_lc=yes
11296           fi
11297           allow_undefined_flag=$lt_save_allow_undefined_flag
11298         else
11299           cat conftest.err 1>&5
11300         fi
11301         $RM conftest*
11302
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11305 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11306       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11307       ;;
11308     esac
11309   fi
11310   ;;
11311 esac
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11465 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11466
11467 if test "$GCC" = yes; then
11468   case $host_os in
11469     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11470     *) lt_awk_arg="/^libraries:/" ;;
11471   esac
11472   case $host_os in
11473     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11474     *) lt_sed_strip_eq="s,=/,/,g" ;;
11475   esac
11476   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11477   case $lt_search_path_spec in
11478   *\;*)
11479     # if the path contains ";" then we assume it to be the separator
11480     # otherwise default to the standard path separator (i.e. ":") - it is
11481     # assumed that no part of a normal pathname contains ";" but that should
11482     # okay in the real world where ";" in dirpaths is itself problematic.
11483     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11484     ;;
11485   *)
11486     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11487     ;;
11488   esac
11489   # Ok, now we have the path, separated by spaces, we can step through it
11490   # and add multilib dir if necessary.
11491   lt_tmp_lt_search_path_spec=
11492   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11493   for lt_sys_path in $lt_search_path_spec; do
11494     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11495       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11496     else
11497       test -d "$lt_sys_path" && \
11498         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11499     fi
11500   done
11501   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11502 BEGIN {RS=" "; FS="/|\n";} {
11503   lt_foo="";
11504   lt_count=0;
11505   for (lt_i = NF; lt_i > 0; lt_i--) {
11506     if ($lt_i != "" && $lt_i != ".") {
11507       if ($lt_i == "..") {
11508         lt_count++;
11509       } else {
11510         if (lt_count == 0) {
11511           lt_foo="/" $lt_i lt_foo;
11512         } else {
11513           lt_count--;
11514         }
11515       }
11516     }
11517   }
11518   if (lt_foo != "") { lt_freq[lt_foo]++; }
11519   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11520 }'`
11521   # AWK program above erroneously prepends '/' to C:/dos/paths
11522   # for these hosts.
11523   case $host_os in
11524     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11525       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11526   esac
11527   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11528 else
11529   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11530 fi
11531 library_names_spec=
11532 libname_spec='lib$name'
11533 soname_spec=
11534 shrext_cmds=".so"
11535 postinstall_cmds=
11536 postuninstall_cmds=
11537 finish_cmds=
11538 finish_eval=
11539 shlibpath_var=
11540 shlibpath_overrides_runpath=unknown
11541 version_type=none
11542 dynamic_linker="$host_os ld.so"
11543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11544 need_lib_prefix=unknown
11545 hardcode_into_libs=no
11546
11547 # when you set need_version to no, make sure it does not cause -set_version
11548 # flags to be left without arguments
11549 need_version=unknown
11550
11551 case $host_os in
11552 aix3*)
11553   version_type=linux # correct to gnu/linux during the next big refactor
11554   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11555   shlibpath_var=LIBPATH
11556
11557   # AIX 3 has no versioning support, so we append a major version to the name.
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   ;;
11560
11561 aix[4-9]*)
11562   version_type=linux # correct to gnu/linux during the next big refactor
11563   need_lib_prefix=no
11564   need_version=no
11565   hardcode_into_libs=yes
11566   if test "$host_cpu" = ia64; then
11567     # AIX 5 supports IA64
11568     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11569     shlibpath_var=LD_LIBRARY_PATH
11570   else
11571     # With GCC up to 2.95.x, collect2 would create an import file
11572     # for dependence libraries.  The import file would start with
11573     # the line `#! .'.  This would cause the generated library to
11574     # depend on `.', always an invalid library.  This was fixed in
11575     # development snapshots of GCC prior to 3.0.
11576     case $host_os in
11577       aix4 | aix4.[01] | aix4.[01].*)
11578       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11579            echo ' yes '
11580            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11581         :
11582       else
11583         can_build_shared=no
11584       fi
11585       ;;
11586     esac
11587     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11588     # soname into executable. Probably we can add versioning support to
11589     # collect2, so additional links can be useful in future.
11590     if test "$aix_use_runtimelinking" = yes; then
11591       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11592       # instead of lib<name>.a to let people know that these are not
11593       # typical AIX shared libraries.
11594       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595     else
11596       # We preserve .a as extension for shared libraries through AIX4.2
11597       # and later when we are not doing run time linking.
11598       library_names_spec='${libname}${release}.a $libname.a'
11599       soname_spec='${libname}${release}${shared_ext}$major'
11600     fi
11601     shlibpath_var=LIBPATH
11602   fi
11603   ;;
11604
11605 amigaos*)
11606   case $host_cpu in
11607   powerpc)
11608     # Since July 2007 AmigaOS4 officially supports .so libraries.
11609     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611     ;;
11612   m68k)
11613     library_names_spec='$libname.ixlibrary $libname.a'
11614     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11615     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'
11616     ;;
11617   esac
11618   ;;
11619
11620 beos*)
11621   library_names_spec='${libname}${shared_ext}'
11622   dynamic_linker="$host_os ld.so"
11623   shlibpath_var=LIBRARY_PATH
11624   ;;
11625
11626 bsdi[45]*)
11627   version_type=linux # correct to gnu/linux during the next big refactor
11628   need_version=no
11629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630   soname_spec='${libname}${release}${shared_ext}$major'
11631   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11634   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11635   # the default ld.so.conf also contains /usr/contrib/lib and
11636   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11637   # libtool to hard-code these into programs
11638   ;;
11639
11640 cygwin* | mingw* | pw32* | cegcc*)
11641   version_type=windows
11642   shrext_cmds=".dll"
11643   need_version=no
11644   need_lib_prefix=no
11645
11646   case $GCC,$cc_basename in
11647   yes,*)
11648     # gcc
11649     library_names_spec='$libname.dll.a'
11650     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11651     postinstall_cmds='base_file=`basename \${file}`~
11652       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11653       dldir=$destdir/`dirname \$dlpath`~
11654       test -d \$dldir || mkdir -p \$dldir~
11655       $install_prog $dir/$dlname \$dldir/$dlname~
11656       chmod a+x \$dldir/$dlname~
11657       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11658         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11659       fi'
11660     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11661       dlpath=$dir/\$dldll~
11662        $RM \$dlpath'
11663     shlibpath_overrides_runpath=yes
11664
11665     case $host_os in
11666     cygwin*)
11667       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11668       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11669
11670       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11671       ;;
11672     mingw* | cegcc*)
11673       # MinGW DLLs use traditional 'lib' prefix
11674       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11675       ;;
11676     pw32*)
11677       # pw32 DLLs use 'pw' prefix rather than 'lib'
11678       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11679       ;;
11680     esac
11681     dynamic_linker='Win32 ld.exe'
11682     ;;
11683
11684   *,cl*)
11685     # Native MSVC
11686     libname_spec='$name'
11687     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11688     library_names_spec='${libname}.dll.lib'
11689
11690     case $build_os in
11691     mingw*)
11692       sys_lib_search_path_spec=
11693       lt_save_ifs=$IFS
11694       IFS=';'
11695       for lt_path in $LIB
11696       do
11697         IFS=$lt_save_ifs
11698         # Let DOS variable expansion print the short 8.3 style file name.
11699         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11700         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11701       done
11702       IFS=$lt_save_ifs
11703       # Convert to MSYS style.
11704       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11705       ;;
11706     cygwin*)
11707       # Convert to unix form, then to dos form, then back to unix form
11708       # but this time dos style (no spaces!) so that the unix form looks
11709       # like /cygdrive/c/PROGRA~1:/cygdr...
11710       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11711       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11712       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11713       ;;
11714     *)
11715       sys_lib_search_path_spec="$LIB"
11716       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11717         # It is most probably a Windows format PATH.
11718         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11719       else
11720         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11721       fi
11722       # FIXME: find the short name or the path components, as spaces are
11723       # common. (e.g. "Program Files" -> "PROGRA~1")
11724       ;;
11725     esac
11726
11727     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11728     postinstall_cmds='base_file=`basename \${file}`~
11729       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11730       dldir=$destdir/`dirname \$dlpath`~
11731       test -d \$dldir || mkdir -p \$dldir~
11732       $install_prog $dir/$dlname \$dldir/$dlname'
11733     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11734       dlpath=$dir/\$dldll~
11735        $RM \$dlpath'
11736     shlibpath_overrides_runpath=yes
11737     dynamic_linker='Win32 link.exe'
11738     ;;
11739
11740   *)
11741     # Assume MSVC wrapper
11742     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11743     dynamic_linker='Win32 ld.exe'
11744     ;;
11745   esac
11746   # FIXME: first we should search . and the directory the executable is in
11747   shlibpath_var=PATH
11748   ;;
11749
11750 darwin* | rhapsody*)
11751   dynamic_linker="$host_os dyld"
11752   version_type=darwin
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11756   soname_spec='${libname}${release}${major}$shared_ext'
11757   shlibpath_overrides_runpath=yes
11758   shlibpath_var=DYLD_LIBRARY_PATH
11759   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11760
11761   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11762   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11763   ;;
11764
11765 dgux*)
11766   version_type=linux # correct to gnu/linux during the next big refactor
11767   need_lib_prefix=no
11768   need_version=no
11769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11770   soname_spec='${libname}${release}${shared_ext}$major'
11771   shlibpath_var=LD_LIBRARY_PATH
11772   ;;
11773
11774 freebsd* | dragonfly*)
11775   # DragonFly does not have aout.  When/if they implement a new
11776   # versioning mechanism, adjust this.
11777   if test -x /usr/bin/objformat; then
11778     objformat=`/usr/bin/objformat`
11779   else
11780     case $host_os in
11781     freebsd[23].*) objformat=aout ;;
11782     *) objformat=elf ;;
11783     esac
11784   fi
11785   version_type=freebsd-$objformat
11786   case $version_type in
11787     freebsd-elf*)
11788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11789       need_version=no
11790       need_lib_prefix=no
11791       ;;
11792     freebsd-*)
11793       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11794       need_version=yes
11795       ;;
11796   esac
11797   shlibpath_var=LD_LIBRARY_PATH
11798   case $host_os in
11799   freebsd2.*)
11800     shlibpath_overrides_runpath=yes
11801     ;;
11802   freebsd3.[01]* | freebsdelf3.[01]*)
11803     shlibpath_overrides_runpath=yes
11804     hardcode_into_libs=yes
11805     ;;
11806   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11807   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11808     shlibpath_overrides_runpath=no
11809     hardcode_into_libs=yes
11810     ;;
11811   *) # from 4.6 on, and DragonFly
11812     shlibpath_overrides_runpath=yes
11813     hardcode_into_libs=yes
11814     ;;
11815   esac
11816   ;;
11817
11818 gnu*)
11819   version_type=linux # correct to gnu/linux during the next big refactor
11820   need_lib_prefix=no
11821   need_version=no
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11823   soname_spec='${libname}${release}${shared_ext}$major'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   shlibpath_overrides_runpath=no
11826   hardcode_into_libs=yes
11827   ;;
11828
11829 haiku*)
11830   version_type=linux # correct to gnu/linux during the next big refactor
11831   need_lib_prefix=no
11832   need_version=no
11833   dynamic_linker="$host_os runtime_loader"
11834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11835   soname_spec='${libname}${release}${shared_ext}$major'
11836   shlibpath_var=LIBRARY_PATH
11837   shlibpath_overrides_runpath=yes
11838   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11839   hardcode_into_libs=yes
11840   ;;
11841
11842 hpux9* | hpux10* | hpux11*)
11843   # Give a soname corresponding to the major version so that dld.sl refuses to
11844   # link against other versions.
11845   version_type=sunos
11846   need_lib_prefix=no
11847   need_version=no
11848   case $host_cpu in
11849   ia64*)
11850     shrext_cmds='.so'
11851     hardcode_into_libs=yes
11852     dynamic_linker="$host_os dld.so"
11853     shlibpath_var=LD_LIBRARY_PATH
11854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856     soname_spec='${libname}${release}${shared_ext}$major'
11857     if test "X$HPUX_IA64_MODE" = X32; then
11858       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11859     else
11860       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11861     fi
11862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11863     ;;
11864   hppa*64*)
11865     shrext_cmds='.sl'
11866     hardcode_into_libs=yes
11867     dynamic_linker="$host_os dld.sl"
11868     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871     soname_spec='${libname}${release}${shared_ext}$major'
11872     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11874     ;;
11875   *)
11876     shrext_cmds='.sl'
11877     dynamic_linker="$host_os dld.sl"
11878     shlibpath_var=SHLIB_PATH
11879     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881     soname_spec='${libname}${release}${shared_ext}$major'
11882     ;;
11883   esac
11884   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11885   postinstall_cmds='chmod 555 $lib'
11886   # or fails outright, so override atomically:
11887   install_override_mode=555
11888   ;;
11889
11890 interix[3-9]*)
11891   version_type=linux # correct to gnu/linux during the next big refactor
11892   need_lib_prefix=no
11893   need_version=no
11894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11895   soname_spec='${libname}${release}${shared_ext}$major'
11896   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11897   shlibpath_var=LD_LIBRARY_PATH
11898   shlibpath_overrides_runpath=no
11899   hardcode_into_libs=yes
11900   ;;
11901
11902 irix5* | irix6* | nonstopux*)
11903   case $host_os in
11904     nonstopux*) version_type=nonstopux ;;
11905     *)
11906         if test "$lt_cv_prog_gnu_ld" = yes; then
11907                 version_type=linux # correct to gnu/linux during the next big refactor
11908         else
11909                 version_type=irix
11910         fi ;;
11911   esac
11912   need_lib_prefix=no
11913   need_version=no
11914   soname_spec='${libname}${release}${shared_ext}$major'
11915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11916   case $host_os in
11917   irix5* | nonstopux*)
11918     libsuff= shlibsuff=
11919     ;;
11920   *)
11921     case $LD in # libtool.m4 will add one of these switches to LD
11922     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11923       libsuff= shlibsuff= libmagic=32-bit;;
11924     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11925       libsuff=32 shlibsuff=N32 libmagic=N32;;
11926     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11927       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11928     *) libsuff= shlibsuff= libmagic=never-match;;
11929     esac
11930     ;;
11931   esac
11932   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11933   shlibpath_overrides_runpath=no
11934   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11935   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11936   hardcode_into_libs=yes
11937   ;;
11938
11939 # No shared lib support for Linux oldld, aout, or coff.
11940 linux*oldld* | linux*aout* | linux*coff*)
11941   dynamic_linker=no
11942   ;;
11943
11944 # This must be glibc/ELF.
11945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11946   version_type=linux # correct to gnu/linux during the next big refactor
11947   need_lib_prefix=no
11948   need_version=no
11949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950   soname_spec='${libname}${release}${shared_ext}$major'
11951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11952   shlibpath_var=LD_LIBRARY_PATH
11953   shlibpath_overrides_runpath=no
11954
11955   # Some binutils ld are patched to set DT_RUNPATH
11956   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   lt_cv_shlibpath_overrides_runpath=no
11960     save_LDFLAGS=$LDFLAGS
11961     save_libdir=$libdir
11962     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11963          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h.  */
11966
11967 int
11968 main ()
11969 {
11970
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11977   lt_cv_shlibpath_overrides_runpath=yes
11978 fi
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext \
11981     conftest$ac_exeext conftest.$ac_ext
11982     LDFLAGS=$save_LDFLAGS
11983     libdir=$save_libdir
11984
11985 fi
11986
11987   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11988
11989   # This implies no fast_install, which is unacceptable.
11990   # Some rework will be needed to allow for fast_install
11991   # before this can be enabled.
11992   hardcode_into_libs=yes
11993
11994   # Add ABI-specific directories to the system library path.
11995   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11996
11997   # Append ld.so.conf contents to the search path
11998   if test -f /etc/ld.so.conf; then
11999     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' ' '`
12000     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12001
12002   fi
12003
12004   # We used to test for /lib/ld.so.1 and disable shared libraries on
12005   # powerpc, because MkLinux only supported shared libraries with the
12006   # GNU dynamic linker.  Since this was broken with cross compilers,
12007   # most powerpc-linux boxes support dynamic linking these days and
12008   # people can always --disable-shared, the test was removed, and we
12009   # assume the GNU/Linux dynamic linker is in use.
12010   dynamic_linker='GNU/Linux ld.so'
12011   ;;
12012
12013 netbsd*)
12014   version_type=sunos
12015   need_lib_prefix=no
12016   need_version=no
12017   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12020     dynamic_linker='NetBSD (a.out) ld.so'
12021   else
12022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12023     soname_spec='${libname}${release}${shared_ext}$major'
12024     dynamic_linker='NetBSD ld.elf_so'
12025   fi
12026   shlibpath_var=LD_LIBRARY_PATH
12027   shlibpath_overrides_runpath=yes
12028   hardcode_into_libs=yes
12029   ;;
12030
12031 newsos6)
12032   version_type=linux # correct to gnu/linux during the next big refactor
12033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034   shlibpath_var=LD_LIBRARY_PATH
12035   shlibpath_overrides_runpath=yes
12036   ;;
12037
12038 *nto* | *qnx*)
12039   version_type=qnx
12040   need_lib_prefix=no
12041   need_version=no
12042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043   soname_spec='${libname}${release}${shared_ext}$major'
12044   shlibpath_var=LD_LIBRARY_PATH
12045   shlibpath_overrides_runpath=no
12046   hardcode_into_libs=yes
12047   dynamic_linker='ldqnx.so'
12048   ;;
12049
12050 openbsd*)
12051   version_type=sunos
12052   sys_lib_dlsearch_path_spec="/usr/lib"
12053   need_lib_prefix=no
12054   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12055   case $host_os in
12056     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12057     *)                          need_version=no  ;;
12058   esac
12059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12060   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12061   shlibpath_var=LD_LIBRARY_PATH
12062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12063     case $host_os in
12064       openbsd2.[89] | openbsd2.[89].*)
12065         shlibpath_overrides_runpath=no
12066         ;;
12067       *)
12068         shlibpath_overrides_runpath=yes
12069         ;;
12070       esac
12071   else
12072     shlibpath_overrides_runpath=yes
12073   fi
12074   ;;
12075
12076 os2*)
12077   libname_spec='$name'
12078   shrext_cmds=".dll"
12079   need_lib_prefix=no
12080   library_names_spec='$libname${shared_ext} $libname.a'
12081   dynamic_linker='OS/2 ld.exe'
12082   shlibpath_var=LIBPATH
12083   ;;
12084
12085 osf3* | osf4* | osf5*)
12086   version_type=osf
12087   need_lib_prefix=no
12088   need_version=no
12089   soname_spec='${libname}${release}${shared_ext}$major'
12090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091   shlibpath_var=LD_LIBRARY_PATH
12092   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12093   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12094   ;;
12095
12096 rdos*)
12097   dynamic_linker=no
12098   ;;
12099
12100 solaris*)
12101   version_type=linux # correct to gnu/linux during the next big refactor
12102   need_lib_prefix=no
12103   need_version=no
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105   soname_spec='${libname}${release}${shared_ext}$major'
12106   shlibpath_var=LD_LIBRARY_PATH
12107   shlibpath_overrides_runpath=yes
12108   hardcode_into_libs=yes
12109   # ldd complains unless libraries are executable
12110   postinstall_cmds='chmod +x $lib'
12111   ;;
12112
12113 sunos4*)
12114   version_type=sunos
12115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12117   shlibpath_var=LD_LIBRARY_PATH
12118   shlibpath_overrides_runpath=yes
12119   if test "$with_gnu_ld" = yes; then
12120     need_lib_prefix=no
12121   fi
12122   need_version=yes
12123   ;;
12124
12125 sysv4 | sysv4.3*)
12126   version_type=linux # correct to gnu/linux during the next big refactor
12127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128   soname_spec='${libname}${release}${shared_ext}$major'
12129   shlibpath_var=LD_LIBRARY_PATH
12130   case $host_vendor in
12131     sni)
12132       shlibpath_overrides_runpath=no
12133       need_lib_prefix=no
12134       runpath_var=LD_RUN_PATH
12135       ;;
12136     siemens)
12137       need_lib_prefix=no
12138       ;;
12139     motorola)
12140       need_lib_prefix=no
12141       need_version=no
12142       shlibpath_overrides_runpath=no
12143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12144       ;;
12145   esac
12146   ;;
12147
12148 sysv4*MP*)
12149   if test -d /usr/nec ;then
12150     version_type=linux # correct to gnu/linux during the next big refactor
12151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12152     soname_spec='$libname${shared_ext}.$major'
12153     shlibpath_var=LD_LIBRARY_PATH
12154   fi
12155   ;;
12156
12157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12158   version_type=freebsd-elf
12159   need_lib_prefix=no
12160   need_version=no
12161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12162   soname_spec='${libname}${release}${shared_ext}$major'
12163   shlibpath_var=LD_LIBRARY_PATH
12164   shlibpath_overrides_runpath=yes
12165   hardcode_into_libs=yes
12166   if test "$with_gnu_ld" = yes; then
12167     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12168   else
12169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12170     case $host_os in
12171       sco3.2v5*)
12172         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12173         ;;
12174     esac
12175   fi
12176   sys_lib_dlsearch_path_spec='/usr/lib'
12177   ;;
12178
12179 tpf*)
12180   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12181   version_type=linux # correct to gnu/linux during the next big refactor
12182   need_lib_prefix=no
12183   need_version=no
12184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185   shlibpath_var=LD_LIBRARY_PATH
12186   shlibpath_overrides_runpath=no
12187   hardcode_into_libs=yes
12188   ;;
12189
12190 uts4*)
12191   version_type=linux # correct to gnu/linux during the next big refactor
12192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193   soname_spec='${libname}${release}${shared_ext}$major'
12194   shlibpath_var=LD_LIBRARY_PATH
12195   ;;
12196
12197 *)
12198   dynamic_linker=no
12199   ;;
12200 esac
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12202 $as_echo "$dynamic_linker" >&6; }
12203 test "$dynamic_linker" = no && can_build_shared=no
12204
12205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12206 if test "$GCC" = yes; then
12207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12208 fi
12209
12210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12211   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12212 fi
12213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12214   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12215 fi
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12310 hardcode_action=
12311 if test -n "$hardcode_libdir_flag_spec" ||
12312    test -n "$runpath_var" ||
12313    test "X$hardcode_automatic" = "Xyes" ; then
12314
12315   # We can hardcode non-existent directories.
12316   if test "$hardcode_direct" != no &&
12317      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12318      # have to relink, otherwise we might link with an installed library
12319      # when we should be linking with a yet-to-be-installed one
12320      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12321      test "$hardcode_minus_L" != no; then
12322     # Linking always hardcodes the temporary library directory.
12323     hardcode_action=relink
12324   else
12325     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12326     hardcode_action=immediate
12327   fi
12328 else
12329   # We cannot hardcode anything, or else we can only hardcode existing
12330   # directories.
12331   hardcode_action=unsupported
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12334 $as_echo "$hardcode_action" >&6; }
12335
12336 if test "$hardcode_action" = relink ||
12337    test "$inherit_rpath" = yes; then
12338   # Fast installation is not supported
12339   enable_fast_install=no
12340 elif test "$shlibpath_overrides_runpath" = yes ||
12341      test "$enable_shared" = no; then
12342   # Fast installation is not necessary
12343   enable_fast_install=needless
12344 fi
12345
12346
12347
12348
12349
12350
12351   if test "x$enable_dlopen" != xyes; then
12352   enable_dlopen=unknown
12353   enable_dlopen_self=unknown
12354   enable_dlopen_self_static=unknown
12355 else
12356   lt_cv_dlopen=no
12357   lt_cv_dlopen_libs=
12358
12359   case $host_os in
12360   beos*)
12361     lt_cv_dlopen="load_add_on"
12362     lt_cv_dlopen_libs=
12363     lt_cv_dlopen_self=yes
12364     ;;
12365
12366   mingw* | pw32* | cegcc*)
12367     lt_cv_dlopen="LoadLibrary"
12368     lt_cv_dlopen_libs=
12369     ;;
12370
12371   cygwin*)
12372     lt_cv_dlopen="dlopen"
12373     lt_cv_dlopen_libs=
12374     ;;
12375
12376   darwin*)
12377   # if libdl is installed we need to link against it
12378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12380 if ${ac_cv_lib_dl_dlopen+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-ldl  $LIBS"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387
12388 /* Override any GCC internal prototype to avoid an error.
12389    Use char because int might match the return type of a GCC
12390    builtin and then its argument prototype would still apply.  */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 char dlopen ();
12395 int
12396 main ()
12397 {
12398 return dlopen ();
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 if ac_fn_c_try_link "$LINENO"; then :
12404   ac_cv_lib_dl_dlopen=yes
12405 else
12406   ac_cv_lib_dl_dlopen=no
12407 fi
12408 rm -f core conftest.err conftest.$ac_objext \
12409     conftest$ac_exeext conftest.$ac_ext
12410 LIBS=$ac_check_lib_save_LIBS
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12415   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12416 else
12417
12418     lt_cv_dlopen="dyld"
12419     lt_cv_dlopen_libs=
12420     lt_cv_dlopen_self=yes
12421
12422 fi
12423
12424     ;;
12425
12426   *)
12427     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12428 if test "x$ac_cv_func_shl_load" = xyes; then :
12429   lt_cv_dlopen="shl_load"
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12433 if ${ac_cv_lib_dld_shl_load+:} false; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436   ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-ldld  $LIBS"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h.  */
12440
12441 /* Override any GCC internal prototype to avoid an error.
12442    Use char because int might match the return type of a GCC
12443    builtin and then its argument prototype would still apply.  */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char shl_load ();
12448 int
12449 main ()
12450 {
12451 return shl_load ();
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457   ac_cv_lib_dld_shl_load=yes
12458 else
12459   ac_cv_lib_dld_shl_load=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462     conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12466 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12467 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12468   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12469 else
12470   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12471 if test "x$ac_cv_func_dlopen" = xyes; then :
12472   lt_cv_dlopen="dlopen"
12473 else
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12475 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12476 if ${ac_cv_lib_dl_dlopen+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479   ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-ldl  $LIBS"
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h.  */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char dlopen ();
12491 int
12492 main ()
12493 {
12494 return dlopen ();
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500   ac_cv_lib_dl_dlopen=yes
12501 else
12502   ac_cv_lib_dl_dlopen=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505     conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12509 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12510 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12511   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12512 else
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12514 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12515 if ${ac_cv_lib_svld_dlopen+:} false; then :
12516   $as_echo_n "(cached) " >&6
12517 else
12518   ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld  $LIBS"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h.  */
12522
12523 /* Override any GCC internal prototype to avoid an error.
12524    Use char because int might match the return type of a GCC
12525    builtin and then its argument prototype would still apply.  */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char dlopen ();
12530 int
12531 main ()
12532 {
12533 return dlopen ();
12534   ;
12535   return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539   ac_cv_lib_svld_dlopen=yes
12540 else
12541   ac_cv_lib_svld_dlopen=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544     conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12548 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12549 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12550   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12551 else
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12553 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12554 if ${ac_cv_lib_dld_dld_link+:} false; then :
12555   $as_echo_n "(cached) " >&6
12556 else
12557   ac_check_lib_save_LIBS=$LIBS
12558 LIBS="-ldld  $LIBS"
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12561
12562 /* Override any GCC internal prototype to avoid an error.
12563    Use char because int might match the return type of a GCC
12564    builtin and then its argument prototype would still apply.  */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char dld_link ();
12569 int
12570 main ()
12571 {
12572 return dld_link ();
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 if ac_fn_c_try_link "$LINENO"; then :
12578   ac_cv_lib_dld_dld_link=yes
12579 else
12580   ac_cv_lib_dld_dld_link=no
12581 fi
12582 rm -f core conftest.err conftest.$ac_objext \
12583     conftest$ac_exeext conftest.$ac_ext
12584 LIBS=$ac_check_lib_save_LIBS
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12587 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12588 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12589   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12590 fi
12591
12592
12593 fi
12594
12595
12596 fi
12597
12598
12599 fi
12600
12601
12602 fi
12603
12604
12605 fi
12606
12607     ;;
12608   esac
12609
12610   if test "x$lt_cv_dlopen" != xno; then
12611     enable_dlopen=yes
12612   else
12613     enable_dlopen=no
12614   fi
12615
12616   case $lt_cv_dlopen in
12617   dlopen)
12618     save_CPPFLAGS="$CPPFLAGS"
12619     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12620
12621     save_LDFLAGS="$LDFLAGS"
12622     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12623
12624     save_LIBS="$LIBS"
12625     LIBS="$lt_cv_dlopen_libs $LIBS"
12626
12627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12628 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12629 if ${lt_cv_dlopen_self+:} false; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632           if test "$cross_compiling" = yes; then :
12633   lt_cv_dlopen_self=cross
12634 else
12635   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636   lt_status=$lt_dlunknown
12637   cat > conftest.$ac_ext <<_LT_EOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12640
12641 #if HAVE_DLFCN_H
12642 #include <dlfcn.h>
12643 #endif
12644
12645 #include <stdio.h>
12646
12647 #ifdef RTLD_GLOBAL
12648 #  define LT_DLGLOBAL           RTLD_GLOBAL
12649 #else
12650 #  ifdef DL_GLOBAL
12651 #    define LT_DLGLOBAL         DL_GLOBAL
12652 #  else
12653 #    define LT_DLGLOBAL         0
12654 #  endif
12655 #endif
12656
12657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658    find out it does not work in some platform. */
12659 #ifndef LT_DLLAZY_OR_NOW
12660 #  ifdef RTLD_LAZY
12661 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12662 #  else
12663 #    ifdef DL_LAZY
12664 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12665 #    else
12666 #      ifdef RTLD_NOW
12667 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12668 #      else
12669 #        ifdef DL_NOW
12670 #          define LT_DLLAZY_OR_NOW      DL_NOW
12671 #        else
12672 #          define LT_DLLAZY_OR_NOW      0
12673 #        endif
12674 #      endif
12675 #    endif
12676 #  endif
12677 #endif
12678
12679 /* When -fvisbility=hidden is used, assume the code has been annotated
12680    correspondingly for the symbols needed.  */
12681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12682 int fnord () __attribute__((visibility("default")));
12683 #endif
12684
12685 int fnord () { return 42; }
12686 int main ()
12687 {
12688   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689   int status = $lt_dlunknown;
12690
12691   if (self)
12692     {
12693       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12694       else
12695         {
12696           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12697           else puts (dlerror ());
12698         }
12699       /* dlclose (self); */
12700     }
12701   else
12702     puts (dlerror ());
12703
12704   return status;
12705 }
12706 _LT_EOF
12707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708   (eval $ac_link) 2>&5
12709   ac_status=$?
12710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12712     (./conftest; exit; ) >&5 2>/dev/null
12713     lt_status=$?
12714     case x$lt_status in
12715       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12716       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12717       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12718     esac
12719   else :
12720     # compilation failed
12721     lt_cv_dlopen_self=no
12722   fi
12723 fi
12724 rm -fr conftest*
12725
12726
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12729 $as_echo "$lt_cv_dlopen_self" >&6; }
12730
12731     if test "x$lt_cv_dlopen_self" = xyes; then
12732       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12734 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12735 if ${lt_cv_dlopen_self_static+:} false; then :
12736   $as_echo_n "(cached) " >&6
12737 else
12738           if test "$cross_compiling" = yes; then :
12739   lt_cv_dlopen_self_static=cross
12740 else
12741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12742   lt_status=$lt_dlunknown
12743   cat > conftest.$ac_ext <<_LT_EOF
12744 #line $LINENO "configure"
12745 #include "confdefs.h"
12746
12747 #if HAVE_DLFCN_H
12748 #include <dlfcn.h>
12749 #endif
12750
12751 #include <stdio.h>
12752
12753 #ifdef RTLD_GLOBAL
12754 #  define LT_DLGLOBAL           RTLD_GLOBAL
12755 #else
12756 #  ifdef DL_GLOBAL
12757 #    define LT_DLGLOBAL         DL_GLOBAL
12758 #  else
12759 #    define LT_DLGLOBAL         0
12760 #  endif
12761 #endif
12762
12763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12764    find out it does not work in some platform. */
12765 #ifndef LT_DLLAZY_OR_NOW
12766 #  ifdef RTLD_LAZY
12767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12768 #  else
12769 #    ifdef DL_LAZY
12770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12771 #    else
12772 #      ifdef RTLD_NOW
12773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12774 #      else
12775 #        ifdef DL_NOW
12776 #          define LT_DLLAZY_OR_NOW      DL_NOW
12777 #        else
12778 #          define LT_DLLAZY_OR_NOW      0
12779 #        endif
12780 #      endif
12781 #    endif
12782 #  endif
12783 #endif
12784
12785 /* When -fvisbility=hidden is used, assume the code has been annotated
12786    correspondingly for the symbols needed.  */
12787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12788 int fnord () __attribute__((visibility("default")));
12789 #endif
12790
12791 int fnord () { return 42; }
12792 int main ()
12793 {
12794   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12795   int status = $lt_dlunknown;
12796
12797   if (self)
12798     {
12799       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12800       else
12801         {
12802           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12803           else puts (dlerror ());
12804         }
12805       /* dlclose (self); */
12806     }
12807   else
12808     puts (dlerror ());
12809
12810   return status;
12811 }
12812 _LT_EOF
12813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12814   (eval $ac_link) 2>&5
12815   ac_status=$?
12816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12818     (./conftest; exit; ) >&5 2>/dev/null
12819     lt_status=$?
12820     case x$lt_status in
12821       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12822       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12823       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12824     esac
12825   else :
12826     # compilation failed
12827     lt_cv_dlopen_self_static=no
12828   fi
12829 fi
12830 rm -fr conftest*
12831
12832
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12836     fi
12837
12838     CPPFLAGS="$save_CPPFLAGS"
12839     LDFLAGS="$save_LDFLAGS"
12840     LIBS="$save_LIBS"
12841     ;;
12842   esac
12843
12844   case $lt_cv_dlopen_self in
12845   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12846   *) enable_dlopen_self=unknown ;;
12847   esac
12848
12849   case $lt_cv_dlopen_self_static in
12850   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12851   *) enable_dlopen_self_static=unknown ;;
12852   esac
12853 fi
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871 striplib=
12872 old_striplib=
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12874 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12875 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12876   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12877   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879 $as_echo "yes" >&6; }
12880 else
12881 # FIXME - insert some real tests, host_os isn't really good enough
12882   case $host_os in
12883   darwin*)
12884     if test -n "$STRIP" ; then
12885       striplib="$STRIP -x"
12886       old_striplib="$STRIP -S"
12887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12888 $as_echo "yes" >&6; }
12889     else
12890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12892     fi
12893     ;;
12894   *)
12895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12897     ;;
12898   esac
12899 fi
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912   # Report which library types will actually be built
12913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12914 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12916 $as_echo "$can_build_shared" >&6; }
12917
12918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12919 $as_echo_n "checking whether to build shared libraries... " >&6; }
12920   test "$can_build_shared" = "no" && enable_shared=no
12921
12922   # On AIX, shared libraries and static libraries use the same namespace, and
12923   # are all built from PIC.
12924   case $host_os in
12925   aix3*)
12926     test "$enable_shared" = yes && enable_static=no
12927     if test -n "$RANLIB"; then
12928       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12929       postinstall_cmds='$RANLIB $lib'
12930     fi
12931     ;;
12932
12933   aix[4-9]*)
12934     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12935       test "$enable_shared" = yes && enable_static=no
12936     fi
12937     ;;
12938   esac
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12940 $as_echo "$enable_shared" >&6; }
12941
12942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12943 $as_echo_n "checking whether to build static libraries... " >&6; }
12944   # Make sure either enable_shared or enable_static is yes.
12945   test "$enable_shared" = yes || enable_static=yes
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12947 $as_echo "$enable_static" >&6; }
12948
12949
12950
12951
12952 fi
12953 ac_ext=c
12954 ac_cpp='$CPP $CPPFLAGS'
12955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959 CC="$lt_save_CC"
12960
12961       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12962     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12963     (test "X$CXX" != "Xg++"))) ; then
12964   ac_ext=cpp
12965 ac_cpp='$CXXCPP $CPPFLAGS'
12966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12970 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12971 if test -z "$CXXCPP"; then
12972   if ${ac_cv_prog_CXXCPP+:} false; then :
12973   $as_echo_n "(cached) " >&6
12974 else
12975       # Double quotes because CXXCPP needs to be expanded
12976     for CXXCPP in "$CXX -E" "/lib/cpp"
12977     do
12978       ac_preproc_ok=false
12979 for ac_cxx_preproc_warn_flag in '' yes
12980 do
12981   # Use a header file that comes with gcc, so configuring glibc
12982   # with a fresh cross-compiler works.
12983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12984   # <limits.h> exists even on freestanding compilers.
12985   # On the NeXT, cc -E runs the code through the compiler's parser,
12986   # not just through cpp. "Syntax error" is here to catch this case.
12987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h.  */
12989 #ifdef __STDC__
12990 # include <limits.h>
12991 #else
12992 # include <assert.h>
12993 #endif
12994                      Syntax error
12995 _ACEOF
12996 if ac_fn_cxx_try_cpp "$LINENO"; then :
12997
12998 else
12999   # Broken: fails on valid input.
13000 continue
13001 fi
13002 rm -f conftest.err conftest.i conftest.$ac_ext
13003
13004   # OK, works on sane cases.  Now check whether nonexistent headers
13005   # can be detected and how.
13006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h.  */
13008 #include <ac_nonexistent.h>
13009 _ACEOF
13010 if ac_fn_cxx_try_cpp "$LINENO"; then :
13011   # Broken: success on invalid input.
13012 continue
13013 else
13014   # Passes both tests.
13015 ac_preproc_ok=:
13016 break
13017 fi
13018 rm -f conftest.err conftest.i conftest.$ac_ext
13019
13020 done
13021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13022 rm -f conftest.i conftest.err conftest.$ac_ext
13023 if $ac_preproc_ok; then :
13024   break
13025 fi
13026
13027     done
13028     ac_cv_prog_CXXCPP=$CXXCPP
13029
13030 fi
13031   CXXCPP=$ac_cv_prog_CXXCPP
13032 else
13033   ac_cv_prog_CXXCPP=$CXXCPP
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13036 $as_echo "$CXXCPP" >&6; }
13037 ac_preproc_ok=false
13038 for ac_cxx_preproc_warn_flag in '' yes
13039 do
13040   # Use a header file that comes with gcc, so configuring glibc
13041   # with a fresh cross-compiler works.
13042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13043   # <limits.h> exists even on freestanding compilers.
13044   # On the NeXT, cc -E runs the code through the compiler's parser,
13045   # not just through cpp. "Syntax error" is here to catch this case.
13046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h.  */
13048 #ifdef __STDC__
13049 # include <limits.h>
13050 #else
13051 # include <assert.h>
13052 #endif
13053                      Syntax error
13054 _ACEOF
13055 if ac_fn_cxx_try_cpp "$LINENO"; then :
13056
13057 else
13058   # Broken: fails on valid input.
13059 continue
13060 fi
13061 rm -f conftest.err conftest.i conftest.$ac_ext
13062
13063   # OK, works on sane cases.  Now check whether nonexistent headers
13064   # can be detected and how.
13065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h.  */
13067 #include <ac_nonexistent.h>
13068 _ACEOF
13069 if ac_fn_cxx_try_cpp "$LINENO"; then :
13070   # Broken: success on invalid input.
13071 continue
13072 else
13073   # Passes both tests.
13074 ac_preproc_ok=:
13075 break
13076 fi
13077 rm -f conftest.err conftest.i conftest.$ac_ext
13078
13079 done
13080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13081 rm -f conftest.i conftest.err conftest.$ac_ext
13082 if $ac_preproc_ok; then :
13083
13084 else
13085   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13087 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13088 See \`config.log' for more details" "$LINENO" 5; }
13089 fi
13090
13091 ac_ext=c
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
13097 else
13098   _lt_caught_CXX_error=yes
13099 fi
13100
13101 ac_ext=cpp
13102 ac_cpp='$CXXCPP $CPPFLAGS'
13103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13106
13107 archive_cmds_need_lc_CXX=no
13108 allow_undefined_flag_CXX=
13109 always_export_symbols_CXX=no
13110 archive_expsym_cmds_CXX=
13111 compiler_needs_object_CXX=no
13112 export_dynamic_flag_spec_CXX=
13113 hardcode_direct_CXX=no
13114 hardcode_direct_absolute_CXX=no
13115 hardcode_libdir_flag_spec_CXX=
13116 hardcode_libdir_separator_CXX=
13117 hardcode_minus_L_CXX=no
13118 hardcode_shlibpath_var_CXX=unsupported
13119 hardcode_automatic_CXX=no
13120 inherit_rpath_CXX=no
13121 module_cmds_CXX=
13122 module_expsym_cmds_CXX=
13123 link_all_deplibs_CXX=unknown
13124 old_archive_cmds_CXX=$old_archive_cmds
13125 reload_flag_CXX=$reload_flag
13126 reload_cmds_CXX=$reload_cmds
13127 no_undefined_flag_CXX=
13128 whole_archive_flag_spec_CXX=
13129 enable_shared_with_static_runtimes_CXX=no
13130
13131 # Source file extension for C++ test sources.
13132 ac_ext=cpp
13133
13134 # Object file extension for compiled C++ test sources.
13135 objext=o
13136 objext_CXX=$objext
13137
13138 # No sense in running all these tests if we already determined that
13139 # the CXX compiler isn't working.  Some variables (like enable_shared)
13140 # are currently assumed to apply to all compilers on this platform,
13141 # and will be corrupted by setting them based on a non-working compiler.
13142 if test "$_lt_caught_CXX_error" != yes; then
13143   # Code to be used in simple compile tests
13144   lt_simple_compile_test_code="int some_variable = 0;"
13145
13146   # Code to be used in simple link tests
13147   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13148
13149   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13150
13151
13152
13153
13154
13155
13156 # If no C compiler was specified, use CC.
13157 LTCC=${LTCC-"$CC"}
13158
13159 # If no C compiler flags were specified, use CFLAGS.
13160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13161
13162 # Allow CC to be a program name with arguments.
13163 compiler=$CC
13164
13165
13166   # save warnings/boilerplate of simple test code
13167   ac_outfile=conftest.$ac_objext
13168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13170 _lt_compiler_boilerplate=`cat conftest.err`
13171 $RM conftest*
13172
13173   ac_outfile=conftest.$ac_objext
13174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13176 _lt_linker_boilerplate=`cat conftest.err`
13177 $RM -r conftest*
13178
13179
13180   # Allow CC to be a program name with arguments.
13181   lt_save_CC=$CC
13182   lt_save_CFLAGS=$CFLAGS
13183   lt_save_LD=$LD
13184   lt_save_GCC=$GCC
13185   GCC=$GXX
13186   lt_save_with_gnu_ld=$with_gnu_ld
13187   lt_save_path_LD=$lt_cv_path_LD
13188   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13189     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13190   else
13191     $as_unset lt_cv_prog_gnu_ld
13192   fi
13193   if test -n "${lt_cv_path_LDCXX+set}"; then
13194     lt_cv_path_LD=$lt_cv_path_LDCXX
13195   else
13196     $as_unset lt_cv_path_LD
13197   fi
13198   test -z "${LDCXX+set}" || LD=$LDCXX
13199   CC=${CXX-"c++"}
13200   CFLAGS=$CXXFLAGS
13201   compiler=$CC
13202   compiler_CXX=$CC
13203   for cc_temp in $compiler""; do
13204   case $cc_temp in
13205     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13206     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13207     \-*) ;;
13208     *) break;;
13209   esac
13210 done
13211 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13212
13213
13214   if test -n "$compiler"; then
13215     # We don't want -fno-exception when compiling C++ code, so set the
13216     # no_builtin_flag separately
13217     if test "$GXX" = yes; then
13218       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13219     else
13220       lt_prog_compiler_no_builtin_flag_CXX=
13221     fi
13222
13223     if test "$GXX" = yes; then
13224       # Set up default GNU C++ configuration
13225
13226
13227
13228 # Check whether --with-gnu-ld was given.
13229 if test "${with_gnu_ld+set}" = set; then :
13230   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13231 else
13232   with_gnu_ld=no
13233 fi
13234
13235 ac_prog=ld
13236 if test "$GCC" = yes; then
13237   # Check if gcc -print-prog-name=ld gives a path.
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13239 $as_echo_n "checking for ld used by $CC... " >&6; }
13240   case $host in
13241   *-*-mingw*)
13242     # gcc leaves a trailing carriage return which upsets mingw
13243     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13244   *)
13245     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13246   esac
13247   case $ac_prog in
13248     # Accept absolute paths.
13249     [\\/]* | ?:[\\/]*)
13250       re_direlt='/[^/][^/]*/\.\./'
13251       # Canonicalize the pathname of ld
13252       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13253       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13254         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13255       done
13256       test -z "$LD" && LD="$ac_prog"
13257       ;;
13258   "")
13259     # If it fails, then pretend we aren't using GCC.
13260     ac_prog=ld
13261     ;;
13262   *)
13263     # If it is relative, then search for the first ld in PATH.
13264     with_gnu_ld=unknown
13265     ;;
13266   esac
13267 elif test "$with_gnu_ld" = yes; then
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13269 $as_echo_n "checking for GNU ld... " >&6; }
13270 else
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13272 $as_echo_n "checking for non-GNU ld... " >&6; }
13273 fi
13274 if ${lt_cv_path_LD+:} false; then :
13275   $as_echo_n "(cached) " >&6
13276 else
13277   if test -z "$LD"; then
13278   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13279   for ac_dir in $PATH; do
13280     IFS="$lt_save_ifs"
13281     test -z "$ac_dir" && ac_dir=.
13282     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13283       lt_cv_path_LD="$ac_dir/$ac_prog"
13284       # Check to see if the program is GNU ld.  I'd rather use --version,
13285       # but apparently some variants of GNU ld only accept -v.
13286       # Break only if it was the GNU/non-GNU ld that we prefer.
13287       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13288       *GNU* | *'with BFD'*)
13289         test "$with_gnu_ld" != no && break
13290         ;;
13291       *)
13292         test "$with_gnu_ld" != yes && break
13293         ;;
13294       esac
13295     fi
13296   done
13297   IFS="$lt_save_ifs"
13298 else
13299   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13300 fi
13301 fi
13302
13303 LD="$lt_cv_path_LD"
13304 if test -n "$LD"; then
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13306 $as_echo "$LD" >&6; }
13307 else
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 fi
13311 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13314 if ${lt_cv_prog_gnu_ld+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13318 case `$LD -v 2>&1 </dev/null` in
13319 *GNU* | *'with BFD'*)
13320   lt_cv_prog_gnu_ld=yes
13321   ;;
13322 *)
13323   lt_cv_prog_gnu_ld=no
13324   ;;
13325 esac
13326 fi
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13328 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13329 with_gnu_ld=$lt_cv_prog_gnu_ld
13330
13331
13332
13333
13334
13335
13336
13337       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13338       # archiving commands below assume that GNU ld is being used.
13339       if test "$with_gnu_ld" = yes; then
13340         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13342
13343         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13345
13346         # If archive_cmds runs LD, not CC, wlarc should be empty
13347         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13348         #     investigate it a little bit more. (MM)
13349         wlarc='${wl}'
13350
13351         # ancient GNU ld didn't support --whole-archive et. al.
13352         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13353           $GREP 'no-whole-archive' > /dev/null; then
13354           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13355         else
13356           whole_archive_flag_spec_CXX=
13357         fi
13358       else
13359         with_gnu_ld=no
13360         wlarc=
13361
13362         # A generic and very simple default shared library creation
13363         # command for GNU C++ for the case where it uses the native
13364         # linker, instead of GNU ld.  If possible, this setting should
13365         # overridden to take advantage of the native linker features on
13366         # the platform it is being used on.
13367         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13368       fi
13369
13370       # Commands to make compiler produce verbose output that lists
13371       # what "hidden" libraries, object files and flags are used when
13372       # linking a shared library.
13373       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13374
13375     else
13376       GXX=no
13377       with_gnu_ld=no
13378       wlarc=
13379     fi
13380
13381     # PORTME: fill in a description of your system's C++ link characteristics
13382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13384     ld_shlibs_CXX=yes
13385     case $host_os in
13386       aix3*)
13387         # FIXME: insert proper C++ library support
13388         ld_shlibs_CXX=no
13389         ;;
13390       aix[4-9]*)
13391         if test "$host_cpu" = ia64; then
13392           # On IA64, the linker does run time linking by default, so we don't
13393           # have to do anything special.
13394           aix_use_runtimelinking=no
13395           exp_sym_flag='-Bexport'
13396           no_entry_flag=""
13397         else
13398           aix_use_runtimelinking=no
13399
13400           # Test if we are trying to use run time linking or normal
13401           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13402           # need to do runtime linking.
13403           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13404             for ld_flag in $LDFLAGS; do
13405               case $ld_flag in
13406               *-brtl*)
13407                 aix_use_runtimelinking=yes
13408                 break
13409                 ;;
13410               esac
13411             done
13412             ;;
13413           esac
13414
13415           exp_sym_flag='-bexport'
13416           no_entry_flag='-bnoentry'
13417         fi
13418
13419         # When large executables or shared objects are built, AIX ld can
13420         # have problems creating the table of contents.  If linking a library
13421         # or program results in "error TOC overflow" add -mminimal-toc to
13422         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13423         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13424
13425         archive_cmds_CXX=''
13426         hardcode_direct_CXX=yes
13427         hardcode_direct_absolute_CXX=yes
13428         hardcode_libdir_separator_CXX=':'
13429         link_all_deplibs_CXX=yes
13430         file_list_spec_CXX='${wl}-f,'
13431
13432         if test "$GXX" = yes; then
13433           case $host_os in aix4.[012]|aix4.[012].*)
13434           # We only want to do this on AIX 4.2 and lower, the check
13435           # below for broken collect2 doesn't work under 4.3+
13436           collect2name=`${CC} -print-prog-name=collect2`
13437           if test -f "$collect2name" &&
13438              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13439           then
13440             # We have reworked collect2
13441             :
13442           else
13443             # We have old collect2
13444             hardcode_direct_CXX=unsupported
13445             # It fails to find uninstalled libraries when the uninstalled
13446             # path is not listed in the libpath.  Setting hardcode_minus_L
13447             # to unsupported forces relinking
13448             hardcode_minus_L_CXX=yes
13449             hardcode_libdir_flag_spec_CXX='-L$libdir'
13450             hardcode_libdir_separator_CXX=
13451           fi
13452           esac
13453           shared_flag='-shared'
13454           if test "$aix_use_runtimelinking" = yes; then
13455             shared_flag="$shared_flag "'${wl}-G'
13456           fi
13457         else
13458           # not using gcc
13459           if test "$host_cpu" = ia64; then
13460           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13461           # chokes on -Wl,-G. The following line is correct:
13462           shared_flag='-G'
13463           else
13464             if test "$aix_use_runtimelinking" = yes; then
13465               shared_flag='${wl}-G'
13466             else
13467               shared_flag='${wl}-bM:SRE'
13468             fi
13469           fi
13470         fi
13471
13472         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13473         # It seems that -bexpall does not export symbols beginning with
13474         # underscore (_), so it is better to generate a list of symbols to
13475         # export.
13476         always_export_symbols_CXX=yes
13477         if test "$aix_use_runtimelinking" = yes; then
13478           # Warning - without using the other runtime loading flags (-brtl),
13479           # -berok will link without error, but may produce a broken library.
13480           allow_undefined_flag_CXX='-berok'
13481           # Determine the default libpath from the value encoded in an empty
13482           # executable.
13483           if test "${lt_cv_aix_libpath+set}" = set; then
13484   aix_libpath=$lt_cv_aix_libpath
13485 else
13486   if ${lt_cv_aix_libpath__CXX+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491
13492 int
13493 main ()
13494 {
13495
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_cxx_try_link "$LINENO"; then :
13501
13502   lt_aix_libpath_sed='
13503       /Import File Strings/,/^$/ {
13504           /^0/ {
13505               s/^0  *\([^ ]*\) *$/\1/
13506               p
13507           }
13508       }'
13509   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13510   # Check for a 64-bit object if we didn't find anything.
13511   if test -z "$lt_cv_aix_libpath__CXX"; then
13512     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13513   fi
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext \
13516     conftest$ac_exeext conftest.$ac_ext
13517   if test -z "$lt_cv_aix_libpath__CXX"; then
13518     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13519   fi
13520
13521 fi
13522
13523   aix_libpath=$lt_cv_aix_libpath__CXX
13524 fi
13525
13526           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13527
13528           archive_expsym_cmds_CXX='$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"
13529         else
13530           if test "$host_cpu" = ia64; then
13531             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13532             allow_undefined_flag_CXX="-z nodefs"
13533             archive_expsym_cmds_CXX="\$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"
13534           else
13535             # Determine the default libpath from the value encoded in an
13536             # empty executable.
13537             if test "${lt_cv_aix_libpath+set}" = set; then
13538   aix_libpath=$lt_cv_aix_libpath
13539 else
13540   if ${lt_cv_aix_libpath__CXX+:} false; then :
13541   $as_echo_n "(cached) " >&6
13542 else
13543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h.  */
13545
13546 int
13547 main ()
13548 {
13549
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_cxx_try_link "$LINENO"; then :
13555
13556   lt_aix_libpath_sed='
13557       /Import File Strings/,/^$/ {
13558           /^0/ {
13559               s/^0  *\([^ ]*\) *$/\1/
13560               p
13561           }
13562       }'
13563   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13564   # Check for a 64-bit object if we didn't find anything.
13565   if test -z "$lt_cv_aix_libpath__CXX"; then
13566     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13567   fi
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext \
13570     conftest$ac_exeext conftest.$ac_ext
13571   if test -z "$lt_cv_aix_libpath__CXX"; then
13572     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13573   fi
13574
13575 fi
13576
13577   aix_libpath=$lt_cv_aix_libpath__CXX
13578 fi
13579
13580             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13581             # Warning - without using the other run time loading flags,
13582             # -berok will link without error, but may produce a broken library.
13583             no_undefined_flag_CXX=' ${wl}-bernotok'
13584             allow_undefined_flag_CXX=' ${wl}-berok'
13585             if test "$with_gnu_ld" = yes; then
13586               # We only use this code for GNU lds that support --whole-archive.
13587               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13588             else
13589               # Exported symbols can be pulled into shared objects from archives
13590               whole_archive_flag_spec_CXX='$convenience'
13591             fi
13592             archive_cmds_need_lc_CXX=yes
13593             # This is similar to how AIX traditionally builds its shared
13594             # libraries.
13595             archive_expsym_cmds_CXX="\$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'
13596           fi
13597         fi
13598         ;;
13599
13600       beos*)
13601         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13602           allow_undefined_flag_CXX=unsupported
13603           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13604           # support --undefined.  This deserves some investigation.  FIXME
13605           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13606         else
13607           ld_shlibs_CXX=no
13608         fi
13609         ;;
13610
13611       chorus*)
13612         case $cc_basename in
13613           *)
13614           # FIXME: insert proper C++ library support
13615           ld_shlibs_CXX=no
13616           ;;
13617         esac
13618         ;;
13619
13620       cygwin* | mingw* | pw32* | cegcc*)
13621         case $GXX,$cc_basename in
13622         ,cl* | no,cl*)
13623           # Native MSVC
13624           # hardcode_libdir_flag_spec is actually meaningless, as there is
13625           # no search path for DLLs.
13626           hardcode_libdir_flag_spec_CXX=' '
13627           allow_undefined_flag_CXX=unsupported
13628           always_export_symbols_CXX=yes
13629           file_list_spec_CXX='@'
13630           # Tell ltmain to make .lib files, not .a files.
13631           libext=lib
13632           # Tell ltmain to make .dll files, not .so files.
13633           shrext_cmds=".dll"
13634           # FIXME: Setting linknames here is a bad hack.
13635           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13636           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13637               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13638             else
13639               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13640             fi~
13641             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13642             linknames='
13643           # The linker will not automatically build a static lib if we build a DLL.
13644           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13645           enable_shared_with_static_runtimes_CXX=yes
13646           # Don't use ranlib
13647           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13648           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13649             lt_tool_outputfile="@TOOL_OUTPUT@"~
13650             case $lt_outputfile in
13651               *.exe|*.EXE) ;;
13652               *)
13653                 lt_outputfile="$lt_outputfile.exe"
13654                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13655                 ;;
13656             esac~
13657             func_to_tool_file "$lt_outputfile"~
13658             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13659               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13660               $RM "$lt_outputfile.manifest";
13661             fi'
13662           ;;
13663         *)
13664           # g++
13665           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13666           # as there is no search path for DLLs.
13667           hardcode_libdir_flag_spec_CXX='-L$libdir'
13668           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13669           allow_undefined_flag_CXX=unsupported
13670           always_export_symbols_CXX=no
13671           enable_shared_with_static_runtimes_CXX=yes
13672
13673           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13674             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13675             # If the export-symbols file already is a .def file (1st line
13676             # is EXPORTS), use it as is; otherwise, prepend...
13677             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13678               cp $export_symbols $output_objdir/$soname.def;
13679             else
13680               echo EXPORTS > $output_objdir/$soname.def;
13681               cat $export_symbols >> $output_objdir/$soname.def;
13682             fi~
13683             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13684           else
13685             ld_shlibs_CXX=no
13686           fi
13687           ;;
13688         esac
13689         ;;
13690       darwin* | rhapsody*)
13691
13692
13693   archive_cmds_need_lc_CXX=no
13694   hardcode_direct_CXX=no
13695   hardcode_automatic_CXX=yes
13696   hardcode_shlibpath_var_CXX=unsupported
13697   if test "$lt_cv_ld_force_load" = "yes"; then
13698     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13699
13700   else
13701     whole_archive_flag_spec_CXX=''
13702   fi
13703   link_all_deplibs_CXX=yes
13704   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13705   case $cc_basename in
13706      ifort*) _lt_dar_can_shared=yes ;;
13707      *) _lt_dar_can_shared=$GCC ;;
13708   esac
13709   if test "$_lt_dar_can_shared" = "yes"; then
13710     output_verbose_link_cmd=func_echo_all
13711     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13712     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13713     archive_expsym_cmds_CXX="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}"
13714     module_expsym_cmds_CXX="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}"
13715        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13716       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13717       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13718     fi
13719
13720   else
13721   ld_shlibs_CXX=no
13722   fi
13723
13724         ;;
13725
13726       dgux*)
13727         case $cc_basename in
13728           ec++*)
13729             # FIXME: insert proper C++ library support
13730             ld_shlibs_CXX=no
13731             ;;
13732           ghcx*)
13733             # Green Hills C++ Compiler
13734             # FIXME: insert proper C++ library support
13735             ld_shlibs_CXX=no
13736             ;;
13737           *)
13738             # FIXME: insert proper C++ library support
13739             ld_shlibs_CXX=no
13740             ;;
13741         esac
13742         ;;
13743
13744       freebsd2.*)
13745         # C++ shared libraries reported to be fairly broken before
13746         # switch to ELF
13747         ld_shlibs_CXX=no
13748         ;;
13749
13750       freebsd-elf*)
13751         archive_cmds_need_lc_CXX=no
13752         ;;
13753
13754       freebsd* | dragonfly*)
13755         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13756         # conventions
13757         ld_shlibs_CXX=yes
13758         ;;
13759
13760       gnu*)
13761         ;;
13762
13763       haiku*)
13764         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765         link_all_deplibs_CXX=yes
13766         ;;
13767
13768       hpux9*)
13769         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13770         hardcode_libdir_separator_CXX=:
13771         export_dynamic_flag_spec_CXX='${wl}-E'
13772         hardcode_direct_CXX=yes
13773         hardcode_minus_L_CXX=yes # Not in the search PATH,
13774                                              # but as the default
13775                                              # location of the library.
13776
13777         case $cc_basename in
13778           CC*)
13779             # FIXME: insert proper C++ library support
13780             ld_shlibs_CXX=no
13781             ;;
13782           aCC*)
13783             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13784             # Commands to make compiler produce verbose output that lists
13785             # what "hidden" libraries, object files and flags are used when
13786             # linking a shared library.
13787             #
13788             # There doesn't appear to be a way to prevent this compiler from
13789             # explicitly linking system object files so we need to strip them
13790             # from the output so that they don't get included in the library
13791             # dependencies.
13792             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13793             ;;
13794           *)
13795             if test "$GXX" = yes; then
13796               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13797             else
13798               # FIXME: insert proper C++ library support
13799               ld_shlibs_CXX=no
13800             fi
13801             ;;
13802         esac
13803         ;;
13804
13805       hpux10*|hpux11*)
13806         if test $with_gnu_ld = no; then
13807           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13808           hardcode_libdir_separator_CXX=:
13809
13810           case $host_cpu in
13811             hppa*64*|ia64*)
13812               ;;
13813             *)
13814               export_dynamic_flag_spec_CXX='${wl}-E'
13815               ;;
13816           esac
13817         fi
13818         case $host_cpu in
13819           hppa*64*|ia64*)
13820             hardcode_direct_CXX=no
13821             hardcode_shlibpath_var_CXX=no
13822             ;;
13823           *)
13824             hardcode_direct_CXX=yes
13825             hardcode_direct_absolute_CXX=yes
13826             hardcode_minus_L_CXX=yes # Not in the search PATH,
13827                                                  # but as the default
13828                                                  # location of the library.
13829             ;;
13830         esac
13831
13832         case $cc_basename in
13833           CC*)
13834             # FIXME: insert proper C++ library support
13835             ld_shlibs_CXX=no
13836             ;;
13837           aCC*)
13838             case $host_cpu in
13839               hppa*64*)
13840                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13841                 ;;
13842               ia64*)
13843                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844                 ;;
13845               *)
13846                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13847                 ;;
13848             esac
13849             # Commands to make compiler produce verbose output that lists
13850             # what "hidden" libraries, object files and flags are used when
13851             # linking a shared library.
13852             #
13853             # There doesn't appear to be a way to prevent this compiler from
13854             # explicitly linking system object files so we need to strip them
13855             # from the output so that they don't get included in the library
13856             # dependencies.
13857             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13858             ;;
13859           *)
13860             if test "$GXX" = yes; then
13861               if test $with_gnu_ld = no; then
13862                 case $host_cpu in
13863                   hppa*64*)
13864                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13865                     ;;
13866                   ia64*)
13867                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13868                     ;;
13869                   *)
13870                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13871                     ;;
13872                 esac
13873               fi
13874             else
13875               # FIXME: insert proper C++ library support
13876               ld_shlibs_CXX=no
13877             fi
13878             ;;
13879         esac
13880         ;;
13881
13882       interix[3-9]*)
13883         hardcode_direct_CXX=no
13884         hardcode_shlibpath_var_CXX=no
13885         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13886         export_dynamic_flag_spec_CXX='${wl}-E'
13887         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13888         # Instead, shared libraries are loaded at an image base (0x10000000 by
13889         # default) and relocated if they conflict, which is a slow very memory
13890         # consuming and fragmenting process.  To avoid this, we pick a random,
13891         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13892         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13893         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13894         archive_expsym_cmds_CXX='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'
13895         ;;
13896       irix5* | irix6*)
13897         case $cc_basename in
13898           CC*)
13899             # SGI C++
13900             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13901
13902             # Archives containing C++ object files must be created using
13903             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13904             # necessary to make sure instantiated templates are included
13905             # in the archive.
13906             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13907             ;;
13908           *)
13909             if test "$GXX" = yes; then
13910               if test "$with_gnu_ld" = no; then
13911                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13912               else
13913                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13914               fi
13915             fi
13916             link_all_deplibs_CXX=yes
13917             ;;
13918         esac
13919         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13920         hardcode_libdir_separator_CXX=:
13921         inherit_rpath_CXX=yes
13922         ;;
13923
13924       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13925         case $cc_basename in
13926           KCC*)
13927             # Kuck and Associates, Inc. (KAI) C++ Compiler
13928
13929             # KCC will only create a shared library if the output file
13930             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13931             # to its proper name (with version) after linking.
13932             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13933             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13934             # Commands to make compiler produce verbose output that lists
13935             # what "hidden" libraries, object files and flags are used when
13936             # linking a shared library.
13937             #
13938             # There doesn't appear to be a way to prevent this compiler from
13939             # explicitly linking system object files so we need to strip them
13940             # from the output so that they don't get included in the library
13941             # dependencies.
13942             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13943
13944             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13945             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13946
13947             # Archives containing C++ object files must be created using
13948             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13949             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13950             ;;
13951           icpc* | ecpc* )
13952             # Intel C++
13953             with_gnu_ld=yes
13954             # version 8.0 and above of icpc choke on multiply defined symbols
13955             # if we add $predep_objects and $postdep_objects, however 7.1 and
13956             # earlier do not add the objects themselves.
13957             case `$CC -V 2>&1` in
13958               *"Version 7."*)
13959                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13961                 ;;
13962               *)  # Version 8.0 or newer
13963                 tmp_idyn=
13964                 case $host_cpu in
13965                   ia64*) tmp_idyn=' -i_dynamic';;
13966                 esac
13967                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13969                 ;;
13970             esac
13971             archive_cmds_need_lc_CXX=no
13972             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13974             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13975             ;;
13976           pgCC* | pgcpp*)
13977             # Portland Group C++ compiler
13978             case `$CC -V` in
13979             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13980               prelink_cmds_CXX='tpldir=Template.dir~
13981                 rm -rf $tpldir~
13982                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13983                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13984               old_archive_cmds_CXX='tpldir=Template.dir~
13985                 rm -rf $tpldir~
13986                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13987                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13988                 $RANLIB $oldlib'
13989               archive_cmds_CXX='tpldir=Template.dir~
13990                 rm -rf $tpldir~
13991                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13992                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13993               archive_expsym_cmds_CXX='tpldir=Template.dir~
13994                 rm -rf $tpldir~
13995                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13996                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13997               ;;
13998             *) # Version 6 and above use weak symbols
13999               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14000               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14001               ;;
14002             esac
14003
14004             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14005             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14006             whole_archive_flag_spec_CXX='${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'
14007             ;;
14008           cxx*)
14009             # Compaq C++
14010             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14012
14013             runpath_var=LD_RUN_PATH
14014             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14015             hardcode_libdir_separator_CXX=:
14016
14017             # Commands to make compiler produce verbose output that lists
14018             # what "hidden" libraries, object files and flags are used when
14019             # linking a shared library.
14020             #
14021             # There doesn't appear to be a way to prevent this compiler from
14022             # explicitly linking system object files so we need to strip them
14023             # from the output so that they don't get included in the library
14024             # dependencies.
14025             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14026             ;;
14027           xl* | mpixl* | bgxl*)
14028             # IBM XL 8.0 on PPC, with GNU ld
14029             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14030             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14031             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14032             if test "x$supports_anon_versioning" = xyes; then
14033               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14034                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14035                 echo "local: *; };" >> $output_objdir/$libname.ver~
14036                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14037             fi
14038             ;;
14039           *)
14040             case `$CC -V 2>&1 | sed 5q` in
14041             *Sun\ C*)
14042               # Sun C++ 5.9
14043               no_undefined_flag_CXX=' -zdefs'
14044               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14046               hardcode_libdir_flag_spec_CXX='-R$libdir'
14047               whole_archive_flag_spec_CXX='${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'
14048               compiler_needs_object_CXX=yes
14049
14050               # Not sure whether something based on
14051               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14052               # would be better.
14053               output_verbose_link_cmd='func_echo_all'
14054
14055               # Archives containing C++ object files must be created using
14056               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14057               # necessary to make sure instantiated templates are included
14058               # in the archive.
14059               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14060               ;;
14061             esac
14062             ;;
14063         esac
14064         ;;
14065
14066       lynxos*)
14067         # FIXME: insert proper C++ library support
14068         ld_shlibs_CXX=no
14069         ;;
14070
14071       m88k*)
14072         # FIXME: insert proper C++ library support
14073         ld_shlibs_CXX=no
14074         ;;
14075
14076       mvs*)
14077         case $cc_basename in
14078           cxx*)
14079             # FIXME: insert proper C++ library support
14080             ld_shlibs_CXX=no
14081             ;;
14082           *)
14083             # FIXME: insert proper C++ library support
14084             ld_shlibs_CXX=no
14085             ;;
14086         esac
14087         ;;
14088
14089       netbsd*)
14090         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14091           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14092           wlarc=
14093           hardcode_libdir_flag_spec_CXX='-R$libdir'
14094           hardcode_direct_CXX=yes
14095           hardcode_shlibpath_var_CXX=no
14096         fi
14097         # Workaround some broken pre-1.5 toolchains
14098         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14099         ;;
14100
14101       *nto* | *qnx*)
14102         ld_shlibs_CXX=yes
14103         ;;
14104
14105       openbsd2*)
14106         # C++ shared libraries are fairly broken
14107         ld_shlibs_CXX=no
14108         ;;
14109
14110       openbsd*)
14111         if test -f /usr/libexec/ld.so; then
14112           hardcode_direct_CXX=yes
14113           hardcode_shlibpath_var_CXX=no
14114           hardcode_direct_absolute_CXX=yes
14115           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14116           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14117           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14118             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14119             export_dynamic_flag_spec_CXX='${wl}-E'
14120             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14121           fi
14122           output_verbose_link_cmd=func_echo_all
14123         else
14124           ld_shlibs_CXX=no
14125         fi
14126         ;;
14127
14128       osf3* | osf4* | osf5*)
14129         case $cc_basename in
14130           KCC*)
14131             # Kuck and Associates, Inc. (KAI) C++ Compiler
14132
14133             # KCC will only create a shared library if the output file
14134             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14135             # to its proper name (with version) after linking.
14136             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14137
14138             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14139             hardcode_libdir_separator_CXX=:
14140
14141             # Archives containing C++ object files must be created using
14142             # the KAI C++ compiler.
14143             case $host in
14144               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14145               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14146             esac
14147             ;;
14148           RCC*)
14149             # Rational C++ 2.4.1
14150             # FIXME: insert proper C++ library support
14151             ld_shlibs_CXX=no
14152             ;;
14153           cxx*)
14154             case $host in
14155               osf3*)
14156                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14157                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14158                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14159                 ;;
14160               *)
14161                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14162                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14163                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14164                   echo "-hidden">> $lib.exp~
14165                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14166                   $RM $lib.exp'
14167                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14168                 ;;
14169             esac
14170
14171             hardcode_libdir_separator_CXX=:
14172
14173             # Commands to make compiler produce verbose output that lists
14174             # what "hidden" libraries, object files and flags are used when
14175             # linking a shared library.
14176             #
14177             # There doesn't appear to be a way to prevent this compiler from
14178             # explicitly linking system object files so we need to strip them
14179             # from the output so that they don't get included in the library
14180             # dependencies.
14181             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14182             ;;
14183           *)
14184             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14185               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14186               case $host in
14187                 osf3*)
14188                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14189                   ;;
14190                 *)
14191                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14192                   ;;
14193               esac
14194
14195               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14196               hardcode_libdir_separator_CXX=:
14197
14198               # Commands to make compiler produce verbose output that lists
14199               # what "hidden" libraries, object files and flags are used when
14200               # linking a shared library.
14201               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14202
14203             else
14204               # FIXME: insert proper C++ library support
14205               ld_shlibs_CXX=no
14206             fi
14207             ;;
14208         esac
14209         ;;
14210
14211       psos*)
14212         # FIXME: insert proper C++ library support
14213         ld_shlibs_CXX=no
14214         ;;
14215
14216       sunos4*)
14217         case $cc_basename in
14218           CC*)
14219             # Sun C++ 4.x
14220             # FIXME: insert proper C++ library support
14221             ld_shlibs_CXX=no
14222             ;;
14223           lcc*)
14224             # Lucid
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228           *)
14229             # FIXME: insert proper C++ library support
14230             ld_shlibs_CXX=no
14231             ;;
14232         esac
14233         ;;
14234
14235       solaris*)
14236         case $cc_basename in
14237           CC* | sunCC*)
14238             # Sun C++ 4.2, 5.x and Centerline C++
14239             archive_cmds_need_lc_CXX=yes
14240             no_undefined_flag_CXX=' -zdefs'
14241             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14242             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14243               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14244
14245             hardcode_libdir_flag_spec_CXX='-R$libdir'
14246             hardcode_shlibpath_var_CXX=no
14247             case $host_os in
14248               solaris2.[0-5] | solaris2.[0-5].*) ;;
14249               *)
14250                 # The compiler driver will combine and reorder linker options,
14251                 # but understands `-z linker_flag'.
14252                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14253                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14254                 ;;
14255             esac
14256             link_all_deplibs_CXX=yes
14257
14258             output_verbose_link_cmd='func_echo_all'
14259
14260             # Archives containing C++ object files must be created using
14261             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14262             # necessary to make sure instantiated templates are included
14263             # in the archive.
14264             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14265             ;;
14266           gcx*)
14267             # Green Hills C++ Compiler
14268             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14269
14270             # The C++ compiler must be used to create the archive.
14271             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14272             ;;
14273           *)
14274             # GNU C++ compiler with Solaris linker
14275             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14276               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14277               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14278                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14279                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14280                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14281
14282                 # Commands to make compiler produce verbose output that lists
14283                 # what "hidden" libraries, object files and flags are used when
14284                 # linking a shared library.
14285                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14286               else
14287                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14288                 # platform.
14289                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14290                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14291                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14292
14293                 # Commands to make compiler produce verbose output that lists
14294                 # what "hidden" libraries, object files and flags are used when
14295                 # linking a shared library.
14296                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14297               fi
14298
14299               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14300               case $host_os in
14301                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14302                 *)
14303                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14304                   ;;
14305               esac
14306             fi
14307             ;;
14308         esac
14309         ;;
14310
14311     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14312       no_undefined_flag_CXX='${wl}-z,text'
14313       archive_cmds_need_lc_CXX=no
14314       hardcode_shlibpath_var_CXX=no
14315       runpath_var='LD_RUN_PATH'
14316
14317       case $cc_basename in
14318         CC*)
14319           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321           ;;
14322         *)
14323           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14325           ;;
14326       esac
14327       ;;
14328
14329       sysv5* | sco3.2v5* | sco5v6*)
14330         # Note: We can NOT use -z defs as we might desire, because we do not
14331         # link with -lc, and that would cause any symbols used from libc to
14332         # always be unresolved, which means just about no library would
14333         # ever link correctly.  If we're not using GNU ld we use -z text
14334         # though, which does catch some bad symbols but isn't as heavy-handed
14335         # as -z defs.
14336         no_undefined_flag_CXX='${wl}-z,text'
14337         allow_undefined_flag_CXX='${wl}-z,nodefs'
14338         archive_cmds_need_lc_CXX=no
14339         hardcode_shlibpath_var_CXX=no
14340         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14341         hardcode_libdir_separator_CXX=':'
14342         link_all_deplibs_CXX=yes
14343         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14344         runpath_var='LD_RUN_PATH'
14345
14346         case $cc_basename in
14347           CC*)
14348             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14349             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14350             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14351               '"$old_archive_cmds_CXX"
14352             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14353               '"$reload_cmds_CXX"
14354             ;;
14355           *)
14356             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14357             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358             ;;
14359         esac
14360       ;;
14361
14362       tandem*)
14363         case $cc_basename in
14364           NCC*)
14365             # NonStop-UX NCC 3.20
14366             # FIXME: insert proper C++ library support
14367             ld_shlibs_CXX=no
14368             ;;
14369           *)
14370             # FIXME: insert proper C++ library support
14371             ld_shlibs_CXX=no
14372             ;;
14373         esac
14374         ;;
14375
14376       vxworks*)
14377         # FIXME: insert proper C++ library support
14378         ld_shlibs_CXX=no
14379         ;;
14380
14381       *)
14382         # FIXME: insert proper C++ library support
14383         ld_shlibs_CXX=no
14384         ;;
14385     esac
14386
14387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14388 $as_echo "$ld_shlibs_CXX" >&6; }
14389     test "$ld_shlibs_CXX" = no && can_build_shared=no
14390
14391     GCC_CXX="$GXX"
14392     LD_CXX="$LD"
14393
14394     ## CAVEAT EMPTOR:
14395     ## There is no encapsulation within the following macros, do not change
14396     ## the running order or otherwise move them around unless you know exactly
14397     ## what you are doing...
14398     # Dependencies to place before and after the object being linked:
14399 predep_objects_CXX=
14400 postdep_objects_CXX=
14401 predeps_CXX=
14402 postdeps_CXX=
14403 compiler_lib_search_path_CXX=
14404
14405 cat > conftest.$ac_ext <<_LT_EOF
14406 class Foo
14407 {
14408 public:
14409   Foo (void) { a = 0; }
14410 private:
14411   int a;
14412 };
14413 _LT_EOF
14414
14415
14416 _lt_libdeps_save_CFLAGS=$CFLAGS
14417 case "$CC $CFLAGS " in #(
14418 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14419 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14420 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14421 esac
14422
14423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14424   (eval $ac_compile) 2>&5
14425   ac_status=$?
14426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427   test $ac_status = 0; }; then
14428   # Parse the compiler output and extract the necessary
14429   # objects, libraries and library flags.
14430
14431   # Sentinel used to keep track of whether or not we are before
14432   # the conftest object file.
14433   pre_test_object_deps_done=no
14434
14435   for p in `eval "$output_verbose_link_cmd"`; do
14436     case ${prev}${p} in
14437
14438     -L* | -R* | -l*)
14439        # Some compilers place space between "-{L,R}" and the path.
14440        # Remove the space.
14441        if test $p = "-L" ||
14442           test $p = "-R"; then
14443          prev=$p
14444          continue
14445        fi
14446
14447        # Expand the sysroot to ease extracting the directories later.
14448        if test -z "$prev"; then
14449          case $p in
14450          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14451          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14452          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14453          esac
14454        fi
14455        case $p in
14456        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14457        esac
14458        if test "$pre_test_object_deps_done" = no; then
14459          case ${prev} in
14460          -L | -R)
14461            # Internal compiler library paths should come after those
14462            # provided the user.  The postdeps already come after the
14463            # user supplied libs so there is no need to process them.
14464            if test -z "$compiler_lib_search_path_CXX"; then
14465              compiler_lib_search_path_CXX="${prev}${p}"
14466            else
14467              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14468            fi
14469            ;;
14470          # The "-l" case would never come before the object being
14471          # linked, so don't bother handling this case.
14472          esac
14473        else
14474          if test -z "$postdeps_CXX"; then
14475            postdeps_CXX="${prev}${p}"
14476          else
14477            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14478          fi
14479        fi
14480        prev=
14481        ;;
14482
14483     *.lto.$objext) ;; # Ignore GCC LTO objects
14484     *.$objext)
14485        # This assumes that the test object file only shows up
14486        # once in the compiler output.
14487        if test "$p" = "conftest.$objext"; then
14488          pre_test_object_deps_done=yes
14489          continue
14490        fi
14491
14492        if test "$pre_test_object_deps_done" = no; then
14493          if test -z "$predep_objects_CXX"; then
14494            predep_objects_CXX="$p"
14495          else
14496            predep_objects_CXX="$predep_objects_CXX $p"
14497          fi
14498        else
14499          if test -z "$postdep_objects_CXX"; then
14500            postdep_objects_CXX="$p"
14501          else
14502            postdep_objects_CXX="$postdep_objects_CXX $p"
14503          fi
14504        fi
14505        ;;
14506
14507     *) ;; # Ignore the rest.
14508
14509     esac
14510   done
14511
14512   # Clean up.
14513   rm -f a.out a.exe
14514 else
14515   echo "libtool.m4: error: problem compiling CXX test program"
14516 fi
14517
14518 $RM -f confest.$objext
14519 CFLAGS=$_lt_libdeps_save_CFLAGS
14520
14521 # PORTME: override above test on systems where it is broken
14522 case $host_os in
14523 interix[3-9]*)
14524   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14525   # hack all around it, let's just trust "g++" to DTRT.
14526   predep_objects_CXX=
14527   postdep_objects_CXX=
14528   postdeps_CXX=
14529   ;;
14530
14531 linux*)
14532   case `$CC -V 2>&1 | sed 5q` in
14533   *Sun\ C*)
14534     # Sun C++ 5.9
14535
14536     # The more standards-conforming stlport4 library is
14537     # incompatible with the Cstd library. Avoid specifying
14538     # it if it's in CXXFLAGS. Ignore libCrun as
14539     # -library=stlport4 depends on it.
14540     case " $CXX $CXXFLAGS " in
14541     *" -library=stlport4 "*)
14542       solaris_use_stlport4=yes
14543       ;;
14544     esac
14545
14546     if test "$solaris_use_stlport4" != yes; then
14547       postdeps_CXX='-library=Cstd -library=Crun'
14548     fi
14549     ;;
14550   esac
14551   ;;
14552
14553 solaris*)
14554   case $cc_basename in
14555   CC* | sunCC*)
14556     # The more standards-conforming stlport4 library is
14557     # incompatible with the Cstd library. Avoid specifying
14558     # it if it's in CXXFLAGS. Ignore libCrun as
14559     # -library=stlport4 depends on it.
14560     case " $CXX $CXXFLAGS " in
14561     *" -library=stlport4 "*)
14562       solaris_use_stlport4=yes
14563       ;;
14564     esac
14565
14566     # Adding this requires a known-good setup of shared libraries for
14567     # Sun compiler versions before 5.6, else PIC objects from an old
14568     # archive will be linked into the output, leading to subtle bugs.
14569     if test "$solaris_use_stlport4" != yes; then
14570       postdeps_CXX='-library=Cstd -library=Crun'
14571     fi
14572     ;;
14573   esac
14574   ;;
14575 esac
14576
14577
14578 case " $postdeps_CXX " in
14579 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14580 esac
14581  compiler_lib_search_dirs_CXX=
14582 if test -n "${compiler_lib_search_path_CXX}"; then
14583  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14584 fi
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616     lt_prog_compiler_wl_CXX=
14617 lt_prog_compiler_pic_CXX=
14618 lt_prog_compiler_static_CXX=
14619
14620
14621   # C++ specific cases for pic, static, wl, etc.
14622   if test "$GXX" = yes; then
14623     lt_prog_compiler_wl_CXX='-Wl,'
14624     lt_prog_compiler_static_CXX='-static'
14625
14626     case $host_os in
14627     aix*)
14628       # All AIX code is PIC.
14629       if test "$host_cpu" = ia64; then
14630         # AIX 5 now supports IA64 processor
14631         lt_prog_compiler_static_CXX='-Bstatic'
14632       fi
14633       ;;
14634
14635     amigaos*)
14636       case $host_cpu in
14637       powerpc)
14638             # see comment about AmigaOS4 .so support
14639             lt_prog_compiler_pic_CXX='-fPIC'
14640         ;;
14641       m68k)
14642             # FIXME: we need at least 68020 code to build shared libraries, but
14643             # adding the `-m68020' flag to GCC prevents building anything better,
14644             # like `-m68040'.
14645             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14646         ;;
14647       esac
14648       ;;
14649
14650     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14651       # PIC is the default for these OSes.
14652       ;;
14653     mingw* | cygwin* | os2* | pw32* | cegcc*)
14654       # This hack is so that the source file can tell whether it is being
14655       # built for inclusion in a dll (and should export symbols for example).
14656       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14657       # (--disable-auto-import) libraries
14658       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14659       ;;
14660     darwin* | rhapsody*)
14661       # PIC is the default on this platform
14662       # Common symbols not allowed in MH_DYLIB files
14663       lt_prog_compiler_pic_CXX='-fno-common'
14664       ;;
14665     *djgpp*)
14666       # DJGPP does not support shared libraries at all
14667       lt_prog_compiler_pic_CXX=
14668       ;;
14669     haiku*)
14670       # PIC is the default for Haiku.
14671       # The "-static" flag exists, but is broken.
14672       lt_prog_compiler_static_CXX=
14673       ;;
14674     interix[3-9]*)
14675       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14676       # Instead, we relocate shared libraries at runtime.
14677       ;;
14678     sysv4*MP*)
14679       if test -d /usr/nec; then
14680         lt_prog_compiler_pic_CXX=-Kconform_pic
14681       fi
14682       ;;
14683     hpux*)
14684       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14685       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14686       # sets the default TLS model and affects inlining.
14687       case $host_cpu in
14688       hppa*64*)
14689         ;;
14690       *)
14691         lt_prog_compiler_pic_CXX='-fPIC'
14692         ;;
14693       esac
14694       ;;
14695     *qnx* | *nto*)
14696       # QNX uses GNU C++, but need to define -shared option too, otherwise
14697       # it will coredump.
14698       lt_prog_compiler_pic_CXX='-fPIC -shared'
14699       ;;
14700     *)
14701       lt_prog_compiler_pic_CXX='-fPIC'
14702       ;;
14703     esac
14704   else
14705     case $host_os in
14706       aix[4-9]*)
14707         # All AIX code is PIC.
14708         if test "$host_cpu" = ia64; then
14709           # AIX 5 now supports IA64 processor
14710           lt_prog_compiler_static_CXX='-Bstatic'
14711         else
14712           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14713         fi
14714         ;;
14715       chorus*)
14716         case $cc_basename in
14717         cxch68*)
14718           # Green Hills C++ Compiler
14719           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14720           ;;
14721         esac
14722         ;;
14723       mingw* | cygwin* | os2* | pw32* | cegcc*)
14724         # This hack is so that the source file can tell whether it is being
14725         # built for inclusion in a dll (and should export symbols for example).
14726         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14727         ;;
14728       dgux*)
14729         case $cc_basename in
14730           ec++*)
14731             lt_prog_compiler_pic_CXX='-KPIC'
14732             ;;
14733           ghcx*)
14734             # Green Hills C++ Compiler
14735             lt_prog_compiler_pic_CXX='-pic'
14736             ;;
14737           *)
14738             ;;
14739         esac
14740         ;;
14741       freebsd* | dragonfly*)
14742         # FreeBSD uses GNU C++
14743         ;;
14744       hpux9* | hpux10* | hpux11*)
14745         case $cc_basename in
14746           CC*)
14747             lt_prog_compiler_wl_CXX='-Wl,'
14748             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14749             if test "$host_cpu" != ia64; then
14750               lt_prog_compiler_pic_CXX='+Z'
14751             fi
14752             ;;
14753           aCC*)
14754             lt_prog_compiler_wl_CXX='-Wl,'
14755             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14756             case $host_cpu in
14757             hppa*64*|ia64*)
14758               # +Z the default
14759               ;;
14760             *)
14761               lt_prog_compiler_pic_CXX='+Z'
14762               ;;
14763             esac
14764             ;;
14765           *)
14766             ;;
14767         esac
14768         ;;
14769       interix*)
14770         # This is c89, which is MS Visual C++ (no shared libs)
14771         # Anyone wants to do a port?
14772         ;;
14773       irix5* | irix6* | nonstopux*)
14774         case $cc_basename in
14775           CC*)
14776             lt_prog_compiler_wl_CXX='-Wl,'
14777             lt_prog_compiler_static_CXX='-non_shared'
14778             # CC pic flag -KPIC is the default.
14779             ;;
14780           *)
14781             ;;
14782         esac
14783         ;;
14784       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14785         case $cc_basename in
14786           KCC*)
14787             # KAI C++ Compiler
14788             lt_prog_compiler_wl_CXX='--backend -Wl,'
14789             lt_prog_compiler_pic_CXX='-fPIC'
14790             ;;
14791           ecpc* )
14792             # old Intel C++ for x86_64 which still supported -KPIC.
14793             lt_prog_compiler_wl_CXX='-Wl,'
14794             lt_prog_compiler_pic_CXX='-KPIC'
14795             lt_prog_compiler_static_CXX='-static'
14796             ;;
14797           icpc* )
14798             # Intel C++, used to be incompatible with GCC.
14799             # ICC 10 doesn't accept -KPIC any more.
14800             lt_prog_compiler_wl_CXX='-Wl,'
14801             lt_prog_compiler_pic_CXX='-fPIC'
14802             lt_prog_compiler_static_CXX='-static'
14803             ;;
14804           pgCC* | pgcpp*)
14805             # Portland Group C++ compiler
14806             lt_prog_compiler_wl_CXX='-Wl,'
14807             lt_prog_compiler_pic_CXX='-fpic'
14808             lt_prog_compiler_static_CXX='-Bstatic'
14809             ;;
14810           cxx*)
14811             # Compaq C++
14812             # Make sure the PIC flag is empty.  It appears that all Alpha
14813             # Linux and Compaq Tru64 Unix objects are PIC.
14814             lt_prog_compiler_pic_CXX=
14815             lt_prog_compiler_static_CXX='-non_shared'
14816             ;;
14817           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14818             # IBM XL 8.0, 9.0 on PPC and BlueGene
14819             lt_prog_compiler_wl_CXX='-Wl,'
14820             lt_prog_compiler_pic_CXX='-qpic'
14821             lt_prog_compiler_static_CXX='-qstaticlink'
14822             ;;
14823           *)
14824             case `$CC -V 2>&1 | sed 5q` in
14825             *Sun\ C*)
14826               # Sun C++ 5.9
14827               lt_prog_compiler_pic_CXX='-KPIC'
14828               lt_prog_compiler_static_CXX='-Bstatic'
14829               lt_prog_compiler_wl_CXX='-Qoption ld '
14830               ;;
14831             esac
14832             ;;
14833         esac
14834         ;;
14835       lynxos*)
14836         ;;
14837       m88k*)
14838         ;;
14839       mvs*)
14840         case $cc_basename in
14841           cxx*)
14842             lt_prog_compiler_pic_CXX='-W c,exportall'
14843             ;;
14844           *)
14845             ;;
14846         esac
14847         ;;
14848       netbsd*)
14849         ;;
14850       *qnx* | *nto*)
14851         # QNX uses GNU C++, but need to define -shared option too, otherwise
14852         # it will coredump.
14853         lt_prog_compiler_pic_CXX='-fPIC -shared'
14854         ;;
14855       osf3* | osf4* | osf5*)
14856         case $cc_basename in
14857           KCC*)
14858             lt_prog_compiler_wl_CXX='--backend -Wl,'
14859             ;;
14860           RCC*)
14861             # Rational C++ 2.4.1
14862             lt_prog_compiler_pic_CXX='-pic'
14863             ;;
14864           cxx*)
14865             # Digital/Compaq C++
14866             lt_prog_compiler_wl_CXX='-Wl,'
14867             # Make sure the PIC flag is empty.  It appears that all Alpha
14868             # Linux and Compaq Tru64 Unix objects are PIC.
14869             lt_prog_compiler_pic_CXX=
14870             lt_prog_compiler_static_CXX='-non_shared'
14871             ;;
14872           *)
14873             ;;
14874         esac
14875         ;;
14876       psos*)
14877         ;;
14878       solaris*)
14879         case $cc_basename in
14880           CC* | sunCC*)
14881             # Sun C++ 4.2, 5.x and Centerline C++
14882             lt_prog_compiler_pic_CXX='-KPIC'
14883             lt_prog_compiler_static_CXX='-Bstatic'
14884             lt_prog_compiler_wl_CXX='-Qoption ld '
14885             ;;
14886           gcx*)
14887             # Green Hills C++ Compiler
14888             lt_prog_compiler_pic_CXX='-PIC'
14889             ;;
14890           *)
14891             ;;
14892         esac
14893         ;;
14894       sunos4*)
14895         case $cc_basename in
14896           CC*)
14897             # Sun C++ 4.x
14898             lt_prog_compiler_pic_CXX='-pic'
14899             lt_prog_compiler_static_CXX='-Bstatic'
14900             ;;
14901           lcc*)
14902             # Lucid
14903             lt_prog_compiler_pic_CXX='-pic'
14904             ;;
14905           *)
14906             ;;
14907         esac
14908         ;;
14909       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14910         case $cc_basename in
14911           CC*)
14912             lt_prog_compiler_wl_CXX='-Wl,'
14913             lt_prog_compiler_pic_CXX='-KPIC'
14914             lt_prog_compiler_static_CXX='-Bstatic'
14915             ;;
14916         esac
14917         ;;
14918       tandem*)
14919         case $cc_basename in
14920           NCC*)
14921             # NonStop-UX NCC 3.20
14922             lt_prog_compiler_pic_CXX='-KPIC'
14923             ;;
14924           *)
14925             ;;
14926         esac
14927         ;;
14928       vxworks*)
14929         ;;
14930       *)
14931         lt_prog_compiler_can_build_shared_CXX=no
14932         ;;
14933     esac
14934   fi
14935
14936 case $host_os in
14937   # For platforms which do not support PIC, -DPIC is meaningless:
14938   *djgpp*)
14939     lt_prog_compiler_pic_CXX=
14940     ;;
14941   *)
14942     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14943     ;;
14944 esac
14945
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14947 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14948 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14949   $as_echo_n "(cached) " >&6
14950 else
14951   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14954 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14955 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14956
14957 #
14958 # Check to make sure the PIC flag actually works.
14959 #
14960 if test -n "$lt_prog_compiler_pic_CXX"; then
14961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14962 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14963 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14964   $as_echo_n "(cached) " >&6
14965 else
14966   lt_cv_prog_compiler_pic_works_CXX=no
14967    ac_outfile=conftest.$ac_objext
14968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14969    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14970    # Insert the option either (1) after the last *FLAGS variable, or
14971    # (2) before a word containing "conftest.", or (3) at the end.
14972    # Note that $ac_compile itself does not contain backslashes and begins
14973    # with a dollar sign (not a hyphen), so the echo should work correctly.
14974    # The option is referenced via a variable to avoid confusing sed.
14975    lt_compile=`echo "$ac_compile" | $SED \
14976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978    -e 's:$: $lt_compiler_flag:'`
14979    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14980    (eval "$lt_compile" 2>conftest.err)
14981    ac_status=$?
14982    cat conftest.err >&5
14983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984    if (exit $ac_status) && test -s "$ac_outfile"; then
14985      # The compiler can only warn and ignore the option if not recognized
14986      # So say no if there are warnings other than the usual output.
14987      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14988      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14989      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14990        lt_cv_prog_compiler_pic_works_CXX=yes
14991      fi
14992    fi
14993    $RM conftest*
14994
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14997 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14998
14999 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15000     case $lt_prog_compiler_pic_CXX in
15001      "" | " "*) ;;
15002      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15003      esac
15004 else
15005     lt_prog_compiler_pic_CXX=
15006      lt_prog_compiler_can_build_shared_CXX=no
15007 fi
15008
15009 fi
15010
15011
15012
15013
15014
15015 #
15016 # Check to make sure the static flag actually works.
15017 #
15018 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15020 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15021 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15022   $as_echo_n "(cached) " >&6
15023 else
15024   lt_cv_prog_compiler_static_works_CXX=no
15025    save_LDFLAGS="$LDFLAGS"
15026    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15027    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15028    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15029      # The linker can only warn and ignore the option if not recognized
15030      # So say no if there are warnings
15031      if test -s conftest.err; then
15032        # Append any errors to the config.log.
15033        cat conftest.err 1>&5
15034        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15035        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15036        if diff conftest.exp conftest.er2 >/dev/null; then
15037          lt_cv_prog_compiler_static_works_CXX=yes
15038        fi
15039      else
15040        lt_cv_prog_compiler_static_works_CXX=yes
15041      fi
15042    fi
15043    $RM -r conftest*
15044    LDFLAGS="$save_LDFLAGS"
15045
15046 fi
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15048 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15049
15050 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15051     :
15052 else
15053     lt_prog_compiler_static_CXX=
15054 fi
15055
15056
15057
15058
15059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15061 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15062   $as_echo_n "(cached) " >&6
15063 else
15064   lt_cv_prog_compiler_c_o_CXX=no
15065    $RM -r conftest 2>/dev/null
15066    mkdir conftest
15067    cd conftest
15068    mkdir out
15069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15070
15071    lt_compiler_flag="-o out/conftest2.$ac_objext"
15072    # Insert the option either (1) after the last *FLAGS variable, or
15073    # (2) before a word containing "conftest.", or (3) at the end.
15074    # Note that $ac_compile itself does not contain backslashes and begins
15075    # with a dollar sign (not a hyphen), so the echo should work correctly.
15076    lt_compile=`echo "$ac_compile" | $SED \
15077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15079    -e 's:$: $lt_compiler_flag:'`
15080    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15081    (eval "$lt_compile" 2>out/conftest.err)
15082    ac_status=$?
15083    cat out/conftest.err >&5
15084    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15086    then
15087      # The compiler can only warn and ignore the option if not recognized
15088      # So say no if there are warnings
15089      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15090      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15091      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15092        lt_cv_prog_compiler_c_o_CXX=yes
15093      fi
15094    fi
15095    chmod u+w . 2>&5
15096    $RM conftest*
15097    # SGI C++ compiler will create directory out/ii_files/ for
15098    # template instantiation
15099    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15100    $RM out/* && rmdir out
15101    cd ..
15102    $RM -r conftest
15103    $RM conftest*
15104
15105 fi
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15107 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15108
15109
15110
15111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15112 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15113 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15114   $as_echo_n "(cached) " >&6
15115 else
15116   lt_cv_prog_compiler_c_o_CXX=no
15117    $RM -r conftest 2>/dev/null
15118    mkdir conftest
15119    cd conftest
15120    mkdir out
15121    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15122
15123    lt_compiler_flag="-o out/conftest2.$ac_objext"
15124    # Insert the option either (1) after the last *FLAGS variable, or
15125    # (2) before a word containing "conftest.", or (3) at the end.
15126    # Note that $ac_compile itself does not contain backslashes and begins
15127    # with a dollar sign (not a hyphen), so the echo should work correctly.
15128    lt_compile=`echo "$ac_compile" | $SED \
15129    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15131    -e 's:$: $lt_compiler_flag:'`
15132    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15133    (eval "$lt_compile" 2>out/conftest.err)
15134    ac_status=$?
15135    cat out/conftest.err >&5
15136    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15138    then
15139      # The compiler can only warn and ignore the option if not recognized
15140      # So say no if there are warnings
15141      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15142      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15143      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15144        lt_cv_prog_compiler_c_o_CXX=yes
15145      fi
15146    fi
15147    chmod u+w . 2>&5
15148    $RM conftest*
15149    # SGI C++ compiler will create directory out/ii_files/ for
15150    # template instantiation
15151    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15152    $RM out/* && rmdir out
15153    cd ..
15154    $RM -r conftest
15155    $RM conftest*
15156
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15159 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15160
15161
15162
15163
15164 hard_links="nottested"
15165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15166   # do not overwrite the value of need_locks provided by the user
15167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15168 $as_echo_n "checking if we can lock with hard links... " >&6; }
15169   hard_links=yes
15170   $RM conftest*
15171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15172   touch conftest.a
15173   ln conftest.a conftest.b 2>&5 || hard_links=no
15174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15176 $as_echo "$hard_links" >&6; }
15177   if test "$hard_links" = no; then
15178     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15179 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15180     need_locks=warn
15181   fi
15182 else
15183   need_locks=no
15184 fi
15185
15186
15187
15188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15190
15191   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15192   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15193   case $host_os in
15194   aix[4-9]*)
15195     # If we're using GNU nm, then we don't want the "-C" option.
15196     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15197     # Also, AIX nm treats weak defined symbols like other global defined
15198     # symbols, whereas GNU nm marks them as "W".
15199     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15200       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15201     else
15202       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15203     fi
15204     ;;
15205   pw32*)
15206     export_symbols_cmds_CXX="$ltdll_cmds"
15207     ;;
15208   cygwin* | mingw* | cegcc*)
15209     case $cc_basename in
15210     cl*)
15211       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15212       ;;
15213     *)
15214       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15215       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15216       ;;
15217     esac
15218     ;;
15219   *)
15220     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15221     ;;
15222   esac
15223
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15225 $as_echo "$ld_shlibs_CXX" >&6; }
15226 test "$ld_shlibs_CXX" = no && can_build_shared=no
15227
15228 with_gnu_ld_CXX=$with_gnu_ld
15229
15230
15231
15232
15233
15234
15235 #
15236 # Do we need to explicitly link libc?
15237 #
15238 case "x$archive_cmds_need_lc_CXX" in
15239 x|xyes)
15240   # Assume -lc should be added
15241   archive_cmds_need_lc_CXX=yes
15242
15243   if test "$enable_shared" = yes && test "$GCC" = yes; then
15244     case $archive_cmds_CXX in
15245     *'~'*)
15246       # FIXME: we may have to deal with multi-command sequences.
15247       ;;
15248     '$CC '*)
15249       # Test whether the compiler implicitly links with -lc since on some
15250       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15251       # to ld, don't add -lc before -lgcc.
15252       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15253 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15254 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15255   $as_echo_n "(cached) " >&6
15256 else
15257   $RM conftest*
15258         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15259
15260         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15261   (eval $ac_compile) 2>&5
15262   ac_status=$?
15263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264   test $ac_status = 0; } 2>conftest.err; then
15265           soname=conftest
15266           lib=conftest
15267           libobjs=conftest.$ac_objext
15268           deplibs=
15269           wl=$lt_prog_compiler_wl_CXX
15270           pic_flag=$lt_prog_compiler_pic_CXX
15271           compiler_flags=-v
15272           linker_flags=-v
15273           verstring=
15274           output_objdir=.
15275           libname=conftest
15276           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15277           allow_undefined_flag_CXX=
15278           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15279   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15280   ac_status=$?
15281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15282   test $ac_status = 0; }
15283           then
15284             lt_cv_archive_cmds_need_lc_CXX=no
15285           else
15286             lt_cv_archive_cmds_need_lc_CXX=yes
15287           fi
15288           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15289         else
15290           cat conftest.err 1>&5
15291         fi
15292         $RM conftest*
15293
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15296 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15297       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15298       ;;
15299     esac
15300   fi
15301   ;;
15302 esac
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15366 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15367
15368 library_names_spec=
15369 libname_spec='lib$name'
15370 soname_spec=
15371 shrext_cmds=".so"
15372 postinstall_cmds=
15373 postuninstall_cmds=
15374 finish_cmds=
15375 finish_eval=
15376 shlibpath_var=
15377 shlibpath_overrides_runpath=unknown
15378 version_type=none
15379 dynamic_linker="$host_os ld.so"
15380 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15381 need_lib_prefix=unknown
15382 hardcode_into_libs=no
15383
15384 # when you set need_version to no, make sure it does not cause -set_version
15385 # flags to be left without arguments
15386 need_version=unknown
15387
15388 case $host_os in
15389 aix3*)
15390   version_type=linux # correct to gnu/linux during the next big refactor
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15392   shlibpath_var=LIBPATH
15393
15394   # AIX 3 has no versioning support, so we append a major version to the name.
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   ;;
15397
15398 aix[4-9]*)
15399   version_type=linux # correct to gnu/linux during the next big refactor
15400   need_lib_prefix=no
15401   need_version=no
15402   hardcode_into_libs=yes
15403   if test "$host_cpu" = ia64; then
15404     # AIX 5 supports IA64
15405     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15406     shlibpath_var=LD_LIBRARY_PATH
15407   else
15408     # With GCC up to 2.95.x, collect2 would create an import file
15409     # for dependence libraries.  The import file would start with
15410     # the line `#! .'.  This would cause the generated library to
15411     # depend on `.', always an invalid library.  This was fixed in
15412     # development snapshots of GCC prior to 3.0.
15413     case $host_os in
15414       aix4 | aix4.[01] | aix4.[01].*)
15415       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15416            echo ' yes '
15417            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15418         :
15419       else
15420         can_build_shared=no
15421       fi
15422       ;;
15423     esac
15424     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15425     # soname into executable. Probably we can add versioning support to
15426     # collect2, so additional links can be useful in future.
15427     if test "$aix_use_runtimelinking" = yes; then
15428       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15429       # instead of lib<name>.a to let people know that these are not
15430       # typical AIX shared libraries.
15431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432     else
15433       # We preserve .a as extension for shared libraries through AIX4.2
15434       # and later when we are not doing run time linking.
15435       library_names_spec='${libname}${release}.a $libname.a'
15436       soname_spec='${libname}${release}${shared_ext}$major'
15437     fi
15438     shlibpath_var=LIBPATH
15439   fi
15440   ;;
15441
15442 amigaos*)
15443   case $host_cpu in
15444   powerpc)
15445     # Since July 2007 AmigaOS4 officially supports .so libraries.
15446     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448     ;;
15449   m68k)
15450     library_names_spec='$libname.ixlibrary $libname.a'
15451     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15452     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'
15453     ;;
15454   esac
15455   ;;
15456
15457 beos*)
15458   library_names_spec='${libname}${shared_ext}'
15459   dynamic_linker="$host_os ld.so"
15460   shlibpath_var=LIBRARY_PATH
15461   ;;
15462
15463 bsdi[45]*)
15464   version_type=linux # correct to gnu/linux during the next big refactor
15465   need_version=no
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467   soname_spec='${libname}${release}${shared_ext}$major'
15468   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15471   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15472   # the default ld.so.conf also contains /usr/contrib/lib and
15473   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15474   # libtool to hard-code these into programs
15475   ;;
15476
15477 cygwin* | mingw* | pw32* | cegcc*)
15478   version_type=windows
15479   shrext_cmds=".dll"
15480   need_version=no
15481   need_lib_prefix=no
15482
15483   case $GCC,$cc_basename in
15484   yes,*)
15485     # gcc
15486     library_names_spec='$libname.dll.a'
15487     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15488     postinstall_cmds='base_file=`basename \${file}`~
15489       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15490       dldir=$destdir/`dirname \$dlpath`~
15491       test -d \$dldir || mkdir -p \$dldir~
15492       $install_prog $dir/$dlname \$dldir/$dlname~
15493       chmod a+x \$dldir/$dlname~
15494       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15495         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15496       fi'
15497     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15498       dlpath=$dir/\$dldll~
15499        $RM \$dlpath'
15500     shlibpath_overrides_runpath=yes
15501
15502     case $host_os in
15503     cygwin*)
15504       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15505       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15506
15507       ;;
15508     mingw* | cegcc*)
15509       # MinGW DLLs use traditional 'lib' prefix
15510       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15511       ;;
15512     pw32*)
15513       # pw32 DLLs use 'pw' prefix rather than 'lib'
15514       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15515       ;;
15516     esac
15517     dynamic_linker='Win32 ld.exe'
15518     ;;
15519
15520   *,cl*)
15521     # Native MSVC
15522     libname_spec='$name'
15523     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15524     library_names_spec='${libname}.dll.lib'
15525
15526     case $build_os in
15527     mingw*)
15528       sys_lib_search_path_spec=
15529       lt_save_ifs=$IFS
15530       IFS=';'
15531       for lt_path in $LIB
15532       do
15533         IFS=$lt_save_ifs
15534         # Let DOS variable expansion print the short 8.3 style file name.
15535         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15536         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15537       done
15538       IFS=$lt_save_ifs
15539       # Convert to MSYS style.
15540       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15541       ;;
15542     cygwin*)
15543       # Convert to unix form, then to dos form, then back to unix form
15544       # but this time dos style (no spaces!) so that the unix form looks
15545       # like /cygdrive/c/PROGRA~1:/cygdr...
15546       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15547       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15548       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15549       ;;
15550     *)
15551       sys_lib_search_path_spec="$LIB"
15552       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15553         # It is most probably a Windows format PATH.
15554         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15555       else
15556         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15557       fi
15558       # FIXME: find the short name or the path components, as spaces are
15559       # common. (e.g. "Program Files" -> "PROGRA~1")
15560       ;;
15561     esac
15562
15563     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15564     postinstall_cmds='base_file=`basename \${file}`~
15565       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15566       dldir=$destdir/`dirname \$dlpath`~
15567       test -d \$dldir || mkdir -p \$dldir~
15568       $install_prog $dir/$dlname \$dldir/$dlname'
15569     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15570       dlpath=$dir/\$dldll~
15571        $RM \$dlpath'
15572     shlibpath_overrides_runpath=yes
15573     dynamic_linker='Win32 link.exe'
15574     ;;
15575
15576   *)
15577     # Assume MSVC wrapper
15578     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15579     dynamic_linker='Win32 ld.exe'
15580     ;;
15581   esac
15582   # FIXME: first we should search . and the directory the executable is in
15583   shlibpath_var=PATH
15584   ;;
15585
15586 darwin* | rhapsody*)
15587   dynamic_linker="$host_os dyld"
15588   version_type=darwin
15589   need_lib_prefix=no
15590   need_version=no
15591   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15592   soname_spec='${libname}${release}${major}$shared_ext'
15593   shlibpath_overrides_runpath=yes
15594   shlibpath_var=DYLD_LIBRARY_PATH
15595   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15596
15597   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15598   ;;
15599
15600 dgux*)
15601   version_type=linux # correct to gnu/linux during the next big refactor
15602   need_lib_prefix=no
15603   need_version=no
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   shlibpath_var=LD_LIBRARY_PATH
15607   ;;
15608
15609 freebsd* | dragonfly*)
15610   # DragonFly does not have aout.  When/if they implement a new
15611   # versioning mechanism, adjust this.
15612   if test -x /usr/bin/objformat; then
15613     objformat=`/usr/bin/objformat`
15614   else
15615     case $host_os in
15616     freebsd[23].*) objformat=aout ;;
15617     *) objformat=elf ;;
15618     esac
15619   fi
15620   version_type=freebsd-$objformat
15621   case $version_type in
15622     freebsd-elf*)
15623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15624       need_version=no
15625       need_lib_prefix=no
15626       ;;
15627     freebsd-*)
15628       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15629       need_version=yes
15630       ;;
15631   esac
15632   shlibpath_var=LD_LIBRARY_PATH
15633   case $host_os in
15634   freebsd2.*)
15635     shlibpath_overrides_runpath=yes
15636     ;;
15637   freebsd3.[01]* | freebsdelf3.[01]*)
15638     shlibpath_overrides_runpath=yes
15639     hardcode_into_libs=yes
15640     ;;
15641   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15642   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15643     shlibpath_overrides_runpath=no
15644     hardcode_into_libs=yes
15645     ;;
15646   *) # from 4.6 on, and DragonFly
15647     shlibpath_overrides_runpath=yes
15648     hardcode_into_libs=yes
15649     ;;
15650   esac
15651   ;;
15652
15653 gnu*)
15654   version_type=linux # correct to gnu/linux during the next big refactor
15655   need_lib_prefix=no
15656   need_version=no
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   shlibpath_overrides_runpath=no
15661   hardcode_into_libs=yes
15662   ;;
15663
15664 haiku*)
15665   version_type=linux # correct to gnu/linux during the next big refactor
15666   need_lib_prefix=no
15667   need_version=no
15668   dynamic_linker="$host_os runtime_loader"
15669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15670   soname_spec='${libname}${release}${shared_ext}$major'
15671   shlibpath_var=LIBRARY_PATH
15672   shlibpath_overrides_runpath=yes
15673   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15674   hardcode_into_libs=yes
15675   ;;
15676
15677 hpux9* | hpux10* | hpux11*)
15678   # Give a soname corresponding to the major version so that dld.sl refuses to
15679   # link against other versions.
15680   version_type=sunos
15681   need_lib_prefix=no
15682   need_version=no
15683   case $host_cpu in
15684   ia64*)
15685     shrext_cmds='.so'
15686     hardcode_into_libs=yes
15687     dynamic_linker="$host_os dld.so"
15688     shlibpath_var=LD_LIBRARY_PATH
15689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691     soname_spec='${libname}${release}${shared_ext}$major'
15692     if test "X$HPUX_IA64_MODE" = X32; then
15693       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15694     else
15695       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15696     fi
15697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15698     ;;
15699   hppa*64*)
15700     shrext_cmds='.sl'
15701     hardcode_into_libs=yes
15702     dynamic_linker="$host_os dld.sl"
15703     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706     soname_spec='${libname}${release}${shared_ext}$major'
15707     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15709     ;;
15710   *)
15711     shrext_cmds='.sl'
15712     dynamic_linker="$host_os dld.sl"
15713     shlibpath_var=SHLIB_PATH
15714     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716     soname_spec='${libname}${release}${shared_ext}$major'
15717     ;;
15718   esac
15719   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15720   postinstall_cmds='chmod 555 $lib'
15721   # or fails outright, so override atomically:
15722   install_override_mode=555
15723   ;;
15724
15725 interix[3-9]*)
15726   version_type=linux # correct to gnu/linux during the next big refactor
15727   need_lib_prefix=no
15728   need_version=no
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15732   shlibpath_var=LD_LIBRARY_PATH
15733   shlibpath_overrides_runpath=no
15734   hardcode_into_libs=yes
15735   ;;
15736
15737 irix5* | irix6* | nonstopux*)
15738   case $host_os in
15739     nonstopux*) version_type=nonstopux ;;
15740     *)
15741         if test "$lt_cv_prog_gnu_ld" = yes; then
15742                 version_type=linux # correct to gnu/linux during the next big refactor
15743         else
15744                 version_type=irix
15745         fi ;;
15746   esac
15747   need_lib_prefix=no
15748   need_version=no
15749   soname_spec='${libname}${release}${shared_ext}$major'
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15751   case $host_os in
15752   irix5* | nonstopux*)
15753     libsuff= shlibsuff=
15754     ;;
15755   *)
15756     case $LD in # libtool.m4 will add one of these switches to LD
15757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15758       libsuff= shlibsuff= libmagic=32-bit;;
15759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15760       libsuff=32 shlibsuff=N32 libmagic=N32;;
15761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15763     *) libsuff= shlibsuff= libmagic=never-match;;
15764     esac
15765     ;;
15766   esac
15767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15768   shlibpath_overrides_runpath=no
15769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15771   hardcode_into_libs=yes
15772   ;;
15773
15774 # No shared lib support for Linux oldld, aout, or coff.
15775 linux*oldld* | linux*aout* | linux*coff*)
15776   dynamic_linker=no
15777   ;;
15778
15779 # This must be glibc/ELF.
15780 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15781   version_type=linux # correct to gnu/linux during the next big refactor
15782   need_lib_prefix=no
15783   need_version=no
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   shlibpath_overrides_runpath=no
15789
15790   # Some binutils ld are patched to set DT_RUNPATH
15791   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15792   $as_echo_n "(cached) " >&6
15793 else
15794   lt_cv_shlibpath_overrides_runpath=no
15795     save_LDFLAGS=$LDFLAGS
15796     save_libdir=$libdir
15797     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15798          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h.  */
15801
15802 int
15803 main ()
15804 {
15805
15806   ;
15807   return 0;
15808 }
15809 _ACEOF
15810 if ac_fn_cxx_try_link "$LINENO"; then :
15811   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15812   lt_cv_shlibpath_overrides_runpath=yes
15813 fi
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext \
15816     conftest$ac_exeext conftest.$ac_ext
15817     LDFLAGS=$save_LDFLAGS
15818     libdir=$save_libdir
15819
15820 fi
15821
15822   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15823
15824   # This implies no fast_install, which is unacceptable.
15825   # Some rework will be needed to allow for fast_install
15826   # before this can be enabled.
15827   hardcode_into_libs=yes
15828
15829   # Add ABI-specific directories to the system library path.
15830   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15831
15832   # Append ld.so.conf contents to the search path
15833   if test -f /etc/ld.so.conf; then
15834     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' ' '`
15835     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15836
15837   fi
15838
15839   # We used to test for /lib/ld.so.1 and disable shared libraries on
15840   # powerpc, because MkLinux only supported shared libraries with the
15841   # GNU dynamic linker.  Since this was broken with cross compilers,
15842   # most powerpc-linux boxes support dynamic linking these days and
15843   # people can always --disable-shared, the test was removed, and we
15844   # assume the GNU/Linux dynamic linker is in use.
15845   dynamic_linker='GNU/Linux ld.so'
15846   ;;
15847
15848 netbsd*)
15849   version_type=sunos
15850   need_lib_prefix=no
15851   need_version=no
15852   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15854     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15855     dynamic_linker='NetBSD (a.out) ld.so'
15856   else
15857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15858     soname_spec='${libname}${release}${shared_ext}$major'
15859     dynamic_linker='NetBSD ld.elf_so'
15860   fi
15861   shlibpath_var=LD_LIBRARY_PATH
15862   shlibpath_overrides_runpath=yes
15863   hardcode_into_libs=yes
15864   ;;
15865
15866 newsos6)
15867   version_type=linux # correct to gnu/linux during the next big refactor
15868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869   shlibpath_var=LD_LIBRARY_PATH
15870   shlibpath_overrides_runpath=yes
15871   ;;
15872
15873 *nto* | *qnx*)
15874   version_type=qnx
15875   need_lib_prefix=no
15876   need_version=no
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878   soname_spec='${libname}${release}${shared_ext}$major'
15879   shlibpath_var=LD_LIBRARY_PATH
15880   shlibpath_overrides_runpath=no
15881   hardcode_into_libs=yes
15882   dynamic_linker='ldqnx.so'
15883   ;;
15884
15885 openbsd*)
15886   version_type=sunos
15887   sys_lib_dlsearch_path_spec="/usr/lib"
15888   need_lib_prefix=no
15889   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15890   case $host_os in
15891     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15892     *)                          need_version=no  ;;
15893   esac
15894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15895   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15896   shlibpath_var=LD_LIBRARY_PATH
15897   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15898     case $host_os in
15899       openbsd2.[89] | openbsd2.[89].*)
15900         shlibpath_overrides_runpath=no
15901         ;;
15902       *)
15903         shlibpath_overrides_runpath=yes
15904         ;;
15905       esac
15906   else
15907     shlibpath_overrides_runpath=yes
15908   fi
15909   ;;
15910
15911 os2*)
15912   libname_spec='$name'
15913   shrext_cmds=".dll"
15914   need_lib_prefix=no
15915   library_names_spec='$libname${shared_ext} $libname.a'
15916   dynamic_linker='OS/2 ld.exe'
15917   shlibpath_var=LIBPATH
15918   ;;
15919
15920 osf3* | osf4* | osf5*)
15921   version_type=osf
15922   need_lib_prefix=no
15923   need_version=no
15924   soname_spec='${libname}${release}${shared_ext}$major'
15925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926   shlibpath_var=LD_LIBRARY_PATH
15927   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15928   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15929   ;;
15930
15931 rdos*)
15932   dynamic_linker=no
15933   ;;
15934
15935 solaris*)
15936   version_type=linux # correct to gnu/linux during the next big refactor
15937   need_lib_prefix=no
15938   need_version=no
15939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940   soname_spec='${libname}${release}${shared_ext}$major'
15941   shlibpath_var=LD_LIBRARY_PATH
15942   shlibpath_overrides_runpath=yes
15943   hardcode_into_libs=yes
15944   # ldd complains unless libraries are executable
15945   postinstall_cmds='chmod +x $lib'
15946   ;;
15947
15948 sunos4*)
15949   version_type=sunos
15950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15951   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15952   shlibpath_var=LD_LIBRARY_PATH
15953   shlibpath_overrides_runpath=yes
15954   if test "$with_gnu_ld" = yes; then
15955     need_lib_prefix=no
15956   fi
15957   need_version=yes
15958   ;;
15959
15960 sysv4 | sysv4.3*)
15961   version_type=linux # correct to gnu/linux during the next big refactor
15962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963   soname_spec='${libname}${release}${shared_ext}$major'
15964   shlibpath_var=LD_LIBRARY_PATH
15965   case $host_vendor in
15966     sni)
15967       shlibpath_overrides_runpath=no
15968       need_lib_prefix=no
15969       runpath_var=LD_RUN_PATH
15970       ;;
15971     siemens)
15972       need_lib_prefix=no
15973       ;;
15974     motorola)
15975       need_lib_prefix=no
15976       need_version=no
15977       shlibpath_overrides_runpath=no
15978       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15979       ;;
15980   esac
15981   ;;
15982
15983 sysv4*MP*)
15984   if test -d /usr/nec ;then
15985     version_type=linux # correct to gnu/linux during the next big refactor
15986     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15987     soname_spec='$libname${shared_ext}.$major'
15988     shlibpath_var=LD_LIBRARY_PATH
15989   fi
15990   ;;
15991
15992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15993   version_type=freebsd-elf
15994   need_lib_prefix=no
15995   need_version=no
15996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15997   soname_spec='${libname}${release}${shared_ext}$major'
15998   shlibpath_var=LD_LIBRARY_PATH
15999   shlibpath_overrides_runpath=yes
16000   hardcode_into_libs=yes
16001   if test "$with_gnu_ld" = yes; then
16002     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16003   else
16004     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16005     case $host_os in
16006       sco3.2v5*)
16007         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16008         ;;
16009     esac
16010   fi
16011   sys_lib_dlsearch_path_spec='/usr/lib'
16012   ;;
16013
16014 tpf*)
16015   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16016   version_type=linux # correct to gnu/linux during the next big refactor
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020   shlibpath_var=LD_LIBRARY_PATH
16021   shlibpath_overrides_runpath=no
16022   hardcode_into_libs=yes
16023   ;;
16024
16025 uts4*)
16026   version_type=linux # correct to gnu/linux during the next big refactor
16027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   shlibpath_var=LD_LIBRARY_PATH
16030   ;;
16031
16032 *)
16033   dynamic_linker=no
16034   ;;
16035 esac
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16037 $as_echo "$dynamic_linker" >&6; }
16038 test "$dynamic_linker" = no && can_build_shared=no
16039
16040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16041 if test "$GCC" = yes; then
16042   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16043 fi
16044
16045 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16046   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16047 fi
16048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16049   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16050 fi
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16090 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16091 hardcode_action_CXX=
16092 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16093    test -n "$runpath_var_CXX" ||
16094    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16095
16096   # We can hardcode non-existent directories.
16097   if test "$hardcode_direct_CXX" != no &&
16098      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16099      # have to relink, otherwise we might link with an installed library
16100      # when we should be linking with a yet-to-be-installed one
16101      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16102      test "$hardcode_minus_L_CXX" != no; then
16103     # Linking always hardcodes the temporary library directory.
16104     hardcode_action_CXX=relink
16105   else
16106     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16107     hardcode_action_CXX=immediate
16108   fi
16109 else
16110   # We cannot hardcode anything, or else we can only hardcode existing
16111   # directories.
16112   hardcode_action_CXX=unsupported
16113 fi
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16115 $as_echo "$hardcode_action_CXX" >&6; }
16116
16117 if test "$hardcode_action_CXX" = relink ||
16118    test "$inherit_rpath_CXX" = yes; then
16119   # Fast installation is not supported
16120   enable_fast_install=no
16121 elif test "$shlibpath_overrides_runpath" = yes ||
16122      test "$enable_shared" = no; then
16123   # Fast installation is not necessary
16124   enable_fast_install=needless
16125 fi
16126
16127
16128
16129
16130
16131
16132
16133   fi # test -n "$compiler"
16134
16135   CC=$lt_save_CC
16136   CFLAGS=$lt_save_CFLAGS
16137   LDCXX=$LD
16138   LD=$lt_save_LD
16139   GCC=$lt_save_GCC
16140   with_gnu_ld=$lt_save_with_gnu_ld
16141   lt_cv_path_LDCXX=$lt_cv_path_LD
16142   lt_cv_path_LD=$lt_save_path_LD
16143   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16144   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16145 fi # test "$_lt_caught_CXX_error" != yes
16146
16147 ac_ext=c
16148 ac_cpp='$CPP $CPPFLAGS'
16149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167         ac_config_commands="$ac_config_commands libtool"
16168
16169
16170
16171
16172 # Only expand once:
16173
16174
16175 if test "x$CC" != xcc; then
16176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16177 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16178 else
16179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16180 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16181 fi
16182 set dummy $CC; ac_cc=`$as_echo "$2" |
16183                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16184 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16185   $as_echo_n "(cached) " >&6
16186 else
16187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h.  */
16189
16190 int
16191 main ()
16192 {
16193
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 # Make sure it works both with $CC and with simple cc.
16199 # We do the test twice because some compilers refuse to overwrite an
16200 # existing .o file with -o, though they will create one.
16201 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16202 rm -f conftest2.*
16203 if { { case "(($ac_try" in
16204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205   *) ac_try_echo=$ac_try;;
16206 esac
16207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16208 $as_echo "$ac_try_echo"; } >&5
16209   (eval "$ac_try") 2>&5
16210   ac_status=$?
16211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212   test $ac_status = 0; } &&
16213    test -f conftest2.$ac_objext && { { case "(($ac_try" in
16214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215   *) ac_try_echo=$ac_try;;
16216 esac
16217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16218 $as_echo "$ac_try_echo"; } >&5
16219   (eval "$ac_try") 2>&5
16220   ac_status=$?
16221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16222   test $ac_status = 0; };
16223 then
16224   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16225   if test "x$CC" != xcc; then
16226     # Test first that cc exists at all.
16227     if { ac_try='cc -c conftest.$ac_ext >&5'
16228   { { case "(($ac_try" in
16229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230   *) ac_try_echo=$ac_try;;
16231 esac
16232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16233 $as_echo "$ac_try_echo"; } >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237   test $ac_status = 0; }; }; then
16238       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16239       rm -f conftest2.*
16240       if { { case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16245 $as_echo "$ac_try_echo"; } >&5
16246   (eval "$ac_try") 2>&5
16247   ac_status=$?
16248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16249   test $ac_status = 0; } &&
16250          test -f conftest2.$ac_objext && { { case "(($ac_try" in
16251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252   *) ac_try_echo=$ac_try;;
16253 esac
16254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16255 $as_echo "$ac_try_echo"; } >&5
16256   (eval "$ac_try") 2>&5
16257   ac_status=$?
16258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259   test $ac_status = 0; };
16260       then
16261         # cc works too.
16262         :
16263       else
16264         # cc exists but doesn't like -o.
16265         eval ac_cv_prog_cc_${ac_cc}_c_o=no
16266       fi
16267     fi
16268   fi
16269 else
16270   eval ac_cv_prog_cc_${ac_cc}_c_o=no
16271 fi
16272 rm -f core conftest*
16273
16274 fi
16275 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16277 $as_echo "yes" >&6; }
16278 else
16279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16281
16282 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16283
16284 fi
16285
16286 # FIXME: we rely on the cache variable name because
16287 # there is no other way.
16288 set dummy $CC
16289 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16290 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16291 if test "$am_t" != yes; then
16292    # Losing compiler, so override with the script.
16293    # FIXME: It is wrong to rewrite CC.
16294    # But if we don't then we get into trouble of one sort or another.
16295    # A longer-term fix would be to have automake use am__CC in this case,
16296    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16297    CC="$am_aux_dir/compile $CC"
16298 fi
16299
16300
16301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16302 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16303 if ${ac_cv_c_bigendian+:} false; then :
16304   $as_echo_n "(cached) " >&6
16305 else
16306   ac_cv_c_bigendian=unknown
16307     # See if we're dealing with a universal compiler.
16308     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h.  */
16310 #ifndef __APPLE_CC__
16311                not a universal capable compiler
16312              #endif
16313              typedef int dummy;
16314
16315 _ACEOF
16316 if ac_fn_c_try_compile "$LINENO"; then :
16317
16318         # Check for potential -arch flags.  It is not universal unless
16319         # there are at least two -arch flags with different values.
16320         ac_arch=
16321         ac_prev=
16322         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16323          if test -n "$ac_prev"; then
16324            case $ac_word in
16325              i?86 | x86_64 | ppc | ppc64)
16326                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16327                  ac_arch=$ac_word
16328                else
16329                  ac_cv_c_bigendian=universal
16330                  break
16331                fi
16332                ;;
16333            esac
16334            ac_prev=
16335          elif test "x$ac_word" = "x-arch"; then
16336            ac_prev=arch
16337          fi
16338        done
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341     if test $ac_cv_c_bigendian = unknown; then
16342       # See if sys/param.h defines the BYTE_ORDER macro.
16343       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h.  */
16345 #include <sys/types.h>
16346              #include <sys/param.h>
16347
16348 int
16349 main ()
16350 {
16351 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16352                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16353                      && LITTLE_ENDIAN)
16354               bogus endian macros
16355              #endif
16356
16357   ;
16358   return 0;
16359 }
16360 _ACEOF
16361 if ac_fn_c_try_compile "$LINENO"; then :
16362   # It does; now see whether it defined to BIG_ENDIAN or not.
16363          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h.  */
16365 #include <sys/types.h>
16366                 #include <sys/param.h>
16367
16368 int
16369 main ()
16370 {
16371 #if BYTE_ORDER != BIG_ENDIAN
16372                  not big endian
16373                 #endif
16374
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_compile "$LINENO"; then :
16380   ac_cv_c_bigendian=yes
16381 else
16382   ac_cv_c_bigendian=no
16383 fi
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385 fi
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387     fi
16388     if test $ac_cv_c_bigendian = unknown; then
16389       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16390       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h.  */
16392 #include <limits.h>
16393
16394 int
16395 main ()
16396 {
16397 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16398               bogus endian macros
16399              #endif
16400
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406   # It does; now see whether it defined to _BIG_ENDIAN or not.
16407          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h.  */
16409 #include <limits.h>
16410
16411 int
16412 main ()
16413 {
16414 #ifndef _BIG_ENDIAN
16415                  not big endian
16416                 #endif
16417
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 if ac_fn_c_try_compile "$LINENO"; then :
16423   ac_cv_c_bigendian=yes
16424 else
16425   ac_cv_c_bigendian=no
16426 fi
16427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428 fi
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430     fi
16431     if test $ac_cv_c_bigendian = unknown; then
16432       # Compile a test program.
16433       if test "$cross_compiling" = yes; then :
16434   # Try to guess by grepping values from an object file.
16435          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h.  */
16437 short int ascii_mm[] =
16438                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16439                 short int ascii_ii[] =
16440                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16441                 int use_ascii (int i) {
16442                   return ascii_mm[i] + ascii_ii[i];
16443                 }
16444                 short int ebcdic_ii[] =
16445                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16446                 short int ebcdic_mm[] =
16447                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16448                 int use_ebcdic (int i) {
16449                   return ebcdic_mm[i] + ebcdic_ii[i];
16450                 }
16451                 extern int foo;
16452
16453 int
16454 main ()
16455 {
16456 return use_ascii (foo) == use_ebcdic (foo);
16457   ;
16458   return 0;
16459 }
16460 _ACEOF
16461 if ac_fn_c_try_compile "$LINENO"; then :
16462   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16463               ac_cv_c_bigendian=yes
16464             fi
16465             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16466               if test "$ac_cv_c_bigendian" = unknown; then
16467                 ac_cv_c_bigendian=no
16468               else
16469                 # finding both strings is unlikely to happen, but who knows?
16470                 ac_cv_c_bigendian=unknown
16471               fi
16472             fi
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 else
16476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h.  */
16478 $ac_includes_default
16479 int
16480 main ()
16481 {
16482
16483              /* Are we little or big endian?  From Harbison&Steele.  */
16484              union
16485              {
16486                long int l;
16487                char c[sizeof (long int)];
16488              } u;
16489              u.l = 1;
16490              return u.c[sizeof (long int) - 1] == 1;
16491
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_run "$LINENO"; then :
16497   ac_cv_c_bigendian=no
16498 else
16499   ac_cv_c_bigendian=yes
16500 fi
16501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502   conftest.$ac_objext conftest.beam conftest.$ac_ext
16503 fi
16504
16505     fi
16506 fi
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16508 $as_echo "$ac_cv_c_bigendian" >&6; }
16509  case $ac_cv_c_bigendian in #(
16510    yes)
16511      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16512 ;; #(
16513    no)
16514       ;; #(
16515    universal)
16516
16517 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16518
16519      ;; #(
16520    *)
16521      as_fn_error $? "unknown endianness
16522  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16523  esac
16524
16525 for ac_prog in python2 python
16526 do
16527   # Extract the first word of "$ac_prog", so it can be a program name with args.
16528 set dummy $ac_prog; ac_word=$2
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16530 $as_echo_n "checking for $ac_word... " >&6; }
16531 if ${ac_cv_path_PYTHON+:} false; then :
16532   $as_echo_n "(cached) " >&6
16533 else
16534   case $PYTHON in
16535   [\\/]* | ?:[\\/]*)
16536   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16537   ;;
16538   *)
16539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16540 for as_dir in $PATH
16541 do
16542   IFS=$as_save_IFS
16543   test -z "$as_dir" && as_dir=.
16544     for ac_exec_ext in '' $ac_executable_extensions; do
16545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16546     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16548     break 2
16549   fi
16550 done
16551   done
16552 IFS=$as_save_IFS
16553
16554   ;;
16555 esac
16556 fi
16557 PYTHON=$ac_cv_path_PYTHON
16558 if test -n "$PYTHON"; then
16559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16560 $as_echo "$PYTHON" >&6; }
16561 else
16562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16564 fi
16565
16566
16567   test -n "$PYTHON" && break
16568 done
16569
16570
16571
16572
16573
16574
16575
16576
16577 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16578         if test -n "$ac_tool_prefix"; then
16579   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16580 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16584   $as_echo_n "(cached) " >&6
16585 else
16586   case $PKG_CONFIG in
16587   [\\/]* | ?:[\\/]*)
16588   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16589   ;;
16590   *)
16591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16593 do
16594   IFS=$as_save_IFS
16595   test -z "$as_dir" && as_dir=.
16596     for ac_exec_ext in '' $ac_executable_extensions; do
16597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600     break 2
16601   fi
16602 done
16603   done
16604 IFS=$as_save_IFS
16605
16606   ;;
16607 esac
16608 fi
16609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16610 if test -n "$PKG_CONFIG"; then
16611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16612 $as_echo "$PKG_CONFIG" >&6; }
16613 else
16614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16616 fi
16617
16618
16619 fi
16620 if test -z "$ac_cv_path_PKG_CONFIG"; then
16621   ac_pt_PKG_CONFIG=$PKG_CONFIG
16622   # Extract the first word of "pkg-config", so it can be a program name with args.
16623 set dummy pkg-config; ac_word=$2
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16625 $as_echo_n "checking for $ac_word... " >&6; }
16626 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16627   $as_echo_n "(cached) " >&6
16628 else
16629   case $ac_pt_PKG_CONFIG in
16630   [\\/]* | ?:[\\/]*)
16631   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16632   ;;
16633   *)
16634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16635 for as_dir in $PATH
16636 do
16637   IFS=$as_save_IFS
16638   test -z "$as_dir" && as_dir=.
16639     for ac_exec_ext in '' $ac_executable_extensions; do
16640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16641     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16643     break 2
16644   fi
16645 done
16646   done
16647 IFS=$as_save_IFS
16648
16649   ;;
16650 esac
16651 fi
16652 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16653 if test -n "$ac_pt_PKG_CONFIG"; then
16654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16655 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16656 else
16657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16658 $as_echo "no" >&6; }
16659 fi
16660
16661   if test "x$ac_pt_PKG_CONFIG" = x; then
16662     PKG_CONFIG=""
16663   else
16664     case $cross_compiling:$ac_tool_warned in
16665 yes:)
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16668 ac_tool_warned=yes ;;
16669 esac
16670     PKG_CONFIG=$ac_pt_PKG_CONFIG
16671   fi
16672 else
16673   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16674 fi
16675
16676 fi
16677 if test -n "$PKG_CONFIG"; then
16678         _pkg_min_version=0.9.0
16679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16680 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16681         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16682                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16683 $as_echo "yes" >&6; }
16684         else
16685                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16687                 PKG_CONFIG=""
16688         fi
16689 fi
16690
16691 for ac_header in sys/time.h
16692 do :
16693   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16694 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16695   cat >>confdefs.h <<_ACEOF
16696 #define HAVE_SYS_TIME_H 1
16697 _ACEOF
16698
16699 fi
16700
16701 done
16702
16703 for ac_header in execinfo.h
16704 do :
16705   ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
16706 if test "x$ac_cv_header_execinfo_h" = xyes; then :
16707   cat >>confdefs.h <<_ACEOF
16708 #define HAVE_EXECINFO_H 1
16709 _ACEOF
16710
16711 fi
16712
16713 done
16714
16715 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16716 if test "x$ac_cv_type_size_t" = xyes; then :
16717
16718 else
16719
16720 cat >>confdefs.h <<_ACEOF
16721 #define size_t unsigned int
16722 _ACEOF
16723
16724 fi
16725
16726 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16727 # for constant arguments.  Useless!
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16729 $as_echo_n "checking for working alloca.h... " >&6; }
16730 if ${ac_cv_working_alloca_h+:} false; then :
16731   $as_echo_n "(cached) " >&6
16732 else
16733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h.  */
16735 #include <alloca.h>
16736 int
16737 main ()
16738 {
16739 char *p = (char *) alloca (2 * sizeof (int));
16740                           if (p) return 0;
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 if ac_fn_c_try_link "$LINENO"; then :
16746   ac_cv_working_alloca_h=yes
16747 else
16748   ac_cv_working_alloca_h=no
16749 fi
16750 rm -f core conftest.err conftest.$ac_objext \
16751     conftest$ac_exeext conftest.$ac_ext
16752 fi
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16754 $as_echo "$ac_cv_working_alloca_h" >&6; }
16755 if test $ac_cv_working_alloca_h = yes; then
16756
16757 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16758
16759 fi
16760
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16762 $as_echo_n "checking for alloca... " >&6; }
16763 if ${ac_cv_func_alloca_works+:} false; then :
16764   $as_echo_n "(cached) " >&6
16765 else
16766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h.  */
16768 #ifdef __GNUC__
16769 # define alloca __builtin_alloca
16770 #else
16771 # ifdef _MSC_VER
16772 #  include <malloc.h>
16773 #  define alloca _alloca
16774 # else
16775 #  ifdef HAVE_ALLOCA_H
16776 #   include <alloca.h>
16777 #  else
16778 #   ifdef _AIX
16779  #pragma alloca
16780 #   else
16781 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16782 void *alloca (size_t);
16783 #    endif
16784 #   endif
16785 #  endif
16786 # endif
16787 #endif
16788
16789 int
16790 main ()
16791 {
16792 char *p = (char *) alloca (1);
16793                                     if (p) return 0;
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 if ac_fn_c_try_link "$LINENO"; then :
16799   ac_cv_func_alloca_works=yes
16800 else
16801   ac_cv_func_alloca_works=no
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext \
16804     conftest$ac_exeext conftest.$ac_ext
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16807 $as_echo "$ac_cv_func_alloca_works" >&6; }
16808
16809 if test $ac_cv_func_alloca_works = yes; then
16810
16811 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16812
16813 else
16814   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16815 # that cause trouble.  Some versions do not even contain alloca or
16816 # contain a buggy version.  If you still want to use their alloca,
16817 # use ar to extract alloca.o from them instead of compiling alloca.c.
16818
16819 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16820
16821 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16825 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16826 if ${ac_cv_os_cray+:} false; then :
16827   $as_echo_n "(cached) " >&6
16828 else
16829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h.  */
16831 #if defined CRAY && ! defined CRAY2
16832 webecray
16833 #else
16834 wenotbecray
16835 #endif
16836
16837 _ACEOF
16838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16839   $EGREP "webecray" >/dev/null 2>&1; then :
16840   ac_cv_os_cray=yes
16841 else
16842   ac_cv_os_cray=no
16843 fi
16844 rm -f conftest*
16845
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16848 $as_echo "$ac_cv_os_cray" >&6; }
16849 if test $ac_cv_os_cray = yes; then
16850   for ac_func in _getb67 GETB67 getb67; do
16851     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16854
16855 cat >>confdefs.h <<_ACEOF
16856 #define CRAY_STACKSEG_END $ac_func
16857 _ACEOF
16858
16859     break
16860 fi
16861
16862   done
16863 fi
16864
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16866 $as_echo_n "checking stack direction for C alloca... " >&6; }
16867 if ${ac_cv_c_stack_direction+:} false; then :
16868   $as_echo_n "(cached) " >&6
16869 else
16870   if test "$cross_compiling" = yes; then :
16871   ac_cv_c_stack_direction=0
16872 else
16873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h.  */
16875 $ac_includes_default
16876 int
16877 find_stack_direction (int *addr, int depth)
16878 {
16879   int dir, dummy = 0;
16880   if (! addr)
16881     addr = &dummy;
16882   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16883   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16884   return dir + dummy;
16885 }
16886
16887 int
16888 main (int argc, char **argv)
16889 {
16890   return find_stack_direction (0, argc + !argv + 20) < 0;
16891 }
16892 _ACEOF
16893 if ac_fn_c_try_run "$LINENO"; then :
16894   ac_cv_c_stack_direction=1
16895 else
16896   ac_cv_c_stack_direction=-1
16897 fi
16898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16899   conftest.$ac_objext conftest.beam conftest.$ac_ext
16900 fi
16901
16902 fi
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16904 $as_echo "$ac_cv_c_stack_direction" >&6; }
16905 cat >>confdefs.h <<_ACEOF
16906 #define STACK_DIRECTION $ac_cv_c_stack_direction
16907 _ACEOF
16908
16909
16910 fi
16911
16912
16913
16914 $as_echo "#define __STDC_FORMAT_MACROS /**/" >>confdefs.h
16915
16916
16917 SPICE_LT_VERSION="9:0:8"
16918
16919
16920 # Check for the CPU we are using
16921 #
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86" >&5
16923 $as_echo_n "checking for x86... " >&6; }
16924 case $host_cpu in
16925   i386|i486|i586|i686|i786|k6|k7|armv6|armv6l|armv6hl|armv7|armv7l|armv7hl)
16926         variant=32
16927         ;;
16928   x86_64)
16929         variant=64
16930         ;;
16931   *)
16932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933 $as_echo "no" >&6; }
16934         echo Only x86 and x86-64 are supported
16935         exit 1
16936 esac
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $variant bit" >&5
16938 $as_echo "$variant bit" >&6; }
16939  if test "$variant" = 64; then
16940   X86_64_TRUE=
16941   X86_64_FALSE='#'
16942 else
16943   X86_64_TRUE='#'
16944   X86_64_FALSE=
16945 fi
16946
16947
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
16949 $as_echo_n "checking for native Win32... " >&6; }
16950 case "$host" in
16951   *-*-mingw*)
16952     os_win32=yes
16953     ;;
16954   *)
16955     os_win32=no
16956     ;;
16957 esac
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
16959 $as_echo "$os_win32" >&6; }
16960
16961 case $host in
16962   *-*-linux*)
16963     os_linux=yes
16964     ;;
16965 esac
16966
16967
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
16969 $as_echo_n "checking for some Win32 platform... " >&6; }
16970 case "$host" in
16971   *-*-mingw*|*-*-cygwin*)
16972     platform_win32=yes
16973     ;;
16974   *)
16975     platform_win32=no
16976     ;;
16977 esac
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
16979 $as_echo "$platform_win32" >&6; }
16980 if test "$platform_win32" = yes; then
16981   red_target=windows
16982 else
16983   red_target=x11
16984 fi
16985
16986  if test "$os_win32" = "yes"; then
16987   OS_WIN32_TRUE=
16988   OS_WIN32_FALSE='#'
16989 else
16990   OS_WIN32_TRUE='#'
16991   OS_WIN32_FALSE=
16992 fi
16993
16994  if test "$os_win32" != "yes"; then
16995   OS_UNIX_TRUE=
16996   OS_UNIX_FALSE='#'
16997 else
16998   OS_UNIX_TRUE='#'
16999   OS_UNIX_FALSE=
17000 fi
17001
17002  if test "$os_linux" = "yes"; then
17003   OS_LINUX_TRUE=
17004   OS_LINUX_FALSE='#'
17005 else
17006   OS_LINUX_TRUE='#'
17007   OS_LINUX_FALSE=
17008 fi
17009
17010
17011 # Check whether --enable-tunnel was given.
17012 if test "${enable_tunnel+set}" = set; then :
17013   enableval=$enable_tunnel;
17014 else
17015   enable_tunnel="no"
17016 fi
17017
17018 if test x"$enable_tunnel" != "xno"; then :
17019   enable_tunnel="yes"
17020 fi
17021  if test "x$enable_tunnel" != "xno"; then
17022   SUPPORT_TUNNEL_TRUE=
17023   SUPPORT_TUNNEL_FALSE='#'
17024 else
17025   SUPPORT_TUNNEL_TRUE='#'
17026   SUPPORT_TUNNEL_FALSE=
17027 fi
17028
17029 if test "x$enable_tunnel" != "xno"; then
17030
17031 $as_echo "#define USE_TUNNEL 1" >>confdefs.h
17032
17033 fi
17034
17035 # Check whether --enable-gui was given.
17036 if test "${enable_gui+set}" = set; then :
17037   enableval=$enable_gui;
17038 else
17039   enable_gui="no"
17040 fi
17041
17042 if test x"$enable_gui" != "xno"; then :
17043   enable_gui="yes"
17044 fi
17045  if test "x$enable_gui" != "xno"; then
17046   SUPPORT_GUI_TRUE=
17047   SUPPORT_GUI_FALSE='#'
17048 else
17049   SUPPORT_GUI_TRUE='#'
17050   SUPPORT_GUI_FALSE=
17051 fi
17052
17053
17054 # Check whether --enable-opengl was given.
17055 if test "${enable_opengl+set}" = set; then :
17056   enableval=$enable_opengl;
17057 else
17058   enable_opengl="no"
17059 fi
17060
17061 if test x"$enable_opengl" != "xno"; then :
17062   enable_opengl="yes"
17063 fi
17064  if test "x$enable_opengl" = "xyes"; then
17065   SUPPORT_GL_TRUE=
17066   SUPPORT_GL_FALSE='#'
17067 else
17068   SUPPORT_GL_TRUE='#'
17069   SUPPORT_GL_FALSE=
17070 fi
17071
17072
17073 # Check whether --enable-smartcard was given.
17074 if test "${enable_smartcard+set}" = set; then :
17075   enableval=$enable_smartcard;
17076 else
17077   enable_smartcard="no"
17078 fi
17079
17080 if test x"$enable_smartcard" != "xno"; then :
17081   enable_smartcard="yes"
17082 fi
17083  if test "x$enable_smartcard" != "xno"; then
17084   SUPPORT_SMARTCARD_TRUE=
17085   SUPPORT_SMARTCARD_FALSE='#'
17086 else
17087   SUPPORT_SMARTCARD_TRUE='#'
17088   SUPPORT_SMARTCARD_FALSE=
17089 fi
17090
17091 if test "x$enable_smartcard" = "xyes"; then
17092
17093 $as_echo "#define USE_SMARTCARD 1" >>confdefs.h
17094
17095 fi
17096
17097 # Check whether --enable-client was given.
17098 if test "${enable_client+set}" = set; then :
17099   enableval=$enable_client;
17100 else
17101   enable_client="no"
17102 fi
17103
17104 if test x"$enable_client" != "xno"; then :
17105   enable_client="yes"
17106 fi
17107  if test "x$enable_client" = "xyes"; then
17108   SUPPORT_CLIENT_TRUE=
17109   SUPPORT_CLIENT_FALSE='#'
17110 else
17111   SUPPORT_CLIENT_TRUE='#'
17112   SUPPORT_CLIENT_FALSE=
17113 fi
17114
17115
17116 # Check whether --enable-automated_tests was given.
17117 if test "${enable_automated_tests+set}" = set; then :
17118   enableval=$enable_automated_tests;
17119 else
17120   enable_automated_tests="no"
17121 fi
17122
17123 if test x"$enable_automated_tests" != "xno"; then :
17124   enable_automated_tests="yes"
17125 fi
17126  if test "x$enable_automated_tests" != "xno"; then
17127   SUPPORT_AUTOMATED_TESTS_TRUE=
17128   SUPPORT_AUTOMATED_TESTS_FALSE='#'
17129 else
17130   SUPPORT_AUTOMATED_TESTS_TRUE='#'
17131   SUPPORT_AUTOMATED_TESTS_FALSE=
17132 fi
17133
17134
17135
17136
17137
17138
17139 subdirs="$subdirs spice-common"
17140
17141 COMMON_CFLAGS='-I ${top_srcdir}/spice-common/ -I ${top_srcdir}/spice-common/spice-protocol/'
17142
17143
17144 LIBM=
17145 case $host in
17146 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
17147   # These system don't have libm, or don't need it
17148   ;;
17149 *-ncr-sysv4.3*)
17150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
17151 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
17152 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
17153   $as_echo_n "(cached) " >&6
17154 else
17155   ac_check_lib_save_LIBS=$LIBS
17156 LIBS="-lmw  $LIBS"
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h.  */
17159
17160 /* Override any GCC internal prototype to avoid an error.
17161    Use char because int might match the return type of a GCC
17162    builtin and then its argument prototype would still apply.  */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char _mwvalidcheckl ();
17167 int
17168 main ()
17169 {
17170 return _mwvalidcheckl ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 if ac_fn_c_try_link "$LINENO"; then :
17176   ac_cv_lib_mw__mwvalidcheckl=yes
17177 else
17178   ac_cv_lib_mw__mwvalidcheckl=no
17179 fi
17180 rm -f core conftest.err conftest.$ac_objext \
17181     conftest$ac_exeext conftest.$ac_ext
17182 LIBS=$ac_check_lib_save_LIBS
17183 fi
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
17185 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
17186 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
17187   LIBM="-lmw"
17188 fi
17189
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17191 $as_echo_n "checking for cos in -lm... " >&6; }
17192 if ${ac_cv_lib_m_cos+:} false; then :
17193   $as_echo_n "(cached) " >&6
17194 else
17195   ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-lm  $LIBS"
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h.  */
17199
17200 /* Override any GCC internal prototype to avoid an error.
17201    Use char because int might match the return type of a GCC
17202    builtin and then its argument prototype would still apply.  */
17203 #ifdef __cplusplus
17204 extern "C"
17205 #endif
17206 char cos ();
17207 int
17208 main ()
17209 {
17210 return cos ();
17211   ;
17212   return 0;
17213 }
17214 _ACEOF
17215 if ac_fn_c_try_link "$LINENO"; then :
17216   ac_cv_lib_m_cos=yes
17217 else
17218   ac_cv_lib_m_cos=no
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext \
17221     conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17223 fi
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17225 $as_echo "$ac_cv_lib_m_cos" >&6; }
17226 if test "x$ac_cv_lib_m_cos" = xyes; then :
17227   LIBM="$LIBM -lm"
17228 fi
17229
17230   ;;
17231 *)
17232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17233 $as_echo_n "checking for cos in -lm... " >&6; }
17234 if ${ac_cv_lib_m_cos+:} false; then :
17235   $as_echo_n "(cached) " >&6
17236 else
17237   ac_check_lib_save_LIBS=$LIBS
17238 LIBS="-lm  $LIBS"
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h.  */
17241
17242 /* Override any GCC internal prototype to avoid an error.
17243    Use char because int might match the return type of a GCC
17244    builtin and then its argument prototype would still apply.  */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 char cos ();
17249 int
17250 main ()
17251 {
17252 return cos ();
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"; then :
17258   ac_cv_lib_m_cos=yes
17259 else
17260   ac_cv_lib_m_cos=no
17261 fi
17262 rm -f core conftest.err conftest.$ac_objext \
17263     conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17265 fi
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17267 $as_echo "$ac_cv_lib_m_cos" >&6; }
17268 if test "x$ac_cv_lib_m_cos" = xyes; then :
17269   LIBM="-lm"
17270 fi
17271
17272   ;;
17273 esac
17274
17275
17276
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17279 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17280 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17281   $as_echo_n "(cached) " >&6
17282 else
17283   ac_check_lib_save_LIBS=$LIBS
17284 LIBS="-lrt  $LIBS"
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h.  */
17287
17288 /* Override any GCC internal prototype to avoid an error.
17289    Use char because int might match the return type of a GCC
17290    builtin and then its argument prototype would still apply.  */
17291 #ifdef __cplusplus
17292 extern "C"
17293 #endif
17294 char clock_gettime ();
17295 int
17296 main ()
17297 {
17298 return clock_gettime ();
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 if ac_fn_c_try_link "$LINENO"; then :
17304   ac_cv_lib_rt_clock_gettime=yes
17305 else
17306   ac_cv_lib_rt_clock_gettime=no
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext \
17309     conftest$ac_exeext conftest.$ac_ext
17310 LIBS=$ac_check_lib_save_LIBS
17311 fi
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17313 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17314 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17315
17316 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17317
17318    LIBRT=-lrt
17319
17320 fi
17321
17322
17323
17324 if test "$red_target" = "windows"; then
17325         SPICE_NONPKGCONFIG_LIBS+=" -lpthreadGC2 -lversion -lmsimg32 $LIBM"
17326 else
17327         SPICE_NONPKGCONFIG_LIBS+=" -pthread $LIBM $LIBRT"
17328 fi
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix yield function" >&5
17331 $as_echo_n "checking for posix yield function... " >&6; }
17332 for yield_func in pthread_yield pthread_yield_np sched_yield \
17333                                         thr_yield; do
17334     spice_save_CPPFLAGS="$CPPFLAGS"
17335     CPPFLAGS="$CPPFLAGS $SPICE_NONPKGCONFIG_LIBS"
17336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h.  */
17338 #include <pthread.h>
17339 int
17340 main ()
17341 {
17342 $yield_func()
17343   ;
17344   return 0;
17345 }
17346 _ACEOF
17347 if ac_fn_c_try_link "$LINENO"; then :
17348   posix_yield_func="$yield_func"
17349                 break
17350 fi
17351 rm -f core conftest.err conftest.$ac_objext \
17352     conftest$ac_exeext conftest.$ac_ext
17353     CPPFLAGS="$spice_save_CPPFLAGS"
17354 done
17355 if test x"$posix_yield_func" = xnone; then
17356     as_fn_error $? "No posix yield function found" "$LINENO" 5
17357 else
17358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $posix_yield_func" >&5
17359 $as_echo "$posix_yield_func" >&6; }
17360     posix_yield_func="$posix_yield_func()"
17361 fi
17362
17363 cat >>confdefs.h <<_ACEOF
17364 #define POSIX_YIELD_FUNC $posix_yield_func
17365 _ACEOF
17366
17367
17368 SPICE_REQUIRES=""
17369
17370 if test "x$enable_gui" = "xyes" && test "x$enable_client" = "xyes" ; then
17371
17372 pkg_failed=no
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CEGUI06" >&5
17374 $as_echo_n "checking for CEGUI06... " >&6; }
17375
17376 if test -n "$CEGUI06_CFLAGS"; then
17377     pkg_cv_CEGUI06_CFLAGS="$CEGUI06_CFLAGS"
17378  elif test -n "$PKG_CONFIG"; then
17379     if test -n "$PKG_CONFIG" && \
17380     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0\""; } >&5
17381   ($PKG_CONFIG --exists --print-errors "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0") 2>&5
17382   ac_status=$?
17383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17384   test $ac_status = 0; }; then
17385   pkg_cv_CEGUI06_CFLAGS=`$PKG_CONFIG --cflags "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>/dev/null`
17386                       test "x$?" != "x0" && pkg_failed=yes
17387 else
17388   pkg_failed=yes
17389 fi
17390  else
17391     pkg_failed=untried
17392 fi
17393 if test -n "$CEGUI06_LIBS"; then
17394     pkg_cv_CEGUI06_LIBS="$CEGUI06_LIBS"
17395  elif test -n "$PKG_CONFIG"; then
17396     if test -n "$PKG_CONFIG" && \
17397     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0\""; } >&5
17398   ($PKG_CONFIG --exists --print-errors "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0") 2>&5
17399   ac_status=$?
17400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17401   test $ac_status = 0; }; then
17402   pkg_cv_CEGUI06_LIBS=`$PKG_CONFIG --libs "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>/dev/null`
17403                       test "x$?" != "x0" && pkg_failed=yes
17404 else
17405   pkg_failed=yes
17406 fi
17407  else
17408     pkg_failed=untried
17409 fi
17410
17411
17412
17413 if test $pkg_failed = yes; then
17414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415 $as_echo "no" >&6; }
17416
17417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17418         _pkg_short_errors_supported=yes
17419 else
17420         _pkg_short_errors_supported=no
17421 fi
17422         if test $_pkg_short_errors_supported = yes; then
17423                 CEGUI06_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>&1`
17424         else
17425                 CEGUI06_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "CEGUI-0.6 >= 0.6.0 CEGUI-0.6 < 0.7.0" 2>&1`
17426         fi
17427         # Put the nasty error message in config.log where it belongs
17428         echo "$CEGUI06_PKG_ERRORS" >&5
17429
17430
17431
17432 pkg_failed=no
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CEGUI" >&5
17434 $as_echo_n "checking for CEGUI... " >&6; }
17435
17436 if test -n "$CEGUI_CFLAGS"; then
17437     pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
17438  elif test -n "$PKG_CONFIG"; then
17439     if test -n "$PKG_CONFIG" && \
17440     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17441   ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17442   ac_status=$?
17443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17444   test $ac_status = 0; }; then
17445   pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17446                       test "x$?" != "x0" && pkg_failed=yes
17447 else
17448   pkg_failed=yes
17449 fi
17450  else
17451     pkg_failed=untried
17452 fi
17453 if test -n "$CEGUI_LIBS"; then
17454     pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
17455  elif test -n "$PKG_CONFIG"; then
17456     if test -n "$PKG_CONFIG" && \
17457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17458   ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17459   ac_status=$?
17460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17461   test $ac_status = 0; }; then
17462   pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17463                       test "x$?" != "x0" && pkg_failed=yes
17464 else
17465   pkg_failed=yes
17466 fi
17467  else
17468     pkg_failed=untried
17469 fi
17470
17471
17472
17473 if test $pkg_failed = yes; then
17474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475 $as_echo "no" >&6; }
17476
17477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17478         _pkg_short_errors_supported=yes
17479 else
17480         _pkg_short_errors_supported=no
17481 fi
17482         if test $_pkg_short_errors_supported = yes; then
17483                 CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17484         else
17485                 CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17486         fi
17487         # Put the nasty error message in config.log where it belongs
17488         echo "$CEGUI_PKG_ERRORS" >&5
17489
17490         as_fn_error $? "Package requirements (CEGUI >= 0.6.0 CEGUI < 0.7.0) were not met:
17491
17492 $CEGUI_PKG_ERRORS
17493
17494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17495 installed software in a non-standard prefix.
17496
17497 Alternatively, you may set the environment variables CEGUI_CFLAGS
17498 and CEGUI_LIBS to avoid the need to call pkg-config.
17499 See the pkg-config man page for more details." "$LINENO" 5
17500 elif test $pkg_failed = untried; then
17501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17502 $as_echo "no" >&6; }
17503         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17505 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17506 is in your PATH or set the PKG_CONFIG environment variable to the full
17507 path to pkg-config.
17508
17509 Alternatively, you may set the environment variables CEGUI_CFLAGS
17510 and CEGUI_LIBS to avoid the need to call pkg-config.
17511 See the pkg-config man page for more details.
17512
17513 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17514 See \`config.log' for more details" "$LINENO" 5; }
17515 else
17516         CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
17517         CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
17518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17519 $as_echo "yes" >&6; }
17520
17521 fi
17522
17523
17524
17525 $as_echo "#define USE_GUI 1" >>confdefs.h
17526
17527
17528 elif test $pkg_failed = untried; then
17529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17530 $as_echo "no" >&6; }
17531
17532
17533 pkg_failed=no
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CEGUI" >&5
17535 $as_echo_n "checking for CEGUI... " >&6; }
17536
17537 if test -n "$CEGUI_CFLAGS"; then
17538     pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
17539  elif test -n "$PKG_CONFIG"; then
17540     if test -n "$PKG_CONFIG" && \
17541     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17542   ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17543   ac_status=$?
17544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17545   test $ac_status = 0; }; then
17546   pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17547                       test "x$?" != "x0" && pkg_failed=yes
17548 else
17549   pkg_failed=yes
17550 fi
17551  else
17552     pkg_failed=untried
17553 fi
17554 if test -n "$CEGUI_LIBS"; then
17555     pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
17556  elif test -n "$PKG_CONFIG"; then
17557     if test -n "$PKG_CONFIG" && \
17558     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.0 CEGUI < 0.7.0\""; } >&5
17559   ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.0 CEGUI < 0.7.0") 2>&5
17560   ac_status=$?
17561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17562   test $ac_status = 0; }; then
17563   pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>/dev/null`
17564                       test "x$?" != "x0" && pkg_failed=yes
17565 else
17566   pkg_failed=yes
17567 fi
17568  else
17569     pkg_failed=untried
17570 fi
17571
17572
17573
17574 if test $pkg_failed = yes; then
17575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17576 $as_echo "no" >&6; }
17577
17578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17579         _pkg_short_errors_supported=yes
17580 else
17581         _pkg_short_errors_supported=no
17582 fi
17583         if test $_pkg_short_errors_supported = yes; then
17584                 CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17585         else
17586                 CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "CEGUI >= 0.6.0 CEGUI < 0.7.0" 2>&1`
17587         fi
17588         # Put the nasty error message in config.log where it belongs
17589         echo "$CEGUI_PKG_ERRORS" >&5
17590
17591         as_fn_error $? "Package requirements (CEGUI >= 0.6.0 CEGUI < 0.7.0) were not met:
17592
17593 $CEGUI_PKG_ERRORS
17594
17595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17596 installed software in a non-standard prefix.
17597
17598 Alternatively, you may set the environment variables CEGUI_CFLAGS
17599 and CEGUI_LIBS to avoid the need to call pkg-config.
17600 See the pkg-config man page for more details." "$LINENO" 5
17601 elif test $pkg_failed = untried; then
17602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17603 $as_echo "no" >&6; }
17604         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17606 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17607 is in your PATH or set the PKG_CONFIG environment variable to the full
17608 path to pkg-config.
17609
17610 Alternatively, you may set the environment variables CEGUI_CFLAGS
17611 and CEGUI_LIBS to avoid the need to call pkg-config.
17612 See the pkg-config man page for more details.
17613
17614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17615 See \`config.log' for more details" "$LINENO" 5; }
17616 else
17617         CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
17618         CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
17619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17620 $as_echo "yes" >&6; }
17621
17622 fi
17623
17624
17625
17626 $as_echo "#define USE_GUI 1" >>confdefs.h
17627
17628
17629 else
17630         CEGUI06_CFLAGS=$pkg_cv_CEGUI06_CFLAGS
17631         CEGUI06_LIBS=$pkg_cv_CEGUI06_LIBS
17632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633 $as_echo "yes" >&6; }
17634
17635
17636
17637
17638 $as_echo "#define USE_GUI 1" >>confdefs.h
17639
17640
17641 fi
17642 fi
17643
17644 if test "x$enable_tunnel" = "xyes"; then
17645
17646 pkg_failed=no
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLIRP" >&5
17648 $as_echo_n "checking for SLIRP... " >&6; }
17649
17650 if test -n "$SLIRP_CFLAGS"; then
17651     pkg_cv_SLIRP_CFLAGS="$SLIRP_CFLAGS"
17652  elif test -n "$PKG_CONFIG"; then
17653     if test -n "$PKG_CONFIG" && \
17654     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"slirp\""; } >&5
17655   ($PKG_CONFIG --exists --print-errors "slirp") 2>&5
17656   ac_status=$?
17657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658   test $ac_status = 0; }; then
17659   pkg_cv_SLIRP_CFLAGS=`$PKG_CONFIG --cflags "slirp" 2>/dev/null`
17660                       test "x$?" != "x0" && pkg_failed=yes
17661 else
17662   pkg_failed=yes
17663 fi
17664  else
17665     pkg_failed=untried
17666 fi
17667 if test -n "$SLIRP_LIBS"; then
17668     pkg_cv_SLIRP_LIBS="$SLIRP_LIBS"
17669  elif test -n "$PKG_CONFIG"; then
17670     if test -n "$PKG_CONFIG" && \
17671     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"slirp\""; } >&5
17672   ($PKG_CONFIG --exists --print-errors "slirp") 2>&5
17673   ac_status=$?
17674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675   test $ac_status = 0; }; then
17676   pkg_cv_SLIRP_LIBS=`$PKG_CONFIG --libs "slirp" 2>/dev/null`
17677                       test "x$?" != "x0" && pkg_failed=yes
17678 else
17679   pkg_failed=yes
17680 fi
17681  else
17682     pkg_failed=untried
17683 fi
17684
17685
17686
17687 if test $pkg_failed = yes; then
17688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689 $as_echo "no" >&6; }
17690
17691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17692         _pkg_short_errors_supported=yes
17693 else
17694         _pkg_short_errors_supported=no
17695 fi
17696         if test $_pkg_short_errors_supported = yes; then
17697                 SLIRP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "slirp" 2>&1`
17698         else
17699                 SLIRP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "slirp" 2>&1`
17700         fi
17701         # Put the nasty error message in config.log where it belongs
17702         echo "$SLIRP_PKG_ERRORS" >&5
17703
17704         as_fn_error $? "Package requirements (slirp) were not met:
17705
17706 $SLIRP_PKG_ERRORS
17707
17708 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17709 installed software in a non-standard prefix.
17710
17711 Alternatively, you may set the environment variables SLIRP_CFLAGS
17712 and SLIRP_LIBS to avoid the need to call pkg-config.
17713 See the pkg-config man page for more details." "$LINENO" 5
17714 elif test $pkg_failed = untried; then
17715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17716 $as_echo "no" >&6; }
17717         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17719 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17720 is in your PATH or set the PKG_CONFIG environment variable to the full
17721 path to pkg-config.
17722
17723 Alternatively, you may set the environment variables SLIRP_CFLAGS
17724 and SLIRP_LIBS to avoid the need to call pkg-config.
17725 See the pkg-config man page for more details.
17726
17727 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17728 See \`config.log' for more details" "$LINENO" 5; }
17729 else
17730         SLIRP_CFLAGS=$pkg_cv_SLIRP_CFLAGS
17731         SLIRP_LIBS=$pkg_cv_SLIRP_LIBS
17732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17733 $as_echo "yes" >&6; }
17734
17735 fi
17736
17737
17738         SPICE_REQUIRES+=" slirp"
17739
17740 $as_echo "#define HAVE_SLIRP /**/" >>confdefs.h
17741
17742 fi
17743
17744 if test "x$enable_smartcard" = "xyes"; then
17745
17746 pkg_failed=no
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAC_CARD" >&5
17748 $as_echo_n "checking for CAC_CARD... " >&6; }
17749
17750 if test -n "$CAC_CARD_CFLAGS"; then
17751     pkg_cv_CAC_CARD_CFLAGS="$CAC_CARD_CFLAGS"
17752  elif test -n "$PKG_CONFIG"; then
17753     if test -n "$PKG_CONFIG" && \
17754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard >= 0.1.2\""; } >&5
17755   ($PKG_CONFIG --exists --print-errors "libcacard >= 0.1.2") 2>&5
17756   ac_status=$?
17757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17758   test $ac_status = 0; }; then
17759   pkg_cv_CAC_CARD_CFLAGS=`$PKG_CONFIG --cflags "libcacard >= 0.1.2" 2>/dev/null`
17760                       test "x$?" != "x0" && pkg_failed=yes
17761 else
17762   pkg_failed=yes
17763 fi
17764  else
17765     pkg_failed=untried
17766 fi
17767 if test -n "$CAC_CARD_LIBS"; then
17768     pkg_cv_CAC_CARD_LIBS="$CAC_CARD_LIBS"
17769  elif test -n "$PKG_CONFIG"; then
17770     if test -n "$PKG_CONFIG" && \
17771     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard >= 0.1.2\""; } >&5
17772   ($PKG_CONFIG --exists --print-errors "libcacard >= 0.1.2") 2>&5
17773   ac_status=$?
17774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17775   test $ac_status = 0; }; then
17776   pkg_cv_CAC_CARD_LIBS=`$PKG_CONFIG --libs "libcacard >= 0.1.2" 2>/dev/null`
17777                       test "x$?" != "x0" && pkg_failed=yes
17778 else
17779   pkg_failed=yes
17780 fi
17781  else
17782     pkg_failed=untried
17783 fi
17784
17785
17786
17787 if test $pkg_failed = yes; then
17788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790
17791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17792         _pkg_short_errors_supported=yes
17793 else
17794         _pkg_short_errors_supported=no
17795 fi
17796         if test $_pkg_short_errors_supported = yes; then
17797                 CAC_CARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcacard >= 0.1.2" 2>&1`
17798         else
17799                 CAC_CARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcacard >= 0.1.2" 2>&1`
17800         fi
17801         # Put the nasty error message in config.log where it belongs
17802         echo "$CAC_CARD_PKG_ERRORS" >&5
17803
17804         as_fn_error $? "Package requirements (libcacard >= 0.1.2) were not met:
17805
17806 $CAC_CARD_PKG_ERRORS
17807
17808 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17809 installed software in a non-standard prefix.
17810
17811 Alternatively, you may set the environment variables CAC_CARD_CFLAGS
17812 and CAC_CARD_LIBS to avoid the need to call pkg-config.
17813 See the pkg-config man page for more details." "$LINENO" 5
17814 elif test $pkg_failed = untried; then
17815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17817         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17819 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17820 is in your PATH or set the PKG_CONFIG environment variable to the full
17821 path to pkg-config.
17822
17823 Alternatively, you may set the environment variables CAC_CARD_CFLAGS
17824 and CAC_CARD_LIBS to avoid the need to call pkg-config.
17825 See the pkg-config man page for more details.
17826
17827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17828 See \`config.log' for more details" "$LINENO" 5; }
17829 else
17830         CAC_CARD_CFLAGS=$pkg_cv_CAC_CARD_CFLAGS
17831         CAC_CARD_LIBS=$pkg_cv_CAC_CARD_LIBS
17832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 $as_echo "yes" >&6; }
17834
17835 fi
17836     SMARTCARD_LIBS="$CAC_CARD_LIBS"
17837     SMARTCARD_CFLAGS="$CAC_CARD_CFLAGS"
17838
17839
17840     SPICE_REQUIRES+=" libcacard >= 0.1.2"
17841 fi
17842
17843
17844
17845 pkg_failed=no
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
17847 $as_echo_n "checking for GLIB2... " >&6; }
17848
17849 if test -n "$GLIB2_CFLAGS"; then
17850     pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
17851  elif test -n "$PKG_CONFIG"; then
17852     if test -n "$PKG_CONFIG" && \
17853     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\""; } >&5
17854   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
17855   ac_status=$?
17856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17857   test $ac_status = 0; }; then
17858   pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.22" 2>/dev/null`
17859                       test "x$?" != "x0" && pkg_failed=yes
17860 else
17861   pkg_failed=yes
17862 fi
17863  else
17864     pkg_failed=untried
17865 fi
17866 if test -n "$GLIB2_LIBS"; then
17867     pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
17868  elif test -n "$PKG_CONFIG"; then
17869     if test -n "$PKG_CONFIG" && \
17870     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.22\""; } >&5
17871   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.22") 2>&5
17872   ac_status=$?
17873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17874   test $ac_status = 0; }; then
17875   pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.22" 2>/dev/null`
17876                       test "x$?" != "x0" && pkg_failed=yes
17877 else
17878   pkg_failed=yes
17879 fi
17880  else
17881     pkg_failed=untried
17882 fi
17883
17884
17885
17886 if test $pkg_failed = yes; then
17887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888 $as_echo "no" >&6; }
17889
17890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17891         _pkg_short_errors_supported=yes
17892 else
17893         _pkg_short_errors_supported=no
17894 fi
17895         if test $_pkg_short_errors_supported = yes; then
17896                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.22" 2>&1`
17897         else
17898                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.22" 2>&1`
17899         fi
17900         # Put the nasty error message in config.log where it belongs
17901         echo "$GLIB2_PKG_ERRORS" >&5
17902
17903         as_fn_error $? "Package requirements (glib-2.0 >= 2.22) were not met:
17904
17905 $GLIB2_PKG_ERRORS
17906
17907 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17908 installed software in a non-standard prefix.
17909
17910 Alternatively, you may set the environment variables GLIB2_CFLAGS
17911 and GLIB2_LIBS to avoid the need to call pkg-config.
17912 See the pkg-config man page for more details." "$LINENO" 5
17913 elif test $pkg_failed = untried; then
17914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17916         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17918 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17919 is in your PATH or set the PKG_CONFIG environment variable to the full
17920 path to pkg-config.
17921
17922 Alternatively, you may set the environment variables GLIB2_CFLAGS
17923 and GLIB2_LIBS to avoid the need to call pkg-config.
17924 See the pkg-config man page for more details.
17925
17926 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17927 See \`config.log' for more details" "$LINENO" 5; }
17928 else
17929         GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
17930         GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
17931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17932 $as_echo "yes" >&6; }
17933
17934 fi
17935 SPICE_REQUIRES+=" glib-2.0 >= 2.22"
17936
17937
17938 pkg_failed=no
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
17940 $as_echo_n "checking for PIXMAN... " >&6; }
17941
17942 if test -n "$PIXMAN_CFLAGS"; then
17943     pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
17944  elif test -n "$PKG_CONFIG"; then
17945     if test -n "$PKG_CONFIG" && \
17946     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.17.7\""; } >&5
17947   ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.17.7") 2>&5
17948   ac_status=$?
17949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17950   test $ac_status = 0; }; then
17951   pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1 >= 0.17.7" 2>/dev/null`
17952                       test "x$?" != "x0" && pkg_failed=yes
17953 else
17954   pkg_failed=yes
17955 fi
17956  else
17957     pkg_failed=untried
17958 fi
17959 if test -n "$PIXMAN_LIBS"; then
17960     pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
17961  elif test -n "$PKG_CONFIG"; then
17962     if test -n "$PKG_CONFIG" && \
17963     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.17.7\""; } >&5
17964   ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.17.7") 2>&5
17965   ac_status=$?
17966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17967   test $ac_status = 0; }; then
17968   pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1 >= 0.17.7" 2>/dev/null`
17969                       test "x$?" != "x0" && pkg_failed=yes
17970 else
17971   pkg_failed=yes
17972 fi
17973  else
17974     pkg_failed=untried
17975 fi
17976
17977
17978
17979 if test $pkg_failed = yes; then
17980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981 $as_echo "no" >&6; }
17982
17983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17984         _pkg_short_errors_supported=yes
17985 else
17986         _pkg_short_errors_supported=no
17987 fi
17988         if test $_pkg_short_errors_supported = yes; then
17989                 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pixman-1 >= 0.17.7" 2>&1`
17990         else
17991                 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pixman-1 >= 0.17.7" 2>&1`
17992         fi
17993         # Put the nasty error message in config.log where it belongs
17994         echo "$PIXMAN_PKG_ERRORS" >&5
17995
17996         as_fn_error $? "Package requirements (pixman-1 >= 0.17.7) were not met:
17997
17998 $PIXMAN_PKG_ERRORS
17999
18000 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18001 installed software in a non-standard prefix.
18002
18003 Alternatively, you may set the environment variables PIXMAN_CFLAGS
18004 and PIXMAN_LIBS to avoid the need to call pkg-config.
18005 See the pkg-config man page for more details." "$LINENO" 5
18006 elif test $pkg_failed = untried; then
18007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18011 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18012 is in your PATH or set the PKG_CONFIG environment variable to the full
18013 path to pkg-config.
18014
18015 Alternatively, you may set the environment variables PIXMAN_CFLAGS
18016 and PIXMAN_LIBS to avoid the need to call pkg-config.
18017 See the pkg-config man page for more details.
18018
18019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18020 See \`config.log' for more details" "$LINENO" 5; }
18021 else
18022         PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
18023         PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
18024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18025 $as_echo "yes" >&6; }
18026
18027 fi
18028
18029
18030 SPICE_REQUIRES+=" pixman-1 >= 0.17.7"
18031
18032
18033 pkg_failed=no
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT051" >&5
18035 $as_echo_n "checking for CELT051... " >&6; }
18036
18037 if test -n "$CELT051_CFLAGS"; then
18038     pkg_cv_CELT051_CFLAGS="$CELT051_CFLAGS"
18039  elif test -n "$PKG_CONFIG"; then
18040     if test -n "$PKG_CONFIG" && \
18041     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt051 >= 0.5.1.1\""; } >&5
18042   ($PKG_CONFIG --exists --print-errors "celt051 >= 0.5.1.1") 2>&5
18043   ac_status=$?
18044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045   test $ac_status = 0; }; then
18046   pkg_cv_CELT051_CFLAGS=`$PKG_CONFIG --cflags "celt051 >= 0.5.1.1" 2>/dev/null`
18047                       test "x$?" != "x0" && pkg_failed=yes
18048 else
18049   pkg_failed=yes
18050 fi
18051  else
18052     pkg_failed=untried
18053 fi
18054 if test -n "$CELT051_LIBS"; then
18055     pkg_cv_CELT051_LIBS="$CELT051_LIBS"
18056  elif test -n "$PKG_CONFIG"; then
18057     if test -n "$PKG_CONFIG" && \
18058     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt051 >= 0.5.1.1\""; } >&5
18059   ($PKG_CONFIG --exists --print-errors "celt051 >= 0.5.1.1") 2>&5
18060   ac_status=$?
18061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18062   test $ac_status = 0; }; then
18063   pkg_cv_CELT051_LIBS=`$PKG_CONFIG --libs "celt051 >= 0.5.1.1" 2>/dev/null`
18064                       test "x$?" != "x0" && pkg_failed=yes
18065 else
18066   pkg_failed=yes
18067 fi
18068  else
18069     pkg_failed=untried
18070 fi
18071
18072
18073
18074 if test $pkg_failed = yes; then
18075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076 $as_echo "no" >&6; }
18077
18078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18079         _pkg_short_errors_supported=yes
18080 else
18081         _pkg_short_errors_supported=no
18082 fi
18083         if test $_pkg_short_errors_supported = yes; then
18084                 CELT051_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "celt051 >= 0.5.1.1" 2>&1`
18085         else
18086                 CELT051_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "celt051 >= 0.5.1.1" 2>&1`
18087         fi
18088         # Put the nasty error message in config.log where it belongs
18089         echo "$CELT051_PKG_ERRORS" >&5
18090
18091         as_fn_error $? "Package requirements (celt051 >= 0.5.1.1) were not met:
18092
18093 $CELT051_PKG_ERRORS
18094
18095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18096 installed software in a non-standard prefix.
18097
18098 Alternatively, you may set the environment variables CELT051_CFLAGS
18099 and CELT051_LIBS to avoid the need to call pkg-config.
18100 See the pkg-config man page for more details." "$LINENO" 5
18101 elif test $pkg_failed = untried; then
18102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18104         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18106 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18107 is in your PATH or set the PKG_CONFIG environment variable to the full
18108 path to pkg-config.
18109
18110 Alternatively, you may set the environment variables CELT051_CFLAGS
18111 and CELT051_LIBS to avoid the need to call pkg-config.
18112 See the pkg-config man page for more details.
18113
18114 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18115 See \`config.log' for more details" "$LINENO" 5; }
18116 else
18117         CELT051_CFLAGS=$pkg_cv_CELT051_CFLAGS
18118         CELT051_LIBS=$pkg_cv_CELT051_LIBS
18119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18120 $as_echo "yes" >&6; }
18121
18122 fi
18123
18124
18125
18126 SPICE_REQUIRES+=" celt051 >= 0.5.1.1"
18127
18128 if test ! -e client/generated_marshallers.cpp; then
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pyparsing python module" >&5
18130 $as_echo_n "checking for pyparsing python module... " >&6; }
18131 echo "import pyparsing" | ${PYTHON} - >/dev/null 2>&1
18132 if test $? -ne 0 ; then
18133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18134 $as_echo "not found" >&6; }
18135     as_fn_error $? "pyparsing python module is required to compile this package" "$LINENO" 5
18136 fi
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
18138 $as_echo "found" >&6; }
18139 fi
18140
18141 if test "$os_linux" = yes; then
18142
18143 pkg_failed=no
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
18145 $as_echo_n "checking for ALSA... " >&6; }
18146
18147 if test -n "$ALSA_CFLAGS"; then
18148     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
18149  elif test -n "$PKG_CONFIG"; then
18150     if test -n "$PKG_CONFIG" && \
18151     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
18152   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
18153   ac_status=$?
18154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155   test $ac_status = 0; }; then
18156   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
18157                       test "x$?" != "x0" && pkg_failed=yes
18158 else
18159   pkg_failed=yes
18160 fi
18161  else
18162     pkg_failed=untried
18163 fi
18164 if test -n "$ALSA_LIBS"; then
18165     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
18166  elif test -n "$PKG_CONFIG"; then
18167     if test -n "$PKG_CONFIG" && \
18168     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
18169   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
18170   ac_status=$?
18171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172   test $ac_status = 0; }; then
18173   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
18174                       test "x$?" != "x0" && pkg_failed=yes
18175 else
18176   pkg_failed=yes
18177 fi
18178  else
18179     pkg_failed=untried
18180 fi
18181
18182
18183
18184 if test $pkg_failed = yes; then
18185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18186 $as_echo "no" >&6; }
18187
18188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18189         _pkg_short_errors_supported=yes
18190 else
18191         _pkg_short_errors_supported=no
18192 fi
18193         if test $_pkg_short_errors_supported = yes; then
18194                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
18195         else
18196                 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
18197         fi
18198         # Put the nasty error message in config.log where it belongs
18199         echo "$ALSA_PKG_ERRORS" >&5
18200
18201         as_fn_error $? "Package requirements (alsa) were not met:
18202
18203 $ALSA_PKG_ERRORS
18204
18205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18206 installed software in a non-standard prefix.
18207
18208 Alternatively, you may set the environment variables ALSA_CFLAGS
18209 and ALSA_LIBS to avoid the need to call pkg-config.
18210 See the pkg-config man page for more details." "$LINENO" 5
18211 elif test $pkg_failed = untried; then
18212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213 $as_echo "no" >&6; }
18214         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18216 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18217 is in your PATH or set the PKG_CONFIG environment variable to the full
18218 path to pkg-config.
18219
18220 Alternatively, you may set the environment variables ALSA_CFLAGS
18221 and ALSA_LIBS to avoid the need to call pkg-config.
18222 See the pkg-config man page for more details.
18223
18224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18225 See \`config.log' for more details" "$LINENO" 5; }
18226 else
18227         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
18228         ALSA_LIBS=$pkg_cv_ALSA_LIBS
18229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231
18232 fi
18233
18234
18235 fi
18236
18237
18238 pkg_failed=no
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18240 $as_echo_n "checking for SSL... " >&6; }
18241
18242 if test -n "$SSL_CFLAGS"; then
18243     pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
18244  elif test -n "$PKG_CONFIG"; then
18245     if test -n "$PKG_CONFIG" && \
18246     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18247   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18248   ac_status=$?
18249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250   test $ac_status = 0; }; then
18251   pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
18252                       test "x$?" != "x0" && pkg_failed=yes
18253 else
18254   pkg_failed=yes
18255 fi
18256  else
18257     pkg_failed=untried
18258 fi
18259 if test -n "$SSL_LIBS"; then
18260     pkg_cv_SSL_LIBS="$SSL_LIBS"
18261  elif test -n "$PKG_CONFIG"; then
18262     if test -n "$PKG_CONFIG" && \
18263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18264   ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18265   ac_status=$?
18266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267   test $ac_status = 0; }; then
18268   pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
18269                       test "x$?" != "x0" && pkg_failed=yes
18270 else
18271   pkg_failed=yes
18272 fi
18273  else
18274     pkg_failed=untried
18275 fi
18276
18277
18278
18279 if test $pkg_failed = yes; then
18280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18281 $as_echo "no" >&6; }
18282
18283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18284         _pkg_short_errors_supported=yes
18285 else
18286         _pkg_short_errors_supported=no
18287 fi
18288         if test $_pkg_short_errors_supported = yes; then
18289                 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18290         else
18291                 SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18292         fi
18293         # Put the nasty error message in config.log where it belongs
18294         echo "$SSL_PKG_ERRORS" >&5
18295
18296         as_fn_error $? "Package requirements (openssl) were not met:
18297
18298 $SSL_PKG_ERRORS
18299
18300 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18301 installed software in a non-standard prefix.
18302
18303 Alternatively, you may set the environment variables SSL_CFLAGS
18304 and SSL_LIBS to avoid the need to call pkg-config.
18305 See the pkg-config man page for more details." "$LINENO" 5
18306 elif test $pkg_failed = untried; then
18307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18309         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18311 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18312 is in your PATH or set the PKG_CONFIG environment variable to the full
18313 path to pkg-config.
18314
18315 Alternatively, you may set the environment variables SSL_CFLAGS
18316 and SSL_LIBS to avoid the need to call pkg-config.
18317 See the pkg-config man page for more details.
18318
18319 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18320 See \`config.log' for more details" "$LINENO" 5; }
18321 else
18322         SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
18323         SSL_LIBS=$pkg_cv_SSL_LIBS
18324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18325 $as_echo "yes" >&6; }
18326
18327 fi
18328
18329
18330 SPICE_REQUIRES+=" openssl >= 1.0.1"
18331
18332 # These are commented out because the gl libraries on RHEL 5 do not have pkgconfig files
18333 #
18334 # PKG_CHECK_MODULES(GL, gl glu)
18335 # AC_SUBST(GL_CFLAGS)
18336 # AC_SUBST(GL_LIBS)
18337 # SPICE_REQUIRES+=" gl glu"
18338
18339 if test "x$enable_opengl" = "xyes"; then
18340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBlendFunc in -lGL" >&5
18341 $as_echo_n "checking for glBlendFunc in -lGL... " >&6; }
18342 if ${ac_cv_lib_GL_glBlendFunc+:} false; then :
18343   $as_echo_n "(cached) " >&6
18344 else
18345   ac_check_lib_save_LIBS=$LIBS
18346 LIBS="-lGL  $LIBS"
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h.  */
18349
18350 /* Override any GCC internal prototype to avoid an error.
18351    Use char because int might match the return type of a GCC
18352    builtin and then its argument prototype would still apply.  */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 char glBlendFunc ();
18357 int
18358 main ()
18359 {
18360 return glBlendFunc ();
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 if ac_fn_c_try_link "$LINENO"; then :
18366   ac_cv_lib_GL_glBlendFunc=yes
18367 else
18368   ac_cv_lib_GL_glBlendFunc=no
18369 fi
18370 rm -f core conftest.err conftest.$ac_objext \
18371     conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBlendFunc" >&5
18375 $as_echo "$ac_cv_lib_GL_glBlendFunc" >&6; }
18376 if test "x$ac_cv_lib_GL_glBlendFunc" = xyes; then :
18377   GL_LIBS="$GL_LIBS -lGL"
18378 else
18379   enable_opengl=no
18380 fi
18381
18382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluSphere in -lGLU" >&5
18383 $as_echo_n "checking for gluSphere in -lGLU... " >&6; }
18384 if ${ac_cv_lib_GLU_gluSphere+:} false; then :
18385   $as_echo_n "(cached) " >&6
18386 else
18387   ac_check_lib_save_LIBS=$LIBS
18388 LIBS="-lGLU  $LIBS"
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h.  */
18391
18392 /* Override any GCC internal prototype to avoid an error.
18393    Use char because int might match the return type of a GCC
18394    builtin and then its argument prototype would still apply.  */
18395 #ifdef __cplusplus
18396 extern "C"
18397 #endif
18398 char gluSphere ();
18399 int
18400 main ()
18401 {
18402 return gluSphere ();
18403   ;
18404   return 0;
18405 }
18406 _ACEOF
18407 if ac_fn_c_try_link "$LINENO"; then :
18408   ac_cv_lib_GLU_gluSphere=yes
18409 else
18410   ac_cv_lib_GLU_gluSphere=no
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext \
18413     conftest$ac_exeext conftest.$ac_ext
18414 LIBS=$ac_check_lib_save_LIBS
18415 fi
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluSphere" >&5
18417 $as_echo "$ac_cv_lib_GLU_gluSphere" >&6; }
18418 if test "x$ac_cv_lib_GLU_gluSphere" = xyes; then :
18419   GL_LIBS="$GL_LIBS -lGLU"
18420 else
18421   enable_opengl=no
18422 fi
18423
18424
18425 $as_echo "#define USE_OPENGL 1" >>confdefs.h
18426
18427
18428 $as_echo "#define GL_GLEXT_PROTOTYPES /**/" >>confdefs.h
18429
18430
18431    if test "x$enable_opengl" = "xno"; then
18432       as_fn_error $? "GL libraries not available" "$LINENO" 5
18433    fi
18434 fi
18435
18436
18437
18438 SPICE_NONPKGCONFIG_LIBS+=" $GL_LIBS"
18439
18440 if test "x$red_target" = "xx11" && test "x$enable_client" = "xyes" ; then
18441
18442 pkg_failed=no
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
18444 $as_echo_n "checking for XRANDR... " >&6; }
18445
18446 if test -n "$XRANDR_CFLAGS"; then
18447     pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
18448  elif test -n "$PKG_CONFIG"; then
18449     if test -n "$PKG_CONFIG" && \
18450     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
18451   ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
18452   ac_status=$?
18453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18454   test $ac_status = 0; }; then
18455   pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
18456                       test "x$?" != "x0" && pkg_failed=yes
18457 else
18458   pkg_failed=yes
18459 fi
18460  else
18461     pkg_failed=untried
18462 fi
18463 if test -n "$XRANDR_LIBS"; then
18464     pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
18465  elif test -n "$PKG_CONFIG"; then
18466     if test -n "$PKG_CONFIG" && \
18467     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
18468   ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
18469   ac_status=$?
18470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18471   test $ac_status = 0; }; then
18472   pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
18473                       test "x$?" != "x0" && pkg_failed=yes
18474 else
18475   pkg_failed=yes
18476 fi
18477  else
18478     pkg_failed=untried
18479 fi
18480
18481
18482
18483 if test $pkg_failed = yes; then
18484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18485 $as_echo "no" >&6; }
18486
18487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18488         _pkg_short_errors_supported=yes
18489 else
18490         _pkg_short_errors_supported=no
18491 fi
18492         if test $_pkg_short_errors_supported = yes; then
18493                 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
18494         else
18495                 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
18496         fi
18497         # Put the nasty error message in config.log where it belongs
18498         echo "$XRANDR_PKG_ERRORS" >&5
18499
18500         as_fn_error $? "Package requirements (xrandr) were not met:
18501
18502 $XRANDR_PKG_ERRORS
18503
18504 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18505 installed software in a non-standard prefix.
18506
18507 Alternatively, you may set the environment variables XRANDR_CFLAGS
18508 and XRANDR_LIBS to avoid the need to call pkg-config.
18509 See the pkg-config man page for more details." "$LINENO" 5
18510 elif test $pkg_failed = untried; then
18511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18513         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18515 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18516 is in your PATH or set the PKG_CONFIG environment variable to the full
18517 path to pkg-config.
18518
18519 Alternatively, you may set the environment variables XRANDR_CFLAGS
18520 and XRANDR_LIBS to avoid the need to call pkg-config.
18521 See the pkg-config man page for more details.
18522
18523 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18524 See \`config.log' for more details" "$LINENO" 5; }
18525 else
18526         XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
18527         XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
18528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18529 $as_echo "yes" >&6; }
18530
18531 fi
18532
18533 pkg_failed=no
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
18535 $as_echo_n "checking for XFIXES... " >&6; }
18536
18537 if test -n "$XFIXES_CFLAGS"; then
18538     pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
18539  elif test -n "$PKG_CONFIG"; then
18540     if test -n "$PKG_CONFIG" && \
18541     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18542   ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18543   ac_status=$?
18544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18545   test $ac_status = 0; }; then
18546   pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
18547                       test "x$?" != "x0" && pkg_failed=yes
18548 else
18549   pkg_failed=yes
18550 fi
18551  else
18552     pkg_failed=untried
18553 fi
18554 if test -n "$XFIXES_LIBS"; then
18555     pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
18556  elif test -n "$PKG_CONFIG"; then
18557     if test -n "$PKG_CONFIG" && \
18558     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
18559   ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
18560   ac_status=$?
18561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18562   test $ac_status = 0; }; then
18563   pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
18564                       test "x$?" != "x0" && pkg_failed=yes
18565 else
18566   pkg_failed=yes
18567 fi
18568  else
18569     pkg_failed=untried
18570 fi
18571
18572
18573
18574 if test $pkg_failed = yes; then
18575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18576 $as_echo "no" >&6; }
18577
18578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18579         _pkg_short_errors_supported=yes
18580 else
18581         _pkg_short_errors_supported=no
18582 fi
18583         if test $_pkg_short_errors_supported = yes; then
18584                 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
18585         else
18586                 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
18587         fi
18588         # Put the nasty error message in config.log where it belongs
18589         echo "$XFIXES_PKG_ERRORS" >&5
18590
18591         as_fn_error $? "Package requirements (xfixes) were not met:
18592
18593 $XFIXES_PKG_ERRORS
18594
18595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18596 installed software in a non-standard prefix.
18597
18598 Alternatively, you may set the environment variables XFIXES_CFLAGS
18599 and XFIXES_LIBS to avoid the need to call pkg-config.
18600 See the pkg-config man page for more details." "$LINENO" 5
18601 elif test $pkg_failed = untried; then
18602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603 $as_echo "no" >&6; }
18604         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18606 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18607 is in your PATH or set the PKG_CONFIG environment variable to the full
18608 path to pkg-config.
18609
18610 Alternatively, you may set the environment variables XFIXES_CFLAGS
18611 and XFIXES_LIBS to avoid the need to call pkg-config.
18612 See the pkg-config man page for more details.
18613
18614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18615 See \`config.log' for more details" "$LINENO" 5; }
18616 else
18617         XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
18618         XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
18619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18620 $as_echo "yes" >&6; }
18621
18622 fi
18623
18624 pkg_failed=no
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MISC_X" >&5
18626 $as_echo_n "checking for MISC_X... " >&6; }
18627
18628 if test -n "$MISC_X_CFLAGS"; then
18629     pkg_cv_MISC_X_CFLAGS="$MISC_X_CFLAGS"
18630  elif test -n "$PKG_CONFIG"; then
18631     if test -n "$PKG_CONFIG" && \
18632     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xrender\""; } >&5
18633   ($PKG_CONFIG --exists --print-errors "x11 xext xrender") 2>&5
18634   ac_status=$?
18635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18636   test $ac_status = 0; }; then
18637   pkg_cv_MISC_X_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xrender" 2>/dev/null`
18638                       test "x$?" != "x0" && pkg_failed=yes
18639 else
18640   pkg_failed=yes
18641 fi
18642  else
18643     pkg_failed=untried
18644 fi
18645 if test -n "$MISC_X_LIBS"; then
18646     pkg_cv_MISC_X_LIBS="$MISC_X_LIBS"
18647  elif test -n "$PKG_CONFIG"; then
18648     if test -n "$PKG_CONFIG" && \
18649     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xrender\""; } >&5
18650   ($PKG_CONFIG --exists --print-errors "x11 xext xrender") 2>&5
18651   ac_status=$?
18652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18653   test $ac_status = 0; }; then
18654   pkg_cv_MISC_X_LIBS=`$PKG_CONFIG --libs "x11 xext xrender" 2>/dev/null`
18655                       test "x$?" != "x0" && pkg_failed=yes
18656 else
18657   pkg_failed=yes
18658 fi
18659  else
18660     pkg_failed=untried
18661 fi
18662
18663
18664
18665 if test $pkg_failed = yes; then
18666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 $as_echo "no" >&6; }
18668
18669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18670         _pkg_short_errors_supported=yes
18671 else
18672         _pkg_short_errors_supported=no
18673 fi
18674         if test $_pkg_short_errors_supported = yes; then
18675                 MISC_X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xrender" 2>&1`
18676         else
18677                 MISC_X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xrender" 2>&1`
18678         fi
18679         # Put the nasty error message in config.log where it belongs
18680         echo "$MISC_X_PKG_ERRORS" >&5
18681
18682         as_fn_error $? "Package requirements (x11 xext xrender) were not met:
18683
18684 $MISC_X_PKG_ERRORS
18685
18686 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18687 installed software in a non-standard prefix.
18688
18689 Alternatively, you may set the environment variables MISC_X_CFLAGS
18690 and MISC_X_LIBS to avoid the need to call pkg-config.
18691 See the pkg-config man page for more details." "$LINENO" 5
18692 elif test $pkg_failed = untried; then
18693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694 $as_echo "no" >&6; }
18695         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18697 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18698 is in your PATH or set the PKG_CONFIG environment variable to the full
18699 path to pkg-config.
18700
18701 Alternatively, you may set the environment variables MISC_X_CFLAGS
18702 and MISC_X_LIBS to avoid the need to call pkg-config.
18703 See the pkg-config man page for more details.
18704
18705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18706 See \`config.log' for more details" "$LINENO" 5; }
18707 else
18708         MISC_X_CFLAGS=$pkg_cv_MISC_X_CFLAGS
18709         MISC_X_LIBS=$pkg_cv_MISC_X_LIBS
18710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18711 $as_echo "yes" >&6; }
18712
18713 fi
18714
18715
18716
18717
18718
18719
18720 pkg_failed=no
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR12" >&5
18722 $as_echo_n "checking for XRANDR12... " >&6; }
18723
18724 if test -n "$XRANDR12_CFLAGS"; then
18725     pkg_cv_XRANDR12_CFLAGS="$XRANDR12_CFLAGS"
18726  elif test -n "$PKG_CONFIG"; then
18727     if test -n "$PKG_CONFIG" && \
18728     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
18729   ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
18730   ac_status=$?
18731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18732   test $ac_status = 0; }; then
18733   pkg_cv_XRANDR12_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2" 2>/dev/null`
18734                       test "x$?" != "x0" && pkg_failed=yes
18735 else
18736   pkg_failed=yes
18737 fi
18738  else
18739     pkg_failed=untried
18740 fi
18741 if test -n "$XRANDR12_LIBS"; then
18742     pkg_cv_XRANDR12_LIBS="$XRANDR12_LIBS"
18743  elif test -n "$PKG_CONFIG"; then
18744     if test -n "$PKG_CONFIG" && \
18745     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
18746   ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
18747   ac_status=$?
18748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749   test $ac_status = 0; }; then
18750   pkg_cv_XRANDR12_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2" 2>/dev/null`
18751                       test "x$?" != "x0" && pkg_failed=yes
18752 else
18753   pkg_failed=yes
18754 fi
18755  else
18756     pkg_failed=untried
18757 fi
18758
18759
18760
18761 if test $pkg_failed = yes; then
18762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18764
18765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18766         _pkg_short_errors_supported=yes
18767 else
18768         _pkg_short_errors_supported=no
18769 fi
18770         if test $_pkg_short_errors_supported = yes; then
18771                 XRANDR12_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2" 2>&1`
18772         else
18773                 XRANDR12_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2" 2>&1`
18774         fi
18775         # Put the nasty error message in config.log where it belongs
18776         echo "$XRANDR12_PKG_ERRORS" >&5
18777
18778         have_xrandr12=no
18779 elif test $pkg_failed = untried; then
18780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781 $as_echo "no" >&6; }
18782         have_xrandr12=no
18783 else
18784         XRANDR12_CFLAGS=$pkg_cv_XRANDR12_CFLAGS
18785         XRANDR12_LIBS=$pkg_cv_XRANDR12_LIBS
18786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18787 $as_echo "yes" >&6; }
18788         have_xrandr12=yes
18789 fi
18790 else
18791         have_xrandr12=no
18792 fi
18793
18794  if test "x$have_xrandr12" = "xyes"; then
18795   HAVE_XRANDR12_TRUE=
18796   HAVE_XRANDR12_FALSE='#'
18797 else
18798   HAVE_XRANDR12_TRUE='#'
18799   HAVE_XRANDR12_FALSE=
18800 fi
18801
18802 if test "x$have_xrandr12" = "xyes" ; then
18803
18804 $as_echo "#define HAVE_XRANDR12 /**/" >>confdefs.h
18805
18806 fi
18807
18808 # Add parameter for libXinerama
18809 # Check whether --enable-xinerama was given.
18810 if test "${enable_xinerama+set}" = set; then :
18811   enableval=$enable_xinerama;
18812 fi
18813
18814
18815 if test "x$enable_xinerama" != "xno"; then
18816
18817 pkg_failed=no
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
18819 $as_echo_n "checking for XINERAMA... " >&6; }
18820
18821 if test -n "$XINERAMA_CFLAGS"; then
18822     pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
18823  elif test -n "$PKG_CONFIG"; then
18824     if test -n "$PKG_CONFIG" && \
18825     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama >= 1.0\""; } >&5
18826   ($PKG_CONFIG --exists --print-errors "xinerama >= 1.0") 2>&5
18827   ac_status=$?
18828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18829   test $ac_status = 0; }; then
18830   pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama >= 1.0" 2>/dev/null`
18831                       test "x$?" != "x0" && pkg_failed=yes
18832 else
18833   pkg_failed=yes
18834 fi
18835  else
18836     pkg_failed=untried
18837 fi
18838 if test -n "$XINERAMA_LIBS"; then
18839     pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
18840  elif test -n "$PKG_CONFIG"; then
18841     if test -n "$PKG_CONFIG" && \
18842     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama >= 1.0\""; } >&5
18843   ($PKG_CONFIG --exists --print-errors "xinerama >= 1.0") 2>&5
18844   ac_status=$?
18845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846   test $ac_status = 0; }; then
18847   pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama >= 1.0" 2>/dev/null`
18848                       test "x$?" != "x0" && pkg_failed=yes
18849 else
18850   pkg_failed=yes
18851 fi
18852  else
18853     pkg_failed=untried
18854 fi
18855
18856
18857
18858 if test $pkg_failed = yes; then
18859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860 $as_echo "no" >&6; }
18861
18862 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18863         _pkg_short_errors_supported=yes
18864 else
18865         _pkg_short_errors_supported=no
18866 fi
18867         if test $_pkg_short_errors_supported = yes; then
18868                 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama >= 1.0" 2>&1`
18869         else
18870                 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama >= 1.0" 2>&1`
18871         fi
18872         # Put the nasty error message in config.log where it belongs
18873         echo "$XINERAMA_PKG_ERRORS" >&5
18874
18875         have_xinerama=no
18876 elif test $pkg_failed = untried; then
18877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878 $as_echo "no" >&6; }
18879         have_xinerama=no
18880 else
18881         XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
18882         XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
18883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884 $as_echo "yes" >&6; }
18885         have_xinerama=yes
18886 fi
18887 else
18888     have_xinerama=no
18889 fi
18890
18891 if test "x$enable_xinerama" = "xyes" && test "x$have_xinerama" = "xno"; then
18892     as_fn_error $? "Requested Xinerama library was not found" "$LINENO" 5
18893 fi
18894
18895  if test "x$have_xinerama" = "xyes"; then
18896   HAVE_XINERAMA_TRUE=
18897   HAVE_XINERAMA_FALSE='#'
18898 else
18899   HAVE_XINERAMA_TRUE='#'
18900   HAVE_XINERAMA_FALSE=
18901 fi
18902
18903 if test "x$have_xinerama" = "xyes" ; then
18904
18905 $as_echo "#define HAVE_XINERAMA /**/" >>confdefs.h
18906
18907
18908
18909   SPICE_REQUIRES+=" xinerama"
18910 fi
18911
18912 # Add parameter for (partial) static linkage of spice client.
18913 # this is used to achive single binary package for all (?) distros.
18914 # Check whether --enable-static-linkage was given.
18915 if test "${enable_static_linkage+set}" = set; then :
18916   enableval=$enable_static_linkage;
18917 else
18918   enable_static_linkage="no"
18919 fi
18920
18921 if test x"$enable_static_linkage" != "xno"; then :
18922   SPICEC_STATIC_LINKAGE_BSTATIC="-Wl,-Bstatic"
18923 fi
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
18926 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
18927 if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
18928   $as_echo_n "(cached) " >&6
18929 else
18930   ac_check_lib_save_LIBS=$LIBS
18931 LIBS="-ljpeg  $LIBS"
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h.  */
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936    Use char because int might match the return type of a GCC
18937    builtin and then its argument prototype would still apply.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char jpeg_destroy_decompress ();
18942 int
18943 main ()
18944 {
18945 return jpeg_destroy_decompress ();
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 if ac_fn_c_try_link "$LINENO"; then :
18951   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
18952 else
18953   ac_cv_lib_jpeg_jpeg_destroy_decompress=no
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext \
18956     conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18958 fi
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
18960 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
18961 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
18962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5
18963 $as_echo_n "checking for jpeglib.h... " >&6; }
18964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h.  */
18966 #include <stdio.h>
18967 #undef PACKAGE
18968 #undef VERSION
18969 #undef HAVE_STDLIB_H
18970 #include <jpeglib.h>
18971 _ACEOF
18972 if ac_fn_c_try_cpp "$LINENO"; then :
18973   JPEG_LIBS='-ljpeg'
18974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeg_ok" >&5
18975 $as_echo "$jpeg_ok" >&6; }
18976 else
18977   as_fn_error $? "jpeglib.h not found" "$LINENO" 5
18978 fi
18979 rm -f conftest.err conftest.i conftest.$ac_ext
18980 else
18981   as_fn_error $? "libjpeg not found" "$LINENO" 5
18982 fi
18983
18984
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
18987 $as_echo_n "checking for deflate in -lz... " >&6; }
18988 if ${ac_cv_lib_z_deflate+:} false; then :
18989   $as_echo_n "(cached) " >&6
18990 else
18991   ac_check_lib_save_LIBS=$LIBS
18992 LIBS="-lz  $LIBS"
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h.  */
18995
18996 /* Override any GCC internal prototype to avoid an error.
18997    Use char because int might match the return type of a GCC
18998    builtin and then its argument prototype would still apply.  */
18999 #ifdef __cplusplus
19000 extern "C"
19001 #endif
19002 char deflate ();
19003 int
19004 main ()
19005 {
19006 return deflate ();
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_link "$LINENO"; then :
19012   ac_cv_lib_z_deflate=yes
19013 else
19014   ac_cv_lib_z_deflate=no
19015 fi
19016 rm -f core conftest.err conftest.$ac_objext \
19017     conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19019 fi
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
19021 $as_echo "$ac_cv_lib_z_deflate" >&6; }
19022 if test "x$ac_cv_lib_z_deflate" = xyes; then :
19023   Z_LIBS='-lz'
19024 else
19025   as_fn_error $? "zlib not found" "$LINENO" 5
19026 fi
19027
19028
19029
19030
19031 # Check whether --with-sasl was given.
19032 if test "${with_sasl+set}" = set; then :
19033   withval=$with_sasl;
19034 else
19035   with_sasl=check
19036 fi
19037
19038
19039 SASL_CFLAGS=
19040 SASL_LIBS=
19041 enable_sasl=no
19042 if test "x$with_sasl" != "xno"; then
19043   if test "x$with_sasl" != "xyes" && test "x$with_sasl" != "xcheck"; then
19044     SASL_CFLAGS="-I$with_sasl"
19045     SASL_LIBS="-L$with_sasl"
19046   fi
19047   fail=0
19048   old_cflags="$CFLAGS"
19049   old_libs="$LIBS"
19050   CFLAGS="$CFLAGS $SASL_CFLAGS"
19051   LIBS="$LIBS $SASL_LIBS"
19052   ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
19053 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
19054
19055 else
19056
19057     if test "x$with_sasl" != "xcheck" ; then
19058         with_sasl=no
19059     else
19060         fail=1
19061     fi
19062 fi
19063
19064
19065   if test "x$with_sasl" != "xno" ; then
19066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
19067 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
19068 if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
19069   $as_echo_n "(cached) " >&6
19070 else
19071   ac_check_lib_save_LIBS=$LIBS
19072 LIBS="-lsasl2  $LIBS"
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h.  */
19075
19076 /* Override any GCC internal prototype to avoid an error.
19077    Use char because int might match the return type of a GCC
19078    builtin and then its argument prototype would still apply.  */
19079 #ifdef __cplusplus
19080 extern "C"
19081 #endif
19082 char sasl_client_init ();
19083 int
19084 main ()
19085 {
19086 return sasl_client_init ();
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 if ac_fn_c_try_link "$LINENO"; then :
19092   ac_cv_lib_sasl2_sasl_client_init=yes
19093 else
19094   ac_cv_lib_sasl2_sasl_client_init=no
19095 fi
19096 rm -f core conftest.err conftest.$ac_objext \
19097     conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19099 fi
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
19101 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
19102 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
19103   with_sasl2=yes
19104 else
19105   with_sasl2=no
19106 fi
19107
19108   fi
19109   if test "x$with_sasl2" = "xno" && test "x$with_sasl" != "xno" ; then
19110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
19111 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
19112 if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
19113   $as_echo_n "(cached) " >&6
19114 else
19115   ac_check_lib_save_LIBS=$LIBS
19116 LIBS="-lsasl  $LIBS"
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h.  */
19119
19120 /* Override any GCC internal prototype to avoid an error.
19121    Use char because int might match the return type of a GCC
19122    builtin and then its argument prototype would still apply.  */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 char sasl_client_init ();
19127 int
19128 main ()
19129 {
19130 return sasl_client_init ();
19131   ;
19132   return 0;
19133 }
19134 _ACEOF
19135 if ac_fn_c_try_link "$LINENO"; then :
19136   ac_cv_lib_sasl_sasl_client_init=yes
19137 else
19138   ac_cv_lib_sasl_sasl_client_init=no
19139 fi
19140 rm -f core conftest.err conftest.$ac_objext \
19141     conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19143 fi
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
19145 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
19146 if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
19147   with_sasl=yes
19148 else
19149   with_sasl=no
19150 fi
19151
19152   fi
19153   if test "x$with_sasl2" = "xyes"; then
19154     SASL_LIBS="$SASL_LIBS -lsasl2"
19155   elif test "x$with_sasl" = "xyes"; then
19156     SASL_LIBS="$SASL_LIBS -lsasl"
19157   else
19158     as_fn_error $? "Missing required Cyrus SASL development package" "$LINENO" 5
19159   fi
19160   CFLAGS="$old_cflags"
19161   LIBS="$old_libs"
19162   if test "x$with_sasl2" = "xyes" || test "x$with_sasl" = "xyes" ; then
19163
19164 cat >>confdefs.h <<_ACEOF
19165 #define HAVE_SASL 1
19166 _ACEOF
19167
19168     enable_sasl=yes
19169   fi
19170 fi
19171  if test "x$with_sasl2" = "xyes" || test "x$with_sasl" = "xyes"; then
19172   HAVE_SASL_TRUE=
19173   HAVE_SASL_FALSE='#'
19174 else
19175   HAVE_SASL_TRUE='#'
19176   HAVE_SASL_FALSE=
19177 fi
19178
19179
19180
19181
19182 if test "x$enable_automated_tests" = "xyes"; then
19183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snappy" >&5
19184 $as_echo_n "checking for snappy... " >&6; }
19185     snappy --help >/dev/null 2>&1
19186     if test $? -ne 0 ; then
19187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19188 $as_echo "not found" >&6; }
19189         as_fn_error $? "snappy was not found, this module is part of spice-gtk andis required to compile this package" "$LINENO" 5
19190     fi
19191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
19192 $as_echo "found" >&6; }
19193 fi
19194
19195
19196
19197
19198     # Check whether --enable-werror was given.
19199 if test "${enable_werror+set}" = set; then :
19200   enableval=$enable_werror; set_werror="$enableval"
19201 else
19202   if test -d $srcdir/.git; then
19203                      is_git_version=true
19204                      set_werror=yes
19205                    else
19206                      set_werror=no
19207                    fi
19208 fi
19209
19210
19211     # List of warnings that are not relevant / wanted
19212
19213     # Don't care about C++ compiler compat
19214     dontwarn="$dontwarn -Wc++-compat"
19215     dontwarn="$dontwarn -Wabi"
19216     dontwarn="$dontwarn -Wdeprecated"
19217     # Don't care about ancient C standard compat
19218     dontwarn="$dontwarn -Wtraditional"
19219     # Don't care about ancient C standard compat
19220     dontwarn="$dontwarn -Wtraditional-conversion"
19221     # Ignore warnings in /usr/include
19222     dontwarn="$dontwarn -Wsystem-headers"
19223     # Happy for compiler to add struct padding
19224     dontwarn="$dontwarn -Wpadded"
19225     # GCC very confused with -O2
19226     dontwarn="$dontwarn -Wunreachable-code"
19227
19228
19229     dontwarn="$dontwarn -Wconversion"
19230     dontwarn="$dontwarn -Wsign-conversion"
19231     dontwarn="$dontwarn -Wvla"
19232     dontwarn="$dontwarn -Wundef"
19233     dontwarn="$dontwarn -Wcast-qual"
19234     dontwarn="$dontwarn -Wlong-long"
19235     dontwarn="$dontwarn -Wswitch-default"
19236     dontwarn="$dontwarn -Wswitch-enum"
19237     dontwarn="$dontwarn -Wstrict-overflow"
19238     dontwarn="$dontwarn -Wunsafe-loop-optimizations"
19239     dontwarn="$dontwarn -Wformat-nonliteral"
19240     dontwarn="$dontwarn -Wfloat-equal"
19241     dontwarn="$dontwarn -Wdeclaration-after-statement"
19242     dontwarn="$dontwarn -Wcast-qual"
19243     dontwarn="$dontwarn -Wconversion"
19244     dontwarn="$dontwarn -Wsign-conversion"
19245     dontwarn="$dontwarn -Wpacked"
19246     dontwarn="$dontwarn -Wunused-macros"
19247     dontwarn="$dontwarn -Woverlength-strings"
19248     dontwarn="$dontwarn -Wstack-protector"
19249     dontwarn="$dontwarn -Winline"
19250     dontwarn="$dontwarn -Wbad-function-cast"
19251     dontwarn="$dontwarn -Wshadow"
19252
19253     # We want to enable thse, but need to sort out the
19254     # decl mess with  gtk/generated_*.c
19255     dontwarn="$dontwarn -Wmissing-prototypes"
19256     dontwarn="$dontwarn -Wmissing-declarations"
19257
19258     # Stuff that C++ won't allow. Turn them back on later
19259     dontwarn="$dontwarn -Waggregate-return"
19260     dontwarn="$dontwarn -Wstrict-prototypes"
19261     dontwarn="$dontwarn -Wold-style-definition"
19262     dontwarn="$dontwarn -Wnested-externs"
19263     dontwarn="$dontwarn -Wformat-zero-length"
19264     dontwarn="$dontwarn -Wpointer-to-int-cast"
19265     dontwarn="$dontwarn -Wjump-misses-init"
19266
19267     # Issues in x11/platform_utils.cpp prevent us turning this on
19268     dontwarn="$dontwarn -Wmissing-format-attribute"
19269
19270     # Get all possible GCC warnings
19271
19272
19273   if test -n "$GCC"; then
19274
19275             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
19276 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
19277     if ${gl_cv_cc_nomfi_supported+:} false; then :
19278   $as_echo_n "(cached) " >&6
19279 else
19280
19281       gl_save_CFLAGS="$CFLAGS"
19282       CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
19283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h.  */
19285
19286 int
19287 main ()
19288 {
19289
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 if ac_fn_c_try_compile "$LINENO"; then :
19295   gl_cv_cc_nomfi_supported=yes
19296 else
19297   gl_cv_cc_nomfi_supported=no
19298 fi
19299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19300       CFLAGS="$gl_save_CFLAGS"
19301 fi
19302
19303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
19304 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
19305
19306     if test "$gl_cv_cc_nomfi_supported" = yes; then
19307                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
19308 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
19309       if ${gl_cv_cc_nomfi_needed+:} false; then :
19310   $as_echo_n "(cached) " >&6
19311 else
19312
19313         gl_save_CFLAGS="$CFLAGS"
19314         CFLAGS="$CFLAGS -W -Werror"
19315         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h.  */
19317 void f (void)
19318                {
19319                  typedef struct { int a; int b; } s_t;
19320                  s_t s1 = { 0, };
19321                }
19322
19323 int
19324 main ()
19325 {
19326
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 if ac_fn_c_try_compile "$LINENO"; then :
19332   gl_cv_cc_nomfi_needed=no
19333 else
19334   gl_cv_cc_nomfi_needed=yes
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337         CFLAGS="$gl_save_CFLAGS"
19338
19339 fi
19340
19341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
19342 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
19343     fi
19344   fi
19345
19346   gl_manywarn_set=
19347   for gl_manywarn_item in \
19348     -Wall \
19349     -W \
19350     -Wformat-y2k \
19351     -Wformat-nonliteral \
19352     -Wformat-security \
19353     -Winit-self \
19354     -Wmissing-include-dirs \
19355     -Wswitch-default \
19356     -Wswitch-enum \
19357     -Wunused \
19358     -Wunknown-pragmas \
19359     -Wstrict-aliasing \
19360     -Wstrict-overflow \
19361     -Wsystem-headers \
19362     -Wfloat-equal \
19363     -Wtraditional \
19364     -Wtraditional-conversion \
19365     -Wdeclaration-after-statement \
19366     -Wundef \
19367     -Wshadow \
19368     -Wunsafe-loop-optimizations \
19369     -Wpointer-arith \
19370     -Wbad-function-cast \
19371     -Wc++-compat \
19372     -Wcast-qual \
19373     -Wcast-align \
19374     -Wwrite-strings \
19375     -Wconversion \
19376     -Wsign-conversion \
19377     -Wlogical-op \
19378     -Waggregate-return \
19379     -Wstrict-prototypes \
19380     -Wold-style-definition \
19381     -Wmissing-prototypes \
19382     -Wmissing-declarations \
19383     -Wmissing-noreturn \
19384     -Wmissing-format-attribute \
19385     -Wpacked \
19386     -Wpadded \
19387     -Wredundant-decls \
19388     -Wnested-externs \
19389     -Wunreachable-code \
19390     -Winline \
19391     -Winvalid-pch \
19392     -Wlong-long \
19393     -Wvla \
19394     -Wvolatile-register-var \
19395     -Wdisabled-optimization \
19396     -Wstack-protector \
19397     -Woverlength-strings \
19398     -Wbuiltin-macro-redefined \
19399     -Wmudflap \
19400     -Wpacked-bitfield-compat \
19401     -Wsync-nand \
19402     ; do
19403     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
19404   done
19405   # The following are not documented in the manual but are included in
19406   # output from gcc --help=warnings.
19407   for gl_manywarn_item in \
19408     -Wattributes \
19409     -Wcoverage-mismatch \
19410     -Wmultichar \
19411     -Wunused-macros \
19412     ; do
19413     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
19414   done
19415   # More warnings from gcc 4.6.2 --help=warnings.
19416   for gl_manywarn_item in \
19417     -Wabi \
19418     -Wcpp \
19419     -Wdeprecated \
19420     -Wdeprecated-declarations \
19421     -Wdiv-by-zero \
19422     -Wdouble-promotion \
19423     -Wendif-labels \
19424     -Wextra \
19425     -Wformat-contains-nul \
19426     -Wformat-extra-args \
19427     -Wformat-zero-length \
19428     -Wformat=2 \
19429     -Wmultichar \
19430     -Wnormalized=nfc \
19431     -Woverflow \
19432     -Wpointer-to-int-cast \
19433     -Wpragmas \
19434     -Wsuggest-attribute=const \
19435     -Wsuggest-attribute=noreturn \
19436     -Wsuggest-attribute=pure \
19437     -Wtrampolines \
19438     ; do
19439     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
19440   done
19441
19442   # Disable the missing-field-initializers warning if needed
19443   if test "$gl_cv_cc_nomfi_needed" = yes; then
19444     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
19445   fi
19446
19447   maybewarn=$gl_manywarn_set
19448
19449
19450     # Remove the ones we don't want, blacklisted earlier
19451
19452   gl_warn_set=
19453   set x $maybewarn; shift
19454   for gl_warn_item
19455   do
19456     case " $dontwarn " in
19457       *" $gl_warn_item "*)
19458         ;;
19459       *)
19460         gl_warn_set="$gl_warn_set $gl_warn_item"
19461         ;;
19462     esac
19463   done
19464   wantwarn=$gl_warn_set
19465
19466
19467     # Check for $CC support of each warning
19468     for w in $wantwarn; do
19469       as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
19471 $as_echo_n "checking whether compiler handles $w... " >&6; }
19472 if eval \${$as_gl_Warn+:} false; then :
19473   $as_echo_n "(cached) " >&6
19474 else
19475
19476   gl_save_CPPFLAGS="$CPPFLAGS"
19477   CPPFLAGS="${CPPFLAGS} $w"
19478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h.  */
19480
19481 int
19482 main ()
19483 {
19484
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 if ac_fn_c_try_cpp "$LINENO"; then :
19490   eval "$as_gl_Warn=yes"
19491 else
19492   eval "$as_gl_Warn=no"
19493 fi
19494 rm -f conftest.err conftest.i conftest.$ac_ext
19495   CPPFLAGS="$gl_save_CPPFLAGS"
19496
19497 fi
19498 eval ac_res=\$$as_gl_Warn
19499                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19500 $as_echo "$ac_res" >&6; }
19501 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
19502   as_fn_append WARN_CFLAGS " $w"
19503 fi
19504
19505     done
19506
19507     # GNULIB uses '-W' (aka -Wextra) which includes a bunch of stuff.
19508     # Unfortunately, this means you can't simply use '-Wsign-compare'
19509     # with gl_MANYWARN_COMPLEMENT
19510     # So we have -W enabled, and then have to explicitly turn off...
19511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-sign-compare" >&5
19512 $as_echo_n "checking whether compiler handles -Wno-sign-compare... " >&6; }
19513 if ${gl_cv_warn__Wno_sign_compare+:} false; then :
19514   $as_echo_n "(cached) " >&6
19515 else
19516
19517   gl_save_CPPFLAGS="$CPPFLAGS"
19518   CPPFLAGS="${CPPFLAGS} -Wno-sign-compare"
19519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h.  */
19521
19522 int
19523 main ()
19524 {
19525
19526   ;
19527   return 0;
19528 }
19529 _ACEOF
19530 if ac_fn_c_try_cpp "$LINENO"; then :
19531   gl_cv_warn__Wno_sign_compare=yes
19532 else
19533   gl_cv_warn__Wno_sign_compare=no
19534 fi
19535 rm -f conftest.err conftest.i conftest.$ac_ext
19536   CPPFLAGS="$gl_save_CPPFLAGS"
19537
19538 fi
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_sign_compare" >&5
19540 $as_echo "$gl_cv_warn__Wno_sign_compare" >&6; }
19541 if test "x$gl_cv_warn__Wno_sign_compare" = xyes; then :
19542   as_fn_append WARN_CFLAGS " -Wno-sign-compare"
19543 fi
19544
19545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-unused-parameter" >&5
19546 $as_echo_n "checking whether compiler handles -Wno-unused-parameter... " >&6; }
19547 if ${gl_cv_warn__Wno_unused_parameter+:} false; then :
19548   $as_echo_n "(cached) " >&6
19549 else
19550
19551   gl_save_CPPFLAGS="$CPPFLAGS"
19552   CPPFLAGS="${CPPFLAGS} -Wno-unused-parameter"
19553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h.  */
19555
19556 int
19557 main ()
19558 {
19559
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 if ac_fn_c_try_cpp "$LINENO"; then :
19565   gl_cv_warn__Wno_unused_parameter=yes
19566 else
19567   gl_cv_warn__Wno_unused_parameter=no
19568 fi
19569 rm -f conftest.err conftest.i conftest.$ac_ext
19570   CPPFLAGS="$gl_save_CPPFLAGS"
19571
19572 fi
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_unused_parameter" >&5
19574 $as_echo "$gl_cv_warn__Wno_unused_parameter" >&6; }
19575 if test "x$gl_cv_warn__Wno_unused_parameter" = xyes; then :
19576   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
19577 fi
19578
19579     # We can't enable this due to horrible spice_usb_device_get_description
19580     # signature
19581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-format-nonliteral" >&5
19582 $as_echo_n "checking whether compiler handles -Wno-format-nonliteral... " >&6; }
19583 if ${gl_cv_warn__Wno_format_nonliteral+:} false; then :
19584   $as_echo_n "(cached) " >&6
19585 else
19586
19587   gl_save_CPPFLAGS="$CPPFLAGS"
19588   CPPFLAGS="${CPPFLAGS} -Wno-format-nonliteral"
19589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19590 /* end confdefs.h.  */
19591
19592 int
19593 main ()
19594 {
19595
19596   ;
19597   return 0;
19598 }
19599 _ACEOF
19600 if ac_fn_c_try_cpp "$LINENO"; then :
19601   gl_cv_warn__Wno_format_nonliteral=yes
19602 else
19603   gl_cv_warn__Wno_format_nonliteral=no
19604 fi
19605 rm -f conftest.err conftest.i conftest.$ac_ext
19606   CPPFLAGS="$gl_save_CPPFLAGS"
19607
19608 fi
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_format_nonliteral" >&5
19610 $as_echo "$gl_cv_warn__Wno_format_nonliteral" >&6; }
19611 if test "x$gl_cv_warn__Wno_format_nonliteral" = xyes; then :
19612   as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
19613 fi
19614
19615     # CEGui headers cause violation of this
19616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-ignored-qualifiers" >&5
19617 $as_echo_n "checking whether compiler handles -Wno-ignored-qualifiers... " >&6; }
19618 if ${gl_cv_warn__Wno_ignored_qualifiers+:} false; then :
19619   $as_echo_n "(cached) " >&6
19620 else
19621
19622   gl_save_CPPFLAGS="$CPPFLAGS"
19623   CPPFLAGS="${CPPFLAGS} -Wno-ignored-qualifiers"
19624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h.  */
19626
19627 int
19628 main ()
19629 {
19630
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_cpp "$LINENO"; then :
19636   gl_cv_warn__Wno_ignored_qualifiers=yes
19637 else
19638   gl_cv_warn__Wno_ignored_qualifiers=no
19639 fi
19640 rm -f conftest.err conftest.i conftest.$ac_ext
19641   CPPFLAGS="$gl_save_CPPFLAGS"
19642
19643 fi
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_ignored_qualifiers" >&5
19645 $as_echo "$gl_cv_warn__Wno_ignored_qualifiers" >&6; }
19646 if test "x$gl_cv_warn__Wno_ignored_qualifiers" = xyes; then :
19647   as_fn_append WARN_CFLAGS " -Wno-ignored-qualifiers"
19648 fi
19649
19650
19651
19652
19653
19654     # GNULIB turns on -Wformat=2 which implies -Wformat-nonliteral,
19655     # so we need to manually re-exclude it.
19656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-format-nonliteral" >&5
19657 $as_echo_n "checking whether compiler handles -Wno-format-nonliteral... " >&6; }
19658 if ${gl_cv_warn__Wno_format_nonliteral+:} false; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661
19662   gl_save_CPPFLAGS="$CPPFLAGS"
19663   CPPFLAGS="${CPPFLAGS} -Wno-format-nonliteral"
19664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h.  */
19666
19667 int
19668 main ()
19669 {
19670
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 if ac_fn_c_try_cpp "$LINENO"; then :
19676   gl_cv_warn__Wno_format_nonliteral=yes
19677 else
19678   gl_cv_warn__Wno_format_nonliteral=no
19679 fi
19680 rm -f conftest.err conftest.i conftest.$ac_ext
19681   CPPFLAGS="$gl_save_CPPFLAGS"
19682
19683 fi
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_format_nonliteral" >&5
19685 $as_echo "$gl_cv_warn__Wno_format_nonliteral" >&6; }
19686 if test "x$gl_cv_warn__Wno_format_nonliteral" = xyes; then :
19687   as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
19688 fi
19689
19690
19691     # This should be < 1024 really. pixman_utils is the blackspot
19692     # preventing lower usage
19693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=20460" >&5
19694 $as_echo_n "checking whether compiler handles -Wframe-larger-than=20460... " >&6; }
19695 if ${gl_cv_warn__Wframe_larger_than_20460+:} false; then :
19696   $as_echo_n "(cached) " >&6
19697 else
19698
19699   gl_save_CPPFLAGS="$CPPFLAGS"
19700   CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=20460"
19701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702 /* end confdefs.h.  */
19703
19704 int
19705 main ()
19706 {
19707
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 if ac_fn_c_try_cpp "$LINENO"; then :
19713   gl_cv_warn__Wframe_larger_than_20460=yes
19714 else
19715   gl_cv_warn__Wframe_larger_than_20460=no
19716 fi
19717 rm -f conftest.err conftest.i conftest.$ac_ext
19718   CPPFLAGS="$gl_save_CPPFLAGS"
19719
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wframe_larger_than_20460" >&5
19722 $as_echo "$gl_cv_warn__Wframe_larger_than_20460" >&6; }
19723 if test "x$gl_cv_warn__Wframe_larger_than_20460" = xyes; then :
19724   as_fn_append WARN_CFLAGS " -Wframe-larger-than=20460"
19725 fi
19726
19727
19728     # Use improved glibc headers
19729
19730
19731     # Extra special flags
19732             case $host in
19733        *-*-linux*)
19734                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fstack-protector-all" >&5
19735 $as_echo_n "checking whether compiler handles -fstack-protector-all... " >&6; }
19736 if ${gl_cv_warn__fstack_protector_all+:} false; then :
19737   $as_echo_n "(cached) " >&6
19738 else
19739
19740   gl_save_CPPFLAGS="$CPPFLAGS"
19741   CPPFLAGS="${CPPFLAGS} -fstack-protector-all"
19742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h.  */
19744
19745 int
19746 main ()
19747 {
19748
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 if ac_fn_c_try_cpp "$LINENO"; then :
19754   gl_cv_warn__fstack_protector_all=yes
19755 else
19756   gl_cv_warn__fstack_protector_all=no
19757 fi
19758 rm -f conftest.err conftest.i conftest.$ac_ext
19759   CPPFLAGS="$gl_save_CPPFLAGS"
19760
19761 fi
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fstack_protector_all" >&5
19763 $as_echo "$gl_cv_warn__fstack_protector_all" >&6; }
19764 if test "x$gl_cv_warn__fstack_protector_all" = xyes; then :
19765   as_fn_append WARN_CFLAGS " -fstack-protector-all"
19766 fi
19767
19768        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles --param=ssp-buffer-size=4" >&5
19769 $as_echo_n "checking whether compiler handles --param=ssp-buffer-size=4... " >&6; }
19770 if ${gl_cv_warn___param_ssp_buffer_size_4+:} false; then :
19771   $as_echo_n "(cached) " >&6
19772 else
19773
19774   gl_save_CPPFLAGS="$CPPFLAGS"
19775   CPPFLAGS="${CPPFLAGS} --param=ssp-buffer-size=4"
19776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h.  */
19778
19779 int
19780 main ()
19781 {
19782
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 if ac_fn_c_try_cpp "$LINENO"; then :
19788   gl_cv_warn___param_ssp_buffer_size_4=yes
19789 else
19790   gl_cv_warn___param_ssp_buffer_size_4=no
19791 fi
19792 rm -f conftest.err conftest.i conftest.$ac_ext
19793   CPPFLAGS="$gl_save_CPPFLAGS"
19794
19795 fi
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn___param_ssp_buffer_size_4" >&5
19797 $as_echo "$gl_cv_warn___param_ssp_buffer_size_4" >&6; }
19798 if test "x$gl_cv_warn___param_ssp_buffer_size_4" = xyes; then :
19799   as_fn_append WARN_CFLAGS " --param=ssp-buffer-size=4"
19800 fi
19801
19802        ;;
19803     esac
19804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fexceptions" >&5
19805 $as_echo_n "checking whether compiler handles -fexceptions... " >&6; }
19806 if ${gl_cv_warn__fexceptions+:} false; then :
19807   $as_echo_n "(cached) " >&6
19808 else
19809
19810   gl_save_CPPFLAGS="$CPPFLAGS"
19811   CPPFLAGS="${CPPFLAGS} -fexceptions"
19812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h.  */
19814
19815 int
19816 main ()
19817 {
19818
19819   ;
19820   return 0;
19821 }
19822 _ACEOF
19823 if ac_fn_c_try_cpp "$LINENO"; then :
19824   gl_cv_warn__fexceptions=yes
19825 else
19826   gl_cv_warn__fexceptions=no
19827 fi
19828 rm -f conftest.err conftest.i conftest.$ac_ext
19829   CPPFLAGS="$gl_save_CPPFLAGS"
19830
19831 fi
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fexceptions" >&5
19833 $as_echo "$gl_cv_warn__fexceptions" >&6; }
19834 if test "x$gl_cv_warn__fexceptions" = xyes; then :
19835   as_fn_append WARN_CFLAGS " -fexceptions"
19836 fi
19837
19838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fasynchronous-unwind-tables" >&5
19839 $as_echo_n "checking whether compiler handles -fasynchronous-unwind-tables... " >&6; }
19840 if ${gl_cv_warn__fasynchronous_unwind_tables+:} false; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843
19844   gl_save_CPPFLAGS="$CPPFLAGS"
19845   CPPFLAGS="${CPPFLAGS} -fasynchronous-unwind-tables"
19846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h.  */
19848
19849 int
19850 main ()
19851 {
19852
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 if ac_fn_c_try_cpp "$LINENO"; then :
19858   gl_cv_warn__fasynchronous_unwind_tables=yes
19859 else
19860   gl_cv_warn__fasynchronous_unwind_tables=no
19861 fi
19862 rm -f conftest.err conftest.i conftest.$ac_ext
19863   CPPFLAGS="$gl_save_CPPFLAGS"
19864
19865 fi
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fasynchronous_unwind_tables" >&5
19867 $as_echo "$gl_cv_warn__fasynchronous_unwind_tables" >&6; }
19868 if test "x$gl_cv_warn__fasynchronous_unwind_tables" = xyes; then :
19869   as_fn_append WARN_CFLAGS " -fasynchronous-unwind-tables"
19870 fi
19871
19872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
19873 $as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
19874 if ${gl_cv_warn__fdiagnostics_show_option+:} false; then :
19875   $as_echo_n "(cached) " >&6
19876 else
19877
19878   gl_save_CPPFLAGS="$CPPFLAGS"
19879   CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
19880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h.  */
19882
19883 int
19884 main ()
19885 {
19886
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 if ac_fn_c_try_cpp "$LINENO"; then :
19892   gl_cv_warn__fdiagnostics_show_option=yes
19893 else
19894   gl_cv_warn__fdiagnostics_show_option=no
19895 fi
19896 rm -f conftest.err conftest.i conftest.$ac_ext
19897   CPPFLAGS="$gl_save_CPPFLAGS"
19898
19899 fi
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
19901 $as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
19902 if test "x$gl_cv_warn__fdiagnostics_show_option" = xyes; then :
19903   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
19904 fi
19905
19906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -funit-at-a-time" >&5
19907 $as_echo_n "checking whether compiler handles -funit-at-a-time... " >&6; }
19908 if ${gl_cv_warn__funit_at_a_time+:} false; then :
19909   $as_echo_n "(cached) " >&6
19910 else
19911
19912   gl_save_CPPFLAGS="$CPPFLAGS"
19913   CPPFLAGS="${CPPFLAGS} -funit-at-a-time"
19914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h.  */
19916
19917 int
19918 main ()
19919 {
19920
19921   ;
19922   return 0;
19923 }
19924 _ACEOF
19925 if ac_fn_c_try_cpp "$LINENO"; then :
19926   gl_cv_warn__funit_at_a_time=yes
19927 else
19928   gl_cv_warn__funit_at_a_time=no
19929 fi
19930 rm -f conftest.err conftest.i conftest.$ac_ext
19931   CPPFLAGS="$gl_save_CPPFLAGS"
19932
19933 fi
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__funit_at_a_time" >&5
19935 $as_echo "$gl_cv_warn__funit_at_a_time" >&6; }
19936 if test "x$gl_cv_warn__funit_at_a_time" = xyes; then :
19937   as_fn_append WARN_CFLAGS " -funit-at-a-time"
19938 fi
19939
19940
19941     # Need -fipa-pure-const in order to make -Wsuggest-attribute=pure
19942     # fire even without -O.
19943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fipa-pure-const" >&5
19944 $as_echo_n "checking whether compiler handles -fipa-pure-const... " >&6; }
19945 if ${gl_cv_warn__fipa_pure_const+:} false; then :
19946   $as_echo_n "(cached) " >&6
19947 else
19948
19949   gl_save_CPPFLAGS="$CPPFLAGS"
19950   CPPFLAGS="${CPPFLAGS} -fipa-pure-const"
19951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19952 /* end confdefs.h.  */
19953
19954 int
19955 main ()
19956 {
19957
19958   ;
19959   return 0;
19960 }
19961 _ACEOF
19962 if ac_fn_c_try_cpp "$LINENO"; then :
19963   gl_cv_warn__fipa_pure_const=yes
19964 else
19965   gl_cv_warn__fipa_pure_const=no
19966 fi
19967 rm -f conftest.err conftest.i conftest.$ac_ext
19968   CPPFLAGS="$gl_save_CPPFLAGS"
19969
19970 fi
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fipa_pure_const" >&5
19972 $as_echo "$gl_cv_warn__fipa_pure_const" >&6; }
19973 if test "x$gl_cv_warn__fipa_pure_const" = xyes; then :
19974   as_fn_append WARN_CFLAGS " -fipa-pure-const"
19975 fi
19976
19977
19978     # We should eventually enable this, but right now there are at
19979     # least 75 functions triggering warnings.
19980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-suggest-attribute=pure" >&5
19981 $as_echo_n "checking whether compiler handles -Wno-suggest-attribute=pure... " >&6; }
19982 if ${gl_cv_warn__Wno_suggest_attribute_pure+:} false; then :
19983   $as_echo_n "(cached) " >&6
19984 else
19985
19986   gl_save_CPPFLAGS="$CPPFLAGS"
19987   CPPFLAGS="${CPPFLAGS} -Wno-suggest-attribute=pure"
19988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h.  */
19990
19991 int
19992 main ()
19993 {
19994
19995   ;
19996   return 0;
19997 }
19998 _ACEOF
19999 if ac_fn_c_try_cpp "$LINENO"; then :
20000   gl_cv_warn__Wno_suggest_attribute_pure=yes
20001 else
20002   gl_cv_warn__Wno_suggest_attribute_pure=no
20003 fi
20004 rm -f conftest.err conftest.i conftest.$ac_ext
20005   CPPFLAGS="$gl_save_CPPFLAGS"
20006
20007 fi
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_suggest_attribute_pure" >&5
20009 $as_echo "$gl_cv_warn__Wno_suggest_attribute_pure" >&6; }
20010 if test "x$gl_cv_warn__Wno_suggest_attribute_pure" = xyes; then :
20011   as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=pure"
20012 fi
20013
20014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-suggest-attribute=const" >&5
20015 $as_echo_n "checking whether compiler handles -Wno-suggest-attribute=const... " >&6; }
20016 if ${gl_cv_warn__Wno_suggest_attribute_const+:} false; then :
20017   $as_echo_n "(cached) " >&6
20018 else
20019
20020   gl_save_CPPFLAGS="$CPPFLAGS"
20021   CPPFLAGS="${CPPFLAGS} -Wno-suggest-attribute=const"
20022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h.  */
20024
20025 int
20026 main ()
20027 {
20028
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 if ac_fn_c_try_cpp "$LINENO"; then :
20034   gl_cv_warn__Wno_suggest_attribute_const=yes
20035 else
20036   gl_cv_warn__Wno_suggest_attribute_const=no
20037 fi
20038 rm -f conftest.err conftest.i conftest.$ac_ext
20039   CPPFLAGS="$gl_save_CPPFLAGS"
20040
20041 fi
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_suggest_attribute_const" >&5
20043 $as_echo "$gl_cv_warn__Wno_suggest_attribute_const" >&6; }
20044 if test "x$gl_cv_warn__Wno_suggest_attribute_const" = xyes; then :
20045   as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=const"
20046 fi
20047
20048
20049     if test "$set_werror" = "yes"
20050     then
20051       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
20052 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
20053 if ${gl_cv_warn__Werror+:} false; then :
20054   $as_echo_n "(cached) " >&6
20055 else
20056
20057   gl_save_CPPFLAGS="$CPPFLAGS"
20058   CPPFLAGS="${CPPFLAGS} -Werror"
20059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h.  */
20061
20062 int
20063 main ()
20064 {
20065
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 if ac_fn_c_try_cpp "$LINENO"; then :
20071   gl_cv_warn__Werror=yes
20072 else
20073   gl_cv_warn__Werror=no
20074 fi
20075 rm -f conftest.err conftest.i conftest.$ac_ext
20076   CPPFLAGS="$gl_save_CPPFLAGS"
20077
20078 fi
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
20080 $as_echo "$gl_cv_warn__Werror" >&6; }
20081 if test "x$gl_cv_warn__Werror" = xyes; then :
20082   as_fn_append WARN_CFLAGS " -Werror"
20083 fi
20084
20085     fi
20086     WARN_CXXFLAGS=$WARN_CFLAGS
20087
20088
20089     # These are C-only warnings
20090     if test "x$enable_tunnel" != "xyes"; then
20091         # Slirp causes pain :-(
20092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Waggregate-return" >&5
20093 $as_echo_n "checking whether compiler handles -Waggregate-return... " >&6; }
20094 if ${gl_cv_warn__Waggregate_return+:} false; then :
20095   $as_echo_n "(cached) " >&6
20096 else
20097
20098   gl_save_CPPFLAGS="$CPPFLAGS"
20099   CPPFLAGS="${CPPFLAGS} -Waggregate-return"
20100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h.  */
20102
20103 int
20104 main ()
20105 {
20106
20107   ;
20108   return 0;
20109 }
20110 _ACEOF
20111 if ac_fn_c_try_cpp "$LINENO"; then :
20112   gl_cv_warn__Waggregate_return=yes
20113 else
20114   gl_cv_warn__Waggregate_return=no
20115 fi
20116 rm -f conftest.err conftest.i conftest.$ac_ext
20117   CPPFLAGS="$gl_save_CPPFLAGS"
20118
20119 fi
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Waggregate_return" >&5
20121 $as_echo "$gl_cv_warn__Waggregate_return" >&6; }
20122 if test "x$gl_cv_warn__Waggregate_return" = xyes; then :
20123   as_fn_append WARN_CFLAGS " -Waggregate-return"
20124 fi
20125
20126     fi
20127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wstrict-prototypes" >&5
20128 $as_echo_n "checking whether compiler handles -Wstrict-prototypes... " >&6; }
20129 if ${gl_cv_warn__Wstrict_prototypes+:} false; then :
20130   $as_echo_n "(cached) " >&6
20131 else
20132
20133   gl_save_CPPFLAGS="$CPPFLAGS"
20134   CPPFLAGS="${CPPFLAGS} -Wstrict-prototypes"
20135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h.  */
20137
20138 int
20139 main ()
20140 {
20141
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_c_try_cpp "$LINENO"; then :
20147   gl_cv_warn__Wstrict_prototypes=yes
20148 else
20149   gl_cv_warn__Wstrict_prototypes=no
20150 fi
20151 rm -f conftest.err conftest.i conftest.$ac_ext
20152   CPPFLAGS="$gl_save_CPPFLAGS"
20153
20154 fi
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wstrict_prototypes" >&5
20156 $as_echo "$gl_cv_warn__Wstrict_prototypes" >&6; }
20157 if test "x$gl_cv_warn__Wstrict_prototypes" = xyes; then :
20158   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
20159 fi
20160
20161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wold-style-definition" >&5
20162 $as_echo_n "checking whether compiler handles -Wold-style-definition... " >&6; }
20163 if ${gl_cv_warn__Wold_style_definition+:} false; then :
20164   $as_echo_n "(cached) " >&6
20165 else
20166
20167   gl_save_CPPFLAGS="$CPPFLAGS"
20168   CPPFLAGS="${CPPFLAGS} -Wold-style-definition"
20169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h.  */
20171
20172 int
20173 main ()
20174 {
20175
20176   ;
20177   return 0;
20178 }
20179 _ACEOF
20180 if ac_fn_c_try_cpp "$LINENO"; then :
20181   gl_cv_warn__Wold_style_definition=yes
20182 else
20183   gl_cv_warn__Wold_style_definition=no
20184 fi
20185 rm -f conftest.err conftest.i conftest.$ac_ext
20186   CPPFLAGS="$gl_save_CPPFLAGS"
20187
20188 fi
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wold_style_definition" >&5
20190 $as_echo "$gl_cv_warn__Wold_style_definition" >&6; }
20191 if test "x$gl_cv_warn__Wold_style_definition" = xyes; then :
20192   as_fn_append WARN_CFLAGS " -Wold-style-definition"
20193 fi
20194
20195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wnested-externs" >&5
20196 $as_echo_n "checking whether compiler handles -Wnested-externs... " >&6; }
20197 if ${gl_cv_warn__Wnested_externs+:} false; then :
20198   $as_echo_n "(cached) " >&6
20199 else
20200
20201   gl_save_CPPFLAGS="$CPPFLAGS"
20202   CPPFLAGS="${CPPFLAGS} -Wnested-externs"
20203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h.  */
20205
20206 int
20207 main ()
20208 {
20209
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 if ac_fn_c_try_cpp "$LINENO"; then :
20215   gl_cv_warn__Wnested_externs=yes
20216 else
20217   gl_cv_warn__Wnested_externs=no
20218 fi
20219 rm -f conftest.err conftest.i conftest.$ac_ext
20220   CPPFLAGS="$gl_save_CPPFLAGS"
20221
20222 fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wnested_externs" >&5
20224 $as_echo "$gl_cv_warn__Wnested_externs" >&6; }
20225 if test "x$gl_cv_warn__Wnested_externs" = xyes; then :
20226   as_fn_append WARN_CFLAGS " -Wnested-externs"
20227 fi
20228
20229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wformat-zero-length" >&5
20230 $as_echo_n "checking whether compiler handles -Wformat-zero-length... " >&6; }
20231 if ${gl_cv_warn__Wformat_zero_length+:} false; then :
20232   $as_echo_n "(cached) " >&6
20233 else
20234
20235   gl_save_CPPFLAGS="$CPPFLAGS"
20236   CPPFLAGS="${CPPFLAGS} -Wformat-zero-length"
20237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h.  */
20239
20240 int
20241 main ()
20242 {
20243
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 if ac_fn_c_try_cpp "$LINENO"; then :
20249   gl_cv_warn__Wformat_zero_length=yes
20250 else
20251   gl_cv_warn__Wformat_zero_length=no
20252 fi
20253 rm -f conftest.err conftest.i conftest.$ac_ext
20254   CPPFLAGS="$gl_save_CPPFLAGS"
20255
20256 fi
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wformat_zero_length" >&5
20258 $as_echo "$gl_cv_warn__Wformat_zero_length" >&6; }
20259 if test "x$gl_cv_warn__Wformat_zero_length" = xyes; then :
20260   as_fn_append WARN_CFLAGS " -Wformat-zero-length"
20261 fi
20262
20263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wpointer-to-int-cast" >&5
20264 $as_echo_n "checking whether compiler handles -Wpointer-to-int-cast... " >&6; }
20265 if ${gl_cv_warn__Wpointer_to_int_cast+:} false; then :
20266   $as_echo_n "(cached) " >&6
20267 else
20268
20269   gl_save_CPPFLAGS="$CPPFLAGS"
20270   CPPFLAGS="${CPPFLAGS} -Wpointer-to-int-cast"
20271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h.  */
20273
20274 int
20275 main ()
20276 {
20277
20278   ;
20279   return 0;
20280 }
20281 _ACEOF
20282 if ac_fn_c_try_cpp "$LINENO"; then :
20283   gl_cv_warn__Wpointer_to_int_cast=yes
20284 else
20285   gl_cv_warn__Wpointer_to_int_cast=no
20286 fi
20287 rm -f conftest.err conftest.i conftest.$ac_ext
20288   CPPFLAGS="$gl_save_CPPFLAGS"
20289
20290 fi
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wpointer_to_int_cast" >&5
20292 $as_echo "$gl_cv_warn__Wpointer_to_int_cast" >&6; }
20293 if test "x$gl_cv_warn__Wpointer_to_int_cast" = xyes; then :
20294   as_fn_append WARN_CFLAGS " -Wpointer-to-int-cast"
20295 fi
20296
20297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wjump-misses-init" >&5
20298 $as_echo_n "checking whether compiler handles -Wjump-misses-init... " >&6; }
20299 if ${gl_cv_warn__Wjump_misses_init+:} false; then :
20300   $as_echo_n "(cached) " >&6
20301 else
20302
20303   gl_save_CPPFLAGS="$CPPFLAGS"
20304   CPPFLAGS="${CPPFLAGS} -Wjump-misses-init"
20305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h.  */
20307
20308 int
20309 main ()
20310 {
20311
20312   ;
20313   return 0;
20314 }
20315 _ACEOF
20316 if ac_fn_c_try_cpp "$LINENO"; then :
20317   gl_cv_warn__Wjump_misses_init=yes
20318 else
20319   gl_cv_warn__Wjump_misses_init=no
20320 fi
20321 rm -f conftest.err conftest.i conftest.$ac_ext
20322   CPPFLAGS="$gl_save_CPPFLAGS"
20323
20324 fi
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wjump_misses_init" >&5
20326 $as_echo "$gl_cv_warn__Wjump_misses_init" >&6; }
20327 if test "x$gl_cv_warn__Wjump_misses_init" = xyes; then :
20328   as_fn_append WARN_CFLAGS " -Wjump-misses-init"
20329 fi
20330
20331
20332     WARN_LDFLAGS=$WARN_CFLAGS
20333
20334
20335
20336
20337 # use ximage.h for win32 build if it is found (no package for mingw32 atm)
20338 if test $os_win32 == "yes" ; then
20339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cximage" >&5
20340 $as_echo_n "checking for cximage... " >&6; }
20341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h.  */
20343 #include <ximage.h>
20344 int main()
20345 {
20346  return CXIMAGE_FORMAT_RAW;
20347 )}
20348
20349 _ACEOF
20350 if ac_fn_c_try_cpp "$LINENO"; then :
20351
20352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20353 $as_echo "found" >&6; }
20354  have_cximage="yes"
20355
20356
20357 else
20358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
20359 $as_echo "missing" >&6; }
20360  CXIMAGE_CFLAGS='-DDISABLE_CXIMAGE'
20361  have_cximage="no"
20362
20363
20364 fi
20365 rm -f conftest.err conftest.i conftest.$ac_ext
20366 fi
20367
20368
20369 # check for windres for mingw32 builds
20370 if test $os_win32 == "yes" ; then
20371     for ac_prog in i686-pc-mingw32-windres mingw-windres mingw32-windres
20372 do
20373   # Extract the first word of "$ac_prog", so it can be a program name with args.
20374 set dummy $ac_prog; ac_word=$2
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20376 $as_echo_n "checking for $ac_word... " >&6; }
20377 if ${ac_cv_prog_WINDRES+:} false; then :
20378   $as_echo_n "(cached) " >&6
20379 else
20380   if test -n "$WINDRES"; then
20381   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20382 else
20383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20384 for as_dir in $PATH
20385 do
20386   IFS=$as_save_IFS
20387   test -z "$as_dir" && as_dir=.
20388     for ac_exec_ext in '' $ac_executable_extensions; do
20389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20390     ac_cv_prog_WINDRES="$ac_prog"
20391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20392     break 2
20393   fi
20394 done
20395   done
20396 IFS=$as_save_IFS
20397
20398 fi
20399 fi
20400 WINDRES=$ac_cv_prog_WINDRES
20401 if test -n "$WINDRES"; then
20402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20403 $as_echo "$WINDRES" >&6; }
20404 else
20405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20406 $as_echo "no" >&6; }
20407 fi
20408
20409
20410   test -n "$WINDRES" && break
20411 done
20412 test -n "$WINDRES" || WINDRES="false"
20413
20414
20415 fi
20416
20417
20418
20419
20420
20421 have_gcc4=no
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility" >&5
20423 $as_echo_n "checking for -fvisibility... " >&6; }
20424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h.  */
20426
20427 #if defined(__GNUC__) && (__GNUC__ >= 4)
20428 #else
20429 error Need GCC 4.0 for visibility
20430 #endif
20431 int main () { return 0; }
20432
20433 _ACEOF
20434 if ac_fn_c_try_compile "$LINENO"; then :
20435   have_gcc4=yes
20436 fi
20437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438
20439 if test "x$have_gcc4" = "xyes" && test ! "$os_win32" = "yes" ; then
20440    VISIBILITY_HIDDEN_CFLAGS="-fvisibility=hidden"
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc4" >&5
20443 $as_echo "$have_gcc4" >&6; }
20444
20445
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--version-script works" >&5
20447 $as_echo_n "checking if -Wl,--version-script works... " >&6; }
20448 if ${spice_cv_ld_version_script+:} false; then :
20449   $as_echo_n "(cached) " >&6
20450 else
20451   save_LDFLAGS="$LDFLAGS"
20452      LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/server/spice-server.syms"
20453      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h.  */
20455
20456 int
20457 main ()
20458 {
20459
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 if ac_fn_c_try_link "$LINENO"; then :
20465   spice_cv_ld_version_script=yes
20466 else
20467   spice_cv_ld_version_script=no
20468 fi
20469 rm -f core conftest.err conftest.$ac_objext \
20470     conftest$ac_exeext conftest.$ac_ext
20471      LDFLAGS="$save_LDFLAGS"
20472 fi
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $spice_cv_ld_version_script" >&5
20474 $as_echo "$spice_cv_ld_version_script" >&6; }
20475  if test x"$spice_cv_ld_version_script" = xyes; then
20476   HAVE_LD_VERSION_SCRIPT_TRUE=
20477   HAVE_LD_VERSION_SCRIPT_FALSE='#'
20478 else
20479   HAVE_LD_VERSION_SCRIPT_TRUE='#'
20480   HAVE_LD_VERSION_SCRIPT_FALSE=
20481 fi
20482
20483
20484
20485
20486
20487
20488
20489
20490 # Check whether --enable-silent-rules was given.
20491 if test "${enable_silent_rules+set}" = set; then :
20492   enableval=$enable_silent_rules;
20493 fi
20494
20495 case $enable_silent_rules in # (((
20496   yes) AM_DEFAULT_VERBOSITY=0;;
20497    no) AM_DEFAULT_VERBOSITY=1;;
20498     *) AM_DEFAULT_VERBOSITY=0;;
20499 esac
20500 am_make=${MAKE-make}
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
20502 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
20503 if ${am_cv_make_support_nested_variables+:} false; then :
20504   $as_echo_n "(cached) " >&6
20505 else
20506   if $as_echo 'TRUE=$(BAR$(V))
20507 BAR0=false
20508 BAR1=true
20509 V=1
20510 am__doit:
20511         @$(TRUE)
20512 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
20513   am_cv_make_support_nested_variables=yes
20514 else
20515   am_cv_make_support_nested_variables=no
20516 fi
20517 fi
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
20519 $as_echo "$am_cv_make_support_nested_variables" >&6; }
20520 if test $am_cv_make_support_nested_variables = yes; then
20521     AM_V='$(V)'
20522   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20523 else
20524   AM_V=$AM_DEFAULT_VERBOSITY
20525   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20526 fi
20527 AM_BACKSLASH='\'
20528
20529
20530 ac_config_files="$ac_config_files Makefile spice-server.pc server/Makefile server/tests/Makefile client/Makefile"
20531
20532 cat >confcache <<\_ACEOF
20533 # This file is a shell script that caches the results of configure
20534 # tests run on this system so they can be shared between configure
20535 # scripts and configure runs, see configure's option --config-cache.
20536 # It is not useful on other systems.  If it contains results you don't
20537 # want to keep, you may remove or edit it.
20538 #
20539 # config.status only pays attention to the cache file if you give it
20540 # the --recheck option to rerun configure.
20541 #
20542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20544 # following values.
20545
20546 _ACEOF
20547
20548 # The following way of writing the cache mishandles newlines in values,
20549 # but we know of no workaround that is simple, portable, and efficient.
20550 # So, we kill variables containing newlines.
20551 # Ultrix sh set writes to stderr and can't be redirected directly,
20552 # and sets the high bit in the cache file unless we assign to the vars.
20553 (
20554   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20555     eval ac_val=\$$ac_var
20556     case $ac_val in #(
20557     *${as_nl}*)
20558       case $ac_var in #(
20559       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20561       esac
20562       case $ac_var in #(
20563       _ | IFS | as_nl) ;; #(
20564       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20565       *) { eval $ac_var=; unset $ac_var;} ;;
20566       esac ;;
20567     esac
20568   done
20569
20570   (set) 2>&1 |
20571     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20572     *${as_nl}ac_space=\ *)
20573       # `set' does not quote correctly, so add quotes: double-quote
20574       # substitution turns \\\\ into \\, and sed turns \\ into \.
20575       sed -n \
20576         "s/'/'\\\\''/g;
20577           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20578       ;; #(
20579     *)
20580       # `set' quotes correctly as required by POSIX, so do not add quotes.
20581       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20582       ;;
20583     esac |
20584     sort
20585 ) |
20586   sed '
20587      /^ac_cv_env_/b end
20588      t clear
20589      :clear
20590      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20591      t end
20592      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20593      :end' >>confcache
20594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20595   if test -w "$cache_file"; then
20596     if test "x$cache_file" != "x/dev/null"; then
20597       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20598 $as_echo "$as_me: updating cache $cache_file" >&6;}
20599       if test ! -f "$cache_file" || test -h "$cache_file"; then
20600         cat confcache >"$cache_file"
20601       else
20602         case $cache_file in #(
20603         */* | ?:*)
20604           mv -f confcache "$cache_file"$$ &&
20605           mv -f "$cache_file"$$ "$cache_file" ;; #(
20606         *)
20607           mv -f confcache "$cache_file" ;;
20608         esac
20609       fi
20610     fi
20611   else
20612     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20613 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20614   fi
20615 fi
20616 rm -f confcache
20617
20618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20619 # Let make expand exec_prefix.
20620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20621
20622 #DEFS=-DHAVE_CONFIG_H
20623 DEFS="-DHAVE_CONFIG_H -DCONFIG_MARU"
20624
20625 ac_libobjs=
20626 ac_ltlibobjs=
20627 U=
20628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20629   # 1. Remove the extension, and $U if already installed.
20630   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20631   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20632   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20633   #    will be set to the directory where LIBOBJS objects are built.
20634   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20635   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20636 done
20637 LIBOBJS=$ac_libobjs
20638
20639 LTLIBOBJS=$ac_ltlibobjs
20640
20641
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20643 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20644    if test -n "$am_sleep_pid"; then
20645      # Hide warnings about reused PIDs.
20646      wait $am_sleep_pid 2>/dev/null
20647    fi
20648    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20649 $as_echo "done" >&6; }
20650 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20651   as_fn_error $? "conditional \"AMDEP\" was never defined.
20652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20653 fi
20654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20655   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20657 fi
20658  if test -n "$EXEEXT"; then
20659   am__EXEEXT_TRUE=
20660   am__EXEEXT_FALSE='#'
20661 else
20662   am__EXEEXT_TRUE='#'
20663   am__EXEEXT_FALSE=
20664 fi
20665
20666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20667   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20669 fi
20670 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20671   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20673 fi
20674
20675 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
20676   as_fn_error $? "conditional \"X86_64\" was never defined.
20677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20678 fi
20679 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20680   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20682 fi
20683 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
20684   as_fn_error $? "conditional \"OS_UNIX\" was never defined.
20685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20686 fi
20687 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20688   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
20689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20690 fi
20691 if test -z "${SUPPORT_TUNNEL_TRUE}" && test -z "${SUPPORT_TUNNEL_FALSE}"; then
20692   as_fn_error $? "conditional \"SUPPORT_TUNNEL\" was never defined.
20693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20694 fi
20695 if test -z "${SUPPORT_GUI_TRUE}" && test -z "${SUPPORT_GUI_FALSE}"; then
20696   as_fn_error $? "conditional \"SUPPORT_GUI\" was never defined.
20697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20698 fi
20699 if test -z "${SUPPORT_GL_TRUE}" && test -z "${SUPPORT_GL_FALSE}"; then
20700   as_fn_error $? "conditional \"SUPPORT_GL\" was never defined.
20701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20702 fi
20703 if test -z "${SUPPORT_SMARTCARD_TRUE}" && test -z "${SUPPORT_SMARTCARD_FALSE}"; then
20704   as_fn_error $? "conditional \"SUPPORT_SMARTCARD\" was never defined.
20705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20706 fi
20707 if test -z "${SUPPORT_CLIENT_TRUE}" && test -z "${SUPPORT_CLIENT_FALSE}"; then
20708   as_fn_error $? "conditional \"SUPPORT_CLIENT\" was never defined.
20709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20710 fi
20711 if test -z "${SUPPORT_AUTOMATED_TESTS_TRUE}" && test -z "${SUPPORT_AUTOMATED_TESTS_FALSE}"; then
20712   as_fn_error $? "conditional \"SUPPORT_AUTOMATED_TESTS\" was never defined.
20713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20714 fi
20715 if test -z "${HAVE_XRANDR12_TRUE}" && test -z "${HAVE_XRANDR12_FALSE}"; then
20716   as_fn_error $? "conditional \"HAVE_XRANDR12\" was never defined.
20717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20718 fi
20719 if test -z "${HAVE_XINERAMA_TRUE}" && test -z "${HAVE_XINERAMA_FALSE}"; then
20720   as_fn_error $? "conditional \"HAVE_XINERAMA\" was never defined.
20721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20722 fi
20723 if test -z "${HAVE_SASL_TRUE}" && test -z "${HAVE_SASL_FALSE}"; then
20724   as_fn_error $? "conditional \"HAVE_SASL\" was never defined.
20725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20726 fi
20727 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20728   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20730 fi
20731
20732 : "${CONFIG_STATUS=./config.status}"
20733 ac_write_fail=0
20734 ac_clean_files_save=$ac_clean_files
20735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20737 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20738 as_write_fail=0
20739 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20740 #! $SHELL
20741 # Generated by $as_me.
20742 # Run this file to recreate the current configuration.
20743 # Compiler output produced by configure, useful for debugging
20744 # configure, is in config.log if it exists.
20745
20746 debug=false
20747 ac_cs_recheck=false
20748 ac_cs_silent=false
20749
20750 SHELL=\${CONFIG_SHELL-$SHELL}
20751 export SHELL
20752 _ASEOF
20753 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20754 ## -------------------- ##
20755 ## M4sh Initialization. ##
20756 ## -------------------- ##
20757
20758 # Be more Bourne compatible
20759 DUALCASE=1; export DUALCASE # for MKS sh
20760 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20761   emulate sh
20762   NULLCMD=:
20763   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20764   # is contrary to our usage.  Disable this feature.
20765   alias -g '${1+"$@"}'='"$@"'
20766   setopt NO_GLOB_SUBST
20767 else
20768   case `(set -o) 2>/dev/null` in #(
20769   *posix*) :
20770     set -o posix ;; #(
20771   *) :
20772      ;;
20773 esac
20774 fi
20775
20776
20777 as_nl='
20778 '
20779 export as_nl
20780 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20781 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20782 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20784 # Prefer a ksh shell builtin over an external printf program on Solaris,
20785 # but without wasting forks for bash or zsh.
20786 if test -z "$BASH_VERSION$ZSH_VERSION" \
20787     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20788   as_echo='print -r --'
20789   as_echo_n='print -rn --'
20790 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20791   as_echo='printf %s\n'
20792   as_echo_n='printf %s'
20793 else
20794   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20795     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20796     as_echo_n='/usr/ucb/echo -n'
20797   else
20798     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20799     as_echo_n_body='eval
20800       arg=$1;
20801       case $arg in #(
20802       *"$as_nl"*)
20803         expr "X$arg" : "X\\(.*\\)$as_nl";
20804         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20805       esac;
20806       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20807     '
20808     export as_echo_n_body
20809     as_echo_n='sh -c $as_echo_n_body as_echo'
20810   fi
20811   export as_echo_body
20812   as_echo='sh -c $as_echo_body as_echo'
20813 fi
20814
20815 # The user is always right.
20816 if test "${PATH_SEPARATOR+set}" != set; then
20817   PATH_SEPARATOR=:
20818   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20819     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20820       PATH_SEPARATOR=';'
20821   }
20822 fi
20823
20824
20825 # IFS
20826 # We need space, tab and new line, in precisely that order.  Quoting is
20827 # there to prevent editors from complaining about space-tab.
20828 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20829 # splitting by setting IFS to empty value.)
20830 IFS=" ""        $as_nl"
20831
20832 # Find who we are.  Look in the path if we contain no directory separator.
20833 as_myself=
20834 case $0 in #((
20835   *[\\/]* ) as_myself=$0 ;;
20836   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20838 do
20839   IFS=$as_save_IFS
20840   test -z "$as_dir" && as_dir=.
20841     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20842   done
20843 IFS=$as_save_IFS
20844
20845      ;;
20846 esac
20847 # We did not find ourselves, most probably we were run as `sh COMMAND'
20848 # in which case we are not to be found in the path.
20849 if test "x$as_myself" = x; then
20850   as_myself=$0
20851 fi
20852 if test ! -f "$as_myself"; then
20853   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20854   exit 1
20855 fi
20856
20857 # Unset variables that we do not need and which cause bugs (e.g. in
20858 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20859 # suppresses any "Segmentation fault" message there.  '((' could
20860 # trigger a bug in pdksh 5.2.14.
20861 for as_var in BASH_ENV ENV MAIL MAILPATH
20862 do eval test x\${$as_var+set} = xset \
20863   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20864 done
20865 PS1='$ '
20866 PS2='> '
20867 PS4='+ '
20868
20869 # NLS nuisances.
20870 LC_ALL=C
20871 export LC_ALL
20872 LANGUAGE=C
20873 export LANGUAGE
20874
20875 # CDPATH.
20876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20877
20878
20879 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20880 # ----------------------------------------
20881 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20882 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20883 # script with STATUS, using 1 if that was 0.
20884 as_fn_error ()
20885 {
20886   as_status=$1; test $as_status -eq 0 && as_status=1
20887   if test "$4"; then
20888     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20889     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20890   fi
20891   $as_echo "$as_me: error: $2" >&2
20892   as_fn_exit $as_status
20893 } # as_fn_error
20894
20895
20896 # as_fn_set_status STATUS
20897 # -----------------------
20898 # Set $? to STATUS, without forking.
20899 as_fn_set_status ()
20900 {
20901   return $1
20902 } # as_fn_set_status
20903
20904 # as_fn_exit STATUS
20905 # -----------------
20906 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20907 as_fn_exit ()
20908 {
20909   set +e
20910   as_fn_set_status $1
20911   exit $1
20912 } # as_fn_exit
20913
20914 # as_fn_unset VAR
20915 # ---------------
20916 # Portably unset VAR.
20917 as_fn_unset ()
20918 {
20919   { eval $1=; unset $1;}
20920 }
20921 as_unset=as_fn_unset
20922 # as_fn_append VAR VALUE
20923 # ----------------------
20924 # Append the text in VALUE to the end of the definition contained in VAR. Take
20925 # advantage of any shell optimizations that allow amortized linear growth over
20926 # repeated appends, instead of the typical quadratic growth present in naive
20927 # implementations.
20928 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20929   eval 'as_fn_append ()
20930   {
20931     eval $1+=\$2
20932   }'
20933 else
20934   as_fn_append ()
20935   {
20936     eval $1=\$$1\$2
20937   }
20938 fi # as_fn_append
20939
20940 # as_fn_arith ARG...
20941 # ------------------
20942 # Perform arithmetic evaluation on the ARGs, and store the result in the
20943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20944 # must be portable across $(()) and expr.
20945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20946   eval 'as_fn_arith ()
20947   {
20948     as_val=$(( $* ))
20949   }'
20950 else
20951   as_fn_arith ()
20952   {
20953     as_val=`expr "$@" || test $? -eq 1`
20954   }
20955 fi # as_fn_arith
20956
20957
20958 if expr a : '\(a\)' >/dev/null 2>&1 &&
20959    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20960   as_expr=expr
20961 else
20962   as_expr=false
20963 fi
20964
20965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20966   as_basename=basename
20967 else
20968   as_basename=false
20969 fi
20970
20971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20972   as_dirname=dirname
20973 else
20974   as_dirname=false
20975 fi
20976
20977 as_me=`$as_basename -- "$0" ||
20978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20979          X"$0" : 'X\(//\)$' \| \
20980          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20981 $as_echo X/"$0" |
20982     sed '/^.*\/\([^/][^/]*\)\/*$/{
20983             s//\1/
20984             q
20985           }
20986           /^X\/\(\/\/\)$/{
20987             s//\1/
20988             q
20989           }
20990           /^X\/\(\/\).*/{
20991             s//\1/
20992             q
20993           }
20994           s/.*/./; q'`
20995
20996 # Avoid depending upon Character Ranges.
20997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21000 as_cr_digits='0123456789'
21001 as_cr_alnum=$as_cr_Letters$as_cr_digits
21002
21003 ECHO_C= ECHO_N= ECHO_T=
21004 case `echo -n x` in #(((((
21005 -n*)
21006   case `echo 'xy\c'` in
21007   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21008   xy)  ECHO_C='\c';;
21009   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21010        ECHO_T=' ';;
21011   esac;;
21012 *)
21013   ECHO_N='-n';;
21014 esac
21015
21016 rm -f conf$$ conf$$.exe conf$$.file
21017 if test -d conf$$.dir; then
21018   rm -f conf$$.dir/conf$$.file
21019 else
21020   rm -f conf$$.dir
21021   mkdir conf$$.dir 2>/dev/null
21022 fi
21023 if (echo >conf$$.file) 2>/dev/null; then
21024   if ln -s conf$$.file conf$$ 2>/dev/null; then
21025     as_ln_s='ln -s'
21026     # ... but there are two gotchas:
21027     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21028     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21029     # In both cases, we have to default to `cp -pR'.
21030     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21031       as_ln_s='cp -pR'
21032   elif ln conf$$.file conf$$ 2>/dev/null; then
21033     as_ln_s=ln
21034   else
21035     as_ln_s='cp -pR'
21036   fi
21037 else
21038   as_ln_s='cp -pR'
21039 fi
21040 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21041 rmdir conf$$.dir 2>/dev/null
21042
21043
21044 # as_fn_mkdir_p
21045 # -------------
21046 # Create "$as_dir" as a directory, including parents if necessary.
21047 as_fn_mkdir_p ()
21048 {
21049
21050   case $as_dir in #(
21051   -*) as_dir=./$as_dir;;
21052   esac
21053   test -d "$as_dir" || eval $as_mkdir_p || {
21054     as_dirs=
21055     while :; do
21056       case $as_dir in #(
21057       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21058       *) as_qdir=$as_dir;;
21059       esac
21060       as_dirs="'$as_qdir' $as_dirs"
21061       as_dir=`$as_dirname -- "$as_dir" ||
21062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063          X"$as_dir" : 'X\(//\)[^/]' \| \
21064          X"$as_dir" : 'X\(//\)$' \| \
21065          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21066 $as_echo X"$as_dir" |
21067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21068             s//\1/
21069             q
21070           }
21071           /^X\(\/\/\)[^/].*/{
21072             s//\1/
21073             q
21074           }
21075           /^X\(\/\/\)$/{
21076             s//\1/
21077             q
21078           }
21079           /^X\(\/\).*/{
21080             s//\1/
21081             q
21082           }
21083           s/.*/./; q'`
21084       test -d "$as_dir" && break
21085     done
21086     test -z "$as_dirs" || eval "mkdir $as_dirs"
21087   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21088
21089
21090 } # as_fn_mkdir_p
21091 if mkdir -p . 2>/dev/null; then
21092   as_mkdir_p='mkdir -p "$as_dir"'
21093 else
21094   test -d ./-p && rmdir ./-p
21095   as_mkdir_p=false
21096 fi
21097
21098
21099 # as_fn_executable_p FILE
21100 # -----------------------
21101 # Test if FILE is an executable regular file.
21102 as_fn_executable_p ()
21103 {
21104   test -f "$1" && test -x "$1"
21105 } # as_fn_executable_p
21106 as_test_x='test -x'
21107 as_executable_p=as_fn_executable_p
21108
21109 # Sed expression to map a string onto a valid CPP name.
21110 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21111
21112 # Sed expression to map a string onto a valid variable name.
21113 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21114
21115
21116 exec 6>&1
21117 ## ----------------------------------- ##
21118 ## Main body of $CONFIG_STATUS script. ##
21119 ## ----------------------------------- ##
21120 _ASEOF
21121 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21122
21123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21124 # Save the log message, to keep $0 and so on meaningful, and to
21125 # report actual input values of CONFIG_FILES etc. instead of their
21126 # values after options handling.
21127 ac_log="
21128 This file was extended by spice $as_me 0.12.4, which was
21129 generated by GNU Autoconf 2.69.  Invocation command line was
21130
21131   CONFIG_FILES    = $CONFIG_FILES
21132   CONFIG_HEADERS  = $CONFIG_HEADERS
21133   CONFIG_LINKS    = $CONFIG_LINKS
21134   CONFIG_COMMANDS = $CONFIG_COMMANDS
21135   $ $0 $@
21136
21137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21138 "
21139
21140 _ACEOF
21141
21142 case $ac_config_files in *"
21143 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21144 esac
21145
21146 case $ac_config_headers in *"
21147 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21148 esac
21149
21150
21151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21152 # Files that config.status was made for.
21153 config_files="$ac_config_files"
21154 config_headers="$ac_config_headers"
21155 config_commands="$ac_config_commands"
21156
21157 _ACEOF
21158
21159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21160 ac_cs_usage="\
21161 \`$as_me' instantiates files and other configuration actions
21162 from templates according to the current configuration.  Unless the files
21163 and actions are specified as TAGs, all are instantiated by default.
21164
21165 Usage: $0 [OPTION]... [TAG]...
21166
21167   -h, --help       print this help, then exit
21168   -V, --version    print version number and configuration settings, then exit
21169       --config     print configuration, then exit
21170   -q, --quiet, --silent
21171                    do not print progress messages
21172   -d, --debug      don't remove temporary files
21173       --recheck    update $as_me by reconfiguring in the same conditions
21174       --file=FILE[:TEMPLATE]
21175                    instantiate the configuration file FILE
21176       --header=FILE[:TEMPLATE]
21177                    instantiate the configuration header FILE
21178
21179 Configuration files:
21180 $config_files
21181
21182 Configuration headers:
21183 $config_headers
21184
21185 Configuration commands:
21186 $config_commands
21187
21188 Report bugs to <spice-devel@lists.freedesktop.org>."
21189
21190 _ACEOF
21191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21192 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21193 ac_cs_version="\\
21194 spice config.status 0.12.4
21195 configured by $0, generated by GNU Autoconf 2.69,
21196   with options \\"\$ac_cs_config\\"
21197
21198 Copyright (C) 2012 Free Software Foundation, Inc.
21199 This config.status script is free software; the Free Software Foundation
21200 gives unlimited permission to copy, distribute and modify it."
21201
21202 ac_pwd='$ac_pwd'
21203 srcdir='$srcdir'
21204 INSTALL='$INSTALL'
21205 MKDIR_P='$MKDIR_P'
21206 AWK='$AWK'
21207 test -n "\$AWK" || AWK=awk
21208 _ACEOF
21209
21210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21211 # The default lists apply if the user does not specify any file.
21212 ac_need_defaults=:
21213 while test $# != 0
21214 do
21215   case $1 in
21216   --*=?*)
21217     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21218     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21219     ac_shift=:
21220     ;;
21221   --*=)
21222     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21223     ac_optarg=
21224     ac_shift=:
21225     ;;
21226   *)
21227     ac_option=$1
21228     ac_optarg=$2
21229     ac_shift=shift
21230     ;;
21231   esac
21232
21233   case $ac_option in
21234   # Handling of the options.
21235   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21236     ac_cs_recheck=: ;;
21237   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21238     $as_echo "$ac_cs_version"; exit ;;
21239   --config | --confi | --conf | --con | --co | --c )
21240     $as_echo "$ac_cs_config"; exit ;;
21241   --debug | --debu | --deb | --de | --d | -d )
21242     debug=: ;;
21243   --file | --fil | --fi | --f )
21244     $ac_shift
21245     case $ac_optarg in
21246     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21247     '') as_fn_error $? "missing file argument" ;;
21248     esac
21249     as_fn_append CONFIG_FILES " '$ac_optarg'"
21250     ac_need_defaults=false;;
21251   --header | --heade | --head | --hea )
21252     $ac_shift
21253     case $ac_optarg in
21254     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21255     esac
21256     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21257     ac_need_defaults=false;;
21258   --he | --h)
21259     # Conflict between --help and --header
21260     as_fn_error $? "ambiguous option: \`$1'
21261 Try \`$0 --help' for more information.";;
21262   --help | --hel | -h )
21263     $as_echo "$ac_cs_usage"; exit ;;
21264   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21265   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21266     ac_cs_silent=: ;;
21267
21268   # This is an error.
21269   -*) as_fn_error $? "unrecognized option: \`$1'
21270 Try \`$0 --help' for more information." ;;
21271
21272   *) as_fn_append ac_config_targets " $1"
21273      ac_need_defaults=false ;;
21274
21275   esac
21276   shift
21277 done
21278
21279 ac_configure_extra_args=
21280
21281 if $ac_cs_silent; then
21282   exec 6>/dev/null
21283   ac_configure_extra_args="$ac_configure_extra_args --silent"
21284 fi
21285
21286 _ACEOF
21287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21288 if \$ac_cs_recheck; then
21289   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21290   shift
21291   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21292   CONFIG_SHELL='$SHELL'
21293   export CONFIG_SHELL
21294   exec "\$@"
21295 fi
21296
21297 _ACEOF
21298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21299 exec 5>>config.log
21300 {
21301   echo
21302   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21303 ## Running $as_me. ##
21304 _ASBOX
21305   $as_echo "$ac_log"
21306 } >&5
21307
21308 _ACEOF
21309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21310 #
21311 # INIT-COMMANDS
21312 #
21313 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21314
21315
21316 # The HP-UX ksh and POSIX shell print the target directory to stdout
21317 # if CDPATH is set.
21318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21319
21320 sed_quote_subst='$sed_quote_subst'
21321 double_quote_subst='$double_quote_subst'
21322 delay_variable_subst='$delay_variable_subst'
21323 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21324 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21325 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21326 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21327 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21328 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21329 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21330 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21331 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21332 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21333 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21334 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21335 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21336 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21337 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21338 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21339 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21340 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21341 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21342 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21343 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21344 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21345 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21346 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21347 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21348 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21349 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21350 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21351 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21352 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21353 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21354 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21355 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21356 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21361 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21362 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21363 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21364 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21365 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21366 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21367 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21368 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21369 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21370 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21371 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21372 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21373 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21374 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21375 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21376 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21377 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21378 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21379 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"`'
21380 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21381 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21382 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21383 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21384 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21387 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21388 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21389 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21390 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21414 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21415 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21416 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21417 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21418 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21419 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21420 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21421 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21422 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21423 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21424 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21425 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21426 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21427 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21428 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21429 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21430 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21431 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21432 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21433 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21434 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21435 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21436 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21437 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21438 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21439 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21440 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21441 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21442 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21443 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21444 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21445 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21446 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21447 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21448 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21449 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21450 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21451 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21452 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21453 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21454 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21455 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21456 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21457 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21458 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21459 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21460 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21461 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21462 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21463 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21464 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21465 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21466 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21467 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21468 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21469 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21470 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21471 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21472 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21473 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21474 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21475 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21476 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21477 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21478 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21479 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21480 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21481 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21482 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21483 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21484 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21485 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21486 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21487 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21488 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21489 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21490 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21491 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21492 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21493 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21494 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21495 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21496 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21497 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21498 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21499 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21500 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21501 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21502 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21503 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21504 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21505 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21506 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21507
21508 LTCC='$LTCC'
21509 LTCFLAGS='$LTCFLAGS'
21510 compiler='$compiler_DEFAULT'
21511
21512 # A function that is used when there is no print builtin or printf.
21513 func_fallback_echo ()
21514 {
21515   eval 'cat <<_LTECHO_EOF
21516 \$1
21517 _LTECHO_EOF'
21518 }
21519
21520 # Quote evaled strings.
21521 for var in SHELL \
21522 ECHO \
21523 PATH_SEPARATOR \
21524 SED \
21525 GREP \
21526 EGREP \
21527 FGREP \
21528 LD \
21529 NM \
21530 LN_S \
21531 lt_SP2NL \
21532 lt_NL2SP \
21533 reload_flag \
21534 OBJDUMP \
21535 deplibs_check_method \
21536 file_magic_cmd \
21537 file_magic_glob \
21538 want_nocaseglob \
21539 DLLTOOL \
21540 sharedlib_from_linklib_cmd \
21541 AR \
21542 AR_FLAGS \
21543 archiver_list_spec \
21544 STRIP \
21545 RANLIB \
21546 CC \
21547 CFLAGS \
21548 compiler \
21549 lt_cv_sys_global_symbol_pipe \
21550 lt_cv_sys_global_symbol_to_cdecl \
21551 lt_cv_sys_global_symbol_to_c_name_address \
21552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21553 nm_file_list_spec \
21554 lt_prog_compiler_no_builtin_flag \
21555 lt_prog_compiler_pic \
21556 lt_prog_compiler_wl \
21557 lt_prog_compiler_static \
21558 lt_cv_prog_compiler_c_o \
21559 need_locks \
21560 MANIFEST_TOOL \
21561 DSYMUTIL \
21562 NMEDIT \
21563 LIPO \
21564 OTOOL \
21565 OTOOL64 \
21566 shrext_cmds \
21567 export_dynamic_flag_spec \
21568 whole_archive_flag_spec \
21569 compiler_needs_object \
21570 with_gnu_ld \
21571 allow_undefined_flag \
21572 no_undefined_flag \
21573 hardcode_libdir_flag_spec \
21574 hardcode_libdir_separator \
21575 exclude_expsyms \
21576 include_expsyms \
21577 file_list_spec \
21578 variables_saved_for_relink \
21579 libname_spec \
21580 library_names_spec \
21581 soname_spec \
21582 install_override_mode \
21583 finish_eval \
21584 old_striplib \
21585 striplib \
21586 compiler_lib_search_dirs \
21587 predep_objects \
21588 postdep_objects \
21589 predeps \
21590 postdeps \
21591 compiler_lib_search_path \
21592 LD_CXX \
21593 reload_flag_CXX \
21594 compiler_CXX \
21595 lt_prog_compiler_no_builtin_flag_CXX \
21596 lt_prog_compiler_pic_CXX \
21597 lt_prog_compiler_wl_CXX \
21598 lt_prog_compiler_static_CXX \
21599 lt_cv_prog_compiler_c_o_CXX \
21600 export_dynamic_flag_spec_CXX \
21601 whole_archive_flag_spec_CXX \
21602 compiler_needs_object_CXX \
21603 with_gnu_ld_CXX \
21604 allow_undefined_flag_CXX \
21605 no_undefined_flag_CXX \
21606 hardcode_libdir_flag_spec_CXX \
21607 hardcode_libdir_separator_CXX \
21608 exclude_expsyms_CXX \
21609 include_expsyms_CXX \
21610 file_list_spec_CXX \
21611 compiler_lib_search_dirs_CXX \
21612 predep_objects_CXX \
21613 postdep_objects_CXX \
21614 predeps_CXX \
21615 postdeps_CXX \
21616 compiler_lib_search_path_CXX; do
21617     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21618     *[\\\\\\\`\\"\\\$]*)
21619       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21620       ;;
21621     *)
21622       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21623       ;;
21624     esac
21625 done
21626
21627 # Double-quote double-evaled strings.
21628 for var in reload_cmds \
21629 old_postinstall_cmds \
21630 old_postuninstall_cmds \
21631 old_archive_cmds \
21632 extract_expsyms_cmds \
21633 old_archive_from_new_cmds \
21634 old_archive_from_expsyms_cmds \
21635 archive_cmds \
21636 archive_expsym_cmds \
21637 module_cmds \
21638 module_expsym_cmds \
21639 export_symbols_cmds \
21640 prelink_cmds \
21641 postlink_cmds \
21642 postinstall_cmds \
21643 postuninstall_cmds \
21644 finish_cmds \
21645 sys_lib_search_path_spec \
21646 sys_lib_dlsearch_path_spec \
21647 reload_cmds_CXX \
21648 old_archive_cmds_CXX \
21649 old_archive_from_new_cmds_CXX \
21650 old_archive_from_expsyms_cmds_CXX \
21651 archive_cmds_CXX \
21652 archive_expsym_cmds_CXX \
21653 module_cmds_CXX \
21654 module_expsym_cmds_CXX \
21655 export_symbols_cmds_CXX \
21656 prelink_cmds_CXX \
21657 postlink_cmds_CXX; do
21658     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21659     *[\\\\\\\`\\"\\\$]*)
21660       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21661       ;;
21662     *)
21663       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21664       ;;
21665     esac
21666 done
21667
21668 ac_aux_dir='$ac_aux_dir'
21669 xsi_shell='$xsi_shell'
21670 lt_shell_append='$lt_shell_append'
21671
21672 # See if we are running on zsh, and set the options which allow our
21673 # commands through without removal of \ escapes INIT.
21674 if test -n "\${ZSH_VERSION+set}" ; then
21675    setopt NO_GLOB_SUBST
21676 fi
21677
21678
21679     PACKAGE='$PACKAGE'
21680     VERSION='$VERSION'
21681     TIMESTAMP='$TIMESTAMP'
21682     RM='$RM'
21683     ofile='$ofile'
21684
21685
21686
21687
21688
21689
21690 _ACEOF
21691
21692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21693
21694 # Handling of arguments.
21695 for ac_config_target in $ac_config_targets
21696 do
21697   case $ac_config_target in
21698     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21699     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21700     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21701     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21702     "spice-server.pc") CONFIG_FILES="$CONFIG_FILES spice-server.pc" ;;
21703     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21704     "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;;
21705     "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
21706
21707   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21708   esac
21709 done
21710
21711
21712 # If the user did not use the arguments to specify the items to instantiate,
21713 # then the envvar interface is used.  Set only those that are not.
21714 # We use the long form for the default assignment because of an extremely
21715 # bizarre bug on SunOS 4.1.3.
21716 if $ac_need_defaults; then
21717   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21718   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21719   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21720 fi
21721
21722 # Have a temporary directory for convenience.  Make it in the build tree
21723 # simply because there is no reason against having it here, and in addition,
21724 # creating and moving files from /tmp can sometimes cause problems.
21725 # Hook for its removal unless debugging.
21726 # Note that there is a small window in which the directory will not be cleaned:
21727 # after its creation but before its name has been assigned to `$tmp'.
21728 $debug ||
21729 {
21730   tmp= ac_tmp=
21731   trap 'exit_status=$?
21732   : "${ac_tmp:=$tmp}"
21733   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21734 ' 0
21735   trap 'as_fn_exit 1' 1 2 13 15
21736 }
21737 # Create a (secure) tmp directory for tmp files.
21738
21739 {
21740   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21741   test -d "$tmp"
21742 }  ||
21743 {
21744   tmp=./conf$$-$RANDOM
21745   (umask 077 && mkdir "$tmp")
21746 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21747 ac_tmp=$tmp
21748
21749 # Set up the scripts for CONFIG_FILES section.
21750 # No need to generate them if there are no CONFIG_FILES.
21751 # This happens for instance with `./config.status config.h'.
21752 if test -n "$CONFIG_FILES"; then
21753
21754
21755 ac_cr=`echo X | tr X '\015'`
21756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21757 # But we know of no other shell where ac_cr would be empty at this
21758 # point, so we can use a bashism as a fallback.
21759 if test "x$ac_cr" = x; then
21760   eval ac_cr=\$\'\\r\'
21761 fi
21762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21764   ac_cs_awk_cr='\\r'
21765 else
21766   ac_cs_awk_cr=$ac_cr
21767 fi
21768
21769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21770 _ACEOF
21771
21772
21773 {
21774   echo "cat >conf$$subs.awk <<_ACEOF" &&
21775   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21776   echo "_ACEOF"
21777 } >conf$$subs.sh ||
21778   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21780 ac_delim='%!_!# '
21781 for ac_last_try in false false false false false :; do
21782   . ./conf$$subs.sh ||
21783     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21784
21785   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21786   if test $ac_delim_n = $ac_delim_num; then
21787     break
21788   elif $ac_last_try; then
21789     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21790   else
21791     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21792   fi
21793 done
21794 rm -f conf$$subs.sh
21795
21796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21797 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21798 _ACEOF
21799 sed -n '
21800 h
21801 s/^/S["/; s/!.*/"]=/
21802 p
21803 g
21804 s/^[^!]*!//
21805 :repl
21806 t repl
21807 s/'"$ac_delim"'$//
21808 t delim
21809 :nl
21810 h
21811 s/\(.\{148\}\)..*/\1/
21812 t more1
21813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21814 p
21815 n
21816 b repl
21817 :more1
21818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21819 p
21820 g
21821 s/.\{148\}//
21822 t nl
21823 :delim
21824 h
21825 s/\(.\{148\}\)..*/\1/
21826 t more2
21827 s/["\\]/\\&/g; s/^/"/; s/$/"/
21828 p
21829 b
21830 :more2
21831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21832 p
21833 g
21834 s/.\{148\}//
21835 t delim
21836 ' <conf$$subs.awk | sed '
21837 /^[^""]/{
21838   N
21839   s/\n//
21840 }
21841 ' >>$CONFIG_STATUS || ac_write_fail=1
21842 rm -f conf$$subs.awk
21843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21844 _ACAWK
21845 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21846   for (key in S) S_is_set[key] = 1
21847   FS = "\a"
21848
21849 }
21850 {
21851   line = $ 0
21852   nfields = split(line, field, "@")
21853   substed = 0
21854   len = length(field[1])
21855   for (i = 2; i < nfields; i++) {
21856     key = field[i]
21857     keylen = length(key)
21858     if (S_is_set[key]) {
21859       value = S[key]
21860       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21861       len += length(value) + length(field[++i])
21862       substed = 1
21863     } else
21864       len += 1 + keylen
21865   }
21866
21867   print line
21868 }
21869
21870 _ACAWK
21871 _ACEOF
21872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21874   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21875 else
21876   cat
21877 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21878   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21879 _ACEOF
21880
21881 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21882 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21883 # trailing colons and then remove the whole line if VPATH becomes empty
21884 # (actually we leave an empty line to preserve line numbers).
21885 if test "x$srcdir" = x.; then
21886   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21887 h
21888 s///
21889 s/^/:/
21890 s/[      ]*$/:/
21891 s/:\$(srcdir):/:/g
21892 s/:\${srcdir}:/:/g
21893 s/:@srcdir@:/:/g
21894 s/^:*//
21895 s/:*$//
21896 x
21897 s/\(=[   ]*\).*/\1/
21898 G
21899 s/\n//
21900 s/^[^=]*=[       ]*$//
21901 }'
21902 fi
21903
21904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21905 fi # test -n "$CONFIG_FILES"
21906
21907 # Set up the scripts for CONFIG_HEADERS section.
21908 # No need to generate them if there are no CONFIG_HEADERS.
21909 # This happens for instance with `./config.status Makefile'.
21910 if test -n "$CONFIG_HEADERS"; then
21911 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21912 BEGIN {
21913 _ACEOF
21914
21915 # Transform confdefs.h into an awk script `defines.awk', embedded as
21916 # here-document in config.status, that substitutes the proper values into
21917 # config.h.in to produce config.h.
21918
21919 # Create a delimiter string that does not exist in confdefs.h, to ease
21920 # handling of long lines.
21921 ac_delim='%!_!# '
21922 for ac_last_try in false false :; do
21923   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21924   if test -z "$ac_tt"; then
21925     break
21926   elif $ac_last_try; then
21927     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21928   else
21929     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21930   fi
21931 done
21932
21933 # For the awk script, D is an array of macro values keyed by name,
21934 # likewise P contains macro parameters if any.  Preserve backslash
21935 # newline sequences.
21936
21937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21938 sed -n '
21939 s/.\{148\}/&'"$ac_delim"'/g
21940 t rset
21941 :rset
21942 s/^[     ]*#[    ]*define[       ][      ]*/ /
21943 t def
21944 d
21945 :def
21946 s/\\$//
21947 t bsnl
21948 s/["\\]/\\&/g
21949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21950 D["\1"]=" \3"/p
21951 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21952 d
21953 :bsnl
21954 s/["\\]/\\&/g
21955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21956 D["\1"]=" \3\\\\\\n"\\/p
21957 t cont
21958 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21959 t cont
21960 d
21961 :cont
21962 n
21963 s/.\{148\}/&'"$ac_delim"'/g
21964 t clear
21965 :clear
21966 s/\\$//
21967 t bsnlc
21968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21969 d
21970 :bsnlc
21971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21972 b cont
21973 ' <confdefs.h | sed '
21974 s/'"$ac_delim"'/"\\\
21975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21976
21977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21978   for (key in D) D_is_set[key] = 1
21979   FS = "\a"
21980 }
21981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21982   line = \$ 0
21983   split(line, arg, " ")
21984   if (arg[1] == "#") {
21985     defundef = arg[2]
21986     mac1 = arg[3]
21987   } else {
21988     defundef = substr(arg[1], 2)
21989     mac1 = arg[2]
21990   }
21991   split(mac1, mac2, "(") #)
21992   macro = mac2[1]
21993   prefix = substr(line, 1, index(line, defundef) - 1)
21994   if (D_is_set[macro]) {
21995     # Preserve the white space surrounding the "#".
21996     print prefix "define", macro P[macro] D[macro]
21997     next
21998   } else {
21999     # Replace #undef with comments.  This is necessary, for example,
22000     # in the case of _POSIX_SOURCE, which is predefined and required
22001     # on some systems where configure will not decide to define it.
22002     if (defundef == "undef") {
22003       print "/*", prefix defundef, macro, "*/"
22004       next
22005     }
22006   }
22007 }
22008 { print }
22009 _ACAWK
22010 _ACEOF
22011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22012   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22013 fi # test -n "$CONFIG_HEADERS"
22014
22015
22016 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22017 shift
22018 for ac_tag
22019 do
22020   case $ac_tag in
22021   :[FHLC]) ac_mode=$ac_tag; continue;;
22022   esac
22023   case $ac_mode$ac_tag in
22024   :[FHL]*:*);;
22025   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22026   :[FH]-) ac_tag=-:-;;
22027   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22028   esac
22029   ac_save_IFS=$IFS
22030   IFS=:
22031   set x $ac_tag
22032   IFS=$ac_save_IFS
22033   shift
22034   ac_file=$1
22035   shift
22036
22037   case $ac_mode in
22038   :L) ac_source=$1;;
22039   :[FH])
22040     ac_file_inputs=
22041     for ac_f
22042     do
22043       case $ac_f in
22044       -) ac_f="$ac_tmp/stdin";;
22045       *) # Look for the file first in the build tree, then in the source tree
22046          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22047          # because $ac_f cannot contain `:'.
22048          test -f "$ac_f" ||
22049            case $ac_f in
22050            [\\/$]*) false;;
22051            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22052            esac ||
22053            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22054       esac
22055       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22056       as_fn_append ac_file_inputs " '$ac_f'"
22057     done
22058
22059     # Let's still pretend it is `configure' which instantiates (i.e., don't
22060     # use $as_me), people would be surprised to read:
22061     #    /* config.h.  Generated by config.status.  */
22062     configure_input='Generated from '`
22063           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22064         `' by configure.'
22065     if test x"$ac_file" != x-; then
22066       configure_input="$ac_file.  $configure_input"
22067       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22068 $as_echo "$as_me: creating $ac_file" >&6;}
22069     fi
22070     # Neutralize special characters interpreted by sed in replacement strings.
22071     case $configure_input in #(
22072     *\&* | *\|* | *\\* )
22073        ac_sed_conf_input=`$as_echo "$configure_input" |
22074        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22075     *) ac_sed_conf_input=$configure_input;;
22076     esac
22077
22078     case $ac_tag in
22079     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22080       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22081     esac
22082     ;;
22083   esac
22084
22085   ac_dir=`$as_dirname -- "$ac_file" ||
22086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22087          X"$ac_file" : 'X\(//\)[^/]' \| \
22088          X"$ac_file" : 'X\(//\)$' \| \
22089          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22090 $as_echo X"$ac_file" |
22091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22092             s//\1/
22093             q
22094           }
22095           /^X\(\/\/\)[^/].*/{
22096             s//\1/
22097             q
22098           }
22099           /^X\(\/\/\)$/{
22100             s//\1/
22101             q
22102           }
22103           /^X\(\/\).*/{
22104             s//\1/
22105             q
22106           }
22107           s/.*/./; q'`
22108   as_dir="$ac_dir"; as_fn_mkdir_p
22109   ac_builddir=.
22110
22111 case "$ac_dir" in
22112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22113 *)
22114   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22115   # A ".." for each directory in $ac_dir_suffix.
22116   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22117   case $ac_top_builddir_sub in
22118   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22119   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22120   esac ;;
22121 esac
22122 ac_abs_top_builddir=$ac_pwd
22123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22124 # for backward compatibility:
22125 ac_top_builddir=$ac_top_build_prefix
22126
22127 case $srcdir in
22128   .)  # We are building in place.
22129     ac_srcdir=.
22130     ac_top_srcdir=$ac_top_builddir_sub
22131     ac_abs_top_srcdir=$ac_pwd ;;
22132   [\\/]* | ?:[\\/]* )  # Absolute name.
22133     ac_srcdir=$srcdir$ac_dir_suffix;
22134     ac_top_srcdir=$srcdir
22135     ac_abs_top_srcdir=$srcdir ;;
22136   *) # Relative name.
22137     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22138     ac_top_srcdir=$ac_top_build_prefix$srcdir
22139     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22140 esac
22141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22142
22143
22144   case $ac_mode in
22145   :F)
22146   #
22147   # CONFIG_FILE
22148   #
22149
22150   case $INSTALL in
22151   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22152   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22153   esac
22154   ac_MKDIR_P=$MKDIR_P
22155   case $MKDIR_P in
22156   [\\/$]* | ?:[\\/]* ) ;;
22157   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22158   esac
22159 _ACEOF
22160
22161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22162 # If the template does not know about datarootdir, expand it.
22163 # FIXME: This hack should be removed a few years after 2.60.
22164 ac_datarootdir_hack=; ac_datarootdir_seen=
22165 ac_sed_dataroot='
22166 /datarootdir/ {
22167   p
22168   q
22169 }
22170 /@datadir@/p
22171 /@docdir@/p
22172 /@infodir@/p
22173 /@localedir@/p
22174 /@mandir@/p'
22175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22176 *datarootdir*) ac_datarootdir_seen=yes;;
22177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22178   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22180 _ACEOF
22181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22182   ac_datarootdir_hack='
22183   s&@datadir@&$datadir&g
22184   s&@docdir@&$docdir&g
22185   s&@infodir@&$infodir&g
22186   s&@localedir@&$localedir&g
22187   s&@mandir@&$mandir&g
22188   s&\\\${datarootdir}&$datarootdir&g' ;;
22189 esac
22190 _ACEOF
22191
22192 # Neutralize VPATH when `$srcdir' = `.'.
22193 # Shell code in configure.ac might set extrasub.
22194 # FIXME: do we really want to maintain this feature?
22195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22196 ac_sed_extra="$ac_vpsub
22197 $extrasub
22198 _ACEOF
22199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22200 :t
22201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22202 s|@configure_input@|$ac_sed_conf_input|;t t
22203 s&@top_builddir@&$ac_top_builddir_sub&;t t
22204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22205 s&@srcdir@&$ac_srcdir&;t t
22206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22207 s&@top_srcdir@&$ac_top_srcdir&;t t
22208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22209 s&@builddir@&$ac_builddir&;t t
22210 s&@abs_builddir@&$ac_abs_builddir&;t t
22211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22212 s&@INSTALL@&$ac_INSTALL&;t t
22213 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22214 $ac_datarootdir_hack
22215 "
22216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22217   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22218
22219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22220   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22221   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22222       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22224 which seems to be undefined.  Please make sure it is defined" >&5
22225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22226 which seems to be undefined.  Please make sure it is defined" >&2;}
22227
22228   rm -f "$ac_tmp/stdin"
22229   case $ac_file in
22230   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22231   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22232   esac \
22233   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22234  ;;
22235   :H)
22236   #
22237   # CONFIG_HEADER
22238   #
22239   if test x"$ac_file" != x-; then
22240     {
22241       $as_echo "/* $configure_input  */" \
22242       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22243     } >"$ac_tmp/config.h" \
22244       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22245     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22246       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22248     else
22249       rm -f "$ac_file"
22250       mv "$ac_tmp/config.h" "$ac_file" \
22251         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22252     fi
22253   else
22254     $as_echo "/* $configure_input  */" \
22255       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22256       || as_fn_error $? "could not create -" "$LINENO" 5
22257   fi
22258 # Compute "$ac_file"'s index in $config_headers.
22259 _am_arg="$ac_file"
22260 _am_stamp_count=1
22261 for _am_header in $config_headers :; do
22262   case $_am_header in
22263     $_am_arg | $_am_arg:* )
22264       break ;;
22265     * )
22266       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22267   esac
22268 done
22269 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22270 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22271          X"$_am_arg" : 'X\(//\)[^/]' \| \
22272          X"$_am_arg" : 'X\(//\)$' \| \
22273          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22274 $as_echo X"$_am_arg" |
22275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22276             s//\1/
22277             q
22278           }
22279           /^X\(\/\/\)[^/].*/{
22280             s//\1/
22281             q
22282           }
22283           /^X\(\/\/\)$/{
22284             s//\1/
22285             q
22286           }
22287           /^X\(\/\).*/{
22288             s//\1/
22289             q
22290           }
22291           s/.*/./; q'`/stamp-h$_am_stamp_count
22292  ;;
22293
22294   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22295 $as_echo "$as_me: executing $ac_file commands" >&6;}
22296  ;;
22297   esac
22298
22299
22300   case $ac_file$ac_mode in
22301     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22302   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22303   # are listed without --file.  Let's play safe and only enable the eval
22304   # if we detect the quoting.
22305   case $CONFIG_FILES in
22306   *\'*) eval set x "$CONFIG_FILES" ;;
22307   *)   set x $CONFIG_FILES ;;
22308   esac
22309   shift
22310   for mf
22311   do
22312     # Strip MF so we end up with the name of the file.
22313     mf=`echo "$mf" | sed -e 's/:.*$//'`
22314     # Check whether this is an Automake generated Makefile or not.
22315     # We used to match only the files named 'Makefile.in', but
22316     # some people rename them; so instead we look at the file content.
22317     # Grep'ing the first line is not enough: some people post-process
22318     # each Makefile.in and add a new line on top of each file to say so.
22319     # Grep'ing the whole file is not good either: AIX grep has a line
22320     # limit of 2048, but all sed's we know have understand at least 4000.
22321     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22322       dirpart=`$as_dirname -- "$mf" ||
22323 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22324          X"$mf" : 'X\(//\)[^/]' \| \
22325          X"$mf" : 'X\(//\)$' \| \
22326          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22327 $as_echo X"$mf" |
22328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22329             s//\1/
22330             q
22331           }
22332           /^X\(\/\/\)[^/].*/{
22333             s//\1/
22334             q
22335           }
22336           /^X\(\/\/\)$/{
22337             s//\1/
22338             q
22339           }
22340           /^X\(\/\).*/{
22341             s//\1/
22342             q
22343           }
22344           s/.*/./; q'`
22345     else
22346       continue
22347     fi
22348     # Extract the definition of DEPDIR, am__include, and am__quote
22349     # from the Makefile without running 'make'.
22350     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22351     test -z "$DEPDIR" && continue
22352     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22353     test -z "am__include" && continue
22354     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22355     # Find all dependency output files, they are included files with
22356     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22357     # simplest approach to changing $(DEPDIR) to its actual value in the
22358     # expansion.
22359     for file in `sed -n "
22360       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22361          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22362       # Make sure the directory exists.
22363       test -f "$dirpart/$file" && continue
22364       fdir=`$as_dirname -- "$file" ||
22365 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366          X"$file" : 'X\(//\)[^/]' \| \
22367          X"$file" : 'X\(//\)$' \| \
22368          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22369 $as_echo X"$file" |
22370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22371             s//\1/
22372             q
22373           }
22374           /^X\(\/\/\)[^/].*/{
22375             s//\1/
22376             q
22377           }
22378           /^X\(\/\/\)$/{
22379             s//\1/
22380             q
22381           }
22382           /^X\(\/\).*/{
22383             s//\1/
22384             q
22385           }
22386           s/.*/./; q'`
22387       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22388       # echo "creating $dirpart/$file"
22389       echo '# dummy' > "$dirpart/$file"
22390     done
22391   done
22392 }
22393  ;;
22394     "libtool":C)
22395
22396     # See if we are running on zsh, and set the options which allow our
22397     # commands through without removal of \ escapes.
22398     if test -n "${ZSH_VERSION+set}" ; then
22399       setopt NO_GLOB_SUBST
22400     fi
22401
22402     cfgfile="${ofile}T"
22403     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22404     $RM "$cfgfile"
22405
22406     cat <<_LT_EOF >> "$cfgfile"
22407 #! $SHELL
22408
22409 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22410 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22413 #
22414 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22415 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22416 #                 Foundation, Inc.
22417 #   Written by Gordon Matzigkeit, 1996
22418 #
22419 #   This file is part of GNU Libtool.
22420 #
22421 # GNU Libtool is free software; you can redistribute it and/or
22422 # modify it under the terms of the GNU General Public License as
22423 # published by the Free Software Foundation; either version 2 of
22424 # the License, or (at your option) any later version.
22425 #
22426 # As a special exception to the GNU General Public License,
22427 # if you distribute this file as part of a program or library that
22428 # is built using GNU Libtool, you may include this file under the
22429 # same distribution terms that you use for the rest of that program.
22430 #
22431 # GNU Libtool is distributed in the hope that it will be useful,
22432 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22434 # GNU General Public License for more details.
22435 #
22436 # You should have received a copy of the GNU General Public License
22437 # along with GNU Libtool; see the file COPYING.  If not, a copy
22438 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22439 # obtained by writing to the Free Software Foundation, Inc.,
22440 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22441
22442
22443 # The names of the tagged configurations supported by this script.
22444 available_tags="CXX "
22445
22446 # ### BEGIN LIBTOOL CONFIG
22447
22448 # Which release of libtool.m4 was used?
22449 macro_version=$macro_version
22450 macro_revision=$macro_revision
22451
22452 # Whether or not to build shared libraries.
22453 build_libtool_libs=$enable_shared
22454
22455 # Whether or not to build static libraries.
22456 build_old_libs=$enable_static
22457
22458 # What type of objects to build.
22459 pic_mode=$pic_mode
22460
22461 # Whether or not to optimize for fast installation.
22462 fast_install=$enable_fast_install
22463
22464 # Shell to use when invoking shell scripts.
22465 SHELL=$lt_SHELL
22466
22467 # An echo program that protects backslashes.
22468 ECHO=$lt_ECHO
22469
22470 # The PATH separator for the build system.
22471 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22472
22473 # The host system.
22474 host_alias=$host_alias
22475 host=$host
22476 host_os=$host_os
22477
22478 # The build system.
22479 build_alias=$build_alias
22480 build=$build
22481 build_os=$build_os
22482
22483 # A sed program that does not truncate output.
22484 SED=$lt_SED
22485
22486 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22487 Xsed="\$SED -e 1s/^X//"
22488
22489 # A grep program that handles long lines.
22490 GREP=$lt_GREP
22491
22492 # An ERE matcher.
22493 EGREP=$lt_EGREP
22494
22495 # A literal string matcher.
22496 FGREP=$lt_FGREP
22497
22498 # A BSD- or MS-compatible name lister.
22499 NM=$lt_NM
22500
22501 # Whether we need soft or hard links.
22502 LN_S=$lt_LN_S
22503
22504 # What is the maximum length of a command?
22505 max_cmd_len=$max_cmd_len
22506
22507 # Object file suffix (normally "o").
22508 objext=$ac_objext
22509
22510 # Executable file suffix (normally "").
22511 exeext=$exeext
22512
22513 # whether the shell understands "unset".
22514 lt_unset=$lt_unset
22515
22516 # turn spaces into newlines.
22517 SP2NL=$lt_lt_SP2NL
22518
22519 # turn newlines into spaces.
22520 NL2SP=$lt_lt_NL2SP
22521
22522 # convert \$build file names to \$host format.
22523 to_host_file_cmd=$lt_cv_to_host_file_cmd
22524
22525 # convert \$build files to toolchain format.
22526 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22527
22528 # An object symbol dumper.
22529 OBJDUMP=$lt_OBJDUMP
22530
22531 # Method to check whether dependent libraries are shared objects.
22532 deplibs_check_method=$lt_deplibs_check_method
22533
22534 # Command to use when deplibs_check_method = "file_magic".
22535 file_magic_cmd=$lt_file_magic_cmd
22536
22537 # How to find potential files when deplibs_check_method = "file_magic".
22538 file_magic_glob=$lt_file_magic_glob
22539
22540 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22541 want_nocaseglob=$lt_want_nocaseglob
22542
22543 # DLL creation program.
22544 DLLTOOL=$lt_DLLTOOL
22545
22546 # Command to associate shared and link libraries.
22547 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22548
22549 # The archiver.
22550 AR=$lt_AR
22551
22552 # Flags to create an archive.
22553 AR_FLAGS=$lt_AR_FLAGS
22554
22555 # How to feed a file listing to the archiver.
22556 archiver_list_spec=$lt_archiver_list_spec
22557
22558 # A symbol stripping program.
22559 STRIP=$lt_STRIP
22560
22561 # Commands used to install an old-style archive.
22562 RANLIB=$lt_RANLIB
22563 old_postinstall_cmds=$lt_old_postinstall_cmds
22564 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22565
22566 # Whether to use a lock for old archive extraction.
22567 lock_old_archive_extraction=$lock_old_archive_extraction
22568
22569 # A C compiler.
22570 LTCC=$lt_CC
22571
22572 # LTCC compiler flags.
22573 LTCFLAGS=$lt_CFLAGS
22574
22575 # Take the output of nm and produce a listing of raw symbols and C names.
22576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22577
22578 # Transform the output of nm in a proper C declaration.
22579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22580
22581 # Transform the output of nm in a C name address pair.
22582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22583
22584 # Transform the output of nm in a C name address pair when lib prefix is needed.
22585 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22586
22587 # Specify filename containing input files for \$NM.
22588 nm_file_list_spec=$lt_nm_file_list_spec
22589
22590 # The root where to search for dependent libraries,and in which our libraries should be installed.
22591 lt_sysroot=$lt_sysroot
22592
22593 # The name of the directory that contains temporary libtool files.
22594 objdir=$objdir
22595
22596 # Used to examine libraries when file_magic_cmd begins with "file".
22597 MAGIC_CMD=$MAGIC_CMD
22598
22599 # Must we lock files when doing compilation?
22600 need_locks=$lt_need_locks
22601
22602 # Manifest tool.
22603 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22604
22605 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22606 DSYMUTIL=$lt_DSYMUTIL
22607
22608 # Tool to change global to local symbols on Mac OS X.
22609 NMEDIT=$lt_NMEDIT
22610
22611 # Tool to manipulate fat objects and archives on Mac OS X.
22612 LIPO=$lt_LIPO
22613
22614 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22615 OTOOL=$lt_OTOOL
22616
22617 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22618 OTOOL64=$lt_OTOOL64
22619
22620 # Old archive suffix (normally "a").
22621 libext=$libext
22622
22623 # Shared library suffix (normally ".so").
22624 shrext_cmds=$lt_shrext_cmds
22625
22626 # The commands to extract the exported symbol list from a shared archive.
22627 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22628
22629 # Variables whose values should be saved in libtool wrapper scripts and
22630 # restored at link time.
22631 variables_saved_for_relink=$lt_variables_saved_for_relink
22632
22633 # Do we need the "lib" prefix for modules?
22634 need_lib_prefix=$need_lib_prefix
22635
22636 # Do we need a version for libraries?
22637 need_version=$need_version
22638
22639 # Library versioning type.
22640 version_type=$version_type
22641
22642 # Shared library runtime path variable.
22643 runpath_var=$runpath_var
22644
22645 # Shared library path variable.
22646 shlibpath_var=$shlibpath_var
22647
22648 # Is shlibpath searched before the hard-coded library search path?
22649 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22650
22651 # Format of library name prefix.
22652 libname_spec=$lt_libname_spec
22653
22654 # List of archive names.  First name is the real one, the rest are links.
22655 # The last name is the one that the linker finds with -lNAME
22656 library_names_spec=$lt_library_names_spec
22657
22658 # The coded name of the library, if different from the real name.
22659 soname_spec=$lt_soname_spec
22660
22661 # Permission mode override for installation of shared libraries.
22662 install_override_mode=$lt_install_override_mode
22663
22664 # Command to use after installation of a shared archive.
22665 postinstall_cmds=$lt_postinstall_cmds
22666
22667 # Command to use after uninstallation of a shared archive.
22668 postuninstall_cmds=$lt_postuninstall_cmds
22669
22670 # Commands used to finish a libtool library installation in a directory.
22671 finish_cmds=$lt_finish_cmds
22672
22673 # As "finish_cmds", except a single script fragment to be evaled but
22674 # not shown.
22675 finish_eval=$lt_finish_eval
22676
22677 # Whether we should hardcode library paths into libraries.
22678 hardcode_into_libs=$hardcode_into_libs
22679
22680 # Compile-time system search path for libraries.
22681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22682
22683 # Run-time system search path for libraries.
22684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22685
22686 # Whether dlopen is supported.
22687 dlopen_support=$enable_dlopen
22688
22689 # Whether dlopen of programs is supported.
22690 dlopen_self=$enable_dlopen_self
22691
22692 # Whether dlopen of statically linked programs is supported.
22693 dlopen_self_static=$enable_dlopen_self_static
22694
22695 # Commands to strip libraries.
22696 old_striplib=$lt_old_striplib
22697 striplib=$lt_striplib
22698
22699
22700 # The linker used to build libraries.
22701 LD=$lt_LD
22702
22703 # How to create reloadable object files.
22704 reload_flag=$lt_reload_flag
22705 reload_cmds=$lt_reload_cmds
22706
22707 # Commands used to build an old-style archive.
22708 old_archive_cmds=$lt_old_archive_cmds
22709
22710 # A language specific compiler.
22711 CC=$lt_compiler
22712
22713 # Is the compiler the GNU compiler?
22714 with_gcc=$GCC
22715
22716 # Compiler flag to turn off builtin functions.
22717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22718
22719 # Additional compiler flags for building library objects.
22720 pic_flag=$lt_lt_prog_compiler_pic
22721
22722 # How to pass a linker flag through the compiler.
22723 wl=$lt_lt_prog_compiler_wl
22724
22725 # Compiler flag to prevent dynamic linking.
22726 link_static_flag=$lt_lt_prog_compiler_static
22727
22728 # Does compiler simultaneously support -c and -o options?
22729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22730
22731 # Whether or not to add -lc for building shared libraries.
22732 build_libtool_need_lc=$archive_cmds_need_lc
22733
22734 # Whether or not to disallow shared libs when runtime libs are static.
22735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22736
22737 # Compiler flag to allow reflexive dlopens.
22738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22739
22740 # Compiler flag to generate shared objects directly from archives.
22741 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22742
22743 # Whether the compiler copes with passing no objects directly.
22744 compiler_needs_object=$lt_compiler_needs_object
22745
22746 # Create an old-style archive from a shared archive.
22747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22748
22749 # Create a temporary old-style archive to link instead of a shared archive.
22750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22751
22752 # Commands used to build a shared archive.
22753 archive_cmds=$lt_archive_cmds
22754 archive_expsym_cmds=$lt_archive_expsym_cmds
22755
22756 # Commands used to build a loadable module if different from building
22757 # a shared archive.
22758 module_cmds=$lt_module_cmds
22759 module_expsym_cmds=$lt_module_expsym_cmds
22760
22761 # Whether we are building with GNU ld or not.
22762 with_gnu_ld=$lt_with_gnu_ld
22763
22764 # Flag that allows shared libraries with undefined symbols to be built.
22765 allow_undefined_flag=$lt_allow_undefined_flag
22766
22767 # Flag that enforces no undefined symbols.
22768 no_undefined_flag=$lt_no_undefined_flag
22769
22770 # Flag to hardcode \$libdir into a binary during linking.
22771 # This must work even if \$libdir does not exist
22772 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22773
22774 # Whether we need a single "-rpath" flag with a separated argument.
22775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22776
22777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22778 # DIR into the resulting binary.
22779 hardcode_direct=$hardcode_direct
22780
22781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22782 # DIR into the resulting binary and the resulting library dependency is
22783 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22784 # library is relocated.
22785 hardcode_direct_absolute=$hardcode_direct_absolute
22786
22787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22788 # into the resulting binary.
22789 hardcode_minus_L=$hardcode_minus_L
22790
22791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22792 # into the resulting binary.
22793 hardcode_shlibpath_var=$hardcode_shlibpath_var
22794
22795 # Set to "yes" if building a shared library automatically hardcodes DIR
22796 # into the library and all subsequent libraries and executables linked
22797 # against it.
22798 hardcode_automatic=$hardcode_automatic
22799
22800 # Set to yes if linker adds runtime paths of dependent libraries
22801 # to runtime path list.
22802 inherit_rpath=$inherit_rpath
22803
22804 # Whether libtool must link a program against all its dependency libraries.
22805 link_all_deplibs=$link_all_deplibs
22806
22807 # Set to "yes" if exported symbols are required.
22808 always_export_symbols=$always_export_symbols
22809
22810 # The commands to list exported symbols.
22811 export_symbols_cmds=$lt_export_symbols_cmds
22812
22813 # Symbols that should not be listed in the preloaded symbols.
22814 exclude_expsyms=$lt_exclude_expsyms
22815
22816 # Symbols that must always be exported.
22817 include_expsyms=$lt_include_expsyms
22818
22819 # Commands necessary for linking programs (against libraries) with templates.
22820 prelink_cmds=$lt_prelink_cmds
22821
22822 # Commands necessary for finishing linking programs.
22823 postlink_cmds=$lt_postlink_cmds
22824
22825 # Specify filename containing input files.
22826 file_list_spec=$lt_file_list_spec
22827
22828 # How to hardcode a shared library path into an executable.
22829 hardcode_action=$hardcode_action
22830
22831 # The directories searched by this compiler when creating a shared library.
22832 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22833
22834 # Dependencies to place before and after the objects being linked to
22835 # create a shared library.
22836 predep_objects=$lt_predep_objects
22837 postdep_objects=$lt_postdep_objects
22838 predeps=$lt_predeps
22839 postdeps=$lt_postdeps
22840
22841 # The library search path used internally by the compiler when linking
22842 # a shared library.
22843 compiler_lib_search_path=$lt_compiler_lib_search_path
22844
22845 # ### END LIBTOOL CONFIG
22846
22847 _LT_EOF
22848
22849   case $host_os in
22850   aix3*)
22851     cat <<\_LT_EOF >> "$cfgfile"
22852 # AIX sometimes has problems with the GCC collect2 program.  For some
22853 # reason, if we set the COLLECT_NAMES environment variable, the problems
22854 # vanish in a puff of smoke.
22855 if test "X${COLLECT_NAMES+set}" != Xset; then
22856   COLLECT_NAMES=
22857   export COLLECT_NAMES
22858 fi
22859 _LT_EOF
22860     ;;
22861   esac
22862
22863
22864 ltmain="$ac_aux_dir/ltmain.sh"
22865
22866
22867   # We use sed instead of cat because bash on DJGPP gets confused if
22868   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22869   # text mode, it properly converts lines to CR/LF.  This bash problem
22870   # is reportedly fixed, but why not run on old versions too?
22871   sed '$q' "$ltmain" >> "$cfgfile" \
22872      || (rm -f "$cfgfile"; exit 1)
22873
22874   if test x"$xsi_shell" = xyes; then
22875   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22876 func_dirname ()\
22877 {\
22878 \    case ${1} in\
22879 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22880 \      *  ) func_dirname_result="${3}" ;;\
22881 \    esac\
22882 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22883   && mv -f "$cfgfile.tmp" "$cfgfile" \
22884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22885 test 0 -eq $? || _lt_function_replace_fail=:
22886
22887
22888   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22889 func_basename ()\
22890 {\
22891 \    func_basename_result="${1##*/}"\
22892 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22893   && mv -f "$cfgfile.tmp" "$cfgfile" \
22894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22895 test 0 -eq $? || _lt_function_replace_fail=:
22896
22897
22898   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22899 func_dirname_and_basename ()\
22900 {\
22901 \    case ${1} in\
22902 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22903 \      *  ) func_dirname_result="${3}" ;;\
22904 \    esac\
22905 \    func_basename_result="${1##*/}"\
22906 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22907   && mv -f "$cfgfile.tmp" "$cfgfile" \
22908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22909 test 0 -eq $? || _lt_function_replace_fail=:
22910
22911
22912   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22913 func_stripname ()\
22914 {\
22915 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22916 \    # positional parameters, so assign one to ordinary parameter first.\
22917 \    func_stripname_result=${3}\
22918 \    func_stripname_result=${func_stripname_result#"${1}"}\
22919 \    func_stripname_result=${func_stripname_result%"${2}"}\
22920 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22921   && mv -f "$cfgfile.tmp" "$cfgfile" \
22922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22923 test 0 -eq $? || _lt_function_replace_fail=:
22924
22925
22926   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22927 func_split_long_opt ()\
22928 {\
22929 \    func_split_long_opt_name=${1%%=*}\
22930 \    func_split_long_opt_arg=${1#*=}\
22931 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22932   && mv -f "$cfgfile.tmp" "$cfgfile" \
22933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22934 test 0 -eq $? || _lt_function_replace_fail=:
22935
22936
22937   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22938 func_split_short_opt ()\
22939 {\
22940 \    func_split_short_opt_arg=${1#??}\
22941 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22942 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22943   && mv -f "$cfgfile.tmp" "$cfgfile" \
22944     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22945 test 0 -eq $? || _lt_function_replace_fail=:
22946
22947
22948   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22949 func_lo2o ()\
22950 {\
22951 \    case ${1} in\
22952 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22953 \      *)    func_lo2o_result=${1} ;;\
22954 \    esac\
22955 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22956   && mv -f "$cfgfile.tmp" "$cfgfile" \
22957     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22958 test 0 -eq $? || _lt_function_replace_fail=:
22959
22960
22961   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22962 func_xform ()\
22963 {\
22964     func_xform_result=${1%.*}.lo\
22965 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22966   && mv -f "$cfgfile.tmp" "$cfgfile" \
22967     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22968 test 0 -eq $? || _lt_function_replace_fail=:
22969
22970
22971   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22972 func_arith ()\
22973 {\
22974     func_arith_result=$(( $* ))\
22975 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22976   && mv -f "$cfgfile.tmp" "$cfgfile" \
22977     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22978 test 0 -eq $? || _lt_function_replace_fail=:
22979
22980
22981   sed -e '/^func_len ()$/,/^} # func_len /c\
22982 func_len ()\
22983 {\
22984     func_len_result=${#1}\
22985 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22986   && mv -f "$cfgfile.tmp" "$cfgfile" \
22987     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22988 test 0 -eq $? || _lt_function_replace_fail=:
22989
22990 fi
22991
22992 if test x"$lt_shell_append" = xyes; then
22993   sed -e '/^func_append ()$/,/^} # func_append /c\
22994 func_append ()\
22995 {\
22996     eval "${1}+=\\${2}"\
22997 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22998   && mv -f "$cfgfile.tmp" "$cfgfile" \
22999     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23000 test 0 -eq $? || _lt_function_replace_fail=:
23001
23002
23003   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23004 func_append_quoted ()\
23005 {\
23006 \    func_quote_for_eval "${2}"\
23007 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23008 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23009   && mv -f "$cfgfile.tmp" "$cfgfile" \
23010     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23011 test 0 -eq $? || _lt_function_replace_fail=:
23012
23013
23014   # Save a `func_append' function call where possible by direct use of '+='
23015   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23016     && mv -f "$cfgfile.tmp" "$cfgfile" \
23017       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23018   test 0 -eq $? || _lt_function_replace_fail=:
23019 else
23020   # Save a `func_append' function call even when '+=' is not available
23021   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23022     && mv -f "$cfgfile.tmp" "$cfgfile" \
23023       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23024   test 0 -eq $? || _lt_function_replace_fail=:
23025 fi
23026
23027 if test x"$_lt_function_replace_fail" = x":"; then
23028   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23029 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23030 fi
23031
23032
23033    mv -f "$cfgfile" "$ofile" ||
23034     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23035   chmod +x "$ofile"
23036
23037
23038     cat <<_LT_EOF >> "$ofile"
23039
23040 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23041
23042 # The linker used to build libraries.
23043 LD=$lt_LD_CXX
23044
23045 # How to create reloadable object files.
23046 reload_flag=$lt_reload_flag_CXX
23047 reload_cmds=$lt_reload_cmds_CXX
23048
23049 # Commands used to build an old-style archive.
23050 old_archive_cmds=$lt_old_archive_cmds_CXX
23051
23052 # A language specific compiler.
23053 CC=$lt_compiler_CXX
23054
23055 # Is the compiler the GNU compiler?
23056 with_gcc=$GCC_CXX
23057
23058 # Compiler flag to turn off builtin functions.
23059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23060
23061 # Additional compiler flags for building library objects.
23062 pic_flag=$lt_lt_prog_compiler_pic_CXX
23063
23064 # How to pass a linker flag through the compiler.
23065 wl=$lt_lt_prog_compiler_wl_CXX
23066
23067 # Compiler flag to prevent dynamic linking.
23068 link_static_flag=$lt_lt_prog_compiler_static_CXX
23069
23070 # Does compiler simultaneously support -c and -o options?
23071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23072
23073 # Whether or not to add -lc for building shared libraries.
23074 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23075
23076 # Whether or not to disallow shared libs when runtime libs are static.
23077 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23078
23079 # Compiler flag to allow reflexive dlopens.
23080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23081
23082 # Compiler flag to generate shared objects directly from archives.
23083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23084
23085 # Whether the compiler copes with passing no objects directly.
23086 compiler_needs_object=$lt_compiler_needs_object_CXX
23087
23088 # Create an old-style archive from a shared archive.
23089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23090
23091 # Create a temporary old-style archive to link instead of a shared archive.
23092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23093
23094 # Commands used to build a shared archive.
23095 archive_cmds=$lt_archive_cmds_CXX
23096 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23097
23098 # Commands used to build a loadable module if different from building
23099 # a shared archive.
23100 module_cmds=$lt_module_cmds_CXX
23101 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23102
23103 # Whether we are building with GNU ld or not.
23104 with_gnu_ld=$lt_with_gnu_ld_CXX
23105
23106 # Flag that allows shared libraries with undefined symbols to be built.
23107 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23108
23109 # Flag that enforces no undefined symbols.
23110 no_undefined_flag=$lt_no_undefined_flag_CXX
23111
23112 # Flag to hardcode \$libdir into a binary during linking.
23113 # This must work even if \$libdir does not exist
23114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23115
23116 # Whether we need a single "-rpath" flag with a separated argument.
23117 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23118
23119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23120 # DIR into the resulting binary.
23121 hardcode_direct=$hardcode_direct_CXX
23122
23123 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23124 # DIR into the resulting binary and the resulting library dependency is
23125 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23126 # library is relocated.
23127 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23128
23129 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23130 # into the resulting binary.
23131 hardcode_minus_L=$hardcode_minus_L_CXX
23132
23133 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23134 # into the resulting binary.
23135 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23136
23137 # Set to "yes" if building a shared library automatically hardcodes DIR
23138 # into the library and all subsequent libraries and executables linked
23139 # against it.
23140 hardcode_automatic=$hardcode_automatic_CXX
23141
23142 # Set to yes if linker adds runtime paths of dependent libraries
23143 # to runtime path list.
23144 inherit_rpath=$inherit_rpath_CXX
23145
23146 # Whether libtool must link a program against all its dependency libraries.
23147 link_all_deplibs=$link_all_deplibs_CXX
23148
23149 # Set to "yes" if exported symbols are required.
23150 always_export_symbols=$always_export_symbols_CXX
23151
23152 # The commands to list exported symbols.
23153 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23154
23155 # Symbols that should not be listed in the preloaded symbols.
23156 exclude_expsyms=$lt_exclude_expsyms_CXX
23157
23158 # Symbols that must always be exported.
23159 include_expsyms=$lt_include_expsyms_CXX
23160
23161 # Commands necessary for linking programs (against libraries) with templates.
23162 prelink_cmds=$lt_prelink_cmds_CXX
23163
23164 # Commands necessary for finishing linking programs.
23165 postlink_cmds=$lt_postlink_cmds_CXX
23166
23167 # Specify filename containing input files.
23168 file_list_spec=$lt_file_list_spec_CXX
23169
23170 # How to hardcode a shared library path into an executable.
23171 hardcode_action=$hardcode_action_CXX
23172
23173 # The directories searched by this compiler when creating a shared library.
23174 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23175
23176 # Dependencies to place before and after the objects being linked to
23177 # create a shared library.
23178 predep_objects=$lt_predep_objects_CXX
23179 postdep_objects=$lt_postdep_objects_CXX
23180 predeps=$lt_predeps_CXX
23181 postdeps=$lt_postdeps_CXX
23182
23183 # The library search path used internally by the compiler when linking
23184 # a shared library.
23185 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23186
23187 # ### END LIBTOOL TAG CONFIG: CXX
23188 _LT_EOF
23189
23190  ;;
23191
23192   esac
23193 done # for ac_tag
23194
23195
23196 as_fn_exit 0
23197 _ACEOF
23198 ac_clean_files=$ac_clean_files_save
23199
23200 test $ac_write_fail = 0 ||
23201   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23202
23203
23204 # configure is writing to config.log, and then calls config.status.
23205 # config.status does its own redirection, appending to config.log.
23206 # Unfortunately, on DOS this fails, as config.log is still kept open
23207 # by configure, so config.status won't be able to write to it; its
23208 # output is simply discarded.  So we exec the FD to /dev/null,
23209 # effectively closing config.log, so it can be properly (re)opened and
23210 # appended to by config.status.  When coming back to configure, we
23211 # need to make the FD available again.
23212 if test "$no_create" != yes; then
23213   ac_cs_success=:
23214   ac_config_status_args=
23215   test "$silent" = yes &&
23216     ac_config_status_args="$ac_config_status_args --quiet"
23217   exec 5>/dev/null
23218   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23219   exec 5>>config.log
23220   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23221   # would make configure fail if this is the last instruction.
23222   $ac_cs_success || as_fn_exit 1
23223 fi
23224
23225 #
23226 # CONFIG_SUBDIRS section.
23227 #
23228 if test "$no_recursion" != yes; then
23229
23230   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23231   # so they do not pile up.
23232   ac_sub_configure_args=
23233   ac_prev=
23234   eval "set x $ac_configure_args"
23235   shift
23236   for ac_arg
23237   do
23238     if test -n "$ac_prev"; then
23239       ac_prev=
23240       continue
23241     fi
23242     case $ac_arg in
23243     -cache-file | --cache-file | --cache-fil | --cache-fi \
23244     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23245       ac_prev=cache_file ;;
23246     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23247     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23248     | --c=*)
23249       ;;
23250     --config-cache | -C)
23251       ;;
23252     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23253       ac_prev=srcdir ;;
23254     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23255       ;;
23256     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23257       ac_prev=prefix ;;
23258     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23259       ;;
23260     --disable-option-checking)
23261       ;;
23262     *)
23263       case $ac_arg in
23264       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23265       esac
23266       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23267     esac
23268   done
23269
23270   # Always prepend --prefix to ensure using the same prefix
23271   # in subdir configurations.
23272   ac_arg="--prefix=$prefix"
23273   case $ac_arg in
23274   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23275   esac
23276   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23277
23278   # Pass --silent
23279   if test "$silent" = yes; then
23280     ac_sub_configure_args="--silent $ac_sub_configure_args"
23281   fi
23282
23283   # Always prepend --disable-option-checking to silence warnings, since
23284   # different subdirs can have different --enable and --with options.
23285   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23286
23287   ac_popdir=`pwd`
23288   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23289
23290     # Do not complain, so a configure script can configure whichever
23291     # parts of a large source tree are present.
23292     test -d "$srcdir/$ac_dir" || continue
23293
23294     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23295     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23296     $as_echo "$ac_msg" >&6
23297     as_dir="$ac_dir"; as_fn_mkdir_p
23298     ac_builddir=.
23299
23300 case "$ac_dir" in
23301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23302 *)
23303   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23304   # A ".." for each directory in $ac_dir_suffix.
23305   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23306   case $ac_top_builddir_sub in
23307   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23308   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23309   esac ;;
23310 esac
23311 ac_abs_top_builddir=$ac_pwd
23312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23313 # for backward compatibility:
23314 ac_top_builddir=$ac_top_build_prefix
23315
23316 case $srcdir in
23317   .)  # We are building in place.
23318     ac_srcdir=.
23319     ac_top_srcdir=$ac_top_builddir_sub
23320     ac_abs_top_srcdir=$ac_pwd ;;
23321   [\\/]* | ?:[\\/]* )  # Absolute name.
23322     ac_srcdir=$srcdir$ac_dir_suffix;
23323     ac_top_srcdir=$srcdir
23324     ac_abs_top_srcdir=$srcdir ;;
23325   *) # Relative name.
23326     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23327     ac_top_srcdir=$ac_top_build_prefix$srcdir
23328     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23329 esac
23330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23331
23332
23333     cd "$ac_dir"
23334
23335     # Check for guested configure; otherwise get Cygnus style configure.
23336     if test -f "$ac_srcdir/configure.gnu"; then
23337       ac_sub_configure=$ac_srcdir/configure.gnu
23338     elif test -f "$ac_srcdir/configure"; then
23339       ac_sub_configure=$ac_srcdir/configure
23340     elif test -f "$ac_srcdir/configure.in"; then
23341       # This should be Cygnus configure.
23342       ac_sub_configure=$ac_aux_dir/configure
23343     else
23344       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23345 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23346       ac_sub_configure=
23347     fi
23348
23349     # The recursion is here.
23350     if test -n "$ac_sub_configure"; then
23351       # Make the cache file name correct relative to the subdirectory.
23352       case $cache_file in
23353       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23354       *) # Relative name.
23355         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23356       esac
23357
23358       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23359 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23360       # The eval makes quoting arguments work.
23361       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23362            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23363         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23364     fi
23365
23366     cd "$ac_popdir"
23367   done
23368 fi
23369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23370   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23371 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23372 fi
23373
23374
23375 echo "
23376
23377         Spice $VERSION
23378         ==============
23379
23380         prefix:                   ${prefix}
23381         c compiler:               ${CC}
23382         c++ compiler:             ${CXX}
23383         python:                   ${PYTHON}
23384
23385         Build Spice client:       ${enable_client}
23386 " ; if test "x$enable_client" == "xyes"; then echo "\
23387         Have XRANDR 1.2:          ${have_xrandr12}
23388
23389         Have Xinerama:            ${have_xinerama}
23390
23391         Red target:               ${red_target}
23392
23393         OpenGL:                   ${enable_opengl}
23394
23395         GUI:                      ${enable_gui}
23396 " ; fi ; echo "\
23397         Support tunneling:        ${enable_tunnel}
23398
23399         Smartcard:                ${enable_smartcard}
23400
23401         SASL support:             ${enable_sasl}
23402
23403         Automated tests:          ${enable_automated_tests}
23404 "
23405
23406 if test $os_win32 == "yes" ; then
23407 echo \
23408 "        Copy & Paste Images:     ${have_cximage}
23409 "
23410 fi
23411
23412 echo \
23413 "        Now type 'make' to build $PACKAGE
23414 "