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