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