modified install path for auto start in emulator
[platform/adaptation/emulator/spice-vdagent.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for spice-vdagent 0.15.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='spice-vdagent'
579 PACKAGE_TARNAME='spice-vdagent'
580 PACKAGE_VERSION='0.15.0'
581 PACKAGE_STRING='spice-vdagent 0.15.0'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="configure.ac"
586 ac_subst_vars='am__EXEEXT_FALSE
587 am__EXEEXT_TRUE
588 LTLIBOBJS
589 LIBOBJS
590 PIE_LDFLAGS
591 PIE_CFLAGS
592 HAVE_PCIACCESS_FALSE
593 HAVE_PCIACCESS_TRUE
594 PCIACCESS_LIBS
595 PCIACCESS_CFLAGS
596 HAVE_CONSOLE_KIT_FALSE
597 HAVE_CONSOLE_KIT_TRUE
598 DBUS_LIBS
599 DBUS_CFLAGS
600 HAVE_LIBSYSTEMD_LOGIN_FALSE
601 HAVE_LIBSYSTEMD_LOGIN_TRUE
602 LIBSYSTEMD_LOGIN_LIBS
603 LIBSYSTEMD_LOGIN_CFLAGS
604 SPICE_LIBS
605 SPICE_CFLAGS
606 X_LIBS
607 X_CFLAGS
608 GLIB2_LIBS
609 GLIB2_CFLAGS
610 SYSTEMDSYSTEMUNITDIR
611 INIT_SCRIPT_SYSTEMD_FALSE
612 INIT_SCRIPT_SYSTEMD_TRUE
613 INIT_SCRIPT_RED_HAT_FALSE
614 INIT_SCRIPT_RED_HAT_TRUE
615 PKG_CONFIG_LIBDIR
616 PKG_CONFIG_PATH
617 PKG_CONFIG
618 LN_S
619 EGREP
620 GREP
621 CPP
622 am__fastdepCC_FALSE
623 am__fastdepCC_TRUE
624 CCDEPMODE
625 am__nodep
626 AMDEPBACKSLASH
627 AMDEP_FALSE
628 AMDEP_TRUE
629 am__quote
630 am__include
631 DEPDIR
632 OBJEXT
633 EXEEXT
634 ac_ct_CC
635 CPPFLAGS
636 LDFLAGS
637 CFLAGS
638 CC
639 AM_BACKSLASH
640 AM_DEFAULT_VERBOSITY
641 AM_DEFAULT_V
642 AM_V
643 am__untar
644 am__tar
645 AMTAR
646 am__leading_dot
647 SET_MAKE
648 AWK
649 mkdir_p
650 MKDIR_P
651 INSTALL_STRIP_PROGRAM
652 STRIP
653 install_sh
654 MAKEINFO
655 AUTOHEADER
656 AUTOMAKE
657 AUTOCONF
658 ACLOCAL
659 VERSION
660 PACKAGE
661 CYGPATH_W
662 am__isrc
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 target_alias
667 host_alias
668 build_alias
669 LIBS
670 ECHO_T
671 ECHO_N
672 ECHO_C
673 DEFS
674 mandir
675 localedir
676 libdir
677 psdir
678 pdfdir
679 dvidir
680 htmldir
681 infodir
682 docdir
683 oldincludedir
684 includedir
685 localstatedir
686 sharedstatedir
687 sysconfdir
688 datadir
689 datarootdir
690 libexecdir
691 sbindir
692 bindir
693 program_transform_name
694 prefix
695 exec_prefix
696 PACKAGE_URL
697 PACKAGE_BUGREPORT
698 PACKAGE_STRING
699 PACKAGE_VERSION
700 PACKAGE_TARNAME
701 PACKAGE_NAME
702 PATH_SEPARATOR
703 SHELL'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 enable_silent_rules
708 enable_dependency_tracking
709 with_session_info
710 with_init_script
711 enable_pciaccess
712 enable_static_uinput
713 enable_pie
714 '
715       ac_precious_vars='build_alias
716 host_alias
717 target_alias
718 CC
719 CFLAGS
720 LDFLAGS
721 LIBS
722 CPPFLAGS
723 CPP
724 PKG_CONFIG
725 PKG_CONFIG_PATH
726 PKG_CONFIG_LIBDIR
727 GLIB2_CFLAGS
728 GLIB2_LIBS
729 X_CFLAGS
730 X_LIBS
731 SPICE_CFLAGS
732 SPICE_LIBS
733 LIBSYSTEMD_LOGIN_CFLAGS
734 LIBSYSTEMD_LOGIN_LIBS
735 DBUS_CFLAGS
736 DBUS_LIBS
737 PCIACCESS_CFLAGS
738 PCIACCESS_LIBS'
739
740
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 ac_unrecognized_opts=
745 ac_unrecognized_sep=
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
762
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
788
789 ac_prev=
790 ac_dashdash=
791 for ac_option
792 do
793   # If the previous option needs an argument, assign it.
794   if test -n "$ac_prev"; then
795     eval $ac_prev=\$ac_option
796     ac_prev=
797     continue
798   fi
799
800   case $ac_option in
801   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802   *=)   ac_optarg= ;;
803   *)    ac_optarg=yes ;;
804   esac
805
806   # Accept the important Cygnus configure options, so we can diagnose typos.
807
808   case $ac_dashdash$ac_option in
809   --)
810     ac_dashdash=yes ;;
811
812   -bindir | --bindir | --bindi | --bind | --bin | --bi)
813     ac_prev=bindir ;;
814   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815     bindir=$ac_optarg ;;
816
817   -build | --build | --buil | --bui | --bu)
818     ac_prev=build_alias ;;
819   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820     build_alias=$ac_optarg ;;
821
822   -cache-file | --cache-file | --cache-fil | --cache-fi \
823   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824     ac_prev=cache_file ;;
825   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827     cache_file=$ac_optarg ;;
828
829   --config-cache | -C)
830     cache_file=config.cache ;;
831
832   -datadir | --datadir | --datadi | --datad)
833     ac_prev=datadir ;;
834   -datadir=* | --datadir=* | --datadi=* | --datad=*)
835     datadir=$ac_optarg ;;
836
837   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838   | --dataroo | --dataro | --datar)
839     ac_prev=datarootdir ;;
840   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842     datarootdir=$ac_optarg ;;
843
844   -disable-* | --disable-*)
845     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846     # Reject names that are not valid shell variable names.
847     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848       as_fn_error $? "invalid feature name: $ac_useropt"
849     ac_useropt_orig=$ac_useropt
850     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851     case $ac_user_opts in
852       *"
853 "enable_$ac_useropt"
854 "*) ;;
855       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856          ac_unrecognized_sep=', ';;
857     esac
858     eval enable_$ac_useropt=no ;;
859
860   -docdir | --docdir | --docdi | --doc | --do)
861     ac_prev=docdir ;;
862   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863     docdir=$ac_optarg ;;
864
865   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866     ac_prev=dvidir ;;
867   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868     dvidir=$ac_optarg ;;
869
870   -enable-* | --enable-*)
871     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872     # Reject names that are not valid shell variable names.
873     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874       as_fn_error $? "invalid feature name: $ac_useropt"
875     ac_useropt_orig=$ac_useropt
876     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877     case $ac_user_opts in
878       *"
879 "enable_$ac_useropt"
880 "*) ;;
881       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882          ac_unrecognized_sep=', ';;
883     esac
884     eval enable_$ac_useropt=\$ac_optarg ;;
885
886   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888   | --exec | --exe | --ex)
889     ac_prev=exec_prefix ;;
890   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892   | --exec=* | --exe=* | --ex=*)
893     exec_prefix=$ac_optarg ;;
894
895   -gas | --gas | --ga | --g)
896     # Obsolete; use --with-gas.
897     with_gas=yes ;;
898
899   -help | --help | --hel | --he | -h)
900     ac_init_help=long ;;
901   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902     ac_init_help=recursive ;;
903   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904     ac_init_help=short ;;
905
906   -host | --host | --hos | --ho)
907     ac_prev=host_alias ;;
908   -host=* | --host=* | --hos=* | --ho=*)
909     host_alias=$ac_optarg ;;
910
911   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912     ac_prev=htmldir ;;
913   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914   | --ht=*)
915     htmldir=$ac_optarg ;;
916
917   -includedir | --includedir | --includedi | --included | --include \
918   | --includ | --inclu | --incl | --inc)
919     ac_prev=includedir ;;
920   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921   | --includ=* | --inclu=* | --incl=* | --inc=*)
922     includedir=$ac_optarg ;;
923
924   -infodir | --infodir | --infodi | --infod | --info | --inf)
925     ac_prev=infodir ;;
926   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927     infodir=$ac_optarg ;;
928
929   -libdir | --libdir | --libdi | --libd)
930     ac_prev=libdir ;;
931   -libdir=* | --libdir=* | --libdi=* | --libd=*)
932     libdir=$ac_optarg ;;
933
934   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935   | --libexe | --libex | --libe)
936     ac_prev=libexecdir ;;
937   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938   | --libexe=* | --libex=* | --libe=*)
939     libexecdir=$ac_optarg ;;
940
941   -localedir | --localedir | --localedi | --localed | --locale)
942     ac_prev=localedir ;;
943   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944     localedir=$ac_optarg ;;
945
946   -localstatedir | --localstatedir | --localstatedi | --localstated \
947   | --localstate | --localstat | --localsta | --localst | --locals)
948     ac_prev=localstatedir ;;
949   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951     localstatedir=$ac_optarg ;;
952
953   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954     ac_prev=mandir ;;
955   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956     mandir=$ac_optarg ;;
957
958   -nfp | --nfp | --nf)
959     # Obsolete; use --without-fp.
960     with_fp=no ;;
961
962   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963   | --no-cr | --no-c | -n)
964     no_create=yes ;;
965
966   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968     no_recursion=yes ;;
969
970   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972   | --oldin | --oldi | --old | --ol | --o)
973     ac_prev=oldincludedir ;;
974   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977     oldincludedir=$ac_optarg ;;
978
979   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980     ac_prev=prefix ;;
981   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982     prefix=$ac_optarg ;;
983
984   -program-prefix | --program-prefix | --program-prefi | --program-pref \
985   | --program-pre | --program-pr | --program-p)
986     ac_prev=program_prefix ;;
987   -program-prefix=* | --program-prefix=* | --program-prefi=* \
988   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989     program_prefix=$ac_optarg ;;
990
991   -program-suffix | --program-suffix | --program-suffi | --program-suff \
992   | --program-suf | --program-su | --program-s)
993     ac_prev=program_suffix ;;
994   -program-suffix=* | --program-suffix=* | --program-suffi=* \
995   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996     program_suffix=$ac_optarg ;;
997
998   -program-transform-name | --program-transform-name \
999   | --program-transform-nam | --program-transform-na \
1000   | --program-transform-n | --program-transform- \
1001   | --program-transform | --program-transfor \
1002   | --program-transfo | --program-transf \
1003   | --program-trans | --program-tran \
1004   | --progr-tra | --program-tr | --program-t)
1005     ac_prev=program_transform_name ;;
1006   -program-transform-name=* | --program-transform-name=* \
1007   | --program-transform-nam=* | --program-transform-na=* \
1008   | --program-transform-n=* | --program-transform-=* \
1009   | --program-transform=* | --program-transfor=* \
1010   | --program-transfo=* | --program-transf=* \
1011   | --program-trans=* | --program-tran=* \
1012   | --progr-tra=* | --program-tr=* | --program-t=*)
1013     program_transform_name=$ac_optarg ;;
1014
1015   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016     ac_prev=pdfdir ;;
1017   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018     pdfdir=$ac_optarg ;;
1019
1020   -psdir | --psdir | --psdi | --psd | --ps)
1021     ac_prev=psdir ;;
1022   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023     psdir=$ac_optarg ;;
1024
1025   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026   | -silent | --silent | --silen | --sile | --sil)
1027     silent=yes ;;
1028
1029   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030     ac_prev=sbindir ;;
1031   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032   | --sbi=* | --sb=*)
1033     sbindir=$ac_optarg ;;
1034
1035   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037   | --sharedst | --shareds | --shared | --share | --shar \
1038   | --sha | --sh)
1039     ac_prev=sharedstatedir ;;
1040   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043   | --sha=* | --sh=*)
1044     sharedstatedir=$ac_optarg ;;
1045
1046   -site | --site | --sit)
1047     ac_prev=site ;;
1048   -site=* | --site=* | --sit=*)
1049     site=$ac_optarg ;;
1050
1051   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052     ac_prev=srcdir ;;
1053   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054     srcdir=$ac_optarg ;;
1055
1056   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057   | --syscon | --sysco | --sysc | --sys | --sy)
1058     ac_prev=sysconfdir ;;
1059   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061     sysconfdir=$ac_optarg ;;
1062
1063   -target | --target | --targe | --targ | --tar | --ta | --t)
1064     ac_prev=target_alias ;;
1065   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066     target_alias=$ac_optarg ;;
1067
1068   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069     verbose=yes ;;
1070
1071   -version | --version | --versio | --versi | --vers | -V)
1072     ac_init_version=: ;;
1073
1074   -with-* | --with-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid package name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval with_$ac_useropt=\$ac_optarg ;;
1089
1090   -without-* | --without-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error $? "invalid package name: $ac_useropt"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval with_$ac_useropt=no ;;
1105
1106   --x)
1107     # Obsolete; use --with-x.
1108     with_x=yes ;;
1109
1110   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1111   | --x-incl | --x-inc | --x-in | --x-i)
1112     ac_prev=x_includes ;;
1113   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1114   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1115     x_includes=$ac_optarg ;;
1116
1117   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1118   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1119     ac_prev=x_libraries ;;
1120   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1121   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1122     x_libraries=$ac_optarg ;;
1123
1124   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1125 Try \`$0 --help' for more information"
1126     ;;
1127
1128   *=*)
1129     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130     # Reject names that are not valid shell variable names.
1131     case $ac_envvar in #(
1132       '' | [0-9]* | *[!_$as_cr_alnum]* )
1133       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1134     esac
1135     eval $ac_envvar=\$ac_optarg
1136     export $ac_envvar ;;
1137
1138   *)
1139     # FIXME: should be removed in autoconf 3.0.
1140     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1144     ;;
1145
1146   esac
1147 done
1148
1149 if test -n "$ac_prev"; then
1150   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1151   as_fn_error $? "missing argument to $ac_option"
1152 fi
1153
1154 if test -n "$ac_unrecognized_opts"; then
1155   case $enable_option_checking in
1156     no) ;;
1157     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1158     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159   esac
1160 fi
1161
1162 # Check all directory arguments for consistency.
1163 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164                 datadir sysconfdir sharedstatedir localstatedir includedir \
1165                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166                 libdir localedir mandir
1167 do
1168   eval ac_val=\$$ac_var
1169   # Remove trailing slashes.
1170   case $ac_val in
1171     */ )
1172       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173       eval $ac_var=\$ac_val;;
1174   esac
1175   # Be sure to have absolute directory names.
1176   case $ac_val in
1177     [\\/$]* | ?:[\\/]* )  continue;;
1178     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179   esac
1180   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1181 done
1182
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1189
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192   if test "x$build_alias" = x; then
1193     cross_compiling=maybe
1194   elif test "x$build_alias" != "x$host_alias"; then
1195     cross_compiling=yes
1196   fi
1197 fi
1198
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202 test "$silent" = yes && exec 6>/dev/null
1203
1204
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208   as_fn_error $? "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210   as_fn_error $? "pwd does not report name of working directory"
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215   ac_srcdir_defaulted=yes
1216   # Try the directory containing this script, then the parent directory.
1217   ac_confdir=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219          X"$as_myself" : 'X\(//\)[^/]' \| \
1220          X"$as_myself" : 'X\(//\)$' \| \
1221          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224             s//\1/
1225             q
1226           }
1227           /^X\(\/\/\)[^/].*/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)$/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\).*/{
1236             s//\1/
1237             q
1238           }
1239           s/.*/./; q'`
1240   srcdir=$ac_confdir
1241   if test ! -r "$srcdir/$ac_unique_file"; then
1242     srcdir=..
1243   fi
1244 else
1245   ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1250 fi
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254         pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257   srcdir=.
1258 fi
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for ac_var in $ac_precious_vars; do
1266   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267   eval ac_env_${ac_var}_value=\$${ac_var}
1268   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 done
1271
1272 #
1273 # Report the --help message.
1274 #
1275 if test "$ac_init_help" = "long"; then
1276   # Omit some internal or obsolete options to make the list less imposing.
1277   # This message is too long to be a string in the A/UX 3.1 sh.
1278   cat <<_ACEOF
1279 \`configure' configures spice-vdagent 0.15.0 to adapt to many kinds of systems.
1280
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE.  See below for descriptions of some of the useful variables.
1285
1286 Defaults for the options are specified in brackets.
1287
1288 Configuration:
1289   -h, --help              display this help and exit
1290       --help=short        display options specific to this package
1291       --help=recursive    display the short help of all the included packages
1292   -V, --version           display version information and exit
1293   -q, --quiet, --silent   do not print \`checking ...' messages
1294       --cache-file=FILE   cache test results in FILE [disabled]
1295   -C, --config-cache      alias for \`--cache-file=config.cache'
1296   -n, --no-create         do not create output files
1297       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1298
1299 Installation directories:
1300   --prefix=PREFIX         install architecture-independent files in PREFIX
1301                           [$ac_default_prefix]
1302   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1303                           [PREFIX]
1304
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1309
1310 For better control, use the options below.
1311
1312 Fine tuning of the installation directories:
1313   --bindir=DIR            user executables [EPREFIX/bin]
1314   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1315   --libexecdir=DIR        program executables [EPREFIX/libexec]
1316   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1317   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1318   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1319   --libdir=DIR            object code libraries [EPREFIX/lib]
1320   --includedir=DIR        C header files [PREFIX/include]
1321   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1322   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1323   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1324   --infodir=DIR           info documentation [DATAROOTDIR/info]
1325   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1326   --mandir=DIR            man documentation [DATAROOTDIR/man]
1327   --docdir=DIR            documentation root [DATAROOTDIR/doc/spice-vdagent]
1328   --htmldir=DIR           html documentation [DOCDIR]
1329   --dvidir=DIR            dvi documentation [DOCDIR]
1330   --pdfdir=DIR            pdf documentation [DOCDIR]
1331   --psdir=DIR             ps documentation [DOCDIR]
1332 _ACEOF
1333
1334   cat <<\_ACEOF
1335
1336 Program names:
1337   --program-prefix=PREFIX            prepend PREFIX to installed program names
1338   --program-suffix=SUFFIX            append SUFFIX to installed program names
1339   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1340 _ACEOF
1341 fi
1342
1343 if test -n "$ac_init_help"; then
1344   case $ac_init_help in
1345      short | recursive ) echo "Configuration of spice-vdagent 0.15.0:";;
1346    esac
1347   cat <<\_ACEOF
1348
1349 Optional Features:
1350   --disable-option-checking  ignore unrecognized --enable/--with options
1351   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1352   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1353   --enable-silent-rules   less verbose build output (undo: "make V=1")
1354   --disable-silent-rules  verbose build output (undo: "make V=0")
1355   --enable-dependency-tracking
1356                           do not reject slow dependency extractors
1357   --disable-dependency-tracking
1358                           speeds up one-time build
1359   --enable-pciaccess      Enable libpciaccess use for auto generation of
1360                           Xinerama xorg.conf (default: yes)
1361   --enable-statis-uinput  Enable use of a fixed, static uinput device for
1362                           X-servers without hotplug support (default: no)
1363   --enable-pie=[auto/yes/no]
1364                           Enable position-independent-executable support (for
1365                           spice-vdagentd)[default=auto]
1366
1367 Optional Packages:
1368   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1369   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1370   --with-session-info=[auto/console-kit/systemd/none]
1371                           Session-info source to use [default=auto]
1372   --with-init-script=[redhat/systemd/systemd+redhat/check]
1373                           Style of init script to install [default=check]
1374
1375 Some influential environment variables:
1376   CC          C compiler command
1377   CFLAGS      C compiler flags
1378   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1379               nonstandard directory <lib dir>
1380   LIBS        libraries to pass to the linker, e.g. -l<library>
1381   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1382               you have headers in a nonstandard directory <include dir>
1383   CPP         C preprocessor
1384   PKG_CONFIG  path to pkg-config utility
1385   PKG_CONFIG_PATH
1386               directories to add to pkg-config's search path
1387   PKG_CONFIG_LIBDIR
1388               path overriding pkg-config's built-in search path
1389   GLIB2_CFLAGS
1390               C compiler flags for GLIB2, overriding pkg-config
1391   GLIB2_LIBS  linker flags for GLIB2, overriding pkg-config
1392   X_CFLAGS    C compiler flags for X, overriding pkg-config
1393   X_LIBS      linker flags for X, overriding pkg-config
1394   SPICE_CFLAGS
1395               C compiler flags for SPICE, overriding pkg-config
1396   SPICE_LIBS  linker flags for SPICE, overriding pkg-config
1397   LIBSYSTEMD_LOGIN_CFLAGS
1398               C compiler flags for LIBSYSTEMD_LOGIN, overriding pkg-config
1399   LIBSYSTEMD_LOGIN_LIBS
1400               linker flags for LIBSYSTEMD_LOGIN, overriding pkg-config
1401   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1402   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1403   PCIACCESS_CFLAGS
1404               C compiler flags for PCIACCESS, overriding pkg-config
1405   PCIACCESS_LIBS
1406               linker flags for PCIACCESS, overriding pkg-config
1407
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1410
1411 Report bugs to the package provider.
1412 _ACEOF
1413 ac_status=$?
1414 fi
1415
1416 if test "$ac_init_help" = "recursive"; then
1417   # If there are subdirs, report their specific --help.
1418   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419     test -d "$ac_dir" ||
1420       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421       continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 spice-vdagent configure 0.15.0
1475 generated by GNU Autoconf 2.69
1476
1477 Copyright (C) 2012 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1480 _ACEOF
1481   exit
1482 fi
1483
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1487
1488 # ac_fn_c_try_compile LINENO
1489 # --------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_compile ()
1492 {
1493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494   rm -f conftest.$ac_objext
1495   if { { ac_try="$ac_compile"
1496 case "(($ac_try" in
1497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498   *) ac_try_echo=$ac_try;;
1499 esac
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502   (eval "$ac_compile") 2>conftest.err
1503   ac_status=$?
1504   if test -s conftest.err; then
1505     grep -v '^ *+' conftest.err >conftest.er1
1506     cat conftest.er1 >&5
1507     mv -f conftest.er1 conftest.err
1508   fi
1509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510   test $ac_status = 0; } && {
1511          test -z "$ac_c_werror_flag" ||
1512          test ! -s conftest.err
1513        } && test -s conftest.$ac_objext; then :
1514   ac_retval=0
1515 else
1516   $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1518
1519         ac_retval=1
1520 fi
1521   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522   as_fn_set_status $ac_retval
1523
1524 } # ac_fn_c_try_compile
1525
1526 # ac_fn_c_try_cpp LINENO
1527 # ----------------------
1528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_cpp ()
1530 {
1531   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532   if { { ac_try="$ac_cpp conftest.$ac_ext"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } > conftest.i && {
1548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        }; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556     ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_cpp
1562
1563 # ac_fn_c_try_run LINENO
1564 # ----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1566 # that executables *can* be run.
1567 ac_fn_c_try_run ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_link") 2>&5
1578   ac_status=$?
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1581   { { case "(($ac_try" in
1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583   *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587   (eval "$ac_try") 2>&5
1588   ac_status=$?
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; }; }; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: program exited with status $ac_status" >&5
1594        $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597        ac_retval=$ac_status
1598 fi
1599   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601   as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_run
1604
1605 # ac_fn_c_try_link LINENO
1606 # -----------------------
1607 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_link ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   rm -f conftest.$ac_objext conftest$ac_exeext
1612   if { { ac_try="$ac_link"
1613 case "(($ac_try" in
1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615   *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619   (eval "$ac_link") 2>conftest.err
1620   ac_status=$?
1621   if test -s conftest.err; then
1622     grep -v '^ *+' conftest.err >conftest.er1
1623     cat conftest.er1 >&5
1624     mv -f conftest.er1 conftest.err
1625   fi
1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627   test $ac_status = 0; } && {
1628          test -z "$ac_c_werror_flag" ||
1629          test ! -s conftest.err
1630        } && test -s conftest$ac_exeext && {
1631          test "$cross_compiling" = yes ||
1632          test -x conftest$ac_exeext
1633        }; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639         ac_retval=1
1640 fi
1641   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643   # interfere with the next link command; also delete a directory that is
1644   # left behind by Apple's compiler.  We do this before executing the actions.
1645   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_link
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1653
1654 It was created by spice-vdagent $as_me 0.15.0, which was
1655 generated by GNU Autoconf 2.69.  Invocation command line was
1656
1657   $ $0 $@
1658
1659 _ACEOF
1660 exec 5>>config.log
1661 {
1662 cat <<_ASUNAME
1663 ## --------- ##
1664 ## Platform. ##
1665 ## --------- ##
1666
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1675
1676 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1677 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1680 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1681 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1682 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1683
1684 _ASUNAME
1685
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691     $as_echo "PATH: $as_dir"
1692   done
1693 IFS=$as_save_IFS
1694
1695 } >&5
1696
1697 cat >&5 <<_ACEOF
1698
1699
1700 ## ----------- ##
1701 ## Core tests. ##
1702 ## ----------- ##
1703
1704 _ACEOF
1705
1706
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1712 ac_configure_args=
1713 ac_configure_args0=
1714 ac_configure_args1=
1715 ac_must_keep_next=false
1716 for ac_pass in 1 2
1717 do
1718   for ac_arg
1719   do
1720     case $ac_arg in
1721     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723     | -silent | --silent | --silen | --sile | --sil)
1724       continue ;;
1725     *\'*)
1726       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727     esac
1728     case $ac_pass in
1729     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1730     2)
1731       as_fn_append ac_configure_args1 " '$ac_arg'"
1732       if test $ac_must_keep_next = true; then
1733         ac_must_keep_next=false # Got value, back to normal.
1734       else
1735         case $ac_arg in
1736           *=* | --config-cache | -C | -disable-* | --disable-* \
1737           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739           | -with-* | --with-* | -without-* | --without-* | --x)
1740             case "$ac_configure_args0 " in
1741               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742             esac
1743             ;;
1744           -* ) ac_must_keep_next=true ;;
1745         esac
1746       fi
1747       as_fn_append ac_configure_args " '$ac_arg'"
1748       ;;
1749     esac
1750   done
1751 done
1752 { ac_configure_args0=; unset ac_configure_args0;}
1753 { ac_configure_args1=; unset ac_configure_args1;}
1754
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log.  We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761   # Save into config.log some information that might help in debugging.
1762   {
1763     echo
1764
1765     $as_echo "## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##"
1768     echo
1769     # The following way of writing the cache mishandles newlines in values,
1770 (
1771   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772     eval ac_val=\$$ac_var
1773     case $ac_val in #(
1774     *${as_nl}*)
1775       case $ac_var in #(
1776       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1778       esac
1779       case $ac_var in #(
1780       _ | IFS | as_nl) ;; #(
1781       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1782       *) { eval $ac_var=; unset $ac_var;} ;;
1783       esac ;;
1784     esac
1785   done
1786   (set) 2>&1 |
1787     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788     *${as_nl}ac_space=\ *)
1789       sed -n \
1790         "s/'\''/'\''\\\\'\'''\''/g;
1791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792       ;; #(
1793     *)
1794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795       ;;
1796     esac |
1797     sort
1798 )
1799     echo
1800
1801     $as_echo "## ----------------- ##
1802 ## Output variables. ##
1803 ## ----------------- ##"
1804     echo
1805     for ac_var in $ac_subst_vars
1806     do
1807       eval ac_val=\$$ac_var
1808       case $ac_val in
1809       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810       esac
1811       $as_echo "$ac_var='\''$ac_val'\''"
1812     done | sort
1813     echo
1814
1815     if test -n "$ac_subst_files"; then
1816       $as_echo "## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##"
1819       echo
1820       for ac_var in $ac_subst_files
1821       do
1822         eval ac_val=\$$ac_var
1823         case $ac_val in
1824         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825         esac
1826         $as_echo "$ac_var='\''$ac_val'\''"
1827       done | sort
1828       echo
1829     fi
1830
1831     if test -s confdefs.h; then
1832       $as_echo "## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##"
1835       echo
1836       cat confdefs.h
1837       echo
1838     fi
1839     test "$ac_signal" != 0 &&
1840       $as_echo "$as_me: caught signal $ac_signal"
1841     $as_echo "$as_me: exit $exit_status"
1842   } >&5
1843   rm -f core *.core core.conftest.* &&
1844     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845     exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 $as_echo "/* confdefs.h */" > confdefs.h
1856
1857 # Predefined preprocessor variables.
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1861 _ACEOF
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 _ACEOF
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 _ACEOF
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_URL "$PACKAGE_URL"
1881 _ACEOF
1882
1883
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer an explicitly selected file to automatically selected ones.
1886 ac_site_file1=NONE
1887 ac_site_file2=NONE
1888 if test -n "$CONFIG_SITE"; then
1889   # We do not want a PATH search for config.site.
1890   case $CONFIG_SITE in #((
1891     -*)  ac_site_file1=./$CONFIG_SITE;;
1892     */*) ac_site_file1=$CONFIG_SITE;;
1893     *)   ac_site_file1=./$CONFIG_SITE;;
1894   esac
1895 elif test "x$prefix" != xNONE; then
1896   ac_site_file1=$prefix/share/config.site
1897   ac_site_file2=$prefix/etc/config.site
1898 else
1899   ac_site_file1=$ac_default_prefix/share/config.site
1900   ac_site_file2=$ac_default_prefix/etc/config.site
1901 fi
1902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1903 do
1904   test "x$ac_site_file" = xNONE && continue
1905   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1908     sed 's/^/| /' "$ac_site_file" >&5
1909     . "$ac_site_file" \
1910       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912 as_fn_error $? "failed to load site script $ac_site_file
1913 See \`config.log' for more details" "$LINENO" 5; }
1914   fi
1915 done
1916
1917 if test -r "$cache_file"; then
1918   # Some versions of bash will fail to source /dev/null (special files
1919   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1920   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1921     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1922 $as_echo "$as_me: loading cache $cache_file" >&6;}
1923     case $cache_file in
1924       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925       *)                      . "./$cache_file";;
1926     esac
1927   fi
1928 else
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1930 $as_echo "$as_me: creating cache $cache_file" >&6;}
1931   >$cache_file
1932 fi
1933
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939   eval ac_new_set=\$ac_env_${ac_var}_set
1940   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941   eval ac_new_val=\$ac_env_${ac_var}_value
1942   case $ac_old_set,$ac_new_set in
1943     set,)
1944       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946       ac_cache_corrupted=: ;;
1947     ,set)
1948       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1949 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950       ac_cache_corrupted=: ;;
1951     ,);;
1952     *)
1953       if test "x$ac_old_val" != "x$ac_new_val"; then
1954         # differences in whitespace do not lead to failure.
1955         ac_old_val_w=`echo x $ac_old_val`
1956         ac_new_val_w=`echo x $ac_new_val`
1957         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1958           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1959 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960           ac_cache_corrupted=:
1961         else
1962           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1963 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1964           eval $ac_var=\$ac_old_val
1965         fi
1966         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1967 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1968         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1969 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1970       fi;;
1971   esac
1972   # Pass precious variables to config.status.
1973   if test "$ac_new_set" = set; then
1974     case $ac_new_val in
1975     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976     *) ac_arg=$ac_var=$ac_new_val ;;
1977     esac
1978     case " $ac_configure_args " in
1979       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1980       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1981     esac
1982   fi
1983 done
1984 if $ac_cache_corrupted; then
1985   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1988 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1990 fi
1991 ## -------------------- ##
1992 ## Main body of script. ##
1993 ## -------------------- ##
1994
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000
2001
2002
2003
2004 ac_config_headers="$ac_config_headers src/config.h"
2005
2006
2007 am__api_version='1.13'
2008
2009 ac_aux_dir=
2010 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2011   if test -f "$ac_dir/install-sh"; then
2012     ac_aux_dir=$ac_dir
2013     ac_install_sh="$ac_aux_dir/install-sh -c"
2014     break
2015   elif test -f "$ac_dir/install.sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install.sh -c"
2018     break
2019   elif test -f "$ac_dir/shtool"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/shtool install -c"
2022     break
2023   fi
2024 done
2025 if test -z "$ac_aux_dir"; then
2026   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2027 fi
2028
2029 # These three variables are undocumented and unsupported,
2030 # and are intended to be withdrawn in a future Autoconf release.
2031 # They can cause serious problems if a builder's source tree is in a directory
2032 # whose full name contains unusual characters.
2033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036
2037
2038 # Find a good install program.  We prefer a C program (faster),
2039 # so one script is as good as another.  But avoid the broken or
2040 # incompatible versions:
2041 # SysV /etc/install, /usr/sbin/install
2042 # SunOS /usr/etc/install
2043 # IRIX /sbin/install
2044 # AIX /bin/install
2045 # AmigaOS /C/install, which installs bootblocks on floppy discs
2046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2049 # OS/2's system install, which has a completely different semantic
2050 # ./install, which can be erroneously created by make from ./install.sh.
2051 # Reject install programs that cannot install multiple files.
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2053 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2054 if test -z "$INSTALL"; then
2055 if ${ac_cv_path_install+:} false; then :
2056   $as_echo_n "(cached) " >&6
2057 else
2058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063     # Account for people who put trailing slashes in PATH elements.
2064 case $as_dir/ in #((
2065   ./ | .// | /[cC]/* | \
2066   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2067   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2068   /usr/ucb/* ) ;;
2069   *)
2070     # OSF1 and SCO ODT 3.0 have their own names for install.
2071     # Don't use installbsd from OSF since it installs stuff as root
2072     # by default.
2073     for ac_prog in ginstall scoinst install; do
2074       for ac_exec_ext in '' $ac_executable_extensions; do
2075         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2076           if test $ac_prog = install &&
2077             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2078             # AIX install.  It has an incompatible calling convention.
2079             :
2080           elif test $ac_prog = install &&
2081             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082             # program-specific install script used by HP pwplus--don't use.
2083             :
2084           else
2085             rm -rf conftest.one conftest.two conftest.dir
2086             echo one > conftest.one
2087             echo two > conftest.two
2088             mkdir conftest.dir
2089             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2090               test -s conftest.one && test -s conftest.two &&
2091               test -s conftest.dir/conftest.one &&
2092               test -s conftest.dir/conftest.two
2093             then
2094               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2095               break 3
2096             fi
2097           fi
2098         fi
2099       done
2100     done
2101     ;;
2102 esac
2103
2104   done
2105 IFS=$as_save_IFS
2106
2107 rm -rf conftest.one conftest.two conftest.dir
2108
2109 fi
2110   if test "${ac_cv_path_install+set}" = set; then
2111     INSTALL=$ac_cv_path_install
2112   else
2113     # As a last resort, use the slow shell script.  Don't cache a
2114     # value for INSTALL within a source directory, because that will
2115     # break other packages using the cache if that directory is
2116     # removed, or if the value is a relative name.
2117     INSTALL=$ac_install_sh
2118   fi
2119 fi
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2121 $as_echo "$INSTALL" >&6; }
2122
2123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2124 # It thinks the first close brace ends the variable substitution.
2125 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126
2127 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128
2129 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2132 $as_echo_n "checking whether build environment is sane... " >&6; }
2133 # Reject unsafe characters in $srcdir or the absolute working directory
2134 # name.  Accept space and tab only in the latter.
2135 am_lf='
2136 '
2137 case `pwd` in
2138   *[\\\"\#\$\&\'\`$am_lf]*)
2139     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2140 esac
2141 case $srcdir in
2142   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2143     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2144 esac
2145
2146 # Do 'set' in a subshell so we don't clobber the current shell's
2147 # arguments.  Must try -L first in case configure is actually a
2148 # symlink; some systems play weird games with the mod time of symlinks
2149 # (eg FreeBSD returns the mod time of the symlink's containing
2150 # directory).
2151 if (
2152    am_has_slept=no
2153    for am_try in 1 2; do
2154      echo "timestamp, slept: $am_has_slept" > conftest.file
2155      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2156      if test "$*" = "X"; then
2157         # -L didn't work.
2158         set X `ls -t "$srcdir/configure" conftest.file`
2159      fi
2160      if test "$*" != "X $srcdir/configure conftest.file" \
2161         && test "$*" != "X conftest.file $srcdir/configure"; then
2162
2163         # If neither matched, then we have a broken ls.  This can happen
2164         # if, for instance, CONFIG_SHELL is bash and it inherits a
2165         # broken ls alias from the environment.  This has actually
2166         # happened.  Such a system could not be considered "sane".
2167         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2168   alias in your environment" "$LINENO" 5
2169      fi
2170      if test "$2" = conftest.file || test $am_try -eq 2; then
2171        break
2172      fi
2173      # Just in case.
2174      sleep 1
2175      am_has_slept=yes
2176    done
2177    test "$2" = conftest.file
2178    )
2179 then
2180    # Ok.
2181    :
2182 else
2183    as_fn_error $? "newly created file is older than distributed files!
2184 Check your system clock" "$LINENO" 5
2185 fi
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2187 $as_echo "yes" >&6; }
2188 # If we didn't sleep, we still need to ensure time stamps of config.status and
2189 # generated files are strictly newer.
2190 am_sleep_pid=
2191 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2192   ( sleep 1 ) &
2193   am_sleep_pid=$!
2194 fi
2195
2196 rm -f conftest.file
2197
2198 test "$program_prefix" != NONE &&
2199   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2200 # Use a double $ so make ignores it.
2201 test "$program_suffix" != NONE &&
2202   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2203 # Double any \ or $.
2204 # By default was `s,x,x', remove it if useless.
2205 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2206 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2207
2208 # expand $ac_aux_dir to an absolute path
2209 am_aux_dir=`cd $ac_aux_dir && pwd`
2210
2211 if test x"${MISSING+set}" != xset; then
2212   case $am_aux_dir in
2213   *\ * | *\     *)
2214     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2215   *)
2216     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2217   esac
2218 fi
2219 # Use eval to expand $SHELL
2220 if eval "$MISSING --is-lightweight"; then
2221   am_missing_run="$MISSING "
2222 else
2223   am_missing_run=
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2225 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2226 fi
2227
2228 if test x"${install_sh}" != xset; then
2229   case $am_aux_dir in
2230   *\ * | *\     *)
2231     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2232   *)
2233     install_sh="\${SHELL} $am_aux_dir/install-sh"
2234   esac
2235 fi
2236
2237 # Installed binaries are usually stripped using 'strip' when the user
2238 # run "make install-strip".  However 'strip' might not be the right
2239 # tool to use in cross-compilation environments, therefore Automake
2240 # will honor the 'STRIP' environment variable to overrule this program.
2241 if test "$cross_compiling" != no; then
2242   if test -n "$ac_tool_prefix"; then
2243   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}strip; ac_word=$2
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2246 $as_echo_n "checking for $ac_word... " >&6; }
2247 if ${ac_cv_prog_STRIP+:} false; then :
2248   $as_echo_n "(cached) " >&6
2249 else
2250   if test -n "$STRIP"; then
2251   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258     for ac_exec_ext in '' $ac_executable_extensions; do
2259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265   done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 STRIP=$ac_cv_prog_STRIP
2271 if test -n "$STRIP"; then
2272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2273 $as_echo "$STRIP" >&6; }
2274 else
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2276 $as_echo "no" >&6; }
2277 fi
2278
2279
2280 fi
2281 if test -z "$ac_cv_prog_STRIP"; then
2282   ac_ct_STRIP=$STRIP
2283   # Extract the first word of "strip", so it can be a program name with args.
2284 set dummy strip; ac_word=$2
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   if test -n "$ac_ct_STRIP"; then
2291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298     for ac_exec_ext in '' $ac_executable_extensions; do
2299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_ac_ct_STRIP="strip"
2301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305   done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2311 if test -n "$ac_ct_STRIP"; then
2312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2313 $as_echo "$ac_ct_STRIP" >&6; }
2314 else
2315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316 $as_echo "no" >&6; }
2317 fi
2318
2319   if test "x$ac_ct_STRIP" = x; then
2320     STRIP=":"
2321   else
2322     case $cross_compiling:$ac_tool_warned in
2323 yes:)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2326 ac_tool_warned=yes ;;
2327 esac
2328     STRIP=$ac_ct_STRIP
2329   fi
2330 else
2331   STRIP="$ac_cv_prog_STRIP"
2332 fi
2333
2334 fi
2335 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2336
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2338 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2339 if test -z "$MKDIR_P"; then
2340   if ${ac_cv_path_mkdir+:} false; then :
2341   $as_echo_n "(cached) " >&6
2342 else
2343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348     for ac_prog in mkdir gmkdir; do
2349          for ac_exec_ext in '' $ac_executable_extensions; do
2350            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2351            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2352              'mkdir (GNU coreutils) '* | \
2353              'mkdir (coreutils) '* | \
2354              'mkdir (fileutils) '4.1*)
2355                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2356                break 3;;
2357            esac
2358          done
2359        done
2360   done
2361 IFS=$as_save_IFS
2362
2363 fi
2364
2365   test -d ./--version && rmdir ./--version
2366   if test "${ac_cv_path_mkdir+set}" = set; then
2367     MKDIR_P="$ac_cv_path_mkdir -p"
2368   else
2369     # As a last resort, use the slow shell script.  Don't cache a
2370     # value for MKDIR_P within a source directory, because that will
2371     # break other packages using the cache if that directory is
2372     # removed, or if the value is a relative name.
2373     MKDIR_P="$ac_install_sh -d"
2374   fi
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2377 $as_echo "$MKDIR_P" >&6; }
2378
2379 for ac_prog in gawk mawk nawk awk
2380 do
2381   # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_AWK+:} false; then :
2386   $as_echo_n "(cached) " >&6
2387 else
2388   if test -n "$AWK"; then
2389   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396     for ac_exec_ext in '' $ac_executable_extensions; do
2397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398     ac_cv_prog_AWK="$ac_prog"
2399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403   done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 AWK=$ac_cv_prog_AWK
2409 if test -n "$AWK"; then
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2411 $as_echo "$AWK" >&6; }
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2415 fi
2416
2417
2418   test -n "$AWK" && break
2419 done
2420
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2422 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2423 set x ${MAKE-make}
2424 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2425 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2426   $as_echo_n "(cached) " >&6
2427 else
2428   cat >conftest.make <<\_ACEOF
2429 SHELL = /bin/sh
2430 all:
2431         @echo '@@@%%%=$(MAKE)=@@@%%%'
2432 _ACEOF
2433 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2434 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2435   *@@@%%%=?*=@@@%%%*)
2436     eval ac_cv_prog_make_${ac_make}_set=yes;;
2437   *)
2438     eval ac_cv_prog_make_${ac_make}_set=no;;
2439 esac
2440 rm -f conftest.make
2441 fi
2442 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2444 $as_echo "yes" >&6; }
2445   SET_MAKE=
2446 else
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448 $as_echo "no" >&6; }
2449   SET_MAKE="MAKE=${MAKE-make}"
2450 fi
2451
2452 rm -rf .tst 2>/dev/null
2453 mkdir .tst 2>/dev/null
2454 if test -d .tst; then
2455   am__leading_dot=.
2456 else
2457   am__leading_dot=_
2458 fi
2459 rmdir .tst 2>/dev/null
2460
2461 # Check whether --enable-silent-rules was given.
2462 if test "${enable_silent_rules+set}" = set; then :
2463   enableval=$enable_silent_rules;
2464 fi
2465
2466 case $enable_silent_rules in # (((
2467   yes) AM_DEFAULT_VERBOSITY=0;;
2468    no) AM_DEFAULT_VERBOSITY=1;;
2469     *) AM_DEFAULT_VERBOSITY=1;;
2470 esac
2471 am_make=${MAKE-make}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2473 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2474 if ${am_cv_make_support_nested_variables+:} false; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477   if $as_echo 'TRUE=$(BAR$(V))
2478 BAR0=false
2479 BAR1=true
2480 V=1
2481 am__doit:
2482         @$(TRUE)
2483 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2484   am_cv_make_support_nested_variables=yes
2485 else
2486   am_cv_make_support_nested_variables=no
2487 fi
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2490 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2491 if test $am_cv_make_support_nested_variables = yes; then
2492     AM_V='$(V)'
2493   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2494 else
2495   AM_V=$AM_DEFAULT_VERBOSITY
2496   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2497 fi
2498 AM_BACKSLASH='\'
2499
2500 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2501   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2502   # is not polluted with repeated "-I."
2503   am__isrc=' -I$(srcdir)'
2504   # test to see if srcdir already configured
2505   if test -f $srcdir/config.status; then
2506     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2507   fi
2508 fi
2509
2510 # test whether we have cygpath
2511 if test -z "$CYGPATH_W"; then
2512   if (cygpath --version) >/dev/null 2>/dev/null; then
2513     CYGPATH_W='cygpath -w'
2514   else
2515     CYGPATH_W=echo
2516   fi
2517 fi
2518
2519
2520 # Define the identity of the package.
2521  PACKAGE='spice-vdagent'
2522  VERSION='0.15.0'
2523
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE "$PACKAGE"
2527 _ACEOF
2528
2529
2530 cat >>confdefs.h <<_ACEOF
2531 #define VERSION "$VERSION"
2532 _ACEOF
2533
2534 # Some tools Automake needs.
2535
2536 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2537
2538
2539 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2540
2541
2542 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2543
2544
2545 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2546
2547
2548 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2549
2550 # For better backward compatibility.  To be removed once Automake 1.9.x
2551 # dies out for good.  For more background, see:
2552 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2553 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2554 mkdir_p='$(MKDIR_P)'
2555
2556 # We need awk for the "check" target.  The system "awk" is bad on
2557 # some platforms.
2558 # Always define AMTAR for backward compatibility.  Yes, it's still used
2559 # in the wild :-(  We should find a proper way to deprecate it ...
2560 AMTAR='$${TAR-tar}'
2561
2562
2563 # We'll loop over all known methods to create a tar archive until one works.
2564 _am_tools='gnutar  pax cpio none'
2565
2566 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2567
2568
2569
2570
2571
2572
2573 # Check whether --enable-silent-rules was given.
2574 if test "${enable_silent_rules+set}" = set; then :
2575   enableval=$enable_silent_rules;
2576 fi
2577
2578 case $enable_silent_rules in # (((
2579   yes) AM_DEFAULT_VERBOSITY=0;;
2580    no) AM_DEFAULT_VERBOSITY=1;;
2581     *) AM_DEFAULT_VERBOSITY=0;;
2582 esac
2583 am_make=${MAKE-make}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2585 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2586 if ${am_cv_make_support_nested_variables+:} false; then :
2587   $as_echo_n "(cached) " >&6
2588 else
2589   if $as_echo 'TRUE=$(BAR$(V))
2590 BAR0=false
2591 BAR1=true
2592 V=1
2593 am__doit:
2594         @$(TRUE)
2595 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2596   am_cv_make_support_nested_variables=yes
2597 else
2598   am_cv_make_support_nested_variables=no
2599 fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2602 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2603 if test $am_cv_make_support_nested_variables = yes; then
2604     AM_V='$(V)'
2605   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2606 else
2607   AM_V=$AM_DEFAULT_VERBOSITY
2608   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2609 fi
2610 AM_BACKSLASH='\'
2611
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641   done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658   ac_ct_CC=$CC
2659   # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test -n "$ac_ct_CC"; then
2667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     ac_cv_prog_ac_ct_CC="gcc"
2677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681   done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695   if test "x$ac_ct_CC" = x; then
2696     CC=""
2697   else
2698     case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704     CC=$ac_ct_CC
2705   fi
2706 else
2707   CC="$ac_cv_prog_CC"
2708 fi
2709
2710 if test -z "$CC"; then
2711           if test -n "$ac_tool_prefix"; then
2712     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_exec_ext in '' $ac_executable_extensions; do
2728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_CC="${ac_tool_prefix}cc"
2730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749   fi
2750 fi
2751 if test -z "$CC"; then
2752   # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   if test -n "$CC"; then
2760   ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762   ac_prog_rejected=no
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768     for ac_exec_ext in '' $ac_executable_extensions; do
2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771        ac_prog_rejected=yes
2772        continue
2773      fi
2774     ac_cv_prog_CC="cc"
2775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779   done
2780 IFS=$as_save_IFS
2781
2782 if test $ac_prog_rejected = yes; then
2783   # We found a bogon in the path, so make sure we never use it.
2784   set dummy $ac_cv_prog_CC
2785   shift
2786   if test $# != 0; then
2787     # We chose a different compiler from the bogus one.
2788     # However, it has the same basename, so the bogon will be chosen
2789     # first if we set CC to just the basename; use the full file name.
2790     shift
2791     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792   fi
2793 fi
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$CC"; then
2808   if test -n "$ac_tool_prefix"; then
2809   for ac_prog in cl.exe
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$CC"; then
2819   ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848     test -n "$CC" && break
2849   done
2850 fi
2851 if test -z "$CC"; then
2852   ac_ct_CC=$CC
2853   for ac_prog in cl.exe
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$ac_ct_CC"; then
2863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_ac_ct_CC="$ac_prog"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892   test -n "$ac_ct_CC" && break
2893 done
2894
2895   if test "x$ac_ct_CC" = x; then
2896     CC=""
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904     CC=$ac_ct_CC
2905   fi
2906 fi
2907
2908 fi
2909
2910
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2915
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918 set X $ac_compile
2919 ac_compiler=$2
2920 for ac_option in --version -v -V -qversion; do
2921   { { ac_try="$ac_compiler $ac_option >&5"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929   ac_status=$?
2930   if test -s conftest.err; then
2931     sed '10a\
2932 ... rest of stderr output deleted ...
2933          10q' conftest.err >conftest.er1
2934     cat conftest.er1 >&5
2935   fi
2936   rm -f conftest.er1 conftest.err
2937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938   test $ac_status = 0; }
2939 done
2940
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2956 # of exeext.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2966 do
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970   esac
2971 done
2972 rm -f $ac_rmfiles
2973
2974 if { { ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981   (eval "$ac_link_default") 2>&5
2982   ac_status=$?
2983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984   test $ac_status = 0; }; then :
2985   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2989 # Autoconf.
2990 for ac_file in $ac_files ''
2991 do
2992   test -f "$ac_file" || continue
2993   case $ac_file in
2994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995         ;;
2996     [ab].out )
2997         # We found the default executable, but exeext='' is most
2998         # certainly right.
2999         break;;
3000     *.* )
3001         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002         then :; else
3003            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004         fi
3005         # We set ac_cv_exeext here because the later test for it is not
3006         # safe: cross compilers may not add the suffix if given an `-o'
3007         # argument, so we may need to know it at that point already.
3008         # Even if this section looks crufty: it has the advantage of
3009         # actually working.
3010         break;;
3011     * )
3012         break;;
3013   esac
3014 done
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017 else
3018   ac_file=''
3019 fi
3020 if test -z "$ac_file"; then :
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3039
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051   (eval "$ac_link") 2>&5
3052   ac_status=$?
3053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054   test $ac_status = 0; }; then :
3055   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3058 # `rm'.
3059 for ac_file in conftest.exe conftest conftest.*; do
3060   test -f "$ac_file" || continue
3061   case $ac_file in
3062     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064           break;;
3065     * ) break;;
3066   esac
3067 done
3068 else
3069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3073 fi
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3077
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3080 ac_exeext=$EXEEXT
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083 #include <stdio.h>
3084 int
3085 main ()
3086 {
3087 FILE *f = fopen ("conftest.out", "w");
3088  return ferror (f) || fclose (f) != 0;
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run.  If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100   { { ac_try="$ac_link"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107   (eval "$ac_link") 2>&5
3108   ac_status=$?
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; }
3111   if { ac_try='./conftest$ac_cv_exeext'
3112   { { case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118   (eval "$ac_try") 2>&5
3119   ac_status=$?
3120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121   test $ac_status = 0; }; }; then
3122     cross_compiling=no
3123   else
3124     if test "$cross_compiling" = maybe; then
3125         cross_compiling=yes
3126     else
3127         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3132     fi
3133   fi
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3137
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_compile") 2>&5
3165   ac_status=$?
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }; then :
3168   for ac_file in conftest.o conftest.obj conftest.*; do
3169   test -f "$ac_file" || continue;
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173        break;;
3174   esac
3175 done
3176 else
3177   $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3184 fi
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203        choke me
3204 #endif
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211   ac_compiler_gnu=yes
3212 else
3213   ac_compiler_gnu=no
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222   GCC=yes
3223 else
3224   GCC=
3225 fi
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   ac_save_c_werror_flag=$ac_c_werror_flag
3234    ac_c_werror_flag=yes
3235    ac_cv_prog_cc_g=no
3236    CFLAGS="-g"
3237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249   ac_cv_prog_cc_g=yes
3250 else
3251   CFLAGS=""
3252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254
3255 int
3256 main ()
3257 {
3258
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264
3265 else
3266   ac_c_werror_flag=$ac_save_c_werror_flag
3267          CFLAGS="-g"
3268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280   ac_cv_prog_cc_g=yes
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287    ac_c_werror_flag=$ac_save_c_werror_flag
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292   CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294   if test "$GCC" = yes; then
3295     CFLAGS="-g -O2"
3296   else
3297     CFLAGS="-g"
3298   fi
3299 else
3300   if test "$GCC" = yes; then
3301     CFLAGS="-O2"
3302   else
3303     CFLAGS=
3304   fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 struct stat;
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3322      char **p;
3323      int i;
3324 {
3325   return p[i];
3326 }
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3328 {
3329   char *s;
3330   va_list v;
3331   va_start (v,p);
3332   s = g (p, va_arg (v,int));
3333   va_end (v);
3334   return s;
3335 }
3336
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3338    function prototypes and stuff, but not '\xHH' hex character constants.
3339    These don't provoke an error unfortunately, instead are silently treated
3340    as 'x'.  The following induces an error, until -std is added to get
3341    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3342    array size at least.  It's necessary to write '\x00'==0 to get something
3343    that's true only with -std.  */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347    inside strings and character constants.  */
3348 #define FOO(x) 'x'
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 int argc;
3356 char **argv;
3357 int
3358 main ()
3359 {
3360 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 do
3368   CC="$ac_save_CC $ac_arg"
3369   if ac_fn_c_try_compile "$LINENO"; then :
3370   ac_cv_prog_cc_c89=$ac_arg
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext
3373   test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 done
3375 rm -f conftest.$ac_ext
3376 CC=$ac_save_CC
3377
3378 fi
3379 # AC_CACHE_VAL
3380 case "x$ac_cv_prog_cc_c89" in
3381   x)
3382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3384   xno)
3385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3387   *)
3388     CC="$CC $ac_cv_prog_cc_c89"
3389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391 esac
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3393
3394 fi
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 DEPDIR="${am__leading_dot}deps"
3402
3403 ac_config_commands="$ac_config_commands depfiles"
3404
3405
3406 am_make=${MAKE-make}
3407 cat > confinc << 'END'
3408 am__doit:
3409         @echo this is the am__doit target
3410 .PHONY: am__doit
3411 END
3412 # If we don't find an include directive, just comment out the code.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3414 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3415 am__include="#"
3416 am__quote=
3417 _am_result=none
3418 # First try GNU make style include.
3419 echo "include confinc" > confmf
3420 # Ignore all kinds of additional output from 'make'.
3421 case `$am_make -s -f confmf 2> /dev/null` in #(
3422 *the\ am__doit\ target*)
3423   am__include=include
3424   am__quote=
3425   _am_result=GNU
3426   ;;
3427 esac
3428 # Now try BSD make style include.
3429 if test "$am__include" = "#"; then
3430    echo '.include "confinc"' > confmf
3431    case `$am_make -s -f confmf 2> /dev/null` in #(
3432    *the\ am__doit\ target*)
3433      am__include=.include
3434      am__quote="\""
3435      _am_result=BSD
3436      ;;
3437    esac
3438 fi
3439
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3442 $as_echo "$_am_result" >&6; }
3443 rm -f confinc confmf
3444
3445 # Check whether --enable-dependency-tracking was given.
3446 if test "${enable_dependency_tracking+set}" = set; then :
3447   enableval=$enable_dependency_tracking;
3448 fi
3449
3450 if test "x$enable_dependency_tracking" != xno; then
3451   am_depcomp="$ac_aux_dir/depcomp"
3452   AMDEPBACKSLASH='\'
3453   am__nodep='_no'
3454 fi
3455  if test "x$enable_dependency_tracking" != xno; then
3456   AMDEP_TRUE=
3457   AMDEP_FALSE='#'
3458 else
3459   AMDEP_TRUE='#'
3460   AMDEP_FALSE=
3461 fi
3462
3463
3464
3465 depcc="$CC"   am_compiler_list=
3466
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3468 $as_echo_n "checking dependency style of $depcc... " >&6; }
3469 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3470   $as_echo_n "(cached) " >&6
3471 else
3472   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3473   # We make a subdir and do the tests there.  Otherwise we can end up
3474   # making bogus files that we don't know about and never remove.  For
3475   # instance it was reported that on HP-UX the gcc test will end up
3476   # making a dummy file named 'D' -- because '-MD' means "put the output
3477   # in D".
3478   rm -rf conftest.dir
3479   mkdir conftest.dir
3480   # Copy depcomp to subdir because otherwise we won't find it if we're
3481   # using a relative directory.
3482   cp "$am_depcomp" conftest.dir
3483   cd conftest.dir
3484   # We will build objects and dependencies in a subdirectory because
3485   # it helps to detect inapplicable dependency modes.  For instance
3486   # both Tru64's cc and ICC support -MD to output dependencies as a
3487   # side effect of compilation, but ICC will put the dependencies in
3488   # the current directory while Tru64 will put them in the object
3489   # directory.
3490   mkdir sub
3491
3492   am_cv_CC_dependencies_compiler_type=none
3493   if test "$am_compiler_list" = ""; then
3494      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3495   fi
3496   am__universal=false
3497   case " $depcc " in #(
3498      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3499      esac
3500
3501   for depmode in $am_compiler_list; do
3502     # Setup a source with many dependencies, because some compilers
3503     # like to wrap large dependency lists on column 80 (with \), and
3504     # we should not choose a depcomp mode which is confused by this.
3505     #
3506     # We need to recreate these files for each test, as the compiler may
3507     # overwrite some of them when testing with obscure command lines.
3508     # This happens at least with the AIX C compiler.
3509     : > sub/conftest.c
3510     for i in 1 2 3 4 5 6; do
3511       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3512       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3513       # Solaris 10 /bin/sh.
3514       echo '/* dummy */' > sub/conftst$i.h
3515     done
3516     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3517
3518     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3519     # mode.  It turns out that the SunPro C++ compiler does not properly
3520     # handle '-M -o', and we need to detect this.  Also, some Intel
3521     # versions had trouble with output in subdirs.
3522     am__obj=sub/conftest.${OBJEXT-o}
3523     am__minus_obj="-o $am__obj"
3524     case $depmode in
3525     gcc)
3526       # This depmode causes a compiler race in universal mode.
3527       test "$am__universal" = false || continue
3528       ;;
3529     nosideeffect)
3530       # After this tag, mechanisms are not by side-effect, so they'll
3531       # only be used when explicitly requested.
3532       if test "x$enable_dependency_tracking" = xyes; then
3533         continue
3534       else
3535         break
3536       fi
3537       ;;
3538     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3539       # This compiler won't grok '-c -o', but also, the minuso test has
3540       # not run yet.  These depmodes are late enough in the game, and
3541       # so weak that their functioning should not be impacted.
3542       am__obj=conftest.${OBJEXT-o}
3543       am__minus_obj=
3544       ;;
3545     none) break ;;
3546     esac
3547     if depmode=$depmode \
3548        source=sub/conftest.c object=$am__obj \
3549        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3550        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3551          >/dev/null 2>conftest.err &&
3552        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3553        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3554        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3555        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3556       # icc doesn't choke on unknown options, it will just issue warnings
3557       # or remarks (even with -Werror).  So we grep stderr for any message
3558       # that says an option was ignored or not supported.
3559       # When given -MP, icc 7.0 and 7.1 complain thusly:
3560       #   icc: Command line warning: ignoring option '-M'; no argument required
3561       # The diagnosis changed in icc 8.0:
3562       #   icc: Command line remark: option '-MP' not supported
3563       if (grep 'ignoring option' conftest.err ||
3564           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3565         am_cv_CC_dependencies_compiler_type=$depmode
3566         break
3567       fi
3568     fi
3569   done
3570
3571   cd ..
3572   rm -rf conftest.dir
3573 else
3574   am_cv_CC_dependencies_compiler_type=none
3575 fi
3576
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3581
3582  if
3583   test "x$enable_dependency_tracking" != xno \
3584   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585   am__fastdepCC_TRUE=
3586   am__fastdepCC_FALSE='#'
3587 else
3588   am__fastdepCC_TRUE='#'
3589   am__fastdepCC_FALSE=
3590 fi
3591
3592
3593 if test "x$CC" != xcc; then
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3595 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3596 else
3597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3598 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3599 fi
3600 set dummy $CC; ac_cc=`$as_echo "$2" |
3601                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3602 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 # Make sure it works both with $CC and with simple cc.
3617 # We do the test twice because some compilers refuse to overwrite an
3618 # existing .o file with -o, though they will create one.
3619 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3620 rm -f conftest2.*
3621 if { { case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_try") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; } &&
3631    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640   test $ac_status = 0; };
3641 then
3642   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3643   if test "x$CC" != xcc; then
3644     # Test first that cc exists at all.
3645     if { ac_try='cc -c conftest.$ac_ext >&5'
3646   { { case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652   (eval "$ac_try") 2>&5
3653   ac_status=$?
3654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655   test $ac_status = 0; }; }; then
3656       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3657       rm -f conftest2.*
3658       if { { case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664   (eval "$ac_try") 2>&5
3665   ac_status=$?
3666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667   test $ac_status = 0; } &&
3668          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677   test $ac_status = 0; };
3678       then
3679         # cc works too.
3680         :
3681       else
3682         # cc exists but doesn't like -o.
3683         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3684       fi
3685     fi
3686   fi
3687 else
3688   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3689 fi
3690 rm -f core conftest*
3691
3692 fi
3693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 $as_echo "yes" >&6; }
3696 else
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699
3700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3701
3702 fi
3703
3704 # FIXME: we rely on the cache variable name because
3705 # there is no other way.
3706 set dummy $CC
3707 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3708 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3709 if test "$am_t" != yes; then
3710    # Losing compiler, so override with the script.
3711    # FIXME: It is wrong to rewrite CC.
3712    # But if we don't then we get into trouble of one sort or another.
3713    # A longer-term fix would be to have automake use am__CC in this case,
3714    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3715    CC="$am_aux_dir/compile $CC"
3716 fi
3717
3718
3719
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3729   CPP=
3730 fi
3731 if test -z "$CPP"; then
3732   if ${ac_cv_prog_CPP+:} false; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735       # Double quotes because CPP needs to be expanded
3736     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3737     do
3738       ac_preproc_ok=false
3739 for ac_c_preproc_warn_flag in '' yes
3740 do
3741   # Use a header file that comes with gcc, so configuring glibc
3742   # with a fresh cross-compiler works.
3743   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744   # <limits.h> exists even on freestanding compilers.
3745   # On the NeXT, cc -E runs the code through the compiler's parser,
3746   # not just through cpp. "Syntax error" is here to catch this case.
3747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749 #ifdef __STDC__
3750 # include <limits.h>
3751 #else
3752 # include <assert.h>
3753 #endif
3754                      Syntax error
3755 _ACEOF
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757
3758 else
3759   # Broken: fails on valid input.
3760 continue
3761 fi
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3763
3764   # OK, works on sane cases.  Now check whether nonexistent headers
3765   # can be detected and how.
3766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <ac_nonexistent.h>
3769 _ACEOF
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771   # Broken: success on invalid input.
3772 continue
3773 else
3774   # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3777 fi
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3779
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3784   break
3785 fi
3786
3787     done
3788     ac_cv_prog_CPP=$CPP
3789
3790 fi
3791   CPP=$ac_cv_prog_CPP
3792 else
3793   ac_cv_prog_CPP=$CPP
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796 $as_echo "$CPP" >&6; }
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3799 do
3800   # Use a header file that comes with gcc, so configuring glibc
3801   # with a fresh cross-compiler works.
3802   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803   # <limits.h> exists even on freestanding compilers.
3804   # On the NeXT, cc -E runs the code through the compiler's parser,
3805   # not just through cpp. "Syntax error" is here to catch this case.
3806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h.  */
3808 #ifdef __STDC__
3809 # include <limits.h>
3810 #else
3811 # include <assert.h>
3812 #endif
3813                      Syntax error
3814 _ACEOF
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3816
3817 else
3818   # Broken: fails on valid input.
3819 continue
3820 fi
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3822
3823   # OK, works on sane cases.  Now check whether nonexistent headers
3824   # can be detected and how.
3825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827 #include <ac_nonexistent.h>
3828 _ACEOF
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830   # Broken: success on invalid input.
3831 continue
3832 else
3833   # Passes both tests.
3834 ac_preproc_ok=:
3835 break
3836 fi
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3838
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3843
3844 else
3845   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details" "$LINENO" 5; }
3849 fi
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3860 if ${ac_cv_path_GREP+:} false; then :
3861   $as_echo_n "(cached) " >&6
3862 else
3863   if test -z "$GREP"; then
3864   ac_path_GREP_found=false
3865   # Loop through the user's path and test for each of PROGNAME-LIST
3866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868 do
3869   IFS=$as_save_IFS
3870   test -z "$as_dir" && as_dir=.
3871     for ac_prog in grep ggrep; do
3872     for ac_exec_ext in '' $ac_executable_extensions; do
3873       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3874       as_fn_executable_p "$ac_path_GREP" || continue
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876   # Check for GNU $ac_path_GREP
3877 case `"$ac_path_GREP" --version 2>&1` in
3878 *GNU*)
3879   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3880 *)
3881   ac_count=0
3882   $as_echo_n 0123456789 >"conftest.in"
3883   while :
3884   do
3885     cat "conftest.in" "conftest.in" >"conftest.tmp"
3886     mv "conftest.tmp" "conftest.in"
3887     cp "conftest.in" "conftest.nl"
3888     $as_echo 'GREP' >> "conftest.nl"
3889     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891     as_fn_arith $ac_count + 1 && ac_count=$as_val
3892     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893       # Best one so far, save it but keep looking for a better one
3894       ac_cv_path_GREP="$ac_path_GREP"
3895       ac_path_GREP_max=$ac_count
3896     fi
3897     # 10*(2^10) chars as input seems more than enough
3898     test $ac_count -gt 10 && break
3899   done
3900   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 esac
3902
3903       $ac_path_GREP_found && break 3
3904     done
3905   done
3906   done
3907 IFS=$as_save_IFS
3908   if test -z "$ac_cv_path_GREP"; then
3909     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3910   fi
3911 else
3912   ac_cv_path_GREP=$GREP
3913 fi
3914
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917 $as_echo "$ac_cv_path_GREP" >&6; }
3918  GREP="$ac_cv_path_GREP"
3919
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922 $as_echo_n "checking for egrep... " >&6; }
3923 if ${ac_cv_path_EGREP+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927    then ac_cv_path_EGREP="$GREP -E"
3928    else
3929      if test -z "$EGREP"; then
3930   ac_path_EGREP_found=false
3931   # Loop through the user's path and test for each of PROGNAME-LIST
3932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 do
3935   IFS=$as_save_IFS
3936   test -z "$as_dir" && as_dir=.
3937     for ac_prog in egrep; do
3938     for ac_exec_ext in '' $ac_executable_extensions; do
3939       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3940       as_fn_executable_p "$ac_path_EGREP" || continue
3941 # Check for GNU ac_path_EGREP and select it if it is found.
3942   # Check for GNU $ac_path_EGREP
3943 case `"$ac_path_EGREP" --version 2>&1` in
3944 *GNU*)
3945   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3946 *)
3947   ac_count=0
3948   $as_echo_n 0123456789 >"conftest.in"
3949   while :
3950   do
3951     cat "conftest.in" "conftest.in" >"conftest.tmp"
3952     mv "conftest.tmp" "conftest.in"
3953     cp "conftest.in" "conftest.nl"
3954     $as_echo 'EGREP' >> "conftest.nl"
3955     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957     as_fn_arith $ac_count + 1 && ac_count=$as_val
3958     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959       # Best one so far, save it but keep looking for a better one
3960       ac_cv_path_EGREP="$ac_path_EGREP"
3961       ac_path_EGREP_max=$ac_count
3962     fi
3963     # 10*(2^10) chars as input seems more than enough
3964     test $ac_count -gt 10 && break
3965   done
3966   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967 esac
3968
3969       $ac_path_EGREP_found && break 3
3970     done
3971   done
3972   done
3973 IFS=$as_save_IFS
3974   if test -z "$ac_cv_path_EGREP"; then
3975     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976   fi
3977 else
3978   ac_cv_path_EGREP=$EGREP
3979 fi
3980
3981    fi
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984 $as_echo "$ac_cv_path_EGREP" >&6; }
3985  EGREP="$ac_cv_path_EGREP"
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989 $as_echo_n "checking for ANSI C header files... " >&6; }
3990 if ${ac_cv_header_stdc+:} false; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h.  */
3995 #include <stdlib.h>
3996 #include <stdarg.h>
3997 #include <string.h>
3998 #include <float.h>
3999
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_cv_header_stdc=yes
4010 else
4011   ac_cv_header_stdc=no
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014
4015 if test $ac_cv_header_stdc = yes; then
4016   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019 #include <string.h>
4020
4021 _ACEOF
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023   $EGREP "memchr" >/dev/null 2>&1; then :
4024
4025 else
4026   ac_cv_header_stdc=no
4027 fi
4028 rm -f conftest*
4029
4030 fi
4031
4032 if test $ac_cv_header_stdc = yes; then
4033   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036 #include <stdlib.h>
4037
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040   $EGREP "free" >/dev/null 2>&1; then :
4041
4042 else
4043   ac_cv_header_stdc=no
4044 fi
4045 rm -f conftest*
4046
4047 fi
4048
4049 if test $ac_cv_header_stdc = yes; then
4050   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051   if test "$cross_compiling" = yes; then :
4052   :
4053 else
4054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h.  */
4056 #include <ctype.h>
4057 #include <stdlib.h>
4058 #if ((' ' & 0x0FF) == 0x020)
4059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4061 #else
4062 # define ISLOWER(c) \
4063                    (('a' <= (c) && (c) <= 'i') \
4064                      || ('j' <= (c) && (c) <= 'r') \
4065                      || ('s' <= (c) && (c) <= 'z'))
4066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4067 #endif
4068
4069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4070 int
4071 main ()
4072 {
4073   int i;
4074   for (i = 0; i < 256; i++)
4075     if (XOR (islower (i), ISLOWER (i))
4076         || toupper (i) != TOUPPER (i))
4077       return 2;
4078   return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_run "$LINENO"; then :
4082
4083 else
4084   ac_cv_header_stdc=no
4085 fi
4086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4087   conftest.$ac_objext conftest.beam conftest.$ac_ext
4088 fi
4089
4090 fi
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093 $as_echo "$ac_cv_header_stdc" >&6; }
4094 if test $ac_cv_header_stdc = yes; then
4095
4096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4097
4098 fi
4099
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4102 $as_echo_n "checking whether ln -s works... " >&6; }
4103 LN_S=$as_ln_s
4104 if test "$LN_S" = "ln -s"; then
4105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106 $as_echo "yes" >&6; }
4107 else
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4109 $as_echo "no, using $LN_S" >&6; }
4110 fi
4111
4112
4113 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4114
4115
4116
4117
4118
4119
4120
4121
4122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4123         if test -n "$ac_tool_prefix"; then
4124   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   case $PKG_CONFIG in
4132   [\\/]* | ?:[\\/]*)
4133   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4134   ;;
4135   *)
4136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148   done
4149 IFS=$as_save_IFS
4150
4151   ;;
4152 esac
4153 fi
4154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4155 if test -n "$PKG_CONFIG"; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4157 $as_echo "$PKG_CONFIG" >&6; }
4158 else
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 fi
4165 if test -z "$ac_cv_path_PKG_CONFIG"; then
4166   ac_pt_PKG_CONFIG=$PKG_CONFIG
4167   # Extract the first word of "pkg-config", so it can be a program name with args.
4168 set dummy pkg-config; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   case $ac_pt_PKG_CONFIG in
4175   [\\/]* | ?:[\\/]*)
4176   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4177   ;;
4178   *)
4179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184     for ac_exec_ext in '' $ac_executable_extensions; do
4185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188     break 2
4189   fi
4190 done
4191   done
4192 IFS=$as_save_IFS
4193
4194   ;;
4195 esac
4196 fi
4197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4198 if test -n "$ac_pt_PKG_CONFIG"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4200 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206   if test "x$ac_pt_PKG_CONFIG" = x; then
4207     PKG_CONFIG=""
4208   else
4209     case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215     PKG_CONFIG=$ac_pt_PKG_CONFIG
4216   fi
4217 else
4218   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4219 fi
4220
4221 fi
4222 if test -n "$PKG_CONFIG"; then
4223         _pkg_min_version=0.9.0
4224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4225 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4226         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229         else
4230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232                 PKG_CONFIG=""
4233         fi
4234 fi
4235
4236
4237 # Check whether --with-session-info was given.
4238 if test "${with_session_info+set}" = set; then :
4239   withval=$with_session_info; case "$with_session_info" in
4240      auto|console-kit|systemd|none) ;;
4241      *) as_fn_error $? "invalid session-info type specified" "$LINENO" 5 ;;
4242    esac
4243 else
4244   with_session_info="auto"
4245 fi
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init script flavor" >&5
4249 $as_echo_n "checking for init script flavor... " >&6; }
4250
4251 # Check whether --with-init-script was given.
4252 if test "${with_init_script+set}" = set; then :
4253   withval=$with_init_script;
4254 else
4255   with_init_script=check
4256 fi
4257
4258 init_redhat=no
4259 init_systemd=no
4260 case "$with_init_script" in
4261     systemd+redhat)
4262        init_redhat=yes
4263        init_systemd=yes
4264        ;;
4265     systemd)
4266        init_systemd=yes
4267        ;;
4268     redhat)
4269        init_redhat=yes
4270        ;;
4271     none)
4272        ;;
4273     check)
4274        with_init_script=none
4275        if test "$cross_compiling" != yes && test -f /etc/redhat-release; then
4276           init_redhat=yes
4277           with_init_script=redhat
4278        fi
4279        ;;
4280     *)
4281        as_fn_error $? "Unknown initscript flavour $with_init_script" "$LINENO" 5
4282     ;;
4283 esac
4284  if test "$init_redhat" = "yes"; then
4285   INIT_SCRIPT_RED_HAT_TRUE=
4286   INIT_SCRIPT_RED_HAT_FALSE='#'
4287 else
4288   INIT_SCRIPT_RED_HAT_TRUE='#'
4289   INIT_SCRIPT_RED_HAT_FALSE=
4290 fi
4291
4292  if test "$init_systemd" = "yes"; then
4293   INIT_SCRIPT_SYSTEMD_TRUE=
4294   INIT_SCRIPT_SYSTEMD_FALSE='#'
4295 else
4296   INIT_SCRIPT_SYSTEMD_TRUE='#'
4297   INIT_SCRIPT_SYSTEMD_FALSE=
4298 fi
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_init_script" >&5
4301 $as_echo "$with_init_script" >&6; }
4302
4303 if test "x$init_systemd" = "xyes"; then
4304   SYSTEMDSYSTEMUNITDIR=`${PKG_CONFIG} systemd --variable=systemdsystemunitdir`
4305
4306 fi
4307
4308 # Check whether --enable-pciaccess was given.
4309 if test "${enable_pciaccess+set}" = set; then :
4310   enableval=$enable_pciaccess; enable_pciaccess="$enableval"
4311 else
4312   enable_pciaccess="yes"
4313 fi
4314
4315
4316 # Check whether --enable-static-uinput was given.
4317 if test "${enable_static_uinput+set}" = set; then :
4318   enableval=$enable_static_uinput; enable_static_uinput="$enableval"
4319 else
4320   enable_static_uinput="no"
4321 fi
4322
4323
4324
4325 pkg_failed=no
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
4327 $as_echo_n "checking for GLIB2... " >&6; }
4328
4329 if test -n "$GLIB2_CFLAGS"; then
4330     pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
4331  elif test -n "$PKG_CONFIG"; then
4332     if test -n "$PKG_CONFIG" && \
4333     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.12\""; } >&5
4334   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.12") 2>&5
4335   ac_status=$?
4336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337   test $ac_status = 0; }; then
4338   pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.12" 2>/dev/null`
4339                       test "x$?" != "x0" && pkg_failed=yes
4340 else
4341   pkg_failed=yes
4342 fi
4343  else
4344     pkg_failed=untried
4345 fi
4346 if test -n "$GLIB2_LIBS"; then
4347     pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
4348  elif test -n "$PKG_CONFIG"; then
4349     if test -n "$PKG_CONFIG" && \
4350     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.12\""; } >&5
4351   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.12") 2>&5
4352   ac_status=$?
4353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354   test $ac_status = 0; }; then
4355   pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.12" 2>/dev/null`
4356                       test "x$?" != "x0" && pkg_failed=yes
4357 else
4358   pkg_failed=yes
4359 fi
4360  else
4361     pkg_failed=untried
4362 fi
4363
4364
4365
4366 if test $pkg_failed = yes; then
4367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369
4370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4371         _pkg_short_errors_supported=yes
4372 else
4373         _pkg_short_errors_supported=no
4374 fi
4375         if test $_pkg_short_errors_supported = yes; then
4376                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.12" 2>&1`
4377         else
4378                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.12" 2>&1`
4379         fi
4380         # Put the nasty error message in config.log where it belongs
4381         echo "$GLIB2_PKG_ERRORS" >&5
4382
4383         as_fn_error $? "Package requirements (glib-2.0 >= 2.12) were not met:
4384
4385 $GLIB2_PKG_ERRORS
4386
4387 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4388 installed software in a non-standard prefix.
4389
4390 Alternatively, you may set the environment variables GLIB2_CFLAGS
4391 and GLIB2_LIBS to avoid the need to call pkg-config.
4392 See the pkg-config man page for more details." "$LINENO" 5
4393 elif test $pkg_failed = untried; then
4394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4398 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4399 is in your PATH or set the PKG_CONFIG environment variable to the full
4400 path to pkg-config.
4401
4402 Alternatively, you may set the environment variables GLIB2_CFLAGS
4403 and GLIB2_LIBS to avoid the need to call pkg-config.
4404 See the pkg-config man page for more details.
4405
4406 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4407 See \`config.log' for more details" "$LINENO" 5; }
4408 else
4409         GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
4410         GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
4411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412 $as_echo "yes" >&6; }
4413
4414 fi
4415
4416 pkg_failed=no
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4418 $as_echo_n "checking for X... " >&6; }
4419
4420 if test -n "$X_CFLAGS"; then
4421     pkg_cv_X_CFLAGS="$X_CFLAGS"
4422  elif test -n "$PKG_CONFIG"; then
4423     if test -n "$PKG_CONFIG" && \
4424     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes xrandr >= 1.3 xinerama x11\""; } >&5
4425   ($PKG_CONFIG --exists --print-errors "xfixes xrandr >= 1.3 xinerama x11") 2>&5
4426   ac_status=$?
4427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428   test $ac_status = 0; }; then
4429   pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xfixes xrandr >= 1.3 xinerama x11" 2>/dev/null`
4430                       test "x$?" != "x0" && pkg_failed=yes
4431 else
4432   pkg_failed=yes
4433 fi
4434  else
4435     pkg_failed=untried
4436 fi
4437 if test -n "$X_LIBS"; then
4438     pkg_cv_X_LIBS="$X_LIBS"
4439  elif test -n "$PKG_CONFIG"; then
4440     if test -n "$PKG_CONFIG" && \
4441     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes xrandr >= 1.3 xinerama x11\""; } >&5
4442   ($PKG_CONFIG --exists --print-errors "xfixes xrandr >= 1.3 xinerama x11") 2>&5
4443   ac_status=$?
4444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445   test $ac_status = 0; }; then
4446   pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xfixes xrandr >= 1.3 xinerama x11" 2>/dev/null`
4447                       test "x$?" != "x0" && pkg_failed=yes
4448 else
4449   pkg_failed=yes
4450 fi
4451  else
4452     pkg_failed=untried
4453 fi
4454
4455
4456
4457 if test $pkg_failed = yes; then
4458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460
4461 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4462         _pkg_short_errors_supported=yes
4463 else
4464         _pkg_short_errors_supported=no
4465 fi
4466         if test $_pkg_short_errors_supported = yes; then
4467                 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes xrandr >= 1.3 xinerama x11" 2>&1`
4468         else
4469                 X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes xrandr >= 1.3 xinerama x11" 2>&1`
4470         fi
4471         # Put the nasty error message in config.log where it belongs
4472         echo "$X_PKG_ERRORS" >&5
4473
4474         as_fn_error $? "Package requirements (xfixes xrandr >= 1.3 xinerama x11) were not met:
4475
4476 $X_PKG_ERRORS
4477
4478 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4479 installed software in a non-standard prefix.
4480
4481 Alternatively, you may set the environment variables X_CFLAGS
4482 and X_LIBS to avoid the need to call pkg-config.
4483 See the pkg-config man page for more details." "$LINENO" 5
4484 elif test $pkg_failed = untried; then
4485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4490 is in your PATH or set the PKG_CONFIG environment variable to the full
4491 path to pkg-config.
4492
4493 Alternatively, you may set the environment variables X_CFLAGS
4494 and X_LIBS to avoid the need to call pkg-config.
4495 See the pkg-config man page for more details.
4496
4497 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4498 See \`config.log' for more details" "$LINENO" 5; }
4499 else
4500         X_CFLAGS=$pkg_cv_X_CFLAGS
4501         X_LIBS=$pkg_cv_X_LIBS
4502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4503 $as_echo "yes" >&6; }
4504
4505 fi
4506
4507 pkg_failed=no
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPICE" >&5
4509 $as_echo_n "checking for SPICE... " >&6; }
4510
4511 if test -n "$SPICE_CFLAGS"; then
4512     pkg_cv_SPICE_CFLAGS="$SPICE_CFLAGS"
4513  elif test -n "$PKG_CONFIG"; then
4514     if test -n "$PKG_CONFIG" && \
4515     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.5\""; } >&5
4516   ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.5") 2>&5
4517   ac_status=$?
4518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519   test $ac_status = 0; }; then
4520   pkg_cv_SPICE_CFLAGS=`$PKG_CONFIG --cflags "spice-protocol >= 0.12.5" 2>/dev/null`
4521                       test "x$?" != "x0" && pkg_failed=yes
4522 else
4523   pkg_failed=yes
4524 fi
4525  else
4526     pkg_failed=untried
4527 fi
4528 if test -n "$SPICE_LIBS"; then
4529     pkg_cv_SPICE_LIBS="$SPICE_LIBS"
4530  elif test -n "$PKG_CONFIG"; then
4531     if test -n "$PKG_CONFIG" && \
4532     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.5\""; } >&5
4533   ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.5") 2>&5
4534   ac_status=$?
4535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536   test $ac_status = 0; }; then
4537   pkg_cv_SPICE_LIBS=`$PKG_CONFIG --libs "spice-protocol >= 0.12.5" 2>/dev/null`
4538                       test "x$?" != "x0" && pkg_failed=yes
4539 else
4540   pkg_failed=yes
4541 fi
4542  else
4543     pkg_failed=untried
4544 fi
4545
4546
4547
4548 if test $pkg_failed = yes; then
4549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551
4552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4553         _pkg_short_errors_supported=yes
4554 else
4555         _pkg_short_errors_supported=no
4556 fi
4557         if test $_pkg_short_errors_supported = yes; then
4558                 SPICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spice-protocol >= 0.12.5" 2>&1`
4559         else
4560                 SPICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spice-protocol >= 0.12.5" 2>&1`
4561         fi
4562         # Put the nasty error message in config.log where it belongs
4563         echo "$SPICE_PKG_ERRORS" >&5
4564
4565         as_fn_error $? "Package requirements (spice-protocol >= 0.12.5) were not met:
4566
4567 $SPICE_PKG_ERRORS
4568
4569 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4570 installed software in a non-standard prefix.
4571
4572 Alternatively, you may set the environment variables SPICE_CFLAGS
4573 and SPICE_LIBS to avoid the need to call pkg-config.
4574 See the pkg-config man page for more details." "$LINENO" 5
4575 elif test $pkg_failed = untried; then
4576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4581 is in your PATH or set the PKG_CONFIG environment variable to the full
4582 path to pkg-config.
4583
4584 Alternatively, you may set the environment variables SPICE_CFLAGS
4585 and SPICE_LIBS to avoid the need to call pkg-config.
4586 See the pkg-config man page for more details.
4587
4588 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4589 See \`config.log' for more details" "$LINENO" 5; }
4590 else
4591         SPICE_CFLAGS=$pkg_cv_SPICE_CFLAGS
4592         SPICE_LIBS=$pkg_cv_SPICE_LIBS
4593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594 $as_echo "yes" >&6; }
4595
4596 fi
4597
4598 if test "$with_session_info" = "auto" || test "$with_session_info" = "systemd"; then
4599
4600 pkg_failed=no
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD_LOGIN" >&5
4602 $as_echo_n "checking for LIBSYSTEMD_LOGIN... " >&6; }
4603
4604 if test -n "$LIBSYSTEMD_LOGIN_CFLAGS"; then
4605     pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS="$LIBSYSTEMD_LOGIN_CFLAGS"
4606  elif test -n "$PKG_CONFIG"; then
4607     if test -n "$PKG_CONFIG" && \
4608     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login >= 42\""; } >&5
4609   ($PKG_CONFIG --exists --print-errors "libsystemd-login >= 42") 2>&5
4610   ac_status=$?
4611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612   test $ac_status = 0; }; then
4613   pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-login >= 42" 2>/dev/null`
4614                       test "x$?" != "x0" && pkg_failed=yes
4615 else
4616   pkg_failed=yes
4617 fi
4618  else
4619     pkg_failed=untried
4620 fi
4621 if test -n "$LIBSYSTEMD_LOGIN_LIBS"; then
4622     pkg_cv_LIBSYSTEMD_LOGIN_LIBS="$LIBSYSTEMD_LOGIN_LIBS"
4623  elif test -n "$PKG_CONFIG"; then
4624     if test -n "$PKG_CONFIG" && \
4625     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-login >= 42\""; } >&5
4626   ($PKG_CONFIG --exists --print-errors "libsystemd-login >= 42") 2>&5
4627   ac_status=$?
4628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629   test $ac_status = 0; }; then
4630   pkg_cv_LIBSYSTEMD_LOGIN_LIBS=`$PKG_CONFIG --libs "libsystemd-login >= 42" 2>/dev/null`
4631                       test "x$?" != "x0" && pkg_failed=yes
4632 else
4633   pkg_failed=yes
4634 fi
4635  else
4636     pkg_failed=untried
4637 fi
4638
4639
4640
4641 if test $pkg_failed = yes; then
4642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4644
4645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4646         _pkg_short_errors_supported=yes
4647 else
4648         _pkg_short_errors_supported=no
4649 fi
4650         if test $_pkg_short_errors_supported = yes; then
4651                 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-login >= 42" 2>&1`
4652         else
4653                 LIBSYSTEMD_LOGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-login >= 42" 2>&1`
4654         fi
4655         # Put the nasty error message in config.log where it belongs
4656         echo "$LIBSYSTEMD_LOGIN_PKG_ERRORS" >&5
4657
4658         have_libsystemd_login="no"
4659 elif test $pkg_failed = untried; then
4660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662         have_libsystemd_login="no"
4663 else
4664         LIBSYSTEMD_LOGIN_CFLAGS=$pkg_cv_LIBSYSTEMD_LOGIN_CFLAGS
4665         LIBSYSTEMD_LOGIN_LIBS=$pkg_cv_LIBSYSTEMD_LOGIN_LIBS
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4667 $as_echo "yes" >&6; }
4668         have_libsystemd_login="yes"
4669 fi
4670     if test x"$have_libsystemd_login" = "xno" && test "$with_session_info" = "systemd"; then
4671         as_fn_error $? "libsystemd-login support explicitly requested, but some required packages are not available" "$LINENO" 5
4672     fi
4673     if test x"$have_libsystemd_login" = "xyes"; then
4674
4675 $as_echo "#define HAVE_LIBSYSTEMD_LOGIN 1" >>confdefs.h
4676
4677         with_session_info="systemd"
4678     fi
4679 else
4680     have_libsystemd_login="no"
4681 fi
4682  if test x"$have_libsystemd_login" = "xyes"; then
4683   HAVE_LIBSYSTEMD_LOGIN_TRUE=
4684   HAVE_LIBSYSTEMD_LOGIN_FALSE='#'
4685 else
4686   HAVE_LIBSYSTEMD_LOGIN_TRUE='#'
4687   HAVE_LIBSYSTEMD_LOGIN_FALSE=
4688 fi
4689
4690
4691 if test "$with_session_info" = "auto" || test "$with_session_info" = "console-kit"; then
4692
4693 pkg_failed=no
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
4695 $as_echo_n "checking for DBUS... " >&6; }
4696
4697 if test -n "$DBUS_CFLAGS"; then
4698     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
4699  elif test -n "$PKG_CONFIG"; then
4700     if test -n "$PKG_CONFIG" && \
4701     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
4702   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4703   ac_status=$?
4704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4705   test $ac_status = 0; }; then
4706   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
4707                       test "x$?" != "x0" && pkg_failed=yes
4708 else
4709   pkg_failed=yes
4710 fi
4711  else
4712     pkg_failed=untried
4713 fi
4714 if test -n "$DBUS_LIBS"; then
4715     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
4716  elif test -n "$PKG_CONFIG"; then
4717     if test -n "$PKG_CONFIG" && \
4718     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
4719   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4720   ac_status=$?
4721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722   test $ac_status = 0; }; then
4723   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
4724                       test "x$?" != "x0" && pkg_failed=yes
4725 else
4726   pkg_failed=yes
4727 fi
4728  else
4729     pkg_failed=untried
4730 fi
4731
4732
4733
4734 if test $pkg_failed = yes; then
4735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737
4738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4739         _pkg_short_errors_supported=yes
4740 else
4741         _pkg_short_errors_supported=no
4742 fi
4743         if test $_pkg_short_errors_supported = yes; then
4744                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
4745         else
4746                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
4747         fi
4748         # Put the nasty error message in config.log where it belongs
4749         echo "$DBUS_PKG_ERRORS" >&5
4750
4751         have_console_kit="no"
4752 elif test $pkg_failed = untried; then
4753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755         have_console_kit="no"
4756 else
4757         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
4758         DBUS_LIBS=$pkg_cv_DBUS_LIBS
4759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4760 $as_echo "yes" >&6; }
4761         have_console_kit="yes"
4762 fi
4763     if test x"$have_console_kit" = "xno" && test "$with_session_info" = "console-kit"; then
4764         as_fn_error $? "console-kit support explicitly requested, but some required packages are not available" "$LINENO" 5
4765     fi
4766     if test x"$have_console_kit" = "xyes"; then
4767
4768 $as_echo "#define HAVE_CONSOLE_KIT 1" >>confdefs.h
4769
4770         with_session_info="console-kit"
4771     else
4772         with_session_info="none"
4773     fi
4774 else
4775     have_console_kit="no"
4776 fi
4777  if test x"$have_console_kit" = "xyes"; then
4778   HAVE_CONSOLE_KIT_TRUE=
4779   HAVE_CONSOLE_KIT_FALSE='#'
4780 else
4781   HAVE_CONSOLE_KIT_TRUE='#'
4782   HAVE_CONSOLE_KIT_FALSE=
4783 fi
4784
4785
4786 if test x"$enable_pciaccess" = "xyes" ; then
4787
4788 pkg_failed=no
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
4790 $as_echo_n "checking for PCIACCESS... " >&6; }
4791
4792 if test -n "$PCIACCESS_CFLAGS"; then
4793     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
4794  elif test -n "$PKG_CONFIG"; then
4795     if test -n "$PKG_CONFIG" && \
4796     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
4797   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
4798   ac_status=$?
4799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800   test $ac_status = 0; }; then
4801   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
4802                       test "x$?" != "x0" && pkg_failed=yes
4803 else
4804   pkg_failed=yes
4805 fi
4806  else
4807     pkg_failed=untried
4808 fi
4809 if test -n "$PCIACCESS_LIBS"; then
4810     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
4811  elif test -n "$PKG_CONFIG"; then
4812     if test -n "$PKG_CONFIG" && \
4813     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
4814   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
4815   ac_status=$?
4816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4817   test $ac_status = 0; }; then
4818   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
4819                       test "x$?" != "x0" && pkg_failed=yes
4820 else
4821   pkg_failed=yes
4822 fi
4823  else
4824     pkg_failed=untried
4825 fi
4826
4827
4828
4829 if test $pkg_failed = yes; then
4830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832
4833 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4834         _pkg_short_errors_supported=yes
4835 else
4836         _pkg_short_errors_supported=no
4837 fi
4838         if test $_pkg_short_errors_supported = yes; then
4839                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
4840         else
4841                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
4842         fi
4843         # Put the nasty error message in config.log where it belongs
4844         echo "$PCIACCESS_PKG_ERRORS" >&5
4845
4846         as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
4847
4848 $PCIACCESS_PKG_ERRORS
4849
4850 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4851 installed software in a non-standard prefix.
4852
4853 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
4854 and PCIACCESS_LIBS to avoid the need to call pkg-config.
4855 See the pkg-config man page for more details." "$LINENO" 5
4856 elif test $pkg_failed = untried; then
4857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4861 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4862 is in your PATH or set the PKG_CONFIG environment variable to the full
4863 path to pkg-config.
4864
4865 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
4866 and PCIACCESS_LIBS to avoid the need to call pkg-config.
4867 See the pkg-config man page for more details.
4868
4869 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4870 See \`config.log' for more details" "$LINENO" 5; }
4871 else
4872         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
4873         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
4874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875 $as_echo "yes" >&6; }
4876
4877 fi
4878
4879 $as_echo "#define HAVE_PCIACCESS 1" >>confdefs.h
4880
4881 fi
4882  if test x"$enable_pciaccess" = "xyes"; then
4883   HAVE_PCIACCESS_TRUE=
4884   HAVE_PCIACCESS_FALSE='#'
4885 else
4886   HAVE_PCIACCESS_TRUE='#'
4887   HAVE_PCIACCESS_FALSE=
4888 fi
4889
4890
4891 if test x"$enable_static_uinput" = "xyes" ; then
4892
4893 $as_echo "#define WITH_STATIC_UINPUT 1" >>confdefs.h
4894
4895 fi
4896
4897 # If no CFLAGS are set, set some sane default CFLAGS
4898 if test "$ac_test_CFLAGS" != set; then
4899   DEFAULT_CFLAGS="-Wall -Werror -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4"
4900   for F in $DEFAULT_CFLAGS; do
4901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $F" >&5
4902 $as_echo_n "checking whether $CC supports $F... " >&6; }
4903     save_CFLAGS="$CFLAGS"
4904     CFLAGS="$CFLAGS $F"
4905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h.  */
4907
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910   cc_flag=yes
4911 else
4912   cc_flag=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915     if test "x$cc_flag" != "xyes"; then
4916       CFLAGS="$save_CFLAGS"
4917     fi
4918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_flag" >&5
4919 $as_echo "$cc_flag" >&6; }
4920   done
4921 fi
4922
4923 # Check whether --enable-pie was given.
4924 if test "${enable_pie+set}" = set; then :
4925   enableval=$enable_pie;
4926 else
4927   enable_pie="auto"
4928 fi
4929
4930
4931 if test "x$enable_pie" != "xno"; then
4932   save_CFLAGS="$CFLAGS"
4933   save_LDFLAGS="$LDFLAGS"
4934   CFLAGS="$CFLAGS -fPIE"
4935   LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIE support" >&5
4937 $as_echo_n "checking for PIE support... " >&6; }
4938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h.  */
4940 int main () { return 0; }
4941 _ACEOF
4942 if ac_fn_c_try_link "$LINENO"; then :
4943   have_pie=yes
4944 else
4945   have_pie=no
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext \
4948     conftest$ac_exeext conftest.$ac_ext
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pie" >&5
4950 $as_echo "$have_pie" >&6; }
4951   if test "x$have_pie" = "xno" && test "x$enable_pie" = "xyes"; then
4952     as_fn_error $? "pie support explicitly requested, but your toolchain does not support it" "$LINENO" 5
4953   fi
4954   if test "x$have_pie" = "xyes"; then
4955     PIE_CFLAGS="-fPIE"
4956     PIE_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
4957
4958
4959   fi
4960   CFLAGS="$save_CFLAGS"
4961   LDFLAGS="$save_LDFLAGS"
4962 else
4963   have_pie=no
4964 fi
4965
4966 ac_config_files="$ac_config_files Makefile data/spice-vdagent.1 data/spice-vdagentd.1"
4967
4968 cat >confcache <<\_ACEOF
4969 # This file is a shell script that caches the results of configure
4970 # tests run on this system so they can be shared between configure
4971 # scripts and configure runs, see configure's option --config-cache.
4972 # It is not useful on other systems.  If it contains results you don't
4973 # want to keep, you may remove or edit it.
4974 #
4975 # config.status only pays attention to the cache file if you give it
4976 # the --recheck option to rerun configure.
4977 #
4978 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4979 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4980 # following values.
4981
4982 _ACEOF
4983
4984 # The following way of writing the cache mishandles newlines in values,
4985 # but we know of no workaround that is simple, portable, and efficient.
4986 # So, we kill variables containing newlines.
4987 # Ultrix sh set writes to stderr and can't be redirected directly,
4988 # and sets the high bit in the cache file unless we assign to the vars.
4989 (
4990   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4991     eval ac_val=\$$ac_var
4992     case $ac_val in #(
4993     *${as_nl}*)
4994       case $ac_var in #(
4995       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4996 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4997       esac
4998       case $ac_var in #(
4999       _ | IFS | as_nl) ;; #(
5000       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5001       *) { eval $ac_var=; unset $ac_var;} ;;
5002       esac ;;
5003     esac
5004   done
5005
5006   (set) 2>&1 |
5007     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5008     *${as_nl}ac_space=\ *)
5009       # `set' does not quote correctly, so add quotes: double-quote
5010       # substitution turns \\\\ into \\, and sed turns \\ into \.
5011       sed -n \
5012         "s/'/'\\\\''/g;
5013           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5014       ;; #(
5015     *)
5016       # `set' quotes correctly as required by POSIX, so do not add quotes.
5017       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5018       ;;
5019     esac |
5020     sort
5021 ) |
5022   sed '
5023      /^ac_cv_env_/b end
5024      t clear
5025      :clear
5026      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5027      t end
5028      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5029      :end' >>confcache
5030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5031   if test -w "$cache_file"; then
5032     if test "x$cache_file" != "x/dev/null"; then
5033       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5034 $as_echo "$as_me: updating cache $cache_file" >&6;}
5035       if test ! -f "$cache_file" || test -h "$cache_file"; then
5036         cat confcache >"$cache_file"
5037       else
5038         case $cache_file in #(
5039         */* | ?:*)
5040           mv -f confcache "$cache_file"$$ &&
5041           mv -f "$cache_file"$$ "$cache_file" ;; #(
5042         *)
5043           mv -f confcache "$cache_file" ;;
5044         esac
5045       fi
5046     fi
5047   else
5048     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5050   fi
5051 fi
5052 rm -f confcache
5053
5054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5055 # Let make expand exec_prefix.
5056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5057
5058 DEFS=-DHAVE_CONFIG_H
5059
5060 ac_libobjs=
5061 ac_ltlibobjs=
5062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5063   # 1. Remove the extension, and $U if already installed.
5064   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5065   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5066   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5067   #    will be set to the directory where LIBOBJS objects are built.
5068   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5069   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5070 done
5071 LIBOBJS=$ac_libobjs
5072
5073 LTLIBOBJS=$ac_ltlibobjs
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5077 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5078    if test -n "$am_sleep_pid"; then
5079      # Hide warnings about reused PIDs.
5080      wait $am_sleep_pid 2>/dev/null
5081    fi
5082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5083 $as_echo "done" >&6; }
5084  if test -n "$EXEEXT"; then
5085   am__EXEEXT_TRUE=
5086   am__EXEEXT_FALSE='#'
5087 else
5088   am__EXEEXT_TRUE='#'
5089   am__EXEEXT_FALSE=
5090 fi
5091
5092 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5093   as_fn_error $? "conditional \"AMDEP\" was never defined.
5094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5095 fi
5096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5097   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5099 fi
5100 if test -z "${INIT_SCRIPT_RED_HAT_TRUE}" && test -z "${INIT_SCRIPT_RED_HAT_FALSE}"; then
5101   as_fn_error $? "conditional \"INIT_SCRIPT_RED_HAT\" was never defined.
5102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5103 fi
5104 if test -z "${INIT_SCRIPT_SYSTEMD_TRUE}" && test -z "${INIT_SCRIPT_SYSTEMD_FALSE}"; then
5105   as_fn_error $? "conditional \"INIT_SCRIPT_SYSTEMD\" was never defined.
5106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5107 fi
5108 if test -z "${HAVE_LIBSYSTEMD_LOGIN_TRUE}" && test -z "${HAVE_LIBSYSTEMD_LOGIN_FALSE}"; then
5109   as_fn_error $? "conditional \"HAVE_LIBSYSTEMD_LOGIN\" was never defined.
5110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5111 fi
5112 if test -z "${HAVE_CONSOLE_KIT_TRUE}" && test -z "${HAVE_CONSOLE_KIT_FALSE}"; then
5113   as_fn_error $? "conditional \"HAVE_CONSOLE_KIT\" was never defined.
5114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5115 fi
5116 if test -z "${HAVE_PCIACCESS_TRUE}" && test -z "${HAVE_PCIACCESS_FALSE}"; then
5117   as_fn_error $? "conditional \"HAVE_PCIACCESS\" was never defined.
5118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5119 fi
5120
5121 : "${CONFIG_STATUS=./config.status}"
5122 ac_write_fail=0
5123 ac_clean_files_save=$ac_clean_files
5124 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5126 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5127 as_write_fail=0
5128 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5129 #! $SHELL
5130 # Generated by $as_me.
5131 # Run this file to recreate the current configuration.
5132 # Compiler output produced by configure, useful for debugging
5133 # configure, is in config.log if it exists.
5134
5135 debug=false
5136 ac_cs_recheck=false
5137 ac_cs_silent=false
5138
5139 SHELL=\${CONFIG_SHELL-$SHELL}
5140 export SHELL
5141 _ASEOF
5142 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5143 ## -------------------- ##
5144 ## M4sh Initialization. ##
5145 ## -------------------- ##
5146
5147 # Be more Bourne compatible
5148 DUALCASE=1; export DUALCASE # for MKS sh
5149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5150   emulate sh
5151   NULLCMD=:
5152   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5153   # is contrary to our usage.  Disable this feature.
5154   alias -g '${1+"$@"}'='"$@"'
5155   setopt NO_GLOB_SUBST
5156 else
5157   case `(set -o) 2>/dev/null` in #(
5158   *posix*) :
5159     set -o posix ;; #(
5160   *) :
5161      ;;
5162 esac
5163 fi
5164
5165
5166 as_nl='
5167 '
5168 export as_nl
5169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5170 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5173 # Prefer a ksh shell builtin over an external printf program on Solaris,
5174 # but without wasting forks for bash or zsh.
5175 if test -z "$BASH_VERSION$ZSH_VERSION" \
5176     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5177   as_echo='print -r --'
5178   as_echo_n='print -rn --'
5179 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5180   as_echo='printf %s\n'
5181   as_echo_n='printf %s'
5182 else
5183   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5184     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5185     as_echo_n='/usr/ucb/echo -n'
5186   else
5187     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5188     as_echo_n_body='eval
5189       arg=$1;
5190       case $arg in #(
5191       *"$as_nl"*)
5192         expr "X$arg" : "X\\(.*\\)$as_nl";
5193         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5194       esac;
5195       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5196     '
5197     export as_echo_n_body
5198     as_echo_n='sh -c $as_echo_n_body as_echo'
5199   fi
5200   export as_echo_body
5201   as_echo='sh -c $as_echo_body as_echo'
5202 fi
5203
5204 # The user is always right.
5205 if test "${PATH_SEPARATOR+set}" != set; then
5206   PATH_SEPARATOR=:
5207   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5208     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5209       PATH_SEPARATOR=';'
5210   }
5211 fi
5212
5213
5214 # IFS
5215 # We need space, tab and new line, in precisely that order.  Quoting is
5216 # there to prevent editors from complaining about space-tab.
5217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5218 # splitting by setting IFS to empty value.)
5219 IFS=" ""        $as_nl"
5220
5221 # Find who we are.  Look in the path if we contain no directory separator.
5222 as_myself=
5223 case $0 in #((
5224   *[\\/]* ) as_myself=$0 ;;
5225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5231   done
5232 IFS=$as_save_IFS
5233
5234      ;;
5235 esac
5236 # We did not find ourselves, most probably we were run as `sh COMMAND'
5237 # in which case we are not to be found in the path.
5238 if test "x$as_myself" = x; then
5239   as_myself=$0
5240 fi
5241 if test ! -f "$as_myself"; then
5242   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5243   exit 1
5244 fi
5245
5246 # Unset variables that we do not need and which cause bugs (e.g. in
5247 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5248 # suppresses any "Segmentation fault" message there.  '((' could
5249 # trigger a bug in pdksh 5.2.14.
5250 for as_var in BASH_ENV ENV MAIL MAILPATH
5251 do eval test x\${$as_var+set} = xset \
5252   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5253 done
5254 PS1='$ '
5255 PS2='> '
5256 PS4='+ '
5257
5258 # NLS nuisances.
5259 LC_ALL=C
5260 export LC_ALL
5261 LANGUAGE=C
5262 export LANGUAGE
5263
5264 # CDPATH.
5265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5266
5267
5268 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5269 # ----------------------------------------
5270 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5271 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5272 # script with STATUS, using 1 if that was 0.
5273 as_fn_error ()
5274 {
5275   as_status=$1; test $as_status -eq 0 && as_status=1
5276   if test "$4"; then
5277     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5278     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5279   fi
5280   $as_echo "$as_me: error: $2" >&2
5281   as_fn_exit $as_status
5282 } # as_fn_error
5283
5284
5285 # as_fn_set_status STATUS
5286 # -----------------------
5287 # Set $? to STATUS, without forking.
5288 as_fn_set_status ()
5289 {
5290   return $1
5291 } # as_fn_set_status
5292
5293 # as_fn_exit STATUS
5294 # -----------------
5295 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5296 as_fn_exit ()
5297 {
5298   set +e
5299   as_fn_set_status $1
5300   exit $1
5301 } # as_fn_exit
5302
5303 # as_fn_unset VAR
5304 # ---------------
5305 # Portably unset VAR.
5306 as_fn_unset ()
5307 {
5308   { eval $1=; unset $1;}
5309 }
5310 as_unset=as_fn_unset
5311 # as_fn_append VAR VALUE
5312 # ----------------------
5313 # Append the text in VALUE to the end of the definition contained in VAR. Take
5314 # advantage of any shell optimizations that allow amortized linear growth over
5315 # repeated appends, instead of the typical quadratic growth present in naive
5316 # implementations.
5317 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5318   eval 'as_fn_append ()
5319   {
5320     eval $1+=\$2
5321   }'
5322 else
5323   as_fn_append ()
5324   {
5325     eval $1=\$$1\$2
5326   }
5327 fi # as_fn_append
5328
5329 # as_fn_arith ARG...
5330 # ------------------
5331 # Perform arithmetic evaluation on the ARGs, and store the result in the
5332 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5333 # must be portable across $(()) and expr.
5334 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5335   eval 'as_fn_arith ()
5336   {
5337     as_val=$(( $* ))
5338   }'
5339 else
5340   as_fn_arith ()
5341   {
5342     as_val=`expr "$@" || test $? -eq 1`
5343   }
5344 fi # as_fn_arith
5345
5346
5347 if expr a : '\(a\)' >/dev/null 2>&1 &&
5348    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5349   as_expr=expr
5350 else
5351   as_expr=false
5352 fi
5353
5354 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5355   as_basename=basename
5356 else
5357   as_basename=false
5358 fi
5359
5360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5361   as_dirname=dirname
5362 else
5363   as_dirname=false
5364 fi
5365
5366 as_me=`$as_basename -- "$0" ||
5367 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5368          X"$0" : 'X\(//\)$' \| \
5369          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5370 $as_echo X/"$0" |
5371     sed '/^.*\/\([^/][^/]*\)\/*$/{
5372             s//\1/
5373             q
5374           }
5375           /^X\/\(\/\/\)$/{
5376             s//\1/
5377             q
5378           }
5379           /^X\/\(\/\).*/{
5380             s//\1/
5381             q
5382           }
5383           s/.*/./; q'`
5384
5385 # Avoid depending upon Character Ranges.
5386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5389 as_cr_digits='0123456789'
5390 as_cr_alnum=$as_cr_Letters$as_cr_digits
5391
5392 ECHO_C= ECHO_N= ECHO_T=
5393 case `echo -n x` in #(((((
5394 -n*)
5395   case `echo 'xy\c'` in
5396   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5397   xy)  ECHO_C='\c';;
5398   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5399        ECHO_T=' ';;
5400   esac;;
5401 *)
5402   ECHO_N='-n';;
5403 esac
5404
5405 rm -f conf$$ conf$$.exe conf$$.file
5406 if test -d conf$$.dir; then
5407   rm -f conf$$.dir/conf$$.file
5408 else
5409   rm -f conf$$.dir
5410   mkdir conf$$.dir 2>/dev/null
5411 fi
5412 if (echo >conf$$.file) 2>/dev/null; then
5413   if ln -s conf$$.file conf$$ 2>/dev/null; then
5414     as_ln_s='ln -s'
5415     # ... but there are two gotchas:
5416     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5417     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5418     # In both cases, we have to default to `cp -pR'.
5419     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5420       as_ln_s='cp -pR'
5421   elif ln conf$$.file conf$$ 2>/dev/null; then
5422     as_ln_s=ln
5423   else
5424     as_ln_s='cp -pR'
5425   fi
5426 else
5427   as_ln_s='cp -pR'
5428 fi
5429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5430 rmdir conf$$.dir 2>/dev/null
5431
5432
5433 # as_fn_mkdir_p
5434 # -------------
5435 # Create "$as_dir" as a directory, including parents if necessary.
5436 as_fn_mkdir_p ()
5437 {
5438
5439   case $as_dir in #(
5440   -*) as_dir=./$as_dir;;
5441   esac
5442   test -d "$as_dir" || eval $as_mkdir_p || {
5443     as_dirs=
5444     while :; do
5445       case $as_dir in #(
5446       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5447       *) as_qdir=$as_dir;;
5448       esac
5449       as_dirs="'$as_qdir' $as_dirs"
5450       as_dir=`$as_dirname -- "$as_dir" ||
5451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5452          X"$as_dir" : 'X\(//\)[^/]' \| \
5453          X"$as_dir" : 'X\(//\)$' \| \
5454          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5455 $as_echo X"$as_dir" |
5456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5457             s//\1/
5458             q
5459           }
5460           /^X\(\/\/\)[^/].*/{
5461             s//\1/
5462             q
5463           }
5464           /^X\(\/\/\)$/{
5465             s//\1/
5466             q
5467           }
5468           /^X\(\/\).*/{
5469             s//\1/
5470             q
5471           }
5472           s/.*/./; q'`
5473       test -d "$as_dir" && break
5474     done
5475     test -z "$as_dirs" || eval "mkdir $as_dirs"
5476   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5477
5478
5479 } # as_fn_mkdir_p
5480 if mkdir -p . 2>/dev/null; then
5481   as_mkdir_p='mkdir -p "$as_dir"'
5482 else
5483   test -d ./-p && rmdir ./-p
5484   as_mkdir_p=false
5485 fi
5486
5487
5488 # as_fn_executable_p FILE
5489 # -----------------------
5490 # Test if FILE is an executable regular file.
5491 as_fn_executable_p ()
5492 {
5493   test -f "$1" && test -x "$1"
5494 } # as_fn_executable_p
5495 as_test_x='test -x'
5496 as_executable_p=as_fn_executable_p
5497
5498 # Sed expression to map a string onto a valid CPP name.
5499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5500
5501 # Sed expression to map a string onto a valid variable name.
5502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5503
5504
5505 exec 6>&1
5506 ## ----------------------------------- ##
5507 ## Main body of $CONFIG_STATUS script. ##
5508 ## ----------------------------------- ##
5509 _ASEOF
5510 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5511
5512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5513 # Save the log message, to keep $0 and so on meaningful, and to
5514 # report actual input values of CONFIG_FILES etc. instead of their
5515 # values after options handling.
5516 ac_log="
5517 This file was extended by spice-vdagent $as_me 0.15.0, which was
5518 generated by GNU Autoconf 2.69.  Invocation command line was
5519
5520   CONFIG_FILES    = $CONFIG_FILES
5521   CONFIG_HEADERS  = $CONFIG_HEADERS
5522   CONFIG_LINKS    = $CONFIG_LINKS
5523   CONFIG_COMMANDS = $CONFIG_COMMANDS
5524   $ $0 $@
5525
5526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5527 "
5528
5529 _ACEOF
5530
5531 case $ac_config_files in *"
5532 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5533 esac
5534
5535 case $ac_config_headers in *"
5536 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5537 esac
5538
5539
5540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5541 # Files that config.status was made for.
5542 config_files="$ac_config_files"
5543 config_headers="$ac_config_headers"
5544 config_commands="$ac_config_commands"
5545
5546 _ACEOF
5547
5548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5549 ac_cs_usage="\
5550 \`$as_me' instantiates files and other configuration actions
5551 from templates according to the current configuration.  Unless the files
5552 and actions are specified as TAGs, all are instantiated by default.
5553
5554 Usage: $0 [OPTION]... [TAG]...
5555
5556   -h, --help       print this help, then exit
5557   -V, --version    print version number and configuration settings, then exit
5558       --config     print configuration, then exit
5559   -q, --quiet, --silent
5560                    do not print progress messages
5561   -d, --debug      don't remove temporary files
5562       --recheck    update $as_me by reconfiguring in the same conditions
5563       --file=FILE[:TEMPLATE]
5564                    instantiate the configuration file FILE
5565       --header=FILE[:TEMPLATE]
5566                    instantiate the configuration header FILE
5567
5568 Configuration files:
5569 $config_files
5570
5571 Configuration headers:
5572 $config_headers
5573
5574 Configuration commands:
5575 $config_commands
5576
5577 Report bugs to the package provider."
5578
5579 _ACEOF
5580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5581 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5582 ac_cs_version="\\
5583 spice-vdagent config.status 0.15.0
5584 configured by $0, generated by GNU Autoconf 2.69,
5585   with options \\"\$ac_cs_config\\"
5586
5587 Copyright (C) 2012 Free Software Foundation, Inc.
5588 This config.status script is free software; the Free Software Foundation
5589 gives unlimited permission to copy, distribute and modify it."
5590
5591 ac_pwd='$ac_pwd'
5592 srcdir='$srcdir'
5593 INSTALL='$INSTALL'
5594 MKDIR_P='$MKDIR_P'
5595 AWK='$AWK'
5596 test -n "\$AWK" || AWK=awk
5597 _ACEOF
5598
5599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5600 # The default lists apply if the user does not specify any file.
5601 ac_need_defaults=:
5602 while test $# != 0
5603 do
5604   case $1 in
5605   --*=?*)
5606     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5607     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5608     ac_shift=:
5609     ;;
5610   --*=)
5611     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5612     ac_optarg=
5613     ac_shift=:
5614     ;;
5615   *)
5616     ac_option=$1
5617     ac_optarg=$2
5618     ac_shift=shift
5619     ;;
5620   esac
5621
5622   case $ac_option in
5623   # Handling of the options.
5624   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5625     ac_cs_recheck=: ;;
5626   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5627     $as_echo "$ac_cs_version"; exit ;;
5628   --config | --confi | --conf | --con | --co | --c )
5629     $as_echo "$ac_cs_config"; exit ;;
5630   --debug | --debu | --deb | --de | --d | -d )
5631     debug=: ;;
5632   --file | --fil | --fi | --f )
5633     $ac_shift
5634     case $ac_optarg in
5635     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5636     '') as_fn_error $? "missing file argument" ;;
5637     esac
5638     as_fn_append CONFIG_FILES " '$ac_optarg'"
5639     ac_need_defaults=false;;
5640   --header | --heade | --head | --hea )
5641     $ac_shift
5642     case $ac_optarg in
5643     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5644     esac
5645     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5646     ac_need_defaults=false;;
5647   --he | --h)
5648     # Conflict between --help and --header
5649     as_fn_error $? "ambiguous option: \`$1'
5650 Try \`$0 --help' for more information.";;
5651   --help | --hel | -h )
5652     $as_echo "$ac_cs_usage"; exit ;;
5653   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5654   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5655     ac_cs_silent=: ;;
5656
5657   # This is an error.
5658   -*) as_fn_error $? "unrecognized option: \`$1'
5659 Try \`$0 --help' for more information." ;;
5660
5661   *) as_fn_append ac_config_targets " $1"
5662      ac_need_defaults=false ;;
5663
5664   esac
5665   shift
5666 done
5667
5668 ac_configure_extra_args=
5669
5670 if $ac_cs_silent; then
5671   exec 6>/dev/null
5672   ac_configure_extra_args="$ac_configure_extra_args --silent"
5673 fi
5674
5675 _ACEOF
5676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5677 if \$ac_cs_recheck; then
5678   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5679   shift
5680   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5681   CONFIG_SHELL='$SHELL'
5682   export CONFIG_SHELL
5683   exec "\$@"
5684 fi
5685
5686 _ACEOF
5687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5688 exec 5>>config.log
5689 {
5690   echo
5691   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5692 ## Running $as_me. ##
5693 _ASBOX
5694   $as_echo "$ac_log"
5695 } >&5
5696
5697 _ACEOF
5698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5699 #
5700 # INIT-COMMANDS
5701 #
5702 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5703
5704 _ACEOF
5705
5706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5707
5708 # Handling of arguments.
5709 for ac_config_target in $ac_config_targets
5710 do
5711   case $ac_config_target in
5712     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5713     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5714     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5715     "data/spice-vdagent.1") CONFIG_FILES="$CONFIG_FILES data/spice-vdagent.1" ;;
5716     "data/spice-vdagentd.1") CONFIG_FILES="$CONFIG_FILES data/spice-vdagentd.1" ;;
5717
5718   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5719   esac
5720 done
5721
5722
5723 # If the user did not use the arguments to specify the items to instantiate,
5724 # then the envvar interface is used.  Set only those that are not.
5725 # We use the long form for the default assignment because of an extremely
5726 # bizarre bug on SunOS 4.1.3.
5727 if $ac_need_defaults; then
5728   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5729   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5730   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5731 fi
5732
5733 # Have a temporary directory for convenience.  Make it in the build tree
5734 # simply because there is no reason against having it here, and in addition,
5735 # creating and moving files from /tmp can sometimes cause problems.
5736 # Hook for its removal unless debugging.
5737 # Note that there is a small window in which the directory will not be cleaned:
5738 # after its creation but before its name has been assigned to `$tmp'.
5739 $debug ||
5740 {
5741   tmp= ac_tmp=
5742   trap 'exit_status=$?
5743   : "${ac_tmp:=$tmp}"
5744   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5745 ' 0
5746   trap 'as_fn_exit 1' 1 2 13 15
5747 }
5748 # Create a (secure) tmp directory for tmp files.
5749
5750 {
5751   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5752   test -d "$tmp"
5753 }  ||
5754 {
5755   tmp=./conf$$-$RANDOM
5756   (umask 077 && mkdir "$tmp")
5757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5758 ac_tmp=$tmp
5759
5760 # Set up the scripts for CONFIG_FILES section.
5761 # No need to generate them if there are no CONFIG_FILES.
5762 # This happens for instance with `./config.status config.h'.
5763 if test -n "$CONFIG_FILES"; then
5764
5765
5766 ac_cr=`echo X | tr X '\015'`
5767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5768 # But we know of no other shell where ac_cr would be empty at this
5769 # point, so we can use a bashism as a fallback.
5770 if test "x$ac_cr" = x; then
5771   eval ac_cr=\$\'\\r\'
5772 fi
5773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5775   ac_cs_awk_cr='\\r'
5776 else
5777   ac_cs_awk_cr=$ac_cr
5778 fi
5779
5780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5781 _ACEOF
5782
5783
5784 {
5785   echo "cat >conf$$subs.awk <<_ACEOF" &&
5786   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5787   echo "_ACEOF"
5788 } >conf$$subs.sh ||
5789   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5791 ac_delim='%!_!# '
5792 for ac_last_try in false false false false false :; do
5793   . ./conf$$subs.sh ||
5794     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5795
5796   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5797   if test $ac_delim_n = $ac_delim_num; then
5798     break
5799   elif $ac_last_try; then
5800     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5801   else
5802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5803   fi
5804 done
5805 rm -f conf$$subs.sh
5806
5807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5809 _ACEOF
5810 sed -n '
5811 h
5812 s/^/S["/; s/!.*/"]=/
5813 p
5814 g
5815 s/^[^!]*!//
5816 :repl
5817 t repl
5818 s/'"$ac_delim"'$//
5819 t delim
5820 :nl
5821 h
5822 s/\(.\{148\}\)..*/\1/
5823 t more1
5824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5825 p
5826 n
5827 b repl
5828 :more1
5829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5830 p
5831 g
5832 s/.\{148\}//
5833 t nl
5834 :delim
5835 h
5836 s/\(.\{148\}\)..*/\1/
5837 t more2
5838 s/["\\]/\\&/g; s/^/"/; s/$/"/
5839 p
5840 b
5841 :more2
5842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5843 p
5844 g
5845 s/.\{148\}//
5846 t delim
5847 ' <conf$$subs.awk | sed '
5848 /^[^""]/{
5849   N
5850   s/\n//
5851 }
5852 ' >>$CONFIG_STATUS || ac_write_fail=1
5853 rm -f conf$$subs.awk
5854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5855 _ACAWK
5856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5857   for (key in S) S_is_set[key] = 1
5858   FS = "\a"
5859
5860 }
5861 {
5862   line = $ 0
5863   nfields = split(line, field, "@")
5864   substed = 0
5865   len = length(field[1])
5866   for (i = 2; i < nfields; i++) {
5867     key = field[i]
5868     keylen = length(key)
5869     if (S_is_set[key]) {
5870       value = S[key]
5871       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5872       len += length(value) + length(field[++i])
5873       substed = 1
5874     } else
5875       len += 1 + keylen
5876   }
5877
5878   print line
5879 }
5880
5881 _ACAWK
5882 _ACEOF
5883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5885   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5886 else
5887   cat
5888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5889   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5890 _ACEOF
5891
5892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5894 # trailing colons and then remove the whole line if VPATH becomes empty
5895 # (actually we leave an empty line to preserve line numbers).
5896 if test "x$srcdir" = x.; then
5897   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5898 h
5899 s///
5900 s/^/:/
5901 s/[      ]*$/:/
5902 s/:\$(srcdir):/:/g
5903 s/:\${srcdir}:/:/g
5904 s/:@srcdir@:/:/g
5905 s/^:*//
5906 s/:*$//
5907 x
5908 s/\(=[   ]*\).*/\1/
5909 G
5910 s/\n//
5911 s/^[^=]*=[       ]*$//
5912 }'
5913 fi
5914
5915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5916 fi # test -n "$CONFIG_FILES"
5917
5918 # Set up the scripts for CONFIG_HEADERS section.
5919 # No need to generate them if there are no CONFIG_HEADERS.
5920 # This happens for instance with `./config.status Makefile'.
5921 if test -n "$CONFIG_HEADERS"; then
5922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5923 BEGIN {
5924 _ACEOF
5925
5926 # Transform confdefs.h into an awk script `defines.awk', embedded as
5927 # here-document in config.status, that substitutes the proper values into
5928 # config.h.in to produce config.h.
5929
5930 # Create a delimiter string that does not exist in confdefs.h, to ease
5931 # handling of long lines.
5932 ac_delim='%!_!# '
5933 for ac_last_try in false false :; do
5934   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5935   if test -z "$ac_tt"; then
5936     break
5937   elif $ac_last_try; then
5938     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5939   else
5940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5941   fi
5942 done
5943
5944 # For the awk script, D is an array of macro values keyed by name,
5945 # likewise P contains macro parameters if any.  Preserve backslash
5946 # newline sequences.
5947
5948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5949 sed -n '
5950 s/.\{148\}/&'"$ac_delim"'/g
5951 t rset
5952 :rset
5953 s/^[     ]*#[    ]*define[       ][      ]*/ /
5954 t def
5955 d
5956 :def
5957 s/\\$//
5958 t bsnl
5959 s/["\\]/\\&/g
5960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5961 D["\1"]=" \3"/p
5962 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5963 d
5964 :bsnl
5965 s/["\\]/\\&/g
5966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5967 D["\1"]=" \3\\\\\\n"\\/p
5968 t cont
5969 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5970 t cont
5971 d
5972 :cont
5973 n
5974 s/.\{148\}/&'"$ac_delim"'/g
5975 t clear
5976 :clear
5977 s/\\$//
5978 t bsnlc
5979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5980 d
5981 :bsnlc
5982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5983 b cont
5984 ' <confdefs.h | sed '
5985 s/'"$ac_delim"'/"\\\
5986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5987
5988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5989   for (key in D) D_is_set[key] = 1
5990   FS = "\a"
5991 }
5992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5993   line = \$ 0
5994   split(line, arg, " ")
5995   if (arg[1] == "#") {
5996     defundef = arg[2]
5997     mac1 = arg[3]
5998   } else {
5999     defundef = substr(arg[1], 2)
6000     mac1 = arg[2]
6001   }
6002   split(mac1, mac2, "(") #)
6003   macro = mac2[1]
6004   prefix = substr(line, 1, index(line, defundef) - 1)
6005   if (D_is_set[macro]) {
6006     # Preserve the white space surrounding the "#".
6007     print prefix "define", macro P[macro] D[macro]
6008     next
6009   } else {
6010     # Replace #undef with comments.  This is necessary, for example,
6011     # in the case of _POSIX_SOURCE, which is predefined and required
6012     # on some systems where configure will not decide to define it.
6013     if (defundef == "undef") {
6014       print "/*", prefix defundef, macro, "*/"
6015       next
6016     }
6017   }
6018 }
6019 { print }
6020 _ACAWK
6021 _ACEOF
6022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6023   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6024 fi # test -n "$CONFIG_HEADERS"
6025
6026
6027 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6028 shift
6029 for ac_tag
6030 do
6031   case $ac_tag in
6032   :[FHLC]) ac_mode=$ac_tag; continue;;
6033   esac
6034   case $ac_mode$ac_tag in
6035   :[FHL]*:*);;
6036   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6037   :[FH]-) ac_tag=-:-;;
6038   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6039   esac
6040   ac_save_IFS=$IFS
6041   IFS=:
6042   set x $ac_tag
6043   IFS=$ac_save_IFS
6044   shift
6045   ac_file=$1
6046   shift
6047
6048   case $ac_mode in
6049   :L) ac_source=$1;;
6050   :[FH])
6051     ac_file_inputs=
6052     for ac_f
6053     do
6054       case $ac_f in
6055       -) ac_f="$ac_tmp/stdin";;
6056       *) # Look for the file first in the build tree, then in the source tree
6057          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6058          # because $ac_f cannot contain `:'.
6059          test -f "$ac_f" ||
6060            case $ac_f in
6061            [\\/$]*) false;;
6062            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6063            esac ||
6064            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6065       esac
6066       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6067       as_fn_append ac_file_inputs " '$ac_f'"
6068     done
6069
6070     # Let's still pretend it is `configure' which instantiates (i.e., don't
6071     # use $as_me), people would be surprised to read:
6072     #    /* config.h.  Generated by config.status.  */
6073     configure_input='Generated from '`
6074           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6075         `' by configure.'
6076     if test x"$ac_file" != x-; then
6077       configure_input="$ac_file.  $configure_input"
6078       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6079 $as_echo "$as_me: creating $ac_file" >&6;}
6080     fi
6081     # Neutralize special characters interpreted by sed in replacement strings.
6082     case $configure_input in #(
6083     *\&* | *\|* | *\\* )
6084        ac_sed_conf_input=`$as_echo "$configure_input" |
6085        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6086     *) ac_sed_conf_input=$configure_input;;
6087     esac
6088
6089     case $ac_tag in
6090     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6091       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6092     esac
6093     ;;
6094   esac
6095
6096   ac_dir=`$as_dirname -- "$ac_file" ||
6097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098          X"$ac_file" : 'X\(//\)[^/]' \| \
6099          X"$ac_file" : 'X\(//\)$' \| \
6100          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6101 $as_echo X"$ac_file" |
6102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6103             s//\1/
6104             q
6105           }
6106           /^X\(\/\/\)[^/].*/{
6107             s//\1/
6108             q
6109           }
6110           /^X\(\/\/\)$/{
6111             s//\1/
6112             q
6113           }
6114           /^X\(\/\).*/{
6115             s//\1/
6116             q
6117           }
6118           s/.*/./; q'`
6119   as_dir="$ac_dir"; as_fn_mkdir_p
6120   ac_builddir=.
6121
6122 case "$ac_dir" in
6123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6124 *)
6125   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6126   # A ".." for each directory in $ac_dir_suffix.
6127   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6128   case $ac_top_builddir_sub in
6129   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6130   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6131   esac ;;
6132 esac
6133 ac_abs_top_builddir=$ac_pwd
6134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6135 # for backward compatibility:
6136 ac_top_builddir=$ac_top_build_prefix
6137
6138 case $srcdir in
6139   .)  # We are building in place.
6140     ac_srcdir=.
6141     ac_top_srcdir=$ac_top_builddir_sub
6142     ac_abs_top_srcdir=$ac_pwd ;;
6143   [\\/]* | ?:[\\/]* )  # Absolute name.
6144     ac_srcdir=$srcdir$ac_dir_suffix;
6145     ac_top_srcdir=$srcdir
6146     ac_abs_top_srcdir=$srcdir ;;
6147   *) # Relative name.
6148     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6149     ac_top_srcdir=$ac_top_build_prefix$srcdir
6150     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6151 esac
6152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6153
6154
6155   case $ac_mode in
6156   :F)
6157   #
6158   # CONFIG_FILE
6159   #
6160
6161   case $INSTALL in
6162   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6163   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6164   esac
6165   ac_MKDIR_P=$MKDIR_P
6166   case $MKDIR_P in
6167   [\\/$]* | ?:[\\/]* ) ;;
6168   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6169   esac
6170 _ACEOF
6171
6172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6173 # If the template does not know about datarootdir, expand it.
6174 # FIXME: This hack should be removed a few years after 2.60.
6175 ac_datarootdir_hack=; ac_datarootdir_seen=
6176 ac_sed_dataroot='
6177 /datarootdir/ {
6178   p
6179   q
6180 }
6181 /@datadir@/p
6182 /@docdir@/p
6183 /@infodir@/p
6184 /@localedir@/p
6185 /@mandir@/p'
6186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6187 *datarootdir*) ac_datarootdir_seen=yes;;
6188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6191 _ACEOF
6192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6193   ac_datarootdir_hack='
6194   s&@datadir@&$datadir&g
6195   s&@docdir@&$docdir&g
6196   s&@infodir@&$infodir&g
6197   s&@localedir@&$localedir&g
6198   s&@mandir@&$mandir&g
6199   s&\\\${datarootdir}&$datarootdir&g' ;;
6200 esac
6201 _ACEOF
6202
6203 # Neutralize VPATH when `$srcdir' = `.'.
6204 # Shell code in configure.ac might set extrasub.
6205 # FIXME: do we really want to maintain this feature?
6206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6207 ac_sed_extra="$ac_vpsub
6208 $extrasub
6209 _ACEOF
6210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6211 :t
6212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6213 s|@configure_input@|$ac_sed_conf_input|;t t
6214 s&@top_builddir@&$ac_top_builddir_sub&;t t
6215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6216 s&@srcdir@&$ac_srcdir&;t t
6217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6218 s&@top_srcdir@&$ac_top_srcdir&;t t
6219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6220 s&@builddir@&$ac_builddir&;t t
6221 s&@abs_builddir@&$ac_abs_builddir&;t t
6222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6223 s&@INSTALL@&$ac_INSTALL&;t t
6224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6225 $ac_datarootdir_hack
6226 "
6227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6228   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6229
6230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6231   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6232   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6233       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6235 which seems to be undefined.  Please make sure it is defined" >&5
6236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6237 which seems to be undefined.  Please make sure it is defined" >&2;}
6238
6239   rm -f "$ac_tmp/stdin"
6240   case $ac_file in
6241   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6242   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6243   esac \
6244   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6245  ;;
6246   :H)
6247   #
6248   # CONFIG_HEADER
6249   #
6250   if test x"$ac_file" != x-; then
6251     {
6252       $as_echo "/* $configure_input  */" \
6253       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6254     } >"$ac_tmp/config.h" \
6255       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6256     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6257       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6259     else
6260       rm -f "$ac_file"
6261       mv "$ac_tmp/config.h" "$ac_file" \
6262         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6263     fi
6264   else
6265     $as_echo "/* $configure_input  */" \
6266       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6267       || as_fn_error $? "could not create -" "$LINENO" 5
6268   fi
6269 # Compute "$ac_file"'s index in $config_headers.
6270 _am_arg="$ac_file"
6271 _am_stamp_count=1
6272 for _am_header in $config_headers :; do
6273   case $_am_header in
6274     $_am_arg | $_am_arg:* )
6275       break ;;
6276     * )
6277       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6278   esac
6279 done
6280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6282          X"$_am_arg" : 'X\(//\)[^/]' \| \
6283          X"$_am_arg" : 'X\(//\)$' \| \
6284          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6285 $as_echo X"$_am_arg" |
6286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6287             s//\1/
6288             q
6289           }
6290           /^X\(\/\/\)[^/].*/{
6291             s//\1/
6292             q
6293           }
6294           /^X\(\/\/\)$/{
6295             s//\1/
6296             q
6297           }
6298           /^X\(\/\).*/{
6299             s//\1/
6300             q
6301           }
6302           s/.*/./; q'`/stamp-h$_am_stamp_count
6303  ;;
6304
6305   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6306 $as_echo "$as_me: executing $ac_file commands" >&6;}
6307  ;;
6308   esac
6309
6310
6311   case $ac_file$ac_mode in
6312     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6313   # Older Autoconf quotes --file arguments for eval, but not when files
6314   # are listed without --file.  Let's play safe and only enable the eval
6315   # if we detect the quoting.
6316   case $CONFIG_FILES in
6317   *\'*) eval set x "$CONFIG_FILES" ;;
6318   *)   set x $CONFIG_FILES ;;
6319   esac
6320   shift
6321   for mf
6322   do
6323     # Strip MF so we end up with the name of the file.
6324     mf=`echo "$mf" | sed -e 's/:.*$//'`
6325     # Check whether this is an Automake generated Makefile or not.
6326     # We used to match only the files named 'Makefile.in', but
6327     # some people rename them; so instead we look at the file content.
6328     # Grep'ing the first line is not enough: some people post-process
6329     # each Makefile.in and add a new line on top of each file to say so.
6330     # Grep'ing the whole file is not good either: AIX grep has a line
6331     # limit of 2048, but all sed's we know have understand at least 4000.
6332     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6333       dirpart=`$as_dirname -- "$mf" ||
6334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6335          X"$mf" : 'X\(//\)[^/]' \| \
6336          X"$mf" : 'X\(//\)$' \| \
6337          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6338 $as_echo X"$mf" |
6339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6340             s//\1/
6341             q
6342           }
6343           /^X\(\/\/\)[^/].*/{
6344             s//\1/
6345             q
6346           }
6347           /^X\(\/\/\)$/{
6348             s//\1/
6349             q
6350           }
6351           /^X\(\/\).*/{
6352             s//\1/
6353             q
6354           }
6355           s/.*/./; q'`
6356     else
6357       continue
6358     fi
6359     # Extract the definition of DEPDIR, am__include, and am__quote
6360     # from the Makefile without running 'make'.
6361     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6362     test -z "$DEPDIR" && continue
6363     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6364     test -z "$am__include" && continue
6365     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6366     # Find all dependency output files, they are included files with
6367     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6368     # simplest approach to changing $(DEPDIR) to its actual value in the
6369     # expansion.
6370     for file in `sed -n "
6371       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6372          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6373       # Make sure the directory exists.
6374       test -f "$dirpart/$file" && continue
6375       fdir=`$as_dirname -- "$file" ||
6376 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6377          X"$file" : 'X\(//\)[^/]' \| \
6378          X"$file" : 'X\(//\)$' \| \
6379          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6380 $as_echo X"$file" |
6381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6382             s//\1/
6383             q
6384           }
6385           /^X\(\/\/\)[^/].*/{
6386             s//\1/
6387             q
6388           }
6389           /^X\(\/\/\)$/{
6390             s//\1/
6391             q
6392           }
6393           /^X\(\/\).*/{
6394             s//\1/
6395             q
6396           }
6397           s/.*/./; q'`
6398       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6399       # echo "creating $dirpart/$file"
6400       echo '# dummy' > "$dirpart/$file"
6401     done
6402   done
6403 }
6404  ;;
6405
6406   esac
6407 done # for ac_tag
6408
6409
6410 as_fn_exit 0
6411 _ACEOF
6412 ac_clean_files=$ac_clean_files_save
6413
6414 test $ac_write_fail = 0 ||
6415   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6416
6417
6418 # configure is writing to config.log, and then calls config.status.
6419 # config.status does its own redirection, appending to config.log.
6420 # Unfortunately, on DOS this fails, as config.log is still kept open
6421 # by configure, so config.status won't be able to write to it; its
6422 # output is simply discarded.  So we exec the FD to /dev/null,
6423 # effectively closing config.log, so it can be properly (re)opened and
6424 # appended to by config.status.  When coming back to configure, we
6425 # need to make the FD available again.
6426 if test "$no_create" != yes; then
6427   ac_cs_success=:
6428   ac_config_status_args=
6429   test "$silent" = yes &&
6430     ac_config_status_args="$ac_config_status_args --quiet"
6431   exec 5>/dev/null
6432   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6433   exec 5>>config.log
6434   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6435   # would make configure fail if this is the last instruction.
6436   $ac_cs_success || as_fn_exit 1
6437 fi
6438 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6440 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6441 fi
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}:
6445
6446         spice-vdagent $VERSION
6447         ====================
6448
6449         prefix:                   ${prefix}
6450         c compiler:               ${CC}
6451
6452         session-info:             ${with_session_info}
6453         pciaccess:                ${enable_pciaccess}
6454         static uinput:            ${enable_static_uinput}
6455         vdagentd pie + relro:     ${have_pie}
6456
6457         install RH initscript:    ${init_redhat}
6458         install systemd service:  ${init_systemd}
6459
6460         Now type 'make' to build $PACKAGE
6461
6462 " >&5
6463 $as_echo "$as_me:
6464
6465         spice-vdagent $VERSION
6466         ====================
6467
6468         prefix:                   ${prefix}
6469         c compiler:               ${CC}
6470
6471         session-info:             ${with_session_info}
6472         pciaccess:                ${enable_pciaccess}
6473         static uinput:            ${enable_static_uinput}
6474         vdagentd pie + relro:     ${have_pie}
6475
6476         install RH initscript:    ${init_redhat}
6477         install systemd service:  ${init_systemd}
6478
6479         Now type 'make' to build $PACKAGE
6480
6481 " >&6;}