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