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