1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.69 for ical 3.0.4.
4@%:@
5@%:@
6@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7@%:@
8@%:@
9@%:@ This configure script is free software; the Free Software Foundation
10@%:@ gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in @%:@(
26  *posix*) :
27    set -o posix ;; @%:@(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in @%:@(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in @%:@((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in @%:@ ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in @%:@(
170  *posix*) :
171    set -o posix ;; @%:@(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in @%:@(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in @%:@ ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285@%:@ as_fn_unset VAR
286@%:@ ---------------
287@%:@ Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294@%:@ as_fn_set_status STATUS
295@%:@ -----------------------
296@%:@ Set @S|@? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} @%:@ as_fn_set_status
301
302@%:@ as_fn_exit STATUS
303@%:@ -----------------
304@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} @%:@ as_fn_exit
311
312@%:@ as_fn_mkdir_p
313@%:@ -------------
314@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} @%:@ as_fn_mkdir_p
359
360@%:@ as_fn_executable_p FILE
361@%:@ -----------------------
362@%:@ Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} @%:@ as_fn_executable_p
367@%:@ as_fn_append VAR VALUE
368@%:@ ----------------------
369@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
370@%:@ advantage of any shell optimizations that allow amortized linear growth over
371@%:@ repeated appends, instead of the typical quadratic growth present in naive
372@%:@ implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385@%:@ as_fn_arith ARG...
386@%:@ ------------------
387@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
388@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
389@%:@ must be portable across @S|@(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
404@%:@ ----------------------------------------
405@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407@%:@ script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} @%:@ as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in @%:@(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIB@&t@OBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='ical'
579PACKAGE_TARNAME='ical'
580PACKAGE_VERSION='3.0.4'
581PACKAGE_STRING='ical 3.0.4'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_subst_vars='LTLIBOBJS
586LIB@&t@OBJS
587ac_ct_CC
588CFLAGS
589CC
590ICAL_CONTRIB
591ICAL_SCRIPTS
592ICAL_TCLLIB_SCRIPTS
593TK_INCLUDE_SPEC
594TCL_INCLUDE_SPEC
595TK_XINCLUDES
596TK_EXEC_PREFIX
597TK_PREFIX
598TK_LIBS
599TK_LIB_SPEC
600TCL_LIBS
601TCL_EXEC_PREFIX
602TCL_PREFIX
603TCL_LIB_SPEC
604tclsh
605SED
606OBJEXT
607EXEEXT
608ac_ct_CXX
609CPPFLAGS
610LDFLAGS
611CXXFLAGS
612CXX
613MAILER
614LN_S
615RANLIB
616INSTALL_DATA
617INSTALL_SCRIPT
618INSTALL_PROGRAM
619target_alias
620host_alias
621build_alias
622LIBS
623ECHO_T
624ECHO_N
625ECHO_C
626DEFS
627mandir
628localedir
629libdir
630psdir
631pdfdir
632dvidir
633htmldir
634infodir
635docdir
636oldincludedir
637includedir
638localstatedir
639sharedstatedir
640sysconfdir
641datadir
642datarootdir
643libexecdir
644sbindir
645bindir
646program_transform_name
647prefix
648exec_prefix
649PACKAGE_URL
650PACKAGE_BUGREPORT
651PACKAGE_STRING
652PACKAGE_VERSION
653PACKAGE_TARNAME
654PACKAGE_NAME
655PATH_SEPARATOR
656SHELL'
657ac_subst_files=''
658ac_user_opts='
659enable_option_checking
660with_tclsh
661with_tclconfig
662with_tkconfig
663'
664      ac_precious_vars='build_alias
665host_alias
666target_alias
667CXX
668CXXFLAGS
669LDFLAGS
670LIBS
671CPPFLAGS
672CCC
673CC
674CFLAGS'
675
676
677# Initialize some variables set by options.
678ac_init_help=
679ac_init_version=false
680ac_unrecognized_opts=
681ac_unrecognized_sep=
682# The variables have the same names as the options, with
683# dashes changed to underlines.
684cache_file=/dev/null
685exec_prefix=NONE
686no_create=
687no_recursion=
688prefix=NONE
689program_prefix=NONE
690program_suffix=NONE
691program_transform_name=s,x,x,
692silent=
693site=
694srcdir=
695verbose=
696x_includes=NONE
697x_libraries=NONE
698
699# Installation directory options.
700# These are left unexpanded so users can "make install exec_prefix=/foo"
701# and all the variables that are supposed to be based on exec_prefix
702# by default will actually change.
703# Use braces instead of parens because sh, perl, etc. also accept them.
704# (The list follows the same order as the GNU Coding Standards.)
705bindir='${exec_prefix}/bin'
706sbindir='${exec_prefix}/sbin'
707libexecdir='${exec_prefix}/libexec'
708datarootdir='${prefix}/share'
709datadir='${datarootdir}'
710sysconfdir='${prefix}/etc'
711sharedstatedir='${prefix}/com'
712localstatedir='${prefix}/var'
713includedir='${prefix}/include'
714oldincludedir='/usr/include'
715docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
716infodir='${datarootdir}/info'
717htmldir='${docdir}'
718dvidir='${docdir}'
719pdfdir='${docdir}'
720psdir='${docdir}'
721libdir='${exec_prefix}/lib'
722localedir='${datarootdir}/locale'
723mandir='${datarootdir}/man'
724
725ac_prev=
726ac_dashdash=
727for ac_option
728do
729  # If the previous option needs an argument, assign it.
730  if test -n "$ac_prev"; then
731    eval $ac_prev=\$ac_option
732    ac_prev=
733    continue
734  fi
735
736  case $ac_option in
737  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
738  *=)   ac_optarg= ;;
739  *)    ac_optarg=yes ;;
740  esac
741
742  # Accept the important Cygnus configure options, so we can diagnose typos.
743
744  case $ac_dashdash$ac_option in
745  --)
746    ac_dashdash=yes ;;
747
748  -bindir | --bindir | --bindi | --bind | --bin | --bi)
749    ac_prev=bindir ;;
750  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751    bindir=$ac_optarg ;;
752
753  -build | --build | --buil | --bui | --bu)
754    ac_prev=build_alias ;;
755  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756    build_alias=$ac_optarg ;;
757
758  -cache-file | --cache-file | --cache-fil | --cache-fi \
759  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760    ac_prev=cache_file ;;
761  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763    cache_file=$ac_optarg ;;
764
765  --config-cache | -C)
766    cache_file=config.cache ;;
767
768  -datadir | --datadir | --datadi | --datad)
769    ac_prev=datadir ;;
770  -datadir=* | --datadir=* | --datadi=* | --datad=*)
771    datadir=$ac_optarg ;;
772
773  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774  | --dataroo | --dataro | --datar)
775    ac_prev=datarootdir ;;
776  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778    datarootdir=$ac_optarg ;;
779
780  -disable-* | --disable-*)
781    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782    # Reject names that are not valid shell variable names.
783    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
784      as_fn_error $? "invalid feature name: $ac_useropt"
785    ac_useropt_orig=$ac_useropt
786    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
787    case $ac_user_opts in
788      *"
789"enable_$ac_useropt"
790"*) ;;
791      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
792	 ac_unrecognized_sep=', ';;
793    esac
794    eval enable_$ac_useropt=no ;;
795
796  -docdir | --docdir | --docdi | --doc | --do)
797    ac_prev=docdir ;;
798  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
799    docdir=$ac_optarg ;;
800
801  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
802    ac_prev=dvidir ;;
803  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
804    dvidir=$ac_optarg ;;
805
806  -enable-* | --enable-*)
807    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
808    # Reject names that are not valid shell variable names.
809    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810      as_fn_error $? "invalid feature name: $ac_useropt"
811    ac_useropt_orig=$ac_useropt
812    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813    case $ac_user_opts in
814      *"
815"enable_$ac_useropt"
816"*) ;;
817      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
818	 ac_unrecognized_sep=', ';;
819    esac
820    eval enable_$ac_useropt=\$ac_optarg ;;
821
822  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
823  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
824  | --exec | --exe | --ex)
825    ac_prev=exec_prefix ;;
826  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
827  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
828  | --exec=* | --exe=* | --ex=*)
829    exec_prefix=$ac_optarg ;;
830
831  -gas | --gas | --ga | --g)
832    # Obsolete; use --with-gas.
833    with_gas=yes ;;
834
835  -help | --help | --hel | --he | -h)
836    ac_init_help=long ;;
837  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
838    ac_init_help=recursive ;;
839  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
840    ac_init_help=short ;;
841
842  -host | --host | --hos | --ho)
843    ac_prev=host_alias ;;
844  -host=* | --host=* | --hos=* | --ho=*)
845    host_alias=$ac_optarg ;;
846
847  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
848    ac_prev=htmldir ;;
849  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
850  | --ht=*)
851    htmldir=$ac_optarg ;;
852
853  -includedir | --includedir | --includedi | --included | --include \
854  | --includ | --inclu | --incl | --inc)
855    ac_prev=includedir ;;
856  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
857  | --includ=* | --inclu=* | --incl=* | --inc=*)
858    includedir=$ac_optarg ;;
859
860  -infodir | --infodir | --infodi | --infod | --info | --inf)
861    ac_prev=infodir ;;
862  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
863    infodir=$ac_optarg ;;
864
865  -libdir | --libdir | --libdi | --libd)
866    ac_prev=libdir ;;
867  -libdir=* | --libdir=* | --libdi=* | --libd=*)
868    libdir=$ac_optarg ;;
869
870  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
871  | --libexe | --libex | --libe)
872    ac_prev=libexecdir ;;
873  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
874  | --libexe=* | --libex=* | --libe=*)
875    libexecdir=$ac_optarg ;;
876
877  -localedir | --localedir | --localedi | --localed | --locale)
878    ac_prev=localedir ;;
879  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
880    localedir=$ac_optarg ;;
881
882  -localstatedir | --localstatedir | --localstatedi | --localstated \
883  | --localstate | --localstat | --localsta | --localst | --locals)
884    ac_prev=localstatedir ;;
885  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
886  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
887    localstatedir=$ac_optarg ;;
888
889  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
890    ac_prev=mandir ;;
891  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
892    mandir=$ac_optarg ;;
893
894  -nfp | --nfp | --nf)
895    # Obsolete; use --without-fp.
896    with_fp=no ;;
897
898  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
899  | --no-cr | --no-c | -n)
900    no_create=yes ;;
901
902  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
903  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
904    no_recursion=yes ;;
905
906  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
907  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
908  | --oldin | --oldi | --old | --ol | --o)
909    ac_prev=oldincludedir ;;
910  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
911  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
912  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
913    oldincludedir=$ac_optarg ;;
914
915  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
916    ac_prev=prefix ;;
917  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
918    prefix=$ac_optarg ;;
919
920  -program-prefix | --program-prefix | --program-prefi | --program-pref \
921  | --program-pre | --program-pr | --program-p)
922    ac_prev=program_prefix ;;
923  -program-prefix=* | --program-prefix=* | --program-prefi=* \
924  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
925    program_prefix=$ac_optarg ;;
926
927  -program-suffix | --program-suffix | --program-suffi | --program-suff \
928  | --program-suf | --program-su | --program-s)
929    ac_prev=program_suffix ;;
930  -program-suffix=* | --program-suffix=* | --program-suffi=* \
931  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
932    program_suffix=$ac_optarg ;;
933
934  -program-transform-name | --program-transform-name \
935  | --program-transform-nam | --program-transform-na \
936  | --program-transform-n | --program-transform- \
937  | --program-transform | --program-transfor \
938  | --program-transfo | --program-transf \
939  | --program-trans | --program-tran \
940  | --progr-tra | --program-tr | --program-t)
941    ac_prev=program_transform_name ;;
942  -program-transform-name=* | --program-transform-name=* \
943  | --program-transform-nam=* | --program-transform-na=* \
944  | --program-transform-n=* | --program-transform-=* \
945  | --program-transform=* | --program-transfor=* \
946  | --program-transfo=* | --program-transf=* \
947  | --program-trans=* | --program-tran=* \
948  | --progr-tra=* | --program-tr=* | --program-t=*)
949    program_transform_name=$ac_optarg ;;
950
951  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
952    ac_prev=pdfdir ;;
953  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
954    pdfdir=$ac_optarg ;;
955
956  -psdir | --psdir | --psdi | --psd | --ps)
957    ac_prev=psdir ;;
958  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
959    psdir=$ac_optarg ;;
960
961  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
962  | -silent | --silent | --silen | --sile | --sil)
963    silent=yes ;;
964
965  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
966    ac_prev=sbindir ;;
967  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
968  | --sbi=* | --sb=*)
969    sbindir=$ac_optarg ;;
970
971  -sharedstatedir | --sharedstatedir | --sharedstatedi \
972  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
973  | --sharedst | --shareds | --shared | --share | --shar \
974  | --sha | --sh)
975    ac_prev=sharedstatedir ;;
976  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
977  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
978  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
979  | --sha=* | --sh=*)
980    sharedstatedir=$ac_optarg ;;
981
982  -site | --site | --sit)
983    ac_prev=site ;;
984  -site=* | --site=* | --sit=*)
985    site=$ac_optarg ;;
986
987  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
988    ac_prev=srcdir ;;
989  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
990    srcdir=$ac_optarg ;;
991
992  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
993  | --syscon | --sysco | --sysc | --sys | --sy)
994    ac_prev=sysconfdir ;;
995  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
996  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
997    sysconfdir=$ac_optarg ;;
998
999  -target | --target | --targe | --targ | --tar | --ta | --t)
1000    ac_prev=target_alias ;;
1001  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1002    target_alias=$ac_optarg ;;
1003
1004  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1005    verbose=yes ;;
1006
1007  -version | --version | --versio | --versi | --vers | -V)
1008    ac_init_version=: ;;
1009
1010  -with-* | --with-*)
1011    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1012    # Reject names that are not valid shell variable names.
1013    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014      as_fn_error $? "invalid package name: $ac_useropt"
1015    ac_useropt_orig=$ac_useropt
1016    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017    case $ac_user_opts in
1018      *"
1019"with_$ac_useropt"
1020"*) ;;
1021      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1022	 ac_unrecognized_sep=', ';;
1023    esac
1024    eval with_$ac_useropt=\$ac_optarg ;;
1025
1026  -without-* | --without-*)
1027    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028    # Reject names that are not valid shell variable names.
1029    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030      as_fn_error $? "invalid package name: $ac_useropt"
1031    ac_useropt_orig=$ac_useropt
1032    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033    case $ac_user_opts in
1034      *"
1035"with_$ac_useropt"
1036"*) ;;
1037      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1038	 ac_unrecognized_sep=', ';;
1039    esac
1040    eval with_$ac_useropt=no ;;
1041
1042  --x)
1043    # Obsolete; use --with-x.
1044    with_x=yes ;;
1045
1046  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047  | --x-incl | --x-inc | --x-in | --x-i)
1048    ac_prev=x_includes ;;
1049  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051    x_includes=$ac_optarg ;;
1052
1053  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055    ac_prev=x_libraries ;;
1056  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058    x_libraries=$ac_optarg ;;
1059
1060  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1061Try \`$0 --help' for more information"
1062    ;;
1063
1064  *=*)
1065    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1066    # Reject names that are not valid shell variable names.
1067    case $ac_envvar in #(
1068      '' | [0-9]* | *[!_$as_cr_alnum]* )
1069      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1070    esac
1071    eval $ac_envvar=\$ac_optarg
1072    export $ac_envvar ;;
1073
1074  *)
1075    # FIXME: should be removed in autoconf 3.0.
1076    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1080    ;;
1081
1082  esac
1083done
1084
1085if test -n "$ac_prev"; then
1086  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087  as_fn_error $? "missing argument to $ac_option"
1088fi
1089
1090if test -n "$ac_unrecognized_opts"; then
1091  case $enable_option_checking in
1092    no) ;;
1093    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1094    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1095  esac
1096fi
1097
1098# Check all directory arguments for consistency.
1099for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1100		datadir sysconfdir sharedstatedir localstatedir includedir \
1101		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1102		libdir localedir mandir
1103do
1104  eval ac_val=\$$ac_var
1105  # Remove trailing slashes.
1106  case $ac_val in
1107    */ )
1108      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1109      eval $ac_var=\$ac_val;;
1110  esac
1111  # Be sure to have absolute directory names.
1112  case $ac_val in
1113    [\\/$]* | ?:[\\/]* )  continue;;
1114    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115  esac
1116  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1117done
1118
1119# There might be people who depend on the old broken behavior: `$host'
1120# used to hold the argument of --host etc.
1121# FIXME: To remove some day.
1122build=$build_alias
1123host=$host_alias
1124target=$target_alias
1125
1126# FIXME: To remove some day.
1127if test "x$host_alias" != x; then
1128  if test "x$build_alias" = x; then
1129    cross_compiling=maybe
1130  elif test "x$build_alias" != "x$host_alias"; then
1131    cross_compiling=yes
1132  fi
1133fi
1134
1135ac_tool_prefix=
1136test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138test "$silent" = yes && exec 6>/dev/null
1139
1140
1141ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142ac_ls_di=`ls -di .` &&
1143ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144  as_fn_error $? "working directory cannot be determined"
1145test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146  as_fn_error $? "pwd does not report name of working directory"
1147
1148
1149# Find the source files, if location was not specified.
1150if test -z "$srcdir"; then
1151  ac_srcdir_defaulted=yes
1152  # Try the directory containing this script, then the parent directory.
1153  ac_confdir=`$as_dirname -- "$as_myself" ||
1154$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155	 X"$as_myself" : 'X\(//\)[^/]' \| \
1156	 X"$as_myself" : 'X\(//\)$' \| \
1157	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1158$as_echo X"$as_myself" |
1159    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160	    s//\1/
1161	    q
1162	  }
1163	  /^X\(\/\/\)[^/].*/{
1164	    s//\1/
1165	    q
1166	  }
1167	  /^X\(\/\/\)$/{
1168	    s//\1/
1169	    q
1170	  }
1171	  /^X\(\/\).*/{
1172	    s//\1/
1173	    q
1174	  }
1175	  s/.*/./; q'`
1176  srcdir=$ac_confdir
1177  if test ! -r "$srcdir/$ac_unique_file"; then
1178    srcdir=..
1179  fi
1180else
1181  ac_srcdir_defaulted=no
1182fi
1183if test ! -r "$srcdir/$ac_unique_file"; then
1184  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1185  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1186fi
1187ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1188ac_abs_confdir=`(
1189	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1190	pwd)`
1191# When building in place, set srcdir=.
1192if test "$ac_abs_confdir" = "$ac_pwd"; then
1193  srcdir=.
1194fi
1195# Remove unnecessary trailing slashes from srcdir.
1196# Double slashes in file names in object file debugging info
1197# mess up M-x gdb in Emacs.
1198case $srcdir in
1199*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1200esac
1201for ac_var in $ac_precious_vars; do
1202  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1203  eval ac_env_${ac_var}_value=\$${ac_var}
1204  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1205  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206done
1207
1208#
1209# Report the --help message.
1210#
1211if test "$ac_init_help" = "long"; then
1212  # Omit some internal or obsolete options to make the list less imposing.
1213  # This message is too long to be a string in the A/UX 3.1 sh.
1214  cat <<_ACEOF
1215\`configure' configures ical 3.0.4 to adapt to many kinds of systems.
1216
1217Usage: $0 [OPTION]... [VAR=VALUE]...
1218
1219To assign environment variables (e.g., CC, CFLAGS...), specify them as
1220VAR=VALUE.  See below for descriptions of some of the useful variables.
1221
1222Defaults for the options are specified in brackets.
1223
1224Configuration:
1225  -h, --help              display this help and exit
1226      --help=short        display options specific to this package
1227      --help=recursive    display the short help of all the included packages
1228  -V, --version           display version information and exit
1229  -q, --quiet, --silent   do not print \`checking ...' messages
1230      --cache-file=FILE   cache test results in FILE [disabled]
1231  -C, --config-cache      alias for \`--cache-file=config.cache'
1232  -n, --no-create         do not create output files
1233      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1234
1235Installation directories:
1236  --prefix=PREFIX         install architecture-independent files in PREFIX
1237                          @<:@@S|@ac_default_prefix@:>@
1238  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1239                          @<:@PREFIX@:>@
1240
1241By default, \`make install' will install all the files in
1242\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1243an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1244for instance \`--prefix=\$HOME'.
1245
1246For better control, use the options below.
1247
1248Fine tuning of the installation directories:
1249  --bindir=DIR            user executables [EPREFIX/bin]
1250  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1251  --libexecdir=DIR        program executables [EPREFIX/libexec]
1252  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1253  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1254  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1255  --libdir=DIR            object code libraries [EPREFIX/lib]
1256  --includedir=DIR        C header files [PREFIX/include]
1257  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1258  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1259  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1260  --infodir=DIR           info documentation [DATAROOTDIR/info]
1261  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1262  --mandir=DIR            man documentation [DATAROOTDIR/man]
1263  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/ical@:>@
1264  --htmldir=DIR           html documentation [DOCDIR]
1265  --dvidir=DIR            dvi documentation [DOCDIR]
1266  --pdfdir=DIR            pdf documentation [DOCDIR]
1267  --psdir=DIR             ps documentation [DOCDIR]
1268_ACEOF
1269
1270  cat <<\_ACEOF
1271_ACEOF
1272fi
1273
1274if test -n "$ac_init_help"; then
1275  case $ac_init_help in
1276     short | recursive ) echo "Configuration of ical 3.0.4:";;
1277   esac
1278  cat <<\_ACEOF
1279
1280Optional Packages:
1281  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1282  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1283  --with-tclsh=<path>     full path name of tclsh
1284  --with-tclconfig=<path> directory that contains tclConfig.sh
1285  --with-tkconfig=<path>  directory that contains tkConfig.sh
1286
1287Some influential environment variables:
1288  CXX         C++ compiler command
1289  CXXFLAGS    C++ compiler flags
1290  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1291              nonstandard directory <lib dir>
1292  LIBS        libraries to pass to the linker, e.g. -l<library>
1293  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1294              you have headers in a nonstandard directory <include dir>
1295  CC          C compiler command
1296  CFLAGS      C compiler flags
1297
1298Use these variables to override the choices made by `configure' or to help
1299it to find libraries and programs with nonstandard names/locations.
1300
1301Report bugs to the package provider.
1302_ACEOF
1303ac_status=$?
1304fi
1305
1306if test "$ac_init_help" = "recursive"; then
1307  # If there are subdirs, report their specific --help.
1308  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1309    test -d "$ac_dir" ||
1310      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1311      continue
1312    ac_builddir=.
1313
1314case "$ac_dir" in
1315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316*)
1317  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1318  # A ".." for each directory in $ac_dir_suffix.
1319  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1320  case $ac_top_builddir_sub in
1321  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1322  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1323  esac ;;
1324esac
1325ac_abs_top_builddir=$ac_pwd
1326ac_abs_builddir=$ac_pwd$ac_dir_suffix
1327# for backward compatibility:
1328ac_top_builddir=$ac_top_build_prefix
1329
1330case $srcdir in
1331  .)  # We are building in place.
1332    ac_srcdir=.
1333    ac_top_srcdir=$ac_top_builddir_sub
1334    ac_abs_top_srcdir=$ac_pwd ;;
1335  [\\/]* | ?:[\\/]* )  # Absolute name.
1336    ac_srcdir=$srcdir$ac_dir_suffix;
1337    ac_top_srcdir=$srcdir
1338    ac_abs_top_srcdir=$srcdir ;;
1339  *) # Relative name.
1340    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1341    ac_top_srcdir=$ac_top_build_prefix$srcdir
1342    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1343esac
1344ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1345
1346    cd "$ac_dir" || { ac_status=$?; continue; }
1347    # Check for guested configure.
1348    if test -f "$ac_srcdir/configure.gnu"; then
1349      echo &&
1350      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1351    elif test -f "$ac_srcdir/configure"; then
1352      echo &&
1353      $SHELL "$ac_srcdir/configure" --help=recursive
1354    else
1355      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1356    fi || ac_status=$?
1357    cd "$ac_pwd" || { ac_status=$?; break; }
1358  done
1359fi
1360
1361test -n "$ac_init_help" && exit $ac_status
1362if $ac_init_version; then
1363  cat <<\_ACEOF
1364ical configure 3.0.4
1365generated by GNU Autoconf 2.69
1366
1367Copyright (C) 2012 Free Software Foundation, Inc.
1368This configure script is free software; the Free Software Foundation
1369gives unlimited permission to copy, distribute and modify it.
1370_ACEOF
1371  exit
1372fi
1373
1374## ------------------------ ##
1375## Autoconf initialization. ##
1376## ------------------------ ##
1377
1378@%:@ ac_fn_cxx_try_compile LINENO
1379@%:@ ----------------------------
1380@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1381ac_fn_cxx_try_compile ()
1382{
1383  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1384  rm -f conftest.$ac_objext
1385  if { { ac_try="$ac_compile"
1386case "(($ac_try" in
1387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1388  *) ac_try_echo=$ac_try;;
1389esac
1390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1391$as_echo "$ac_try_echo"; } >&5
1392  (eval "$ac_compile") 2>conftest.err
1393  ac_status=$?
1394  if test -s conftest.err; then
1395    grep -v '^ *+' conftest.err >conftest.er1
1396    cat conftest.er1 >&5
1397    mv -f conftest.er1 conftest.err
1398  fi
1399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1400  test $ac_status = 0; } && {
1401	 test -z "$ac_cxx_werror_flag" ||
1402	 test ! -s conftest.err
1403       } && test -s conftest.$ac_objext; then :
1404  ac_retval=0
1405else
1406  $as_echo "$as_me: failed program was:" >&5
1407sed 's/^/| /' conftest.$ac_ext >&5
1408
1409	ac_retval=1
1410fi
1411  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1412  as_fn_set_status $ac_retval
1413
1414} @%:@ ac_fn_cxx_try_compile
1415
1416@%:@ ac_fn_c_try_compile LINENO
1417@%:@ --------------------------
1418@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1419ac_fn_c_try_compile ()
1420{
1421  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1422  rm -f conftest.$ac_objext
1423  if { { ac_try="$ac_compile"
1424case "(($ac_try" in
1425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1426  *) ac_try_echo=$ac_try;;
1427esac
1428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1429$as_echo "$ac_try_echo"; } >&5
1430  (eval "$ac_compile") 2>conftest.err
1431  ac_status=$?
1432  if test -s conftest.err; then
1433    grep -v '^ *+' conftest.err >conftest.er1
1434    cat conftest.er1 >&5
1435    mv -f conftest.er1 conftest.err
1436  fi
1437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1438  test $ac_status = 0; } && {
1439	 test -z "$ac_c_werror_flag" ||
1440	 test ! -s conftest.err
1441       } && test -s conftest.$ac_objext; then :
1442  ac_retval=0
1443else
1444  $as_echo "$as_me: failed program was:" >&5
1445sed 's/^/| /' conftest.$ac_ext >&5
1446
1447	ac_retval=1
1448fi
1449  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1450  as_fn_set_status $ac_retval
1451
1452} @%:@ ac_fn_c_try_compile
1453
1454@%:@ ac_fn_c_try_link LINENO
1455@%:@ -----------------------
1456@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1457ac_fn_c_try_link ()
1458{
1459  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460  rm -f conftest.$ac_objext conftest$ac_exeext
1461  if { { ac_try="$ac_link"
1462case "(($ac_try" in
1463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464  *) ac_try_echo=$ac_try;;
1465esac
1466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467$as_echo "$ac_try_echo"; } >&5
1468  (eval "$ac_link") 2>conftest.err
1469  ac_status=$?
1470  if test -s conftest.err; then
1471    grep -v '^ *+' conftest.err >conftest.er1
1472    cat conftest.er1 >&5
1473    mv -f conftest.er1 conftest.err
1474  fi
1475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476  test $ac_status = 0; } && {
1477	 test -z "$ac_c_werror_flag" ||
1478	 test ! -s conftest.err
1479       } && test -s conftest$ac_exeext && {
1480	 test "$cross_compiling" = yes ||
1481	 test -x conftest$ac_exeext
1482       }; then :
1483  ac_retval=0
1484else
1485  $as_echo "$as_me: failed program was:" >&5
1486sed 's/^/| /' conftest.$ac_ext >&5
1487
1488	ac_retval=1
1489fi
1490  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1491  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1492  # interfere with the next link command; also delete a directory that is
1493  # left behind by Apple's compiler.  We do this before executing the actions.
1494  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1495  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496  as_fn_set_status $ac_retval
1497
1498} @%:@ ac_fn_c_try_link
1499
1500@%:@ ac_fn_c_check_func LINENO FUNC VAR
1501@%:@ ----------------------------------
1502@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1503ac_fn_c_check_func ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1507$as_echo_n "checking for $2... " >&6; }
1508if eval \${$3+:} false; then :
1509  $as_echo_n "(cached) " >&6
1510else
1511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512/* end confdefs.h.  */
1513/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1514   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1515#define $2 innocuous_$2
1516
1517/* System header to define __stub macros and hopefully few prototypes,
1518    which can conflict with char $2 (); below.
1519    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1520    <limits.h> exists even on freestanding compilers.  */
1521
1522#ifdef __STDC__
1523# include <limits.h>
1524#else
1525# include <assert.h>
1526#endif
1527
1528#undef $2
1529
1530/* Override any GCC internal prototype to avoid an error.
1531   Use char because int might match the return type of a GCC
1532   builtin and then its argument prototype would still apply.  */
1533#ifdef __cplusplus
1534extern "C"
1535#endif
1536char $2 ();
1537/* The GNU C library defines this for functions which it implements
1538    to always fail with ENOSYS.  Some functions are actually named
1539    something starting with __ and the normal name is an alias.  */
1540#if defined __stub_$2 || defined __stub___$2
1541choke me
1542#endif
1543
1544int
1545main ()
1546{
1547return $2 ();
1548  ;
1549  return 0;
1550}
1551_ACEOF
1552if ac_fn_c_try_link "$LINENO"; then :
1553  eval "$3=yes"
1554else
1555  eval "$3=no"
1556fi
1557rm -f core conftest.err conftest.$ac_objext \
1558    conftest$ac_exeext conftest.$ac_ext
1559fi
1560eval ac_res=\$$3
1561	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1562$as_echo "$ac_res" >&6; }
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564
1565} @%:@ ac_fn_c_check_func
1566cat >config.log <<_ACEOF
1567This file contains any messages produced by compilers while
1568running configure, to aid debugging if configure makes a mistake.
1569
1570It was created by ical $as_me 3.0.4, which was
1571generated by GNU Autoconf 2.69.  Invocation command line was
1572
1573  $ $0 $@
1574
1575_ACEOF
1576exec 5>>config.log
1577{
1578cat <<_ASUNAME
1579## --------- ##
1580## Platform. ##
1581## --------- ##
1582
1583hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588
1589/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1591
1592/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1593/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1594/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1596/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1597/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1598/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1599
1600_ASUNAME
1601
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605  IFS=$as_save_IFS
1606  test -z "$as_dir" && as_dir=.
1607    $as_echo "PATH: $as_dir"
1608  done
1609IFS=$as_save_IFS
1610
1611} >&5
1612
1613cat >&5 <<_ACEOF
1614
1615
1616## ----------- ##
1617## Core tests. ##
1618## ----------- ##
1619
1620_ACEOF
1621
1622
1623# Keep a trace of the command line.
1624# Strip out --no-create and --no-recursion so they do not pile up.
1625# Strip out --silent because we don't want to record it for future runs.
1626# Also quote any args containing shell meta-characters.
1627# Make two passes to allow for proper duplicate-argument suppression.
1628ac_configure_args=
1629ac_configure_args0=
1630ac_configure_args1=
1631ac_must_keep_next=false
1632for ac_pass in 1 2
1633do
1634  for ac_arg
1635  do
1636    case $ac_arg in
1637    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639    | -silent | --silent | --silen | --sile | --sil)
1640      continue ;;
1641    *\'*)
1642      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643    esac
1644    case $ac_pass in
1645    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1646    2)
1647      as_fn_append ac_configure_args1 " '$ac_arg'"
1648      if test $ac_must_keep_next = true; then
1649	ac_must_keep_next=false # Got value, back to normal.
1650      else
1651	case $ac_arg in
1652	  *=* | --config-cache | -C | -disable-* | --disable-* \
1653	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655	  | -with-* | --with-* | -without-* | --without-* | --x)
1656	    case "$ac_configure_args0 " in
1657	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658	    esac
1659	    ;;
1660	  -* ) ac_must_keep_next=true ;;
1661	esac
1662      fi
1663      as_fn_append ac_configure_args " '$ac_arg'"
1664      ;;
1665    esac
1666  done
1667done
1668{ ac_configure_args0=; unset ac_configure_args0;}
1669{ ac_configure_args1=; unset ac_configure_args1;}
1670
1671# When interrupted or exit'd, cleanup temporary files, and complete
1672# config.log.  We remove comments because anyway the quotes in there
1673# would cause problems or look ugly.
1674# WARNING: Use '\'' to represent an apostrophe within the trap.
1675# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676trap 'exit_status=$?
1677  # Save into config.log some information that might help in debugging.
1678  {
1679    echo
1680
1681    $as_echo "## ---------------- ##
1682## Cache variables. ##
1683## ---------------- ##"
1684    echo
1685    # The following way of writing the cache mishandles newlines in values,
1686(
1687  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688    eval ac_val=\$$ac_var
1689    case $ac_val in #(
1690    *${as_nl}*)
1691      case $ac_var in #(
1692      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1694      esac
1695      case $ac_var in #(
1696      _ | IFS | as_nl) ;; #(
1697      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1698      *) { eval $ac_var=; unset $ac_var;} ;;
1699      esac ;;
1700    esac
1701  done
1702  (set) 2>&1 |
1703    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704    *${as_nl}ac_space=\ *)
1705      sed -n \
1706	"s/'\''/'\''\\\\'\'''\''/g;
1707	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708      ;; #(
1709    *)
1710      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711      ;;
1712    esac |
1713    sort
1714)
1715    echo
1716
1717    $as_echo "## ----------------- ##
1718## Output variables. ##
1719## ----------------- ##"
1720    echo
1721    for ac_var in $ac_subst_vars
1722    do
1723      eval ac_val=\$$ac_var
1724      case $ac_val in
1725      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726      esac
1727      $as_echo "$ac_var='\''$ac_val'\''"
1728    done | sort
1729    echo
1730
1731    if test -n "$ac_subst_files"; then
1732      $as_echo "## ------------------- ##
1733## File substitutions. ##
1734## ------------------- ##"
1735      echo
1736      for ac_var in $ac_subst_files
1737      do
1738	eval ac_val=\$$ac_var
1739	case $ac_val in
1740	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741	esac
1742	$as_echo "$ac_var='\''$ac_val'\''"
1743      done | sort
1744      echo
1745    fi
1746
1747    if test -s confdefs.h; then
1748      $as_echo "## ----------- ##
1749## confdefs.h. ##
1750## ----------- ##"
1751      echo
1752      cat confdefs.h
1753      echo
1754    fi
1755    test "$ac_signal" != 0 &&
1756      $as_echo "$as_me: caught signal $ac_signal"
1757    $as_echo "$as_me: exit $exit_status"
1758  } >&5
1759  rm -f core *.core core.conftest.* &&
1760    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761    exit $exit_status
1762' 0
1763for ac_signal in 1 2 13 15; do
1764  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1765done
1766ac_signal=0
1767
1768# confdefs.h avoids OS command line length limits that DEFS can exceed.
1769rm -f -r conftest* confdefs.h
1770
1771$as_echo "/* confdefs.h */" > confdefs.h
1772
1773# Predefined preprocessor variables.
1774
1775cat >>confdefs.h <<_ACEOF
1776@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1777_ACEOF
1778
1779cat >>confdefs.h <<_ACEOF
1780@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781_ACEOF
1782
1783cat >>confdefs.h <<_ACEOF
1784@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1785_ACEOF
1786
1787cat >>confdefs.h <<_ACEOF
1788@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1789_ACEOF
1790
1791cat >>confdefs.h <<_ACEOF
1792@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793_ACEOF
1794
1795cat >>confdefs.h <<_ACEOF
1796@%:@define PACKAGE_URL "$PACKAGE_URL"
1797_ACEOF
1798
1799
1800# Let the site file select an alternate cache file if it wants to.
1801# Prefer an explicitly selected file to automatically selected ones.
1802ac_site_file1=NONE
1803ac_site_file2=NONE
1804if test -n "$CONFIG_SITE"; then
1805  # We do not want a PATH search for config.site.
1806  case $CONFIG_SITE in @%:@((
1807    -*)  ac_site_file1=./$CONFIG_SITE;;
1808    */*) ac_site_file1=$CONFIG_SITE;;
1809    *)   ac_site_file1=./$CONFIG_SITE;;
1810  esac
1811elif test "x$prefix" != xNONE; then
1812  ac_site_file1=$prefix/share/config.site
1813  ac_site_file2=$prefix/etc/config.site
1814else
1815  ac_site_file1=$ac_default_prefix/share/config.site
1816  ac_site_file2=$ac_default_prefix/etc/config.site
1817fi
1818for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1819do
1820  test "x$ac_site_file" = xNONE && continue
1821  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1822    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1823$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1824    sed 's/^/| /' "$ac_site_file" >&5
1825    . "$ac_site_file" \
1826      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828as_fn_error $? "failed to load site script $ac_site_file
1829See \`config.log' for more details" "$LINENO" 5; }
1830  fi
1831done
1832
1833if test -r "$cache_file"; then
1834  # Some versions of bash will fail to source /dev/null (special files
1835  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1836  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1838$as_echo "$as_me: loading cache $cache_file" >&6;}
1839    case $cache_file in
1840      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1841      *)                      . "./$cache_file";;
1842    esac
1843  fi
1844else
1845  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1846$as_echo "$as_me: creating cache $cache_file" >&6;}
1847  >$cache_file
1848fi
1849
1850# Check that the precious variables saved in the cache have kept the same
1851# value.
1852ac_cache_corrupted=false
1853for ac_var in $ac_precious_vars; do
1854  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1855  eval ac_new_set=\$ac_env_${ac_var}_set
1856  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1857  eval ac_new_val=\$ac_env_${ac_var}_value
1858  case $ac_old_set,$ac_new_set in
1859    set,)
1860      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1861$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1862      ac_cache_corrupted=: ;;
1863    ,set)
1864      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1865$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1866      ac_cache_corrupted=: ;;
1867    ,);;
1868    *)
1869      if test "x$ac_old_val" != "x$ac_new_val"; then
1870	# differences in whitespace do not lead to failure.
1871	ac_old_val_w=`echo x $ac_old_val`
1872	ac_new_val_w=`echo x $ac_new_val`
1873	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1874	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1875$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876	  ac_cache_corrupted=:
1877	else
1878	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1879$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1880	  eval $ac_var=\$ac_old_val
1881	fi
1882	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1883$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1884	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1885$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1886      fi;;
1887  esac
1888  # Pass precious variables to config.status.
1889  if test "$ac_new_set" = set; then
1890    case $ac_new_val in
1891    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892    *) ac_arg=$ac_var=$ac_new_val ;;
1893    esac
1894    case " $ac_configure_args " in
1895      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1896      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1897    esac
1898  fi
1899done
1900if $ac_cache_corrupted; then
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1904$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1906fi
1907## -------------------- ##
1908## Main body of script. ##
1909## -------------------- ##
1910
1911ac_ext=c
1912ac_cpp='$CPP $CPPFLAGS'
1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918AM_INIT_AUTOMAKE(subdir-objects)
1919
1920# Create config files
1921ac_config_headers="$ac_config_headers config.h"
1922
1923
1924############################################################################
1925# Check for programs
1926
1927ac_aux_dir=
1928for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1929  if test -f "$ac_dir/install-sh"; then
1930    ac_aux_dir=$ac_dir
1931    ac_install_sh="$ac_aux_dir/install-sh -c"
1932    break
1933  elif test -f "$ac_dir/install.sh"; then
1934    ac_aux_dir=$ac_dir
1935    ac_install_sh="$ac_aux_dir/install.sh -c"
1936    break
1937  elif test -f "$ac_dir/shtool"; then
1938    ac_aux_dir=$ac_dir
1939    ac_install_sh="$ac_aux_dir/shtool install -c"
1940    break
1941  fi
1942done
1943if test -z "$ac_aux_dir"; then
1944  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1945fi
1946
1947# These three variables are undocumented and unsupported,
1948# and are intended to be withdrawn in a future Autoconf release.
1949# They can cause serious problems if a builder's source tree is in a directory
1950# whose full name contains unusual characters.
1951ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956# Find a good install program.  We prefer a C program (faster),
1957# so one script is as good as another.  But avoid the broken or
1958# incompatible versions:
1959# SysV /etc/install, /usr/sbin/install
1960# SunOS /usr/etc/install
1961# IRIX /sbin/install
1962# AIX /bin/install
1963# AmigaOS /C/install, which installs bootblocks on floppy discs
1964# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967# OS/2's system install, which has a completely different semantic
1968# ./install, which can be erroneously created by make from ./install.sh.
1969# Reject install programs that cannot install multiple files.
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1971$as_echo_n "checking for a BSD-compatible install... " >&6; }
1972if test -z "$INSTALL"; then
1973if ${ac_cv_path_install+:} false; then :
1974  $as_echo_n "(cached) " >&6
1975else
1976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981    # Account for people who put trailing slashes in PATH elements.
1982case $as_dir/ in @%:@((
1983  ./ | .// | /[cC]/* | \
1984  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1985  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1986  /usr/ucb/* ) ;;
1987  *)
1988    # OSF1 and SCO ODT 3.0 have their own names for install.
1989    # Don't use installbsd from OSF since it installs stuff as root
1990    # by default.
1991    for ac_prog in ginstall scoinst install; do
1992      for ac_exec_ext in '' $ac_executable_extensions; do
1993	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1994	  if test $ac_prog = install &&
1995	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996	    # AIX install.  It has an incompatible calling convention.
1997	    :
1998	  elif test $ac_prog = install &&
1999	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000	    # program-specific install script used by HP pwplus--don't use.
2001	    :
2002	  else
2003	    rm -rf conftest.one conftest.two conftest.dir
2004	    echo one > conftest.one
2005	    echo two > conftest.two
2006	    mkdir conftest.dir
2007	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2008	      test -s conftest.one && test -s conftest.two &&
2009	      test -s conftest.dir/conftest.one &&
2010	      test -s conftest.dir/conftest.two
2011	    then
2012	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2013	      break 3
2014	    fi
2015	  fi
2016	fi
2017      done
2018    done
2019    ;;
2020esac
2021
2022  done
2023IFS=$as_save_IFS
2024
2025rm -rf conftest.one conftest.two conftest.dir
2026
2027fi
2028  if test "${ac_cv_path_install+set}" = set; then
2029    INSTALL=$ac_cv_path_install
2030  else
2031    # As a last resort, use the slow shell script.  Don't cache a
2032    # value for INSTALL within a source directory, because that will
2033    # break other packages using the cache if that directory is
2034    # removed, or if the value is a relative name.
2035    INSTALL=$ac_install_sh
2036  fi
2037fi
2038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2039$as_echo "$INSTALL" >&6; }
2040
2041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042# It thinks the first close brace ends the variable substitution.
2043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044
2045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046
2047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048
2049if test -n "$ac_tool_prefix"; then
2050  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2051set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2053$as_echo_n "checking for $ac_word... " >&6; }
2054if ${ac_cv_prog_RANLIB+:} false; then :
2055  $as_echo_n "(cached) " >&6
2056else
2057  if test -n "$RANLIB"; then
2058  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065    for ac_exec_ext in '' $ac_executable_extensions; do
2066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2069    break 2
2070  fi
2071done
2072  done
2073IFS=$as_save_IFS
2074
2075fi
2076fi
2077RANLIB=$ac_cv_prog_RANLIB
2078if test -n "$RANLIB"; then
2079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2080$as_echo "$RANLIB" >&6; }
2081else
2082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2083$as_echo "no" >&6; }
2084fi
2085
2086
2087fi
2088if test -z "$ac_cv_prog_RANLIB"; then
2089  ac_ct_RANLIB=$RANLIB
2090  # Extract the first word of "ranlib", so it can be a program name with args.
2091set dummy ranlib; ac_word=$2
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2093$as_echo_n "checking for $ac_word... " >&6; }
2094if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2095  $as_echo_n "(cached) " >&6
2096else
2097  if test -n "$ac_ct_RANLIB"; then
2098  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2099else
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103  IFS=$as_save_IFS
2104  test -z "$as_dir" && as_dir=.
2105    for ac_exec_ext in '' $ac_executable_extensions; do
2106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107    ac_cv_prog_ac_ct_RANLIB="ranlib"
2108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2109    break 2
2110  fi
2111done
2112  done
2113IFS=$as_save_IFS
2114
2115fi
2116fi
2117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2118if test -n "$ac_ct_RANLIB"; then
2119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2120$as_echo "$ac_ct_RANLIB" >&6; }
2121else
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2123$as_echo "no" >&6; }
2124fi
2125
2126  if test "x$ac_ct_RANLIB" = x; then
2127    RANLIB=":"
2128  else
2129    case $cross_compiling:$ac_tool_warned in
2130yes:)
2131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2133ac_tool_warned=yes ;;
2134esac
2135    RANLIB=$ac_ct_RANLIB
2136  fi
2137else
2138  RANLIB="$ac_cv_prog_RANLIB"
2139fi
2140
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2142$as_echo_n "checking whether ln -s works... " >&6; }
2143LN_S=$as_ln_s
2144if test "$LN_S" = "ln -s"; then
2145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2146$as_echo "yes" >&6; }
2147else
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2149$as_echo "no, using $LN_S" >&6; }
2150fi
2151
2152for ac_prog in Mail mail
2153do
2154  # Extract the first word of "$ac_prog", so it can be a program name with args.
2155set dummy $ac_prog; ac_word=$2
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2157$as_echo_n "checking for $ac_word... " >&6; }
2158if ${ac_cv_path_MAILER+:} false; then :
2159  $as_echo_n "(cached) " >&6
2160else
2161  case $MAILER in
2162  [\\/]* | ?:[\\/]*)
2163  ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
2164  ;;
2165  *)
2166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171    for ac_exec_ext in '' $ac_executable_extensions; do
2172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173    ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
2174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2175    break 2
2176  fi
2177done
2178  done
2179IFS=$as_save_IFS
2180
2181  ;;
2182esac
2183fi
2184MAILER=$ac_cv_path_MAILER
2185if test -n "$MAILER"; then
2186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
2187$as_echo "$MAILER" >&6; }
2188else
2189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2190$as_echo "no" >&6; }
2191fi
2192
2193
2194  test -n "$MAILER" && break
2195done
2196test -n "$MAILER" || MAILER="Mail"
2197
2198ac_ext=cpp
2199ac_cpp='$CXXCPP $CPPFLAGS'
2200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2203if test -z "$CXX"; then
2204  if test -n "$CCC"; then
2205    CXX=$CCC
2206  else
2207    if test -n "$ac_tool_prefix"; then
2208  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2209  do
2210    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2213$as_echo_n "checking for $ac_word... " >&6; }
2214if ${ac_cv_prog_CXX+:} false; then :
2215  $as_echo_n "(cached) " >&6
2216else
2217  if test -n "$CXX"; then
2218  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2219else
2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221for as_dir in $PATH
2222do
2223  IFS=$as_save_IFS
2224  test -z "$as_dir" && as_dir=.
2225    for ac_exec_ext in '' $ac_executable_extensions; do
2226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2229    break 2
2230  fi
2231done
2232  done
2233IFS=$as_save_IFS
2234
2235fi
2236fi
2237CXX=$ac_cv_prog_CXX
2238if test -n "$CXX"; then
2239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2240$as_echo "$CXX" >&6; }
2241else
2242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2243$as_echo "no" >&6; }
2244fi
2245
2246
2247    test -n "$CXX" && break
2248  done
2249fi
2250if test -z "$CXX"; then
2251  ac_ct_CXX=$CXX
2252  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2253do
2254  # Extract the first word of "$ac_prog", so it can be a program name with args.
2255set dummy $ac_prog; ac_word=$2
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
2258if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  if test -n "$ac_ct_CXX"; then
2262  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269    for ac_exec_ext in '' $ac_executable_extensions; do
2270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271    ac_cv_prog_ac_ct_CXX="$ac_prog"
2272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276  done
2277IFS=$as_save_IFS
2278
2279fi
2280fi
2281ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2282if test -n "$ac_ct_CXX"; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2284$as_echo "$ac_ct_CXX" >&6; }
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287$as_echo "no" >&6; }
2288fi
2289
2290
2291  test -n "$ac_ct_CXX" && break
2292done
2293
2294  if test "x$ac_ct_CXX" = x; then
2295    CXX="g++"
2296  else
2297    case $cross_compiling:$ac_tool_warned in
2298yes:)
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2301ac_tool_warned=yes ;;
2302esac
2303    CXX=$ac_ct_CXX
2304  fi
2305fi
2306
2307  fi
2308fi
2309# Provide some information about the compiler.
2310$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2311set X $ac_compile
2312ac_compiler=$2
2313for ac_option in --version -v -V -qversion; do
2314  { { ac_try="$ac_compiler $ac_option >&5"
2315case "(($ac_try" in
2316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317  *) ac_try_echo=$ac_try;;
2318esac
2319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320$as_echo "$ac_try_echo"; } >&5
2321  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2322  ac_status=$?
2323  if test -s conftest.err; then
2324    sed '10a\
2325... rest of stderr output deleted ...
2326         10q' conftest.err >conftest.er1
2327    cat conftest.er1 >&5
2328  fi
2329  rm -f conftest.er1 conftest.err
2330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2331  test $ac_status = 0; }
2332done
2333
2334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h.  */
2336
2337int
2338main ()
2339{
2340
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345ac_clean_files_save=$ac_clean_files
2346ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2347# Try to create an executable without -o first, disregard a.out.
2348# It will help us diagnose broken compilers, and finding out an intuition
2349# of exeext.
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2351$as_echo_n "checking whether the C++ compiler works... " >&6; }
2352ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2353
2354# The possible output files:
2355ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2356
2357ac_rmfiles=
2358for ac_file in $ac_files
2359do
2360  case $ac_file in
2361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2362    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2363  esac
2364done
2365rm -f $ac_rmfiles
2366
2367if { { ac_try="$ac_link_default"
2368case "(($ac_try" in
2369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370  *) ac_try_echo=$ac_try;;
2371esac
2372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373$as_echo "$ac_try_echo"; } >&5
2374  (eval "$ac_link_default") 2>&5
2375  ac_status=$?
2376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377  test $ac_status = 0; }; then :
2378  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2379# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2380# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2381# so that the user can short-circuit this test for compilers unknown to
2382# Autoconf.
2383for ac_file in $ac_files ''
2384do
2385  test -f "$ac_file" || continue
2386  case $ac_file in
2387    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2388	;;
2389    [ab].out )
2390	# We found the default executable, but exeext='' is most
2391	# certainly right.
2392	break;;
2393    *.* )
2394	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2395	then :; else
2396	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397	fi
2398	# We set ac_cv_exeext here because the later test for it is not
2399	# safe: cross compilers may not add the suffix if given an `-o'
2400	# argument, so we may need to know it at that point already.
2401	# Even if this section looks crufty: it has the advantage of
2402	# actually working.
2403	break;;
2404    * )
2405	break;;
2406  esac
2407done
2408test "$ac_cv_exeext" = no && ac_cv_exeext=
2409
2410else
2411  ac_file=''
2412fi
2413if test -z "$ac_file"; then :
2414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415$as_echo "no" >&6; }
2416$as_echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421as_fn_error 77 "C++ compiler cannot create executables
2422See \`config.log' for more details" "$LINENO" 5; }
2423else
2424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2425$as_echo "yes" >&6; }
2426fi
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2428$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2430$as_echo "$ac_file" >&6; }
2431ac_exeext=$ac_cv_exeext
2432
2433rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2434ac_clean_files=$ac_clean_files_save
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2436$as_echo_n "checking for suffix of executables... " >&6; }
2437if { { ac_try="$ac_link"
2438case "(($ac_try" in
2439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440  *) ac_try_echo=$ac_try;;
2441esac
2442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2443$as_echo "$ac_try_echo"; } >&5
2444  (eval "$ac_link") 2>&5
2445  ac_status=$?
2446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447  test $ac_status = 0; }; then :
2448  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2450# work properly (i.e., refer to `conftest.exe'), while it won't with
2451# `rm'.
2452for ac_file in conftest.exe conftest conftest.*; do
2453  test -f "$ac_file" || continue
2454  case $ac_file in
2455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2456    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457	  break;;
2458    * ) break;;
2459  esac
2460done
2461else
2462  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details" "$LINENO" 5; }
2466fi
2467rm -f conftest conftest$ac_cv_exeext
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2469$as_echo "$ac_cv_exeext" >&6; }
2470
2471rm -f conftest.$ac_ext
2472EXEEXT=$ac_cv_exeext
2473ac_exeext=$EXEEXT
2474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h.  */
2476@%:@include <stdio.h>
2477int
2478main ()
2479{
2480FILE *f = fopen ("conftest.out", "w");
2481 return ferror (f) || fclose (f) != 0;
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487ac_clean_files="$ac_clean_files conftest.out"
2488# Check that the compiler produces executables we can run.  If not, either
2489# the compiler is broken, or we cross compile.
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2491$as_echo_n "checking whether we are cross compiling... " >&6; }
2492if test "$cross_compiling" != yes; then
2493  { { ac_try="$ac_link"
2494case "(($ac_try" in
2495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496  *) ac_try_echo=$ac_try;;
2497esac
2498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499$as_echo "$ac_try_echo"; } >&5
2500  (eval "$ac_link") 2>&5
2501  ac_status=$?
2502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503  test $ac_status = 0; }
2504  if { ac_try='./conftest$ac_cv_exeext'
2505  { { case "(($ac_try" in
2506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507  *) ac_try_echo=$ac_try;;
2508esac
2509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510$as_echo "$ac_try_echo"; } >&5
2511  (eval "$ac_try") 2>&5
2512  ac_status=$?
2513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514  test $ac_status = 0; }; }; then
2515    cross_compiling=no
2516  else
2517    if test "$cross_compiling" = maybe; then
2518	cross_compiling=yes
2519    else
2520	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522as_fn_error $? "cannot run C++ compiled programs.
2523If you meant to cross compile, use \`--host'.
2524See \`config.log' for more details" "$LINENO" 5; }
2525    fi
2526  fi
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2529$as_echo "$cross_compiling" >&6; }
2530
2531rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2532ac_clean_files=$ac_clean_files_save
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2534$as_echo_n "checking for suffix of object files... " >&6; }
2535if ${ac_cv_objext+:} false; then :
2536  $as_echo_n "(cached) " >&6
2537else
2538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539/* end confdefs.h.  */
2540
2541int
2542main ()
2543{
2544
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549rm -f conftest.o conftest.obj
2550if { { ac_try="$ac_compile"
2551case "(($ac_try" in
2552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553  *) ac_try_echo=$ac_try;;
2554esac
2555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556$as_echo "$ac_try_echo"; } >&5
2557  (eval "$ac_compile") 2>&5
2558  ac_status=$?
2559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560  test $ac_status = 0; }; then :
2561  for ac_file in conftest.o conftest.obj conftest.*; do
2562  test -f "$ac_file" || continue;
2563  case $ac_file in
2564    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2565    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2566       break;;
2567  esac
2568done
2569else
2570  $as_echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575as_fn_error $? "cannot compute suffix of object files: cannot compile
2576See \`config.log' for more details" "$LINENO" 5; }
2577fi
2578rm -f conftest.$ac_cv_objext conftest.$ac_ext
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2581$as_echo "$ac_cv_objext" >&6; }
2582OBJEXT=$ac_cv_objext
2583ac_objext=$OBJEXT
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2585$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2586if ${ac_cv_cxx_compiler_gnu+:} false; then :
2587  $as_echo_n "(cached) " >&6
2588else
2589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h.  */
2591
2592int
2593main ()
2594{
2595#ifndef __GNUC__
2596       choke me
2597#endif
2598
2599  ;
2600  return 0;
2601}
2602_ACEOF
2603if ac_fn_cxx_try_compile "$LINENO"; then :
2604  ac_compiler_gnu=yes
2605else
2606  ac_compiler_gnu=no
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2610
2611fi
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2613$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2614if test $ac_compiler_gnu = yes; then
2615  GXX=yes
2616else
2617  GXX=
2618fi
2619ac_test_CXXFLAGS=${CXXFLAGS+set}
2620ac_save_CXXFLAGS=$CXXFLAGS
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2622$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2623if ${ac_cv_prog_cxx_g+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2627   ac_cxx_werror_flag=yes
2628   ac_cv_prog_cxx_g=no
2629   CXXFLAGS="-g"
2630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h.  */
2632
2633int
2634main ()
2635{
2636
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641if ac_fn_cxx_try_compile "$LINENO"; then :
2642  ac_cv_prog_cxx_g=yes
2643else
2644  CXXFLAGS=""
2645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h.  */
2647
2648int
2649main ()
2650{
2651
2652  ;
2653  return 0;
2654}
2655_ACEOF
2656if ac_fn_cxx_try_compile "$LINENO"; then :
2657
2658else
2659  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2660	 CXXFLAGS="-g"
2661	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h.  */
2663
2664int
2665main ()
2666{
2667
2668  ;
2669  return 0;
2670}
2671_ACEOF
2672if ac_fn_cxx_try_compile "$LINENO"; then :
2673  ac_cv_prog_cxx_g=yes
2674fi
2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676fi
2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2683$as_echo "$ac_cv_prog_cxx_g" >&6; }
2684if test "$ac_test_CXXFLAGS" = set; then
2685  CXXFLAGS=$ac_save_CXXFLAGS
2686elif test $ac_cv_prog_cxx_g = yes; then
2687  if test "$GXX" = yes; then
2688    CXXFLAGS="-g -O2"
2689  else
2690    CXXFLAGS="-g"
2691  fi
2692else
2693  if test "$GXX" = yes; then
2694    CXXFLAGS="-O2"
2695  else
2696    CXXFLAGS=
2697  fi
2698fi
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2706$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2707if ${ac_cv_path_SED+:} false; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2711     for ac_i in 1 2 3 4 5 6 7; do
2712       ac_script="$ac_script$as_nl$ac_script"
2713     done
2714     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2715     { ac_script=; unset ac_script;}
2716     if test -z "$SED"; then
2717  ac_path_SED_found=false
2718  # Loop through the user's path and test for each of PROGNAME-LIST
2719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724    for ac_prog in sed gsed; do
2725    for ac_exec_ext in '' $ac_executable_extensions; do
2726      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2727      as_fn_executable_p "$ac_path_SED" || continue
2728# Check for GNU ac_path_SED and select it if it is found.
2729  # Check for GNU $ac_path_SED
2730case `"$ac_path_SED" --version 2>&1` in
2731*GNU*)
2732  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2733*)
2734  ac_count=0
2735  $as_echo_n 0123456789 >"conftest.in"
2736  while :
2737  do
2738    cat "conftest.in" "conftest.in" >"conftest.tmp"
2739    mv "conftest.tmp" "conftest.in"
2740    cp "conftest.in" "conftest.nl"
2741    $as_echo '' >> "conftest.nl"
2742    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2743    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2744    as_fn_arith $ac_count + 1 && ac_count=$as_val
2745    if test $ac_count -gt ${ac_path_SED_max-0}; then
2746      # Best one so far, save it but keep looking for a better one
2747      ac_cv_path_SED="$ac_path_SED"
2748      ac_path_SED_max=$ac_count
2749    fi
2750    # 10*(2^10) chars as input seems more than enough
2751    test $ac_count -gt 10 && break
2752  done
2753  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2754esac
2755
2756      $ac_path_SED_found && break 3
2757    done
2758  done
2759  done
2760IFS=$as_save_IFS
2761  if test -z "$ac_cv_path_SED"; then
2762    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2763  fi
2764else
2765  ac_cv_path_SED=$SED
2766fi
2767
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2770$as_echo "$ac_cv_path_SED" >&6; }
2771 SED="$ac_cv_path_SED"
2772  rm -f conftest.sed
2773
2774
2775############################################################################
2776# Find Tcl/Tk
2777
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl/Tk installation..." >&5
2779$as_echo "$as_me: checking Tcl/Tk installation..." >&6;}
2780legal_tk_versions="8.6 8.5 8.4 8.3 8.2 8.0 4.9 4.8 4.7 4.6 4.5 4.4 4.3 4.2 4.1"
2781legal_tcl_versions="8.6 8.5 8.4 8.3 8.2 8.0 7.9 7.8 7.7 7.6 7.5"
2782
2783#### Find tclsh
2784
2785@%:@ Check whether --with-tclsh was given.
2786if test "${with_tclsh+set}" = set; then :
2787  withval=$with_tclsh; tclsh="$withval"
2788fi
2789
2790if test -n "$tclsh"; then
2791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
2792$as_echo_n "checking for tclsh... " >&6; }
2793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh" >&5
2794$as_echo "$tclsh" >&6; }
2795else
2796    tclsh_list=
2797    for v in $legal_tcl_versions; do
2798	tclsh_list="$tclsh_list tclsh$v"
2799    done
2800    # Look for tclsh variants in $prefix/bin, and then in $PATH.
2801    for ac_prog in $tclsh_list
2802do
2803  # Extract the first word of "$ac_prog", so it can be a program name with args.
2804set dummy $ac_prog; ac_word=$2
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806$as_echo_n "checking for $ac_word... " >&6; }
2807if ${ac_cv_path_tclsh+:} false; then :
2808  $as_echo_n "(cached) " >&6
2809else
2810  case $tclsh in
2811  [\\/]* | ?:[\\/]*)
2812  ac_cv_path_tclsh="$tclsh" # Let the user override the test with a path.
2813  ;;
2814  *)
2815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822    ac_cv_path_tclsh="$as_dir/$ac_word$ac_exec_ext"
2823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827  done
2828IFS=$as_save_IFS
2829
2830  ;;
2831esac
2832fi
2833tclsh=$ac_cv_path_tclsh
2834if test -n "$tclsh"; then
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh" >&5
2836$as_echo "$tclsh" >&6; }
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842
2843  test -n "$tclsh" && break
2844done
2845
2846fi
2847if test -z "$tclsh"; then
2848    as_fn_error $? "I could not find tclsh in your search PATH.
2849
2850Please supply the location of a tclsh executable by
2851running configure with the following option
2852	--with-tclsh=<full path name of tclsh>" "$LINENO" 5
2853fi
2854
2855#### Run tclsh to find tclConfig.sh
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
2857$as_echo_n "checking for tclConfig.sh... " >&6; }
2858
2859@%:@ Check whether --with-tclconfig was given.
2860if test "${with_tclconfig+set}" = set; then :
2861  withval=$with_tclconfig; tclconfig="$withval"
2862fi
2863
2864if test -z "$tclconfig"; then
2865  if test -e /System/Library/Frameworks; then
2866    # Mac OS X
2867    tclconfig=/System/Library/Frameworks/Tcl.framework
2868  else
2869    tclconfig=`echo 'puts [file dirname [info library]]' | $tclsh`
2870    if test ! -f "$tclconfig/tclConfig.sh"; then
2871      # Debian, is that you?
2872      tclconfig=`echo 'puts [info library]' | $tclsh`
2873    fi
2874  fi
2875fi
2876if test ! -f "$tclconfig/tclConfig.sh"; then
2877    as_fn_error $? "I could not find tclConfig.sh in $tclconfig.
2878
2879Please specify the directory that contains tclConfig.sh
2880by running configure with the following option
2881	--with-tclconfig=<path name of directory containing tclConfig.sh>
2882
2883Warning: Only Tcl versions 7.5 and later provide a tclConfig.sh file.
2884Make sure you have a new enough version installed on your
2885system." "$LINENO" 5
2886fi
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclconfig/tclConfig.sh" >&5
2888$as_echo "$tclconfig/tclConfig.sh" >&6; }
2889
2890#### Look for tkConfig.sh (in same directory as tclConfig.sh?)
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
2892$as_echo_n "checking for tkConfig.sh... " >&6; }
2893
2894@%:@ Check whether --with-tkconfig was given.
2895if test "${with_tkconfig+set}" = set; then :
2896  withval=$with_tkconfig; tkconfig="$withval"
2897fi
2898
2899if test -z "$tkconfig"; then
2900  if test -e /System/Library/Frameworks; then
2901    # Mac OS X
2902    tkconfig=/System/Library/Frameworks/Tk.framework
2903  else
2904    tkconfig="$tclconfig"
2905    if test ! -f "$tkconfig/tkConfig.sh"; then
2906      # Debian, is that you?
2907      tkconfig=`echo 'puts [file join [file dirname [info library]] tk[info tclversion]]' | $tclsh`
2908    fi
2909  fi
2910fi
2911if test ! -f "$tkconfig/tkConfig.sh"; then
2912    as_fn_error $? "I could not find tkConfig.sh in $tkconfig.
2913
2914Please specify the directory that contains tkConfig.sh
2915by running configure with the following option
2916	--with-tkconfig=<path name of directory containing tkConfig.sh>
2917
2918Warning: Only Tk versions 4.1 and later provide a tkConfig.sh file.
2919Make sure you have a new enough version installed on your system." "$LINENO" 5
2920fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tkconfig/tkConfig.sh" >&5
2922$as_echo "$tkconfig/tkConfig.sh" >&6; }
2923
2924#### Load the Tcl/Tk configuration files
2925. $tclconfig/tclConfig.sh
2926. $tkconfig/tkConfig.sh
2927
2928#### Export variables discovered during Tcl/Tk configuration
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942# Generate list of all .tcl files that need to be installed
2943generated='startup\|ps_header'
2944ICAL_TCLLIB_SCRIPTS=`echo $srcdir/tcllib/*.tcl`
2945ICAL_SCRIPTS=`echo $srcdir/*.tcl|sed -e "s/[^ ]*\($generated\)[^ ]*//g"`
2946ICAL_CONTRIB=`echo $srcdir/contrib/*`
2947
2948
2949
2950
2951
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957if test -n "$ac_tool_prefix"; then
2958  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}gcc; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_CC+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$CC"; then
2966  ac_cv_prog_CC="$CC" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985CC=$ac_cv_prog_CC
2986if test -n "$CC"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988$as_echo "$CC" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995fi
2996if test -z "$ac_cv_prog_CC"; then
2997  ac_ct_CC=$CC
2998  # Extract the first word of "gcc", so it can be a program name with args.
2999set dummy gcc; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$ac_ct_CC"; then
3006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015    ac_cv_prog_ac_ct_CC="gcc"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028$as_echo "$ac_ct_CC" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034  if test "x$ac_ct_CC" = x; then
3035    CC=""
3036  else
3037    case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043    CC=$ac_ct_CC
3044  fi
3045else
3046  CC="$ac_cv_prog_CC"
3047fi
3048
3049if test -z "$CC"; then
3050          if test -n "$ac_tool_prefix"; then
3051    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052set dummy ${ac_tool_prefix}cc; ac_word=$2
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
3055if ${ac_cv_prog_CC+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  if test -n "$CC"; then
3059  ac_cv_prog_CC="$CC" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064  IFS=$as_save_IFS
3065  test -z "$as_dir" && as_dir=.
3066    for ac_exec_ext in '' $ac_executable_extensions; do
3067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068    ac_cv_prog_CC="${ac_tool_prefix}cc"
3069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070    break 2
3071  fi
3072done
3073  done
3074IFS=$as_save_IFS
3075
3076fi
3077fi
3078CC=$ac_cv_prog_CC
3079if test -n "$CC"; then
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081$as_echo "$CC" >&6; }
3082else
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085fi
3086
3087
3088  fi
3089fi
3090if test -z "$CC"; then
3091  # Extract the first word of "cc", so it can be a program name with args.
3092set dummy cc; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if ${ac_cv_prog_CC+:} false; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  if test -n "$CC"; then
3099  ac_cv_prog_CC="$CC" # Let the user override the test.
3100else
3101  ac_prog_rejected=no
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  test -z "$as_dir" && as_dir=.
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110       ac_prog_rejected=yes
3111       continue
3112     fi
3113    ac_cv_prog_CC="cc"
3114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121if test $ac_prog_rejected = yes; then
3122  # We found a bogon in the path, so make sure we never use it.
3123  set dummy $ac_cv_prog_CC
3124  shift
3125  if test $@%:@ != 0; then
3126    # We chose a different compiler from the bogus one.
3127    # However, it has the same basename, so the bogon will be chosen
3128    # first if we set CC to just the basename; use the full file name.
3129    shift
3130    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131  fi
3132fi
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145fi
3146if test -z "$CC"; then
3147  if test -n "$ac_tool_prefix"; then
3148  for ac_prog in cl.exe
3149  do
3150    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
3154if ${ac_cv_prog_CC+:} false; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  if test -n "$CC"; then
3158  ac_cv_prog_CC="$CC" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165    for ac_exec_ext in '' $ac_executable_extensions; do
3166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175fi
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180$as_echo "$CC" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
3187    test -n "$CC" && break
3188  done
3189fi
3190if test -z "$CC"; then
3191  ac_ct_CC=$CC
3192  for ac_prog in cl.exe
3193do
3194  # Extract the first word of "$ac_prog", so it can be a program name with args.
3195set dummy $ac_prog; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$ac_ct_CC"; then
3202  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_exec_ext in '' $ac_executable_extensions; do
3210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_prog_ac_ct_CC="$ac_prog"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224$as_echo "$ac_ct_CC" >&6; }
3225else
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231  test -n "$ac_ct_CC" && break
3232done
3233
3234  if test "x$ac_ct_CC" = x; then
3235    CC=""
3236  else
3237    case $cross_compiling:$ac_tool_warned in
3238yes:)
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241ac_tool_warned=yes ;;
3242esac
3243    CC=$ac_ct_CC
3244  fi
3245fi
3246
3247fi
3248
3249
3250test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252as_fn_error $? "no acceptable C compiler found in \$PATH
3253See \`config.log' for more details" "$LINENO" 5; }
3254
3255# Provide some information about the compiler.
3256$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257set X $ac_compile
3258ac_compiler=$2
3259for ac_option in --version -v -V -qversion; do
3260  { { ac_try="$ac_compiler $ac_option >&5"
3261case "(($ac_try" in
3262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263  *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3268  ac_status=$?
3269  if test -s conftest.err; then
3270    sed '10a\
3271... rest of stderr output deleted ...
3272         10q' conftest.err >conftest.er1
3273    cat conftest.er1 >&5
3274  fi
3275  rm -f conftest.er1 conftest.err
3276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }
3278done
3279
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3281$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3282if ${ac_cv_c_compiler_gnu+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291#ifndef __GNUC__
3292       choke me
3293#endif
3294
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299if ac_fn_c_try_compile "$LINENO"; then :
3300  ac_compiler_gnu=yes
3301else
3302  ac_compiler_gnu=no
3303fi
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306
3307fi
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3309$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3310if test $ac_compiler_gnu = yes; then
3311  GCC=yes
3312else
3313  GCC=
3314fi
3315ac_test_CFLAGS=${CFLAGS+set}
3316ac_save_CFLAGS=$CFLAGS
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3318$as_echo_n "checking whether $CC accepts -g... " >&6; }
3319if ${ac_cv_prog_cc_g+:} false; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  ac_save_c_werror_flag=$ac_c_werror_flag
3323   ac_c_werror_flag=yes
3324   ac_cv_prog_cc_g=no
3325   CFLAGS="-g"
3326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338  ac_cv_prog_cc_g=yes
3339else
3340  CFLAGS=""
3341      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347
3348  ;
3349  return 0;
3350}
3351_ACEOF
3352if ac_fn_c_try_compile "$LINENO"; then :
3353
3354else
3355  ac_c_werror_flag=$ac_save_c_werror_flag
3356	 CFLAGS="-g"
3357	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h.  */
3359
3360int
3361main ()
3362{
3363
3364  ;
3365  return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"; then :
3369  ac_cv_prog_cc_g=yes
3370fi
3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372fi
3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374fi
3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376   ac_c_werror_flag=$ac_save_c_werror_flag
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3379$as_echo "$ac_cv_prog_cc_g" >&6; }
3380if test "$ac_test_CFLAGS" = set; then
3381  CFLAGS=$ac_save_CFLAGS
3382elif test $ac_cv_prog_cc_g = yes; then
3383  if test "$GCC" = yes; then
3384    CFLAGS="-g -O2"
3385  else
3386    CFLAGS="-g"
3387  fi
3388else
3389  if test "$GCC" = yes; then
3390    CFLAGS="-O2"
3391  else
3392    CFLAGS=
3393  fi
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3396$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3397if ${ac_cv_prog_cc_c89+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  ac_cv_prog_cc_c89=no
3401ac_save_CC=$CC
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404#include <stdarg.h>
3405#include <stdio.h>
3406struct stat;
3407/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3408struct buf { int x; };
3409FILE * (*rcsopen) (struct buf *, struct stat *, int);
3410static char *e (p, i)
3411     char **p;
3412     int i;
3413{
3414  return p[i];
3415}
3416static char *f (char * (*g) (char **, int), char **p, ...)
3417{
3418  char *s;
3419  va_list v;
3420  va_start (v,p);
3421  s = g (p, va_arg (v,int));
3422  va_end (v);
3423  return s;
3424}
3425
3426/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3427   function prototypes and stuff, but not '\xHH' hex character constants.
3428   These don't provoke an error unfortunately, instead are silently treated
3429   as 'x'.  The following induces an error, until -std is added to get
3430   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3431   array size at least.  It's necessary to write '\x00'==0 to get something
3432   that's true only with -std.  */
3433int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434
3435/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3436   inside strings and character constants.  */
3437#define FOO(x) 'x'
3438int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3439
3440int test (int i, double x);
3441struct s1 {int (*f) (int a);};
3442struct s2 {int (*f) (double a);};
3443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3444int argc;
3445char **argv;
3446int
3447main ()
3448{
3449return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3455	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456do
3457  CC="$ac_save_CC $ac_arg"
3458  if ac_fn_c_try_compile "$LINENO"; then :
3459  ac_cv_prog_cc_c89=$ac_arg
3460fi
3461rm -f core conftest.err conftest.$ac_objext
3462  test "x$ac_cv_prog_cc_c89" != "xno" && break
3463done
3464rm -f conftest.$ac_ext
3465CC=$ac_save_CC
3466
3467fi
3468# AC_CACHE_VAL
3469case "x$ac_cv_prog_cc_c89" in
3470  x)
3471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3472$as_echo "none needed" >&6; } ;;
3473  xno)
3474    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3475$as_echo "unsupported" >&6; } ;;
3476  *)
3477    CC="$CC $ac_cv_prog_cc_c89"
3478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3479$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480esac
3481if test "x$ac_cv_prog_cc_c89" != xno; then :
3482
3483fi
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492for ac_func in fsync
3493do :
3494  ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
3495if test "x$ac_cv_func_fsync" = xyes; then :
3496  cat >>confdefs.h <<_ACEOF
3497@%:@define HAVE_FSYNC 1
3498_ACEOF
3499
3500fi
3501done
3502
3503
3504ac_config_files="$ac_config_files Makefile"
3505
3506cat >confcache <<\_ACEOF
3507# This file is a shell script that caches the results of configure
3508# tests run on this system so they can be shared between configure
3509# scripts and configure runs, see configure's option --config-cache.
3510# It is not useful on other systems.  If it contains results you don't
3511# want to keep, you may remove or edit it.
3512#
3513# config.status only pays attention to the cache file if you give it
3514# the --recheck option to rerun configure.
3515#
3516# `ac_cv_env_foo' variables (set or unset) will be overridden when
3517# loading this file, other *unset* `ac_cv_foo' will be assigned the
3518# following values.
3519
3520_ACEOF
3521
3522# The following way of writing the cache mishandles newlines in values,
3523# but we know of no workaround that is simple, portable, and efficient.
3524# So, we kill variables containing newlines.
3525# Ultrix sh set writes to stderr and can't be redirected directly,
3526# and sets the high bit in the cache file unless we assign to the vars.
3527(
3528  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3529    eval ac_val=\$$ac_var
3530    case $ac_val in #(
3531    *${as_nl}*)
3532      case $ac_var in #(
3533      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3534$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3535      esac
3536      case $ac_var in #(
3537      _ | IFS | as_nl) ;; #(
3538      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3539      *) { eval $ac_var=; unset $ac_var;} ;;
3540      esac ;;
3541    esac
3542  done
3543
3544  (set) 2>&1 |
3545    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3546    *${as_nl}ac_space=\ *)
3547      # `set' does not quote correctly, so add quotes: double-quote
3548      # substitution turns \\\\ into \\, and sed turns \\ into \.
3549      sed -n \
3550	"s/'/'\\\\''/g;
3551	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3552      ;; #(
3553    *)
3554      # `set' quotes correctly as required by POSIX, so do not add quotes.
3555      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3556      ;;
3557    esac |
3558    sort
3559) |
3560  sed '
3561     /^ac_cv_env_/b end
3562     t clear
3563     :clear
3564     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3565     t end
3566     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3567     :end' >>confcache
3568if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3569  if test -w "$cache_file"; then
3570    if test "x$cache_file" != "x/dev/null"; then
3571      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3572$as_echo "$as_me: updating cache $cache_file" >&6;}
3573      if test ! -f "$cache_file" || test -h "$cache_file"; then
3574	cat confcache >"$cache_file"
3575      else
3576        case $cache_file in #(
3577        */* | ?:*)
3578	  mv -f confcache "$cache_file"$$ &&
3579	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3580        *)
3581	  mv -f confcache "$cache_file" ;;
3582	esac
3583      fi
3584    fi
3585  else
3586    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3587$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3588  fi
3589fi
3590rm -f confcache
3591
3592test "x$prefix" = xNONE && prefix=$ac_default_prefix
3593# Let make expand exec_prefix.
3594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3595
3596DEFS=-DHAVE_CONFIG_H
3597
3598ac_libobjs=
3599ac_ltlibobjs=
3600U=
3601for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
3602  # 1. Remove the extension, and $U if already installed.
3603  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3604  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3605  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3606  #    will be set to the directory where LIBOBJS objects are built.
3607  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3608  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3609done
3610LIB@&t@OBJS=$ac_libobjs
3611
3612LTLIBOBJS=$ac_ltlibobjs
3613
3614
3615
3616: "${CONFIG_STATUS=./config.status}"
3617ac_write_fail=0
3618ac_clean_files_save=$ac_clean_files
3619ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3621$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3622as_write_fail=0
3623cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3624#! $SHELL
3625# Generated by $as_me.
3626# Run this file to recreate the current configuration.
3627# Compiler output produced by configure, useful for debugging
3628# configure, is in config.log if it exists.
3629
3630debug=false
3631ac_cs_recheck=false
3632ac_cs_silent=false
3633
3634SHELL=\${CONFIG_SHELL-$SHELL}
3635export SHELL
3636_ASEOF
3637cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3638## -------------------- ##
3639## M4sh Initialization. ##
3640## -------------------- ##
3641
3642# Be more Bourne compatible
3643DUALCASE=1; export DUALCASE # for MKS sh
3644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3645  emulate sh
3646  NULLCMD=:
3647  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3648  # is contrary to our usage.  Disable this feature.
3649  alias -g '${1+"$@"}'='"$@"'
3650  setopt NO_GLOB_SUBST
3651else
3652  case `(set -o) 2>/dev/null` in @%:@(
3653  *posix*) :
3654    set -o posix ;; @%:@(
3655  *) :
3656     ;;
3657esac
3658fi
3659
3660
3661as_nl='
3662'
3663export as_nl
3664# Printing a long string crashes Solaris 7 /usr/bin/printf.
3665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3668# Prefer a ksh shell builtin over an external printf program on Solaris,
3669# but without wasting forks for bash or zsh.
3670if test -z "$BASH_VERSION$ZSH_VERSION" \
3671    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3672  as_echo='print -r --'
3673  as_echo_n='print -rn --'
3674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3675  as_echo='printf %s\n'
3676  as_echo_n='printf %s'
3677else
3678  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3679    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3680    as_echo_n='/usr/ucb/echo -n'
3681  else
3682    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3683    as_echo_n_body='eval
3684      arg=$1;
3685      case $arg in @%:@(
3686      *"$as_nl"*)
3687	expr "X$arg" : "X\\(.*\\)$as_nl";
3688	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3689      esac;
3690      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3691    '
3692    export as_echo_n_body
3693    as_echo_n='sh -c $as_echo_n_body as_echo'
3694  fi
3695  export as_echo_body
3696  as_echo='sh -c $as_echo_body as_echo'
3697fi
3698
3699# The user is always right.
3700if test "${PATH_SEPARATOR+set}" != set; then
3701  PATH_SEPARATOR=:
3702  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3703    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3704      PATH_SEPARATOR=';'
3705  }
3706fi
3707
3708
3709# IFS
3710# We need space, tab and new line, in precisely that order.  Quoting is
3711# there to prevent editors from complaining about space-tab.
3712# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3713# splitting by setting IFS to empty value.)
3714IFS=" ""	$as_nl"
3715
3716# Find who we are.  Look in the path if we contain no directory separator.
3717as_myself=
3718case $0 in @%:@((
3719  *[\\/]* ) as_myself=$0 ;;
3720  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  test -z "$as_dir" && as_dir=.
3725    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3726  done
3727IFS=$as_save_IFS
3728
3729     ;;
3730esac
3731# We did not find ourselves, most probably we were run as `sh COMMAND'
3732# in which case we are not to be found in the path.
3733if test "x$as_myself" = x; then
3734  as_myself=$0
3735fi
3736if test ! -f "$as_myself"; then
3737  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3738  exit 1
3739fi
3740
3741# Unset variables that we do not need and which cause bugs (e.g. in
3742# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3743# suppresses any "Segmentation fault" message there.  '((' could
3744# trigger a bug in pdksh 5.2.14.
3745for as_var in BASH_ENV ENV MAIL MAILPATH
3746do eval test x\${$as_var+set} = xset \
3747  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3748done
3749PS1='$ '
3750PS2='> '
3751PS4='+ '
3752
3753# NLS nuisances.
3754LC_ALL=C
3755export LC_ALL
3756LANGUAGE=C
3757export LANGUAGE
3758
3759# CDPATH.
3760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3761
3762
3763@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
3764@%:@ ----------------------------------------
3765@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3766@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3767@%:@ script with STATUS, using 1 if that was 0.
3768as_fn_error ()
3769{
3770  as_status=$1; test $as_status -eq 0 && as_status=1
3771  if test "$4"; then
3772    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3773    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3774  fi
3775  $as_echo "$as_me: error: $2" >&2
3776  as_fn_exit $as_status
3777} @%:@ as_fn_error
3778
3779
3780@%:@ as_fn_set_status STATUS
3781@%:@ -----------------------
3782@%:@ Set @S|@? to STATUS, without forking.
3783as_fn_set_status ()
3784{
3785  return $1
3786} @%:@ as_fn_set_status
3787
3788@%:@ as_fn_exit STATUS
3789@%:@ -----------------
3790@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3791as_fn_exit ()
3792{
3793  set +e
3794  as_fn_set_status $1
3795  exit $1
3796} @%:@ as_fn_exit
3797
3798@%:@ as_fn_unset VAR
3799@%:@ ---------------
3800@%:@ Portably unset VAR.
3801as_fn_unset ()
3802{
3803  { eval $1=; unset $1;}
3804}
3805as_unset=as_fn_unset
3806@%:@ as_fn_append VAR VALUE
3807@%:@ ----------------------
3808@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
3809@%:@ advantage of any shell optimizations that allow amortized linear growth over
3810@%:@ repeated appends, instead of the typical quadratic growth present in naive
3811@%:@ implementations.
3812if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3813  eval 'as_fn_append ()
3814  {
3815    eval $1+=\$2
3816  }'
3817else
3818  as_fn_append ()
3819  {
3820    eval $1=\$$1\$2
3821  }
3822fi # as_fn_append
3823
3824@%:@ as_fn_arith ARG...
3825@%:@ ------------------
3826@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
3827@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
3828@%:@ must be portable across @S|@(()) and expr.
3829if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3830  eval 'as_fn_arith ()
3831  {
3832    as_val=$(( $* ))
3833  }'
3834else
3835  as_fn_arith ()
3836  {
3837    as_val=`expr "$@" || test $? -eq 1`
3838  }
3839fi # as_fn_arith
3840
3841
3842if expr a : '\(a\)' >/dev/null 2>&1 &&
3843   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3844  as_expr=expr
3845else
3846  as_expr=false
3847fi
3848
3849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3850  as_basename=basename
3851else
3852  as_basename=false
3853fi
3854
3855if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3856  as_dirname=dirname
3857else
3858  as_dirname=false
3859fi
3860
3861as_me=`$as_basename -- "$0" ||
3862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3863	 X"$0" : 'X\(//\)$' \| \
3864	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3865$as_echo X/"$0" |
3866    sed '/^.*\/\([^/][^/]*\)\/*$/{
3867	    s//\1/
3868	    q
3869	  }
3870	  /^X\/\(\/\/\)$/{
3871	    s//\1/
3872	    q
3873	  }
3874	  /^X\/\(\/\).*/{
3875	    s//\1/
3876	    q
3877	  }
3878	  s/.*/./; q'`
3879
3880# Avoid depending upon Character Ranges.
3881as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3883as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3884as_cr_digits='0123456789'
3885as_cr_alnum=$as_cr_Letters$as_cr_digits
3886
3887ECHO_C= ECHO_N= ECHO_T=
3888case `echo -n x` in @%:@(((((
3889-n*)
3890  case `echo 'xy\c'` in
3891  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3892  xy)  ECHO_C='\c';;
3893  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3894       ECHO_T='	';;
3895  esac;;
3896*)
3897  ECHO_N='-n';;
3898esac
3899
3900rm -f conf$$ conf$$.exe conf$$.file
3901if test -d conf$$.dir; then
3902  rm -f conf$$.dir/conf$$.file
3903else
3904  rm -f conf$$.dir
3905  mkdir conf$$.dir 2>/dev/null
3906fi
3907if (echo >conf$$.file) 2>/dev/null; then
3908  if ln -s conf$$.file conf$$ 2>/dev/null; then
3909    as_ln_s='ln -s'
3910    # ... but there are two gotchas:
3911    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3912    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3913    # In both cases, we have to default to `cp -pR'.
3914    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3915      as_ln_s='cp -pR'
3916  elif ln conf$$.file conf$$ 2>/dev/null; then
3917    as_ln_s=ln
3918  else
3919    as_ln_s='cp -pR'
3920  fi
3921else
3922  as_ln_s='cp -pR'
3923fi
3924rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3925rmdir conf$$.dir 2>/dev/null
3926
3927
3928@%:@ as_fn_mkdir_p
3929@%:@ -------------
3930@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
3931as_fn_mkdir_p ()
3932{
3933
3934  case $as_dir in #(
3935  -*) as_dir=./$as_dir;;
3936  esac
3937  test -d "$as_dir" || eval $as_mkdir_p || {
3938    as_dirs=
3939    while :; do
3940      case $as_dir in #(
3941      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3942      *) as_qdir=$as_dir;;
3943      esac
3944      as_dirs="'$as_qdir' $as_dirs"
3945      as_dir=`$as_dirname -- "$as_dir" ||
3946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3947	 X"$as_dir" : 'X\(//\)[^/]' \| \
3948	 X"$as_dir" : 'X\(//\)$' \| \
3949	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3950$as_echo X"$as_dir" |
3951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3952	    s//\1/
3953	    q
3954	  }
3955	  /^X\(\/\/\)[^/].*/{
3956	    s//\1/
3957	    q
3958	  }
3959	  /^X\(\/\/\)$/{
3960	    s//\1/
3961	    q
3962	  }
3963	  /^X\(\/\).*/{
3964	    s//\1/
3965	    q
3966	  }
3967	  s/.*/./; q'`
3968      test -d "$as_dir" && break
3969    done
3970    test -z "$as_dirs" || eval "mkdir $as_dirs"
3971  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3972
3973
3974} @%:@ as_fn_mkdir_p
3975if mkdir -p . 2>/dev/null; then
3976  as_mkdir_p='mkdir -p "$as_dir"'
3977else
3978  test -d ./-p && rmdir ./-p
3979  as_mkdir_p=false
3980fi
3981
3982
3983@%:@ as_fn_executable_p FILE
3984@%:@ -----------------------
3985@%:@ Test if FILE is an executable regular file.
3986as_fn_executable_p ()
3987{
3988  test -f "$1" && test -x "$1"
3989} @%:@ as_fn_executable_p
3990as_test_x='test -x'
3991as_executable_p=as_fn_executable_p
3992
3993# Sed expression to map a string onto a valid CPP name.
3994as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3995
3996# Sed expression to map a string onto a valid variable name.
3997as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3998
3999
4000exec 6>&1
4001## ----------------------------------- ##
4002## Main body of $CONFIG_STATUS script. ##
4003## ----------------------------------- ##
4004_ASEOF
4005test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4006
4007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4008# Save the log message, to keep $0 and so on meaningful, and to
4009# report actual input values of CONFIG_FILES etc. instead of their
4010# values after options handling.
4011ac_log="
4012This file was extended by ical $as_me 3.0.4, which was
4013generated by GNU Autoconf 2.69.  Invocation command line was
4014
4015  CONFIG_FILES    = $CONFIG_FILES
4016  CONFIG_HEADERS  = $CONFIG_HEADERS
4017  CONFIG_LINKS    = $CONFIG_LINKS
4018  CONFIG_COMMANDS = $CONFIG_COMMANDS
4019  $ $0 $@
4020
4021on `(hostname || uname -n) 2>/dev/null | sed 1q`
4022"
4023
4024_ACEOF
4025
4026case $ac_config_files in *"
4027"*) set x $ac_config_files; shift; ac_config_files=$*;;
4028esac
4029
4030case $ac_config_headers in *"
4031"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4032esac
4033
4034
4035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4036# Files that config.status was made for.
4037config_files="$ac_config_files"
4038config_headers="$ac_config_headers"
4039
4040_ACEOF
4041
4042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4043ac_cs_usage="\
4044\`$as_me' instantiates files and other configuration actions
4045from templates according to the current configuration.  Unless the files
4046and actions are specified as TAGs, all are instantiated by default.
4047
4048Usage: $0 [OPTION]... [TAG]...
4049
4050  -h, --help       print this help, then exit
4051  -V, --version    print version number and configuration settings, then exit
4052      --config     print configuration, then exit
4053  -q, --quiet, --silent
4054                   do not print progress messages
4055  -d, --debug      don't remove temporary files
4056      --recheck    update $as_me by reconfiguring in the same conditions
4057      --file=FILE[:TEMPLATE]
4058                   instantiate the configuration file FILE
4059      --header=FILE[:TEMPLATE]
4060                   instantiate the configuration header FILE
4061
4062Configuration files:
4063$config_files
4064
4065Configuration headers:
4066$config_headers
4067
4068Report bugs to the package provider."
4069
4070_ACEOF
4071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4072ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4073ac_cs_version="\\
4074ical config.status 3.0.4
4075configured by $0, generated by GNU Autoconf 2.69,
4076  with options \\"\$ac_cs_config\\"
4077
4078Copyright (C) 2012 Free Software Foundation, Inc.
4079This config.status script is free software; the Free Software Foundation
4080gives unlimited permission to copy, distribute and modify it."
4081
4082ac_pwd='$ac_pwd'
4083srcdir='$srcdir'
4084INSTALL='$INSTALL'
4085test -n "\$AWK" || AWK=awk
4086_ACEOF
4087
4088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4089# The default lists apply if the user does not specify any file.
4090ac_need_defaults=:
4091while test $# != 0
4092do
4093  case $1 in
4094  --*=?*)
4095    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4096    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4097    ac_shift=:
4098    ;;
4099  --*=)
4100    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4101    ac_optarg=
4102    ac_shift=:
4103    ;;
4104  *)
4105    ac_option=$1
4106    ac_optarg=$2
4107    ac_shift=shift
4108    ;;
4109  esac
4110
4111  case $ac_option in
4112  # Handling of the options.
4113  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4114    ac_cs_recheck=: ;;
4115  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4116    $as_echo "$ac_cs_version"; exit ;;
4117  --config | --confi | --conf | --con | --co | --c )
4118    $as_echo "$ac_cs_config"; exit ;;
4119  --debug | --debu | --deb | --de | --d | -d )
4120    debug=: ;;
4121  --file | --fil | --fi | --f )
4122    $ac_shift
4123    case $ac_optarg in
4124    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4125    '') as_fn_error $? "missing file argument" ;;
4126    esac
4127    as_fn_append CONFIG_FILES " '$ac_optarg'"
4128    ac_need_defaults=false;;
4129  --header | --heade | --head | --hea )
4130    $ac_shift
4131    case $ac_optarg in
4132    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4133    esac
4134    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4135    ac_need_defaults=false;;
4136  --he | --h)
4137    # Conflict between --help and --header
4138    as_fn_error $? "ambiguous option: \`$1'
4139Try \`$0 --help' for more information.";;
4140  --help | --hel | -h )
4141    $as_echo "$ac_cs_usage"; exit ;;
4142  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4143  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4144    ac_cs_silent=: ;;
4145
4146  # This is an error.
4147  -*) as_fn_error $? "unrecognized option: \`$1'
4148Try \`$0 --help' for more information." ;;
4149
4150  *) as_fn_append ac_config_targets " $1"
4151     ac_need_defaults=false ;;
4152
4153  esac
4154  shift
4155done
4156
4157ac_configure_extra_args=
4158
4159if $ac_cs_silent; then
4160  exec 6>/dev/null
4161  ac_configure_extra_args="$ac_configure_extra_args --silent"
4162fi
4163
4164_ACEOF
4165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4166if \$ac_cs_recheck; then
4167  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4168  shift
4169  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4170  CONFIG_SHELL='$SHELL'
4171  export CONFIG_SHELL
4172  exec "\$@"
4173fi
4174
4175_ACEOF
4176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4177exec 5>>config.log
4178{
4179  echo
4180  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
4181@%:@@%:@ Running $as_me. @%:@@%:@
4182_ASBOX
4183  $as_echo "$ac_log"
4184} >&5
4185
4186_ACEOF
4187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4188_ACEOF
4189
4190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4191
4192# Handling of arguments.
4193for ac_config_target in $ac_config_targets
4194do
4195  case $ac_config_target in
4196    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4197    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4198
4199  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4200  esac
4201done
4202
4203
4204# If the user did not use the arguments to specify the items to instantiate,
4205# then the envvar interface is used.  Set only those that are not.
4206# We use the long form for the default assignment because of an extremely
4207# bizarre bug on SunOS 4.1.3.
4208if $ac_need_defaults; then
4209  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4210  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4211fi
4212
4213# Have a temporary directory for convenience.  Make it in the build tree
4214# simply because there is no reason against having it here, and in addition,
4215# creating and moving files from /tmp can sometimes cause problems.
4216# Hook for its removal unless debugging.
4217# Note that there is a small window in which the directory will not be cleaned:
4218# after its creation but before its name has been assigned to `$tmp'.
4219$debug ||
4220{
4221  tmp= ac_tmp=
4222  trap 'exit_status=$?
4223  : "${ac_tmp:=$tmp}"
4224  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4225' 0
4226  trap 'as_fn_exit 1' 1 2 13 15
4227}
4228# Create a (secure) tmp directory for tmp files.
4229
4230{
4231  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4232  test -d "$tmp"
4233}  ||
4234{
4235  tmp=./conf$$-$RANDOM
4236  (umask 077 && mkdir "$tmp")
4237} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4238ac_tmp=$tmp
4239
4240# Set up the scripts for CONFIG_FILES section.
4241# No need to generate them if there are no CONFIG_FILES.
4242# This happens for instance with `./config.status config.h'.
4243if test -n "$CONFIG_FILES"; then
4244
4245
4246ac_cr=`echo X | tr X '\015'`
4247# On cygwin, bash can eat \r inside `` if the user requested igncr.
4248# But we know of no other shell where ac_cr would be empty at this
4249# point, so we can use a bashism as a fallback.
4250if test "x$ac_cr" = x; then
4251  eval ac_cr=\$\'\\r\'
4252fi
4253ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4254if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4255  ac_cs_awk_cr='\\r'
4256else
4257  ac_cs_awk_cr=$ac_cr
4258fi
4259
4260echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4261_ACEOF
4262
4263
4264{
4265  echo "cat >conf$$subs.awk <<_ACEOF" &&
4266  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4267  echo "_ACEOF"
4268} >conf$$subs.sh ||
4269  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4270ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4271ac_delim='%!_!# '
4272for ac_last_try in false false false false false :; do
4273  . ./conf$$subs.sh ||
4274    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4275
4276  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4277  if test $ac_delim_n = $ac_delim_num; then
4278    break
4279  elif $ac_last_try; then
4280    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4281  else
4282    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4283  fi
4284done
4285rm -f conf$$subs.sh
4286
4287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4288cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4289_ACEOF
4290sed -n '
4291h
4292s/^/S["/; s/!.*/"]=/
4293p
4294g
4295s/^[^!]*!//
4296:repl
4297t repl
4298s/'"$ac_delim"'$//
4299t delim
4300:nl
4301h
4302s/\(.\{148\}\)..*/\1/
4303t more1
4304s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4305p
4306n
4307b repl
4308:more1
4309s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4310p
4311g
4312s/.\{148\}//
4313t nl
4314:delim
4315h
4316s/\(.\{148\}\)..*/\1/
4317t more2
4318s/["\\]/\\&/g; s/^/"/; s/$/"/
4319p
4320b
4321:more2
4322s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4323p
4324g
4325s/.\{148\}//
4326t delim
4327' <conf$$subs.awk | sed '
4328/^[^""]/{
4329  N
4330  s/\n//
4331}
4332' >>$CONFIG_STATUS || ac_write_fail=1
4333rm -f conf$$subs.awk
4334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4335_ACAWK
4336cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4337  for (key in S) S_is_set[key] = 1
4338  FS = ""
4339
4340}
4341{
4342  line = $ 0
4343  nfields = split(line, field, "@")
4344  substed = 0
4345  len = length(field[1])
4346  for (i = 2; i < nfields; i++) {
4347    key = field[i]
4348    keylen = length(key)
4349    if (S_is_set[key]) {
4350      value = S[key]
4351      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4352      len += length(value) + length(field[++i])
4353      substed = 1
4354    } else
4355      len += 1 + keylen
4356  }
4357
4358  print line
4359}
4360
4361_ACAWK
4362_ACEOF
4363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4364if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4365  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4366else
4367  cat
4368fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4369  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4370_ACEOF
4371
4372# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4373# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4374# trailing colons and then remove the whole line if VPATH becomes empty
4375# (actually we leave an empty line to preserve line numbers).
4376if test "x$srcdir" = x.; then
4377  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4378h
4379s///
4380s/^/:/
4381s/[	 ]*$/:/
4382s/:\$(srcdir):/:/g
4383s/:\${srcdir}:/:/g
4384s/:@srcdir@:/:/g
4385s/^:*//
4386s/:*$//
4387x
4388s/\(=[	 ]*\).*/\1/
4389G
4390s/\n//
4391s/^[^=]*=[	 ]*$//
4392}'
4393fi
4394
4395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4396fi # test -n "$CONFIG_FILES"
4397
4398# Set up the scripts for CONFIG_HEADERS section.
4399# No need to generate them if there are no CONFIG_HEADERS.
4400# This happens for instance with `./config.status Makefile'.
4401if test -n "$CONFIG_HEADERS"; then
4402cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4403BEGIN {
4404_ACEOF
4405
4406# Transform confdefs.h into an awk script `defines.awk', embedded as
4407# here-document in config.status, that substitutes the proper values into
4408# config.h.in to produce config.h.
4409
4410# Create a delimiter string that does not exist in confdefs.h, to ease
4411# handling of long lines.
4412ac_delim='%!_!# '
4413for ac_last_try in false false :; do
4414  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4415  if test -z "$ac_tt"; then
4416    break
4417  elif $ac_last_try; then
4418    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4419  else
4420    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4421  fi
4422done
4423
4424# For the awk script, D is an array of macro values keyed by name,
4425# likewise P contains macro parameters if any.  Preserve backslash
4426# newline sequences.
4427
4428ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4429sed -n '
4430s/.\{148\}/&'"$ac_delim"'/g
4431t rset
4432:rset
4433s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
4434t def
4435d
4436:def
4437s/\\$//
4438t bsnl
4439s/["\\]/\\&/g
4440s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4441D["\1"]=" \3"/p
4442s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
4443d
4444:bsnl
4445s/["\\]/\\&/g
4446s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4447D["\1"]=" \3\\\\\\n"\\/p
4448t cont
4449s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4450t cont
4451d
4452:cont
4453n
4454s/.\{148\}/&'"$ac_delim"'/g
4455t clear
4456:clear
4457s/\\$//
4458t bsnlc
4459s/["\\]/\\&/g; s/^/"/; s/$/"/p
4460d
4461:bsnlc
4462s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4463b cont
4464' <confdefs.h | sed '
4465s/'"$ac_delim"'/"\\\
4466"/g' >>$CONFIG_STATUS || ac_write_fail=1
4467
4468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4469  for (key in D) D_is_set[key] = 1
4470  FS = ""
4471}
4472/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4473  line = \$ 0
4474  split(line, arg, " ")
4475  if (arg[1] == "#") {
4476    defundef = arg[2]
4477    mac1 = arg[3]
4478  } else {
4479    defundef = substr(arg[1], 2)
4480    mac1 = arg[2]
4481  }
4482  split(mac1, mac2, "(") #)
4483  macro = mac2[1]
4484  prefix = substr(line, 1, index(line, defundef) - 1)
4485  if (D_is_set[macro]) {
4486    # Preserve the white space surrounding the "#".
4487    print prefix "define", macro P[macro] D[macro]
4488    next
4489  } else {
4490    # Replace #undef with comments.  This is necessary, for example,
4491    # in the case of _POSIX_SOURCE, which is predefined and required
4492    # on some systems where configure will not decide to define it.
4493    if (defundef == "undef") {
4494      print "/*", prefix defundef, macro, "*/"
4495      next
4496    }
4497  }
4498}
4499{ print }
4500_ACAWK
4501_ACEOF
4502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4503  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4504fi # test -n "$CONFIG_HEADERS"
4505
4506
4507eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
4508shift
4509for ac_tag
4510do
4511  case $ac_tag in
4512  :[FHLC]) ac_mode=$ac_tag; continue;;
4513  esac
4514  case $ac_mode$ac_tag in
4515  :[FHL]*:*);;
4516  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4517  :[FH]-) ac_tag=-:-;;
4518  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4519  esac
4520  ac_save_IFS=$IFS
4521  IFS=:
4522  set x $ac_tag
4523  IFS=$ac_save_IFS
4524  shift
4525  ac_file=$1
4526  shift
4527
4528  case $ac_mode in
4529  :L) ac_source=$1;;
4530  :[FH])
4531    ac_file_inputs=
4532    for ac_f
4533    do
4534      case $ac_f in
4535      -) ac_f="$ac_tmp/stdin";;
4536      *) # Look for the file first in the build tree, then in the source tree
4537	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4538	 # because $ac_f cannot contain `:'.
4539	 test -f "$ac_f" ||
4540	   case $ac_f in
4541	   [\\/$]*) false;;
4542	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4543	   esac ||
4544	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4545      esac
4546      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4547      as_fn_append ac_file_inputs " '$ac_f'"
4548    done
4549
4550    # Let's still pretend it is `configure' which instantiates (i.e., don't
4551    # use $as_me), people would be surprised to read:
4552    #    /* config.h.  Generated by config.status.  */
4553    configure_input='Generated from '`
4554	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4555	`' by configure.'
4556    if test x"$ac_file" != x-; then
4557      configure_input="$ac_file.  $configure_input"
4558      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4559$as_echo "$as_me: creating $ac_file" >&6;}
4560    fi
4561    # Neutralize special characters interpreted by sed in replacement strings.
4562    case $configure_input in #(
4563    *\&* | *\|* | *\\* )
4564       ac_sed_conf_input=`$as_echo "$configure_input" |
4565       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4566    *) ac_sed_conf_input=$configure_input;;
4567    esac
4568
4569    case $ac_tag in
4570    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4571      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4572    esac
4573    ;;
4574  esac
4575
4576  ac_dir=`$as_dirname -- "$ac_file" ||
4577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4578	 X"$ac_file" : 'X\(//\)[^/]' \| \
4579	 X"$ac_file" : 'X\(//\)$' \| \
4580	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4581$as_echo X"$ac_file" |
4582    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4583	    s//\1/
4584	    q
4585	  }
4586	  /^X\(\/\/\)[^/].*/{
4587	    s//\1/
4588	    q
4589	  }
4590	  /^X\(\/\/\)$/{
4591	    s//\1/
4592	    q
4593	  }
4594	  /^X\(\/\).*/{
4595	    s//\1/
4596	    q
4597	  }
4598	  s/.*/./; q'`
4599  as_dir="$ac_dir"; as_fn_mkdir_p
4600  ac_builddir=.
4601
4602case "$ac_dir" in
4603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4604*)
4605  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4606  # A ".." for each directory in $ac_dir_suffix.
4607  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4608  case $ac_top_builddir_sub in
4609  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4610  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4611  esac ;;
4612esac
4613ac_abs_top_builddir=$ac_pwd
4614ac_abs_builddir=$ac_pwd$ac_dir_suffix
4615# for backward compatibility:
4616ac_top_builddir=$ac_top_build_prefix
4617
4618case $srcdir in
4619  .)  # We are building in place.
4620    ac_srcdir=.
4621    ac_top_srcdir=$ac_top_builddir_sub
4622    ac_abs_top_srcdir=$ac_pwd ;;
4623  [\\/]* | ?:[\\/]* )  # Absolute name.
4624    ac_srcdir=$srcdir$ac_dir_suffix;
4625    ac_top_srcdir=$srcdir
4626    ac_abs_top_srcdir=$srcdir ;;
4627  *) # Relative name.
4628    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4629    ac_top_srcdir=$ac_top_build_prefix$srcdir
4630    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4631esac
4632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4633
4634
4635  case $ac_mode in
4636  :F)
4637  #
4638  # CONFIG_FILE
4639  #
4640
4641  case $INSTALL in
4642  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4643  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4644  esac
4645_ACEOF
4646
4647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4648# If the template does not know about datarootdir, expand it.
4649# FIXME: This hack should be removed a few years after 2.60.
4650ac_datarootdir_hack=; ac_datarootdir_seen=
4651ac_sed_dataroot='
4652/datarootdir/ {
4653  p
4654  q
4655}
4656/@datadir@/p
4657/@docdir@/p
4658/@infodir@/p
4659/@localedir@/p
4660/@mandir@/p'
4661case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4662*datarootdir*) ac_datarootdir_seen=yes;;
4663*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4665$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4666_ACEOF
4667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4668  ac_datarootdir_hack='
4669  s&@datadir@&$datadir&g
4670  s&@docdir@&$docdir&g
4671  s&@infodir@&$infodir&g
4672  s&@localedir@&$localedir&g
4673  s&@mandir@&$mandir&g
4674  s&\\\${datarootdir}&$datarootdir&g' ;;
4675esac
4676_ACEOF
4677
4678# Neutralize VPATH when `$srcdir' = `.'.
4679# Shell code in configure.ac might set extrasub.
4680# FIXME: do we really want to maintain this feature?
4681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4682ac_sed_extra="$ac_vpsub
4683$extrasub
4684_ACEOF
4685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4686:t
4687/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4688s|@configure_input@|$ac_sed_conf_input|;t t
4689s&@top_builddir@&$ac_top_builddir_sub&;t t
4690s&@top_build_prefix@&$ac_top_build_prefix&;t t
4691s&@srcdir@&$ac_srcdir&;t t
4692s&@abs_srcdir@&$ac_abs_srcdir&;t t
4693s&@top_srcdir@&$ac_top_srcdir&;t t
4694s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4695s&@builddir@&$ac_builddir&;t t
4696s&@abs_builddir@&$ac_abs_builddir&;t t
4697s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4698s&@INSTALL@&$ac_INSTALL&;t t
4699$ac_datarootdir_hack
4700"
4701eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4702  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4703
4704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4705  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4706  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
4707      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4709which seems to be undefined.  Please make sure it is defined" >&5
4710$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4711which seems to be undefined.  Please make sure it is defined" >&2;}
4712
4713  rm -f "$ac_tmp/stdin"
4714  case $ac_file in
4715  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4716  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4717  esac \
4718  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4719 ;;
4720  :H)
4721  #
4722  # CONFIG_HEADER
4723  #
4724  if test x"$ac_file" != x-; then
4725    {
4726      $as_echo "/* $configure_input  */" \
4727      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4728    } >"$ac_tmp/config.h" \
4729      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4730    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4731      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4732$as_echo "$as_me: $ac_file is unchanged" >&6;}
4733    else
4734      rm -f "$ac_file"
4735      mv "$ac_tmp/config.h" "$ac_file" \
4736	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
4737    fi
4738  else
4739    $as_echo "/* $configure_input  */" \
4740      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4741      || as_fn_error $? "could not create -" "$LINENO" 5
4742  fi
4743 ;;
4744
4745
4746  esac
4747
4748done # for ac_tag
4749
4750
4751as_fn_exit 0
4752_ACEOF
4753ac_clean_files=$ac_clean_files_save
4754
4755test $ac_write_fail = 0 ||
4756  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4757
4758
4759# configure is writing to config.log, and then calls config.status.
4760# config.status does its own redirection, appending to config.log.
4761# Unfortunately, on DOS this fails, as config.log is still kept open
4762# by configure, so config.status won't be able to write to it; its
4763# output is simply discarded.  So we exec the FD to /dev/null,
4764# effectively closing config.log, so it can be properly (re)opened and
4765# appended to by config.status.  When coming back to configure, we
4766# need to make the FD available again.
4767if test "$no_create" != yes; then
4768  ac_cs_success=:
4769  ac_config_status_args=
4770  test "$silent" = yes &&
4771    ac_config_status_args="$ac_config_status_args --quiet"
4772  exec 5>/dev/null
4773  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4774  exec 5>>config.log
4775  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4776  # would make configure fail if this is the last instruction.
4777  $ac_cs_success || as_fn_exit 1
4778fi
4779if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4781$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4782fi
4783
4784
4785