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