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