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