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