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