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